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.
<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!
> 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 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 May 9, 7:34 pm, Jeff <free...@gmail.com> wrote:
> 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!
<atom.liq...@googlemail.com> wrote:
> 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.
You're using an older version of FreeMED. I was suggesting doing this
from trunk, since that's what the translation is for.
> On Wed, May 9, 2012 at 9:19 AM, Alexander Watson
> <atom.liq...@googlemail.com> wrote:
> > 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.
> You're using an older version of FreeMED. I was suggesting doing this
> from trunk, since that's what the translation is for.
The link is http://svn.freemedsoftware.org/freemed/trunk -- but you
may have some trouble as the primary DNS server is having issues
today. (I've been planning on making a move to github, but the project
is pretty huge so it's a bit of an undertaking....)
As a hack, if you add this to your /etc/hosts file, you will have no
trouble accessing it today:
188.40.245.180 svn.freemedsoftware.org
Most of the rest of our projects have been migrated to github, here:
https://github.com/freemed , including REMITT (medical billing
software) and FreeSHIM (medical device interface software).
<atom.liq...@googlemail.com> wrote:
> Now, i can't launch http://localhost/hpp_new/ui/gwt/www/FreemedInterface.html,
> there is no such path.
> I've seen successfull message after install, and then, every time get
> page from above.
> What i do wrong?
You probably need to build the interface first. Run "make" in ui/gwt
to build it, which should grab all dependencies with maven, etc.
To initialize the db, you're going to want to make a functional
"lib/settings.php" file and run "php scripts/install.php"
For smbd with same goal, check file permission while rebuild webapp
with make.
Also u need to call sql procedure for your language, after
installation:
CALL i18n_PopulateLanguage( 'ru_RU', 'Russian');
To Jeff:
thanks for help, there is no mention in software requirements about
marven2 and mysqli extension.
On May 10, 2:06 am, Jeff <free...@gmail.com> wrote:
> On Wed, May 9, 2012 at 1:10 PM, Alexander Watson
> <atom.liq...@googlemail.com> wrote:
> > Now, i can't launchhttp://localhost/hpp_new/ui/gwt/www/FreemedInterface.html,
> > there is no such path.
> > I've seen successfull message after install, and then, every time get
> > page from above.
> > What i do wrong?
> You probably need to build the interface first. Run "make" in ui/gwt
> to build it, which should grab all dependencies with maven, etc.
> To initialize the db, you're going to want to make a functional
> "lib/settings.php" file and run "php scripts/install.php"
On Fri, May 11, 2012 at 12:32 AM, Alexander Watson
<atom.liq...@googlemail.com> wrote:
> For smbd with same goal, check file permission while rebuild webapp
> with make.
> Also u need to call sql procedure for your language, after
> installation:
> To Jeff:
> thanks for help, there is no mention in software requirements about
> marven2 and mysqli extension.
Good call -- I was pretty sure that the mysql extension was mentioned,
but I didn't document the maven2 one. I'll update that in Subversion.
I'm planning on making a move to github at some point in the near
future, both for availability and for the "social" aspect. As I had
mentioned earlier, FreeSHIM and REMITT are already there. (
https://github.com/freemed )
I found words, which not translated, for example on dashbords, in
DashboardNew.java.
There are no lang func _(), so i add, and it working.
Do you have freemed version with fully translated interface?
On May 11, 11:41 pm, Jeff <free...@gmail.com> wrote:
> On Fri, May 11, 2012 at 12:32 AM, Alexander Watson
> <atom.liq...@googlemail.com> wrote:
> > For smbd with same goal, check file permission while rebuild webapp
> > with make.
> > Also u need to call sql procedure for your language, after
> > installation:
> > To Jeff:
> > thanks for help, there is no mention in software requirements about
> > marven2 and mysqli extension.
> Good call -- I was pretty sure that the mysql extension was mentioned,
> but I didn't document the maven2 one. I'll update that in Subversion.
> I'm planning on making a move to github at some point in the near
> future, both for availability and for the "social" aspect. As I had
> mentioned earlier, FreeSHIM and REMITT are already there. (https://github.com/freemed)
<atom.liq...@googlemail.com> wrote:
> I found words, which not translated, for example on dashbords, in
> DashboardNew.java.
> There are no lang func _(), so i add, and it working.
> Do you have freemed version with fully translated interface?
It looks like I missed internationalizing that file -- I'll have to
adjust that and push a new version of the gwt.pot file. The trick is
to declare a static import:
which deals with all of the i18n functionality. It's also important to
make sure that we're not internationalizing internal keys or anything
used by the backend, but rather just display strings.