Thanks for reply. Yes we make Russian translate, you can check it
https://www.transifex.net/projects/p/freemed/resource/gwtpot/l/ru_RU/
Still don't get it, i've made directory locale/ru_RU/LC_MESSAGES, put
there gwt.po.
When i run make in locale, i get:
~/Downloads/freemed-0.8.4/locale$ make
# Nothing
~/Downloads/freemed-0.8.4/locale$
I have no scripts/gettext2json.php, only perl scripts and bash like
gettext2gettextXML.sh.
What is JSON for? I'm looking for xml, cause your translations have
only xml format.
> On Wed, May 9, 2012 at 5:36 AM, Alexander Watson
>
> <
atom.liq...@googlemail.com> wrote:
> > Hello.
> > How can i transform *.po(from .
transifex.com) to *.xlm(locale/lang) ?
> > I've tried to use GettextXML_Catalog.pl and others scripts, but non of
> > this help me.
>
> It's a bit easier than that now. You can use scripts/gettext2json.php
> to convert the GNU gettext formatted po file to convert for the UI.
> The simple way to do that (since most of it is automated in the build
> system):
>
> 1) Make a directory under locale like pl_PL/LC_MESSAGES and drop your
> gwt.po file in there.
> 2) Run "make" in locale. It'll generate the appropriate compiled file (gwt.mo)
> 3) Use that nice scripts/gettext2json.php script to convert to the GWT
> JSON file, which is dropped in:
> $filename = dirname(dirname(__FILE__)) .
> "/ui/gwt/src/main/webapp/resources/locale/" . $my_locale . ".json";
>
> Let us know if you've added a new translation so we can check it in!
>
> --
> Thanks,
> Jeff