Commit graph

1106 commits

Author SHA1 Message Date
Eric House
dbc42c3ad2 include xlation info in update request to server. It's not handled yet
and so the handling of the result is untested.
2014-04-18 08:03:01 -07:00
Eric House
4d08c7cef9 merge android_branch->android_localize 2014-04-18 06:21:45 -07:00
Eric House
8ba19184a0 merge from_android_beta_82->android_branch 2014-04-17 08:32:39 -07:00
Eric House
529e6733d0 up strings for new release 2014-04-17 08:27:42 -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
67ca205774 remove compile command -- which never worked 2014-04-14 08:04:44 -07:00
Eric House
9abc7b3212 add comment 2014-04-14 06:24:09 -07:00
Eric House
e227038354 move not-to-be-localized string out of string.xml 2014-04-12 09:22:45 -07:00
Eric House
5c5a353d12 add string array to spinner manually so it can be translated -- sucks
to have to change code for this, but...  The dropdown views look
crappy though I'm using identical code to what's in DictLangCache
building similar arrays that look fine.  Needs work.
2014-04-10 06:44:33 -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
b4016eaec3 get rid of loc: stuff 2014-04-09 21:05:12 -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
201e808b4a move layout files into res_src, and modify script to mark their localizable strings with loc:; run all layout inflation through new function that substitutes for loc: 2014-04-08 06:47:33 -07:00
Eric House
dfb3ea842b get rid of the Loc* classes -- will be transforming xml at buildtime as with menus 2014-04-08 05:20:22 -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
1bed9e3bec move menu xml files outside build tree: scripts will generate now 2014-04-07 07:59:55 -07:00
Eric House
4ce7f923c1 revert changes adding loc: to mark localizable strings: will be doing that automatically 2014-04-07 07:54:59 -07:00
Eric House
86cc8f6dbf move onCreateOptionsMenu into superclass 2014-04-06 16:48:17 -07:00
Eric House
7dfa042b77 rename style and use it to align table header with columns 2014-04-05 12:12:00 -07:00
Eric House
663f4293a9 display English text on left side of table 2014-04-05 11:45:20 -07:00
Eric House
2494f7b8d4 add activity for localizing strings and add menuitem to localizable activities to trigger it. Does nothing yet, including populating itself. 2014-04-05 10:27:05 -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
409940adae remove localized files. They'll get used somehow but not in this form on this branch. 2014-04-04 23:09:22 -07:00
Eric House
073c461693 new type of problem: make a string array in ListPreference localizable 2014-04-04 08:00:30 -07:00
Eric House
2c9dc526c2 convert most of GamesList to be localizable 2014-04-04 06:50:08 -07:00
Eric House
0e7676b301 make board menu localizable -- but submenus don't work yet 2014-04-03 22:37:13 -07:00
Eric House
f2bfd36780 menus are broken: you don't get access to an AttributeSet when inflating them. So replace string references with strings equal to the name of the id (xxx in R.string.xxx); next I'll need to harvest the strings from R.java and map them to their numbers in a way that's runtime-accessible. 2014-04-03 06:21:02 -07:00
Eric House
2afe048095 fix formatting 2014-04-03 06:19:17 -07:00
Eric House
bd02a10fc3 beginnings of framework to allow localized strings to be read from downloaded modules: in xml replace string references with a custom attribute that's the same thing, then in overridden view subclasses pull the reference from the AttributeSet and look it up myself. Works to uppercase all strings in the NewGames dialog. 2014-04-02 08:06:51 -07:00
Eric House
9a55c97793 add new style for expander buttons 2014-03-31 07:20:19 -07:00
Eric House
3ff60861f7 derive GameListGroup from ExpiringLinearLayout 2014-03-31 07:14:40 -07:00
Eric House
84698273a5 fix selection of group item by adding a delegate all selectable items can call. 2014-03-26 21:03:51 -07:00
Eric House
31b65e659d make GamesList list- not expandable-list-based for future compatibility with Fragments. Groups still don't contract since they need arrows. Next... 2014-03-26 20:01:55 -07:00
Eric House
a842363be1 rename file: Lookup dialog is no longer an Activity 2014-03-23 18:53:38 -07:00
Eric House
73a1083dff only show lookup menuitem when there's a single word selected, and include that word in the menu title 2014-03-22 10:37:48 -07:00
Eric House
c426741fa1 use same counter title for wordlist and studylist browsers 2014-03-21 19:54:30 -07:00
Eric House
9dab6bc772 add studylist menu to lookup selected words -- same as tapping, but maybe easier to discover. 2014-03-21 19:42:23 -07:00
Eric House
13b64871d5 update strings for release 2014-03-21 18:57:00 -07:00
Eric House
3717035150 include number to be deleted in comfirm message 2014-03-19 22:56:17 -07:00
Eric House
fd817a98da implement menus, including adding crappy placeholder icons 2014-03-19 21:29:20 -07:00
Eric House
aa6fbf8605 snapshot on the way to making studylists editable: add checkbox to xwlistitem. It's to be an alterative to long tap to select. Implement selectAll and deselectAll. 2014-03-19 20:42:29 -07:00
Eric House
a5f0c797bb use one message for deletion of groups, whether one or many 2014-03-17 07:45:09 -07:00
Eric House
37b2458140 add number being reset to message 2014-03-17 06:56:10 -07:00
Eric House
94a838d88e give lookup alert a title 2014-03-14 18:55:06 -07:00
Eric House
be440c8abf try, again, making lookup dialog an alert rather than an activity. It's a much better experience on a nexus 5 but I've lost my records of why I made it an activity in the first place -- what phones it sucked on as an alert. Still probably doesn't bundle itself correctly and is missing a title. 2014-03-14 18:41:54 -07:00
Eric House
ea189c5717 turn study lists on by default 2014-03-14 06:45:17 -07:00
Eric House
640837f318 up strings for new release 2014-03-11 19:16:41 -07:00
Eric House
fb7c1682b4 tweak string 2014-03-07 19:10:06 -08:00
Eric House
c982fb54d9 up strings and notes for new release 2014-03-06 06:47:43 -08:00