You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.adoc
+9-6Lines changed: 9 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -611,20 +611,23 @@ The built JAR file can be found under `de.tototec.cmdoption/target/de.tototec.cm
611
611
612
612
You want to create a new or update an existing translation?
613
613
614
-
CmdOption uses GNU Gettext. The translations are located under `src/main/po`. The message catalog template will be extracted in the compile phase (`mvn clean compile`) and is located under `target/po/messages.pot`.
614
+
CmdOption uses GNU Gettext.
615
+
The translations for the currently supported languages are located under `src/main/po`.
616
+
The message catalog template will be extracted in the compile phase (`mvn clean compile`) and is located under `target/po/messages.pot` and can be used as template for a new language.
615
617
616
-
To update the translation files under `src/main/po` use the `update-message` profile.
618
+
To update all translation files under `src/main/po` use the following Maven command:
617
619
618
-
.Merging all translations with current message catalog
620
+
.Updating translations with extracted strings
619
621
----
620
-
mvn -Pupdate-messages clean compile
622
+
mvn antrun:run@update-translations
621
623
----
622
624
623
-
After that, edit the translation files and update the fuzzy or newly added messages.
625
+
After that, edit the updated translation files and update the fuzzy or newly added messages.
624
626
The `*.po` files are just normal text files, so you can use any editor you want.
625
627
Using a special po-Editor like e.g. https://poedit.net/[Poedit] might add additional convenience.
626
628
627
-
If you update the translation please open a {githubUrl}/pulls[pull-request] with the new translation.
629
+
If you updated or added a translation, please open a {githubUrl}/pulls[pull-request] with the new translation.
630
+
Your contribution is greatly apreciated!
628
631
629
632
630
633
=== Create `pom.xml` for interoperability, e.g. IDEs
0 commit comments