@eureka:
Yeah, I'm at it right now... I noticed everything's setup on transifex and tool-wise, and I'm actually looking into the integration of it into the dist chain.
My observation is: it's
almost working.
I.e., it seems to be working correctly when compiling the en_US locale, but not for others.
Here's what I get when compiling the de locale:
Code:
$ python tool/js_resources/ compile --source-dir ../kindle-touch-l10n-tx-full/src/5.0.3/pillow/ --dest-dir /tmp/loc-js/ --source-locale en_US --locale de
Traceback (most recent call last):
File "/usr/lib/python2.6/runpy.py", line 122, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "/usr/lib/python2.6/runpy.py", line 34, in _run_code
exec code in run_globals
File "/home/cl/kindle-touch/localization/kindle-touch-l10n/tool/js_resources/__main__.py", line 132, in <module>
args.cmd.execute(args)
File "tool/js_resources/lib/cli_commands.py", line 157, in execute
resources = properties.read(compiled_file, base=base_file)
File "tool/js_resources/lib/format/properties.py", line 71, in read
with codecs.open(metadata_file, encoding='utf8') as md:
File "/usr/lib/python2.6/codecs.py", line 870, in open
file = __builtin__.open(filename, mode, buffering)
IOError: [Errno 2] No such file or directory: '../kindle-touch-l10n-tx-full/src/5.0.3/pillow/de/strings/wifi_wizard_dialog_strings.metadata.json'
The solution is trivial: metadata should not be looked for in the translated locale directory ("de"), but in the source locale directory ("en_US"). As I pointed out multiple times, I'm a complete legasthenic when it comes to python, so... could you please fix this?
Update:
P.S. The README is fine, it's just that it still has the old commands in it (if I'm not mistaken). For compile, I understand that the shortcut for "--source-locale" is now "-b", not "-m". Not a huge issue, as I'm using the long flags for now anyway, but probably just a small glitch that should be fixed.