Eric House
049c55e2d2
toward adding default menu to all activities and eventually tracking
...
translations by where they're used so most relevant can be shown: put
back common superclasses XWActivity and XWListActivity with default
implemenations of activity lifecycle methods that call through to
delegates (and that later can help LocUtils track what's been seen
when.) Not thoroughly tested, but seems to work for the main screens
anyway.
2014-05-12 21:26:31 -07:00
Eric House
a4cd137cef
get rid of #1 used to make strings unique: remove duplicates where
...
possible, and where not replace it with a non-printing zero-width
unicode char.
2014-05-06 06:27:33 -07:00
Eric House
ce77f09588
the new spinner adapter override works much better for game config's
...
spinners
2014-05-05 07:38:37 -07:00
Eric House
19badff420
tweak text
2014-04-27 19:21:21 -07:00
Eric House
33a83b0e2f
toward use of data text messages for games: don't let CDMA phone users
...
turn data messages on, and when checking if SMS is supported say yes
for KitKat users if they've successfully turned data on.
2014-04-27 13:34:09 -07:00
Eric House
716109e979
Merge branch 'android_branch' into android_localize
...
Conflicts:
xwords4/android/XWords4/src/org/eehouse/android/xw4/PrefsActivity.java
xwords4/android/XWords4/src/org/eehouse/android/xw4/SMSService.java
2014-04-26 22:04:57 -07:00
Eric House
fbb042ffee
merge android_branch -> android_sms_kitkat
2014-04-26 18:31:05 -07:00
Eric House
540eb73aec
merge android_branch
2014-04-25 20:33:57 -07:00
Eric House
ead0fdf668
merge from_android_beta_82->
2014-04-25 20:29:54 -07:00
Eric House
a7c1724bb8
another change
2014-04-25 07:46:33 -07:00
Eric House
ed3370133f
use lowercase \u instead; \U isn't acceptable in java
2014-04-24 07:01:53 -07:00
Eric House
00ecf0d9d0
be consistent using capital-U \U to indicate unicode
2014-04-24 06:53:13 -07:00
Eric House
e643e9d5c0
add debug preference via which Translate menuitems must be enabled
2014-04-22 21:06:05 -07:00
Eric House
0e9790ee7c
new string
2014-04-22 07:42:26 -07:00
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