Commit graph

14 commits

Author SHA1 Message Date
Eric House
2f339450f3 fix to allow plurals items not in English
Change copy-strings.py to insist that no language provide a format
string not also found in English (since parameters to match all English
format string are sure to exist, but other languages are free NOT to
match them.) It's ok for other languages to provide "few", for example,
when English doesn't.
2020-06-15 13:02:18 -07:00
Eric House
9c4854e91f convert to python3 2020-06-15 13:02:18 -07:00
Eric House
7e570cff2c use make to avoid reprocessing res_src strings.xml files
They never change, so use make's understanding of dependencies.
2020-01-13 12:10:40 -08:00
Eric House
c663d33f88 fix string script to detect mismatch of format specifiers
Crash due to typo introduced by Weblate made me realize I wasn't running
the script that ensures translated strings have the same set of format
specifiers as the English -- which might not be strictly necessary, but
it's safer to enforce it for now. Moved a few remaining %s to %1$s style
while at it.
2019-12-30 22:09:23 -08:00
Eric House
ec698c4c62 remove empty strings (currently an error) 2017-12-17 11:17:23 -08:00
Eric House
aaf153006e move and incorporate localized strings
This will require a reconfig on the weblate side!
2017-01-18 08:44:23 -08:00
Eric House
451e9e04ab fix path in script 2017-01-18 07:05:18 -08:00
Eric House
2f71119eea add ability to skip including localization resources on per-language,
per-variant basis. Just in case German isn't ready yet.
2016-06-30 06:54:36 -07:00
Eric House
5ef7495d51 The Japanese translation has a number of plurals with "one" quantities
but no "other", which crashes. "Fix" these by making the copy script
turn one into other, which may well make sense given Japanese
grammer. At any rate it prevents crashes until I can work it out with
the translator and/or weblate.
2016-01-23 21:59:31 -08:00
Eric House
8e17e43d9a fix to not stop removing after removing the first elem 2015-08-27 06:41:47 -07:00
Eric House
7d4aa8dd17 fix warning 2015-03-31 20:38:45 -07:00
Eric House
31f3e71704 remove repeated code 2015-03-27 21:53:37 -07:00
Eric House
10fe016785 tweaks to strings.xml copying: add comment warning files are
generated, and don't copy over strings that say "XLATE ME"
2015-03-27 21:37:29 -07:00
Eric House
ac811f1690 move French strings into res_src/, and add script to filter/copy all
strings.xml files from there to res/, effectively including them in
the app the way the Android SDK intends. This will allow me to turn
off the downloadable localization stuff which is tripping over having
more than English built in. ToDo: incorporate the copy into the build.
2015-03-27 07:26:51 -07:00