JodaOrg / joda-time

Joda-Time is the widely used replacement for the Java date and time classes prior to Java SE 8.
http://www.joda.org/joda-time/
Apache License 2.0
4.98k stars 981 forks source link

Add localization in more languages #643

Open hb20007 opened 2 years ago

hb20007 commented 2 years ago

I am opening this issue to track the localization to all locales supported by Java.

To contribute a new translation, you need to do the following:

  1. Download this file: messages.properties.txt
  2. Translate the values of the properties. (If the translation to your language is not straightforward, refer to the documentation for tips on using Regular expressions. If your target language includes non-Latin characters, use Unicode escapes for non-ASCII characters or ask here for help.)
  3. Rename the file as messages_<ISO>.properties, where <ISO> is the 2-letter code for your language.
  4. Add your file to the path /src/main/java/org/joda/time/format/ and create a pull request.

(If you are not sure about how to do step 4, you can upload the file here instead and someone else can do it.)

PS: The motivation for this effort comes from the fact that joda-time is currently used by lichess.org, one of the most popular internet chess servers in the world.

To Do

Translated

jodastephen commented 2 years ago

Thanks for this - I will merge language update PRs

jodastephen commented 2 years ago

For anyone arriving at this page and not aware, please note that the translation must use Unicode escapes. Here is a typical (correct) file. https://github.com/JodaOrg/joda-time/blob/main/src/main/java/org/joda/time/format/messages_da.properties