scelis / twine

Twine is a command line tool for managing your strings and their translations.
Other
840 stars 151 forks source link

Twine no longer supports iOS Language Codes for Traditional and Simplified Chinese #255

Closed danl3v closed 6 years ago

danl3v commented 6 years ago

If you're reporting a bug, please do the following:

screen shot 2018-06-12 at 1 22 44 pm

Is there a reason language codes need to be ISO-631 codes? By just doing string matching between files you could allow people to use any arbitrary string. Maybe I have an app that doesn't use standard language codes, but I still want to use twine?

It seems that Apple is not strictly using ISO-631 since Simplified and Traditional Chinese cannot be represented with ISO-631: https://www.loc.gov/standards/iso639-2/faq.html#23

Here is the actual output:

Unable to determine language for zh-Hans.xml
danl3v commented 6 years ago

Thanks for looking into this!

danl3v commented 6 years ago

Reverting https://github.com/scelis/twine/commit/094ba47ac8e60005271f6daf6706144058c87e03 locally fixed things for us. Not sure if you want to fix forward, or if you want to revert this commit until a solution can be found.

sebastianludwig commented 6 years ago

Hey Daniel, sorry for not responding earlier. I'm pretty busy this week and will try to come up with a solution over the weekend. But thanks for investigating so far!

danl3v commented 6 years ago

Thanks! We appreciate it. Does reverting that commit and tagging a new version make sense for now to unblock any iOS folks using twine?

danl3v commented 6 years ago

I opened up a PR to revert the change: https://github.com/scelis/twine/pull/256. Would be great if this could be merged to unblock us. We can build off of a fork in the meantime

sebastianludwig commented 6 years ago

Hey Daniel, I've just opened #257 to fix the issue. I know it's too late now, but specifying the language with --lang would have helped in the meantime. I've also added this hint to the error message to hopefully prevent anyone from being blocked by such errors in the future.