Fix the use of translations.
authorMurray Cumming <murrayc@murrayc.com>
Tue, 15 May 2012 10:23:37 +0000 (12:23 +0200)
committerMurray Cumming <murrayc@murrayc.com>
Tue, 15 May 2012 10:23:37 +0000 (12:23 +0200)
commit813a00b226843fc00c0669d763f98792d384de4f
tree84150f23abec739407a9dd928d8175ffba5f3675
parent77c4d2586bcf8ce13b9608cafa9e1514731a13ad
Fix the use of translations.

* src/main/java/org/glom/web/server/ConfiguredDocument.java:
Add updateTitlesForLocale().
getValidListViewLayoutGroup(), getDetailsLayoutGroup():
Call it to discard unwanted translations and to make getTitle() return
the wanted translation wihout the need for the client code to specify a locale.
* src/main/java/org/glom/web/shared/libglom/Translatable.java:
getTitle(): Fallback to the original title, as libglom does.
ChangeLog
src/main/java/org/glom/web/server/ConfiguredDocument.java
src/main/java/org/glom/web/shared/libglom/Translatable.java