zom / Zom-iOS-XMPP

THIS PROJECT IS NOW CLOSED. WE HAVE MOVED TO A NEW ZOM 2.0 MATRIX CORE. FOLLOW THE LINK!
https://github.com/zom/zom-ios-matrix
Mozilla Public License 2.0
37 stars 23 forks source link

Add localizations for ZomVerification* stuff #585

Open tladesignz opened 6 years ago

tladesignz commented 6 years ago

@N-Pex: Can you please explain the correct way to localize stuff like this:

https://github.com/zom/Zom-iOS/blob/21ef9a6fbdeaf801306fd4b330e0e2636e263898/Zom/Zom/Classes/View%20Controllers/ZomVerificationViewController.swift#L33-L46

N-Pex commented 6 years ago

@tladesignz We normally use the Zom-Android translations as blueprint for Zom-iOS, trying to keep the strings the same, i.e. if the translation should be done on the Android side if possible. However, to do it in iOS, select the project root, Editor->Export for Localization, tick the language(s) you want. This will generate XLIFF file(s) in the selected directory. Translate these XLIFFs using a tool of your choice (I am yet to find anything good besides emacs ;)) and then go back to XCode and do Editor->Import Localizations. Then hope for the best. All this used to be really horrible (crashing XCode etc) but now seems only almost horrible... (Apple still seems to live in a world were English is the only language)

tladesignz commented 6 years ago

@N-Pex So, that sounds like I want to have it from Android. Are these strings there, too, already?

N-Pex commented 6 years ago

No yet unfortunately =)