Conversation
There was a problem hiding this comment.
@1ec5 Any idea why I have to replace this comment manually with the one in Base-language after pulling in from Transifex and converted to UTF-8? (It only happens when I force using the -f flag)

There was a problem hiding this comment.
If you used Xcode’s File inspector to convert the file from UTF-16 to UTF-8, it left a BOM at the beginning of the file. Xcode’s strings file copying action, which converts the file from text plist format to binary plist format, only recognizes the BOM when the file is encoded in UTF-16. The workaround is either to cut and paste the file’s contents back into the file in Xcode or to use another text editor (or a tool like iconv).
.tx/config
Outdated
There was a problem hiding this comment.
Since this project only holds iOS code, let’s move lang_map up to the [main] section.
|
Catalan is also ready now. |
|
In the iOS SDK project, we’ve added stub Localizable.strings files to the iosapp target so that we can see what the SDK localizations look like while running iosapp. To keep the translation “cost” down, we opted not to make the entire application localizable, since iosapp is rarely seen by developers let alone users. For this project, however, the sample applications’ storyboards include only a few strings, so we might as well make the storyboards localizable as well. |
| [main] | ||
| host = https://www.transifex.com | ||
| lang_map = pt_BR: pt-BR, pt_PT: pt-PT, zh_CN: zh-Hans, zh_TW: zh-Hant | ||
| minimum_perc = 80 |
There was a problem hiding this comment.
If #106 lands first, we’ll want to add Navigation.storyboard to the resources and give it a minimum_perc much lower than 80%, since most of the strings are “DO NOT TRANSLATE”.
.tx/config
Outdated
| source_lang = en | ||
|
|
||
| [mapbox-navigation-ios.navigationstrings] | ||
| file_filter = MapboxNavigation/Resources/<lang>.lproj/Localizable.strings |
There was a problem hiding this comment.
We want this file to be called Navigation.strings, not Localizable.strings.
.tx/config
Outdated
|
|
||
| [mapbox-navigation-ios.navigationstrings] | ||
| file_filter = MapboxNavigation/Resources/<lang>.lproj/Localizable.strings | ||
| source_file = MapboxNavigation/Resources/Base.lproj/Localizable.strings |
There was a problem hiding this comment.
We need to pull from en.lproj/Navigation.strings.
Fixes #168
This PR adopts Transifex for pulling in localizations.
New languages added: sv, vi
Update languages: zh-Hans
@1ec5 👀