Skip to content

Commit 2068d12

Browse files
Shigeru KANEMOTOShigeru KANEMOTO
Shigeru KANEMOTO
authored and
Shigeru KANEMOTO
committed
UI i18n and the Japanese text catalog.
Wrapped the every string literals with _(...) function. The _() function resides in "app/src/processing/app/I18n.java", which translates the UI texts using "Resources_XX.properties" file where XX is the locale code. I provided the properties file for the ja (Japanese) locale. I created this file using "xgettext" and "msgcat" commands. "i18n_update.{py,sh}" files are the tool I used to do that. Change in "app/build.xml" is to include the properties files in jar file.
1 parent 7f6db38 commit 2068d12

27 files changed

+3182
-473
lines changed

app/build.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@
4545
includeAntRuntime="false"
4646
debug="true"
4747
classpath="../core/core.jar; ${env.JAVA_HOME}/lib/tools.jar; lib/ant.jar; lib/ant-launcher.jar; lib/apple.jar; lib/ecj.jar; lib/jna.jar; lib/RXTXcomm.jar" />
48+
<copy todir="bin" overwrite="true" verbose="true">
49+
<fileset dir="src" includes="**/*.properties" />
50+
</copy>
4851
</target>
4952

5053
<target name="build" depends="compile" description="Build PDE">

app/src/processing/app/Base.java

Lines changed: 90 additions & 78 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)