Last active
April 4, 2022 06:11
-
-
Save ole/5007019 to your computer and use it in GitHub Desktop.
Automatically extract translatable strings from Xcode storyboards and update .strings files. Original version by MacRumors forum user mikezang (http://forums.macrumors.com/showpost.php?p=16060008&postcount=4). Slightly updated by Ole Begemann. NOTE: this Gist moved to a regular repo at https://github.com/ole/Storyboard-Strings-Extraction.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# (File moved to https://github.com/ole/Storyboard-Strings-Extraction) |
Works somewhat but changed FR, IT and JA files to garbage! Don't have a clue why... :-{
Great script! But still I am wondering if it would be a way to change the way in which apple provides this horrible labor and write something more legible.
For example:
I would like to change this ugly ObjectID = "ccX-24-Hnq";
for a more friendly ViewController="LoginViewController".
In this way any translator would be able to know the context in which that text must be translated.
Thanks for sharing your work!
In case anybody comes across this script looking for a solution like this that is working with Xcode 7+:
You might want to checkout BartyCrouch, a command line utility I recently wrote in Swift that does a fairly similar thing. I hope it helps!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Works great! Thx a lot