[Obm] MiniG localization

Paweł Tęcza ptecza at uw.edu.pl
Thu Jun 17 10:53:56 CEST 2010


Paweł Tęcza pisze:
> On Wed, 9 Jun 2010 17:21:11 +0200

> I've checked out the MiniG sources from your Subversion repo and I'm
> reading the file webmail-frontend/gwt/README. I hope it will help me to
> resolve my problem.

Hello again,

I believe that now I know how to add a support for a new language to my
MiniG webmail. I did the following steps:

# Get GWT
$ mkdir ~/gwt; cd ~/gwt/
$ wget http://google-web-toolkit.googlecode.com/files/gwt-2.0.3.zip
$ unzip gwt-2.0.3.zip

# Get MiniG sources from Subversion repo
$ mkdir ~/svn; cd ~/svn/
$ svn checkout http://minig.googlecode.com/svn/trunk/ minig

$ cd minig/webmail-frontend/gwt/
$ GWT_HOME=~/gwt/gwt-2.0.3
$ ./gen_run_scripts.sh "$GWT_HOME"

# Translate English staff
$ cp
./src/fr/aliasource/webmail/client/lang/Strings.properties
./src/fr/aliasource/webmail/client/lang/Strings_pl.properties
$ vim ./src/fr/aliasource/webmail/client/lang/Strings_pl.properties

# I'm quite not sure whether it's really necessary
$ #cp
./src/fr/aliasource/webmail/client/composer/RichTextToolbar\$Strings.properties
./src/fr/aliasource/webmail/client/composer/RichTextToolbar\$Strings_pl.properties

$ vim ./src/fr/aliasource/webmail/WebmailUI.gwt.xml
        <extend-property name="locale" values="pl" />

$ cp dist/WebmailUI.en.html dist/WebmailUI.pl.html
$ sed -i 's/locale=en/locale=pl/' dist/WebmailUI.pl.html
$ cp dist/WebmailUI.pl.html war/

# Build MiniG permutations
$ ./create_frontend_release.sh
[...]
dist:
     [echo] Preparing distribution of webmail-frontend-gwt
     [echo] Running GWT compiler...
     [java] Compiling module fr.aliasource.webmail.WebmailUI
     [java]    Compiling 18 permutations
     [java]       Compiling permutation 0...
     [java]       Process output
     [java]          Compiling permutation 1...
     [java]       Compiling permutation 2...
     [java]          Compiling permutation 3...
     [java]       Compiling permutation 4...
     [java]          Compiling permutation 5...
     [java]       Compiling permutation 6...
     [java]          Compiling permutation 7...
     [java]       Compiling permutation 8...
     [java]          Compiling permutation 9...
     [java]       Compiling permutation 10...
     [java]          Compiling permutation 11...
     [java]       Compiling permutation 12...
     [java]          Compiling permutation 13...
     [java]       Compiling permutation 14...
     [java]          Compiling permutation 15...
     [java]       Compiling permutation 16...
     [java]          Compiling permutation 17...
     [java]    Compile of permutations succeeded

$ find . -type f -name WebmailUI.pl.html
./war/WebmailUI.pl.html
./dist/WebmailUI.pl.html

# Deploy MiniG
# cd /usr/share/
# tar czf minig.backup.tgz minig/
# cd minig/
# cp ~/svn/minig/webmail-frontend/gwt/minig-frontend-0.1502M.war .
# unzip minig-frontend-0.1502M.war
Archive:  minig-frontend-0.1502M.war
   creating: META-INF/
  inflating: META-INF/MANIFEST.MF
replace minig/gwt/minig/minig_rtl.css? [y]es, [n]o, [A]ll, [N]one,
[r]ename: A

# /etc/init.d/obm-tomcat restart
# /etc/init.d/minig-backend restart

Unfortunately when I login to OBM and click "Webmail", then I still can
see English version of MiniG... What's wrong with me? ;)

My best regards,

Pawel


More information about the Obm mailing list