[hive-mrc] r648 committed - Edited wiki page Localization through web user interface.

0 views
Skip to first unread message

hive...@googlecode.com

unread,
Jun 11, 2012, 8:53:39 PM6/11/12
to hive-c...@googlegroups.com
Revision: 648
Author: craig....@unc.edu
Date: Mon Jun 11 17:53:34 2012
Log: Edited wiki page Localization through web user interface.
http://code.google.com/p/hive-mrc/source/detail?r=648

Modified:
/wiki/Localization.wiki

=======================================
--- /wiki/Localization.wiki Mon Jun 11 16:18:47 2012
+++ /wiki/Localization.wiki Mon Jun 11 17:53:34 2012
@@ -6,5 +6,28 @@

== HTML ==

+The Home, Concept Browser, and Indexer HTML pages can be translated by
simply copying the HTML files (e.g., home.html) to
{{{filename_locale.html}}} (e.g., home_es.html). Each file should also
contain a {{{<meta>}}} tag specifying the default page locale for GWT.
+
+{{{<meta name="gwt:property" content="locale=es">}}}
+

== GWT ==
+
+The HIVE-Web application also supports GWT localization using
[https://developers.google.com/web-toolkit/doc/1.6/tutorial/i18n static
string internationalization].
+
+The file {{{src/org/unc/hive/client/HIVEMessages.properties}}} contains
the HIVE-Web GWT strings in English. To create a new translation, copy this
file to {{{HIVEMessages_locale.properties}}}.
+
+Each time a new {{{HIVEMessages.properties}}} is added or edited, you need
to run the {{{HIVEMessage-i18n}}} script. This generates the
{{{src/org/unc/hive/client/HIVEMessages.java}}}.
+
+To use the {{{HIVEMessages}}} class:
+
+{{{
+private HIVEMessages messages =
(HIVEMessages)GWT.create(HIVEMessages.class);
+System.out.println(messages.your_message());
+}}}
+
+
+./src/org/unc/hive/client/HIVEMessages.java
+./src/org/unc/hive/client/HIVEMessages.properties
+
+
Reply all
Reply to author
Forward
0 new messages