Eric House
b4d5130588
Merge remote branch 'origin/android_localize' into android_localize
2014-04-29 06:39:35 -07:00
Eric House
7ea037d56a
work with arrays of locales
2014-04-29 06:33:14 -07:00
Eric House
be817feb55
add git rev hash as constant (and usage())
2014-04-27 20:03:08 -07:00
Eric House
b87a7e808c
don't fail building if scp fails
2014-04-27 19:08:04 -07:00
Eric House
8612a5f624
use IDs rather than english strings as keys in passing
...
translations. Requires parallel change on client, and currently
doesn't quite work because e.g. \n is not replaced before the
translation is rendered.
2014-04-24 06:24:38 -07:00
Eric House
1e5a474692
remove unneeded param
2014-04-24 06:21:10 -07:00
Eric House
6d7d4955a0
more informative log message
2014-04-23 19:38:16 -07:00
Eric House
780b22678e
add param caller expects
2014-04-23 19:35:35 -07:00
Eric House
36f839f8d1
more stuff to not reverse/capitalize (e.g. "\n"); print to stdout by default
2014-04-23 19:35:10 -07:00
Eric House
19c32b0444
Merge branch 'android_branch' into android_localize
...
# Please enter a commit message to explain why this merge is necessary,
# especially if it merges an updated upstream into a topic branch.
#
# Lines starting with '#' will be ignored, and an empty message aborts
# the commit.
2014-04-23 07:44:51 -07:00
Eric House
e25a0e7dbc
changes for translation downloading
2014-04-23 07:39:36 -07:00
Eric House
66768c7e7d
better formatting and key identity checking
2014-04-22 07:30:32 -07:00
Eric House
94597ee287
record R.java where it won't be used. I want to see how often, and in what ways, it changes.
2014-04-21 19:46:27 -07:00
Eric House
45b1b0bfa8
script to produce the translation array that's downloaded to device
2014-04-21 07:13:41 -07:00
Eric House
0bf8b45157
implement reverse fake-locale
2014-04-20 21:36:41 -07:00
Eric House
5d3beb6404
script to generate fake locales from English strings.xml for use testing downloading translations
2014-04-20 21:26:43 -07:00
Eric House
e0404801ba
fix clean builds
2014-04-18 19:25:40 -07:00
Eric House
538cd7b154
disallow duplicate strings in strings.xml, manually appending #<digit>. Will eventually filter that out of displayed strings.
2014-04-16 21:14:53 -07:00
Eric House
f5f7428683
fix debug tree to build again, this time with a paramaterized common
...
xml file
2014-04-16 21:06:41 -07:00
Eric House
79dc66b3a7
add array index as comment
2014-04-16 07:44:10 -07:00
Eric House
d3c5aeb977
add param
2014-04-14 07:40:35 -07:00
Eric House
a0fd457ad1
add stuff, including ability to list strings missing in english or translated version
2014-04-14 07:40:24 -07:00
Eric House
9a4474ac1e
ignore .pyc file
2014-04-14 06:28:48 -07:00
Eric House
42ba1baaf7
include preceeding comments with string text
2014-04-12 08:19:48 -07:00
Eric House
1b79bcb1c4
add and use ability to remove nodes
2014-04-12 06:37:55 -07:00
Eric House
64ebbcfbae
mods to export getString
2014-04-12 06:16:32 -07:00
Eric House
ac4fc367bb
first changes made by script
2014-04-11 23:12:16 -07:00
Eric House
30b861879a
first modification made by script
2014-04-11 22:54:13 -07:00
Eric House
77b87c6458
localized files as read in and printed back out, unmodifed but for how
...
python prints them differently. This is a baseline: modifications
will follow.
2014-04-11 22:43:56 -07:00
Eric House
10d6969930
fix release builds: generate empty version of checker function
2014-04-10 07:43:57 -07:00
Eric House
67bca0dd4e
Because loc: strings can't be supplied for all Views, don't do
...
that. Instead use the English strings themselves as keys. Generate a
java array of all R.string.whatever contants at build time, and use
that at runtime to build a hashmap of localizable strings that may be
found in UI widgets. When one is found and there's a translation,
substitute.
2014-04-09 21:09:46 -07:00
Eric House
ce3fab3b15
don't try to write file if not specified
2014-04-09 07:29:56 -07:00
Eric House
edf720c58c
add EditText's hint. But Spinner's prompt MUST be a reference -- fuck you Android -- so I need another way to do this
2014-04-09 07:28:31 -07:00
Eric House
812c54f598
CheckBoxes get translated too
2014-04-09 07:10:55 -07:00
Eric House
0b93e77018
combine the xml-manipulation and java-class-generation scripts
2014-04-08 18:57:31 -07:00
Eric House
d27f2d580a
(more of prev commit) generate xml layout files from res_src, and run all inflation through LocUtils that tries to substitute strings
2014-04-08 06:48:42 -07:00
Eric House
aad4872f68
generate menu resources from the old files, adding the 'loc:' key for those title strings listed in strings.xml
2014-04-07 08:14:09 -07:00
Eric House
437e2024cc
generate hashmap from strings.xml -- all of them -- making it
...
unmodifiable, and test for stuff not being in it.
2014-04-06 18:58:33 -07:00
Eric House
663f4293a9
display English text on left side of table
2014-04-05 11:45:20 -07:00
Eric House
16346beeb1
enforce new convention: strings containing formatting must be names whatever_fmt (and strings containing formatting must be so named.) I'm going to have to parse such strings, which will be expensive, so being able to determine from the name whether there's a need should help.
2014-04-04 23:42:57 -07:00
Eric House
2b2fd32951
replace %s and %d (and enforce)
2014-04-04 23:09:50 -07:00
Eric House
589b740af6
include loc: strings from common_rsrc.xml
2014-04-04 07:59:16 -07:00
Eric House
11dabca721
generate mapping from actual strings to R.string.id that can be used at runtime to convert/lookup menu titles. Works to uppercase a menu! Changes break dbg and bt builds -- to be fixed.
2014-04-03 22:27:50 -07:00
Eric House
af0522b0f4
always serve the newest .apk for debug builds wanting to upgrade
2014-03-26 18:44:14 -07:00
Eric House
9993ef1e4c
add function to return all apks sorted by creation time
2014-03-26 08:22:17 -07:00
Eric House
6c8cedf5bb
rename GamesList -> GamesListActivity, then move most of it into GamesListDelegate. This is part of exploring what it'll take to separate Activity-ness from the rest that can then also be used, say, from a Fragment.
2014-03-24 21:10:02 -07:00
Eric House
3b971e0153
tweak build timestamp format
2014-03-06 22:11:13 -08:00
Eric House
0a601a73a4
(commented out) line to cause ndk to be built without optimization for better source-level debugging
2014-03-04 07:07:44 -08:00
Eric House
56c05869da
allow to run from bin directory, which turns out to be useful
2014-03-01 12:39:51 -08:00
Eric House
e536a6d3ee
format build timestamp added to about dialog
2014-02-28 06:47:44 -08:00