gettextization

1 view
Skip to first unread message

Kovács Zoltán

unread,
Nov 16, 2023, 12:38:32 PM11/16/23
to jg...@googlegroups.com
Dear Colleagues,
my fork of JGEX now uses the gettext internationalization system (see https://en.wikipedia.org/wiki/Gettext) for maintaining the displayed texts in the application.
I used several tools and a couple of tricks to collect the translation texts: they are in the folder https://github.com/kovzol/Java-Geometry-Expert/tree/master/gettext. Now the whole ANT-machinery contains a new step that creates the machine-code version of the translations (see https://github.com/kovzol/Java-Geometry-Expert/blob/master/build.xml#L73-L76). Since this step uses the msgfmt tool, one needs to install it before creating the translations as .class files. Currently this step is not yet supported on Windows. (I will try the link https://mlocati.github.io/articles/gettext-iconv-windows.html soon.)

The new version can be immediately tried out as a Linux snap package (in the edge channel). According to Snapcraft.io, my fork of JGEX is currently installed on more than 200 machines worldwide, in 53 territories:

image.png

Next steps:
* There are a couple of messages missing from both old .lan files and the .pot file. I would like to add these to the .pot file.
* The GDD and full angle method rules need to be copied into the .pot file, too.
* The .lan files can be obsoleted soon.
* Some major cleanup could be made in the Java code, by removing obsolete code.
* A Hungarian translation will be started during the next few days.
* The ANT-machinery could be changed to a Gradle-variant.

As a final note: Let me warmly welcome Professor Gao, one of the original authors, on the list. It is an honor for me that he joined our community.

Best regards, Zoltan

--

Dr. Zoltán Kovács, MSc

Institut Ausbildung

 

Private Pädagogische Hochschule der Diözese Linz
Private University of Education, Diocese Linz
Salesianumweg 3, 4020 Linz
Mail: zoltan...@ph-linz.at

Web: www.ph-linz.at


Kovács Zoltán

unread,
Nov 18, 2023, 1:43:27 AM11/18/23
to jg...@googlegroups.com
Dear Colleagues, some updates...

Kovács Zoltán <kov...@gmail.com> ezt írta (időpont: 2023. nov. 16., Cs, 18:38):
Since this step uses the msgfmt tool, one needs to install it before creating the translations as .class files. Currently this step is not yet supported on Windows. (I will try the link https://mlocati.github.io/articles/gettext-iconv-windows.html soon.)

Now I added support for Windows and I tested the machinery on a Mac too: https://github.com/kovzol/Java-Geometry-Expert/commit/b2c6eef270fce2e492652329ba0731cdb8f0d931. (On Windows one needs to install gettext, for example, by using the above mentioned link. I chose the static build and made the tools available system-wide.) Also, I updated the README.md file with some instructions on how JGEX can be built: https://github.com/kovzol/Java-Geometry-Expert/commit/d68769f877bac1591d43a0b4d07b75e85dd0ffcf
 
The new version can be immediately tried out as a Linux snap package (in the edge channel).

I updated the stable channel with a newer version. 
 
* The .lan files can be obsoleted soon.

The program does not use the .lan files anymore: https://github.com/kovzol/Java-Geometry-Expert/commit/ff0f48e39642ed5b9c52828a506c58e4e1d7d525. They are still there physically, but I will remove them soon, to avoid confusion.
 
Best, Zoltan
Reply all
Reply to author
Forward
0 new messages