joda-time icon indicating copy to clipboard operation
joda-time copied to clipboard

Add localization in more languages

Open hb20007 opened this issue 2 years ago • 2 comments

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

  • [ ] Arabic (ar)
  • [ ] Belarusian (be)
  • [ ] Croatian (hr)
  • [ ] Estonian (et)
  • [ ] Icelandic (is)
  • [ ] Korean (ko)
  • [ ] Latvian (lv)
  • [ ] Lithuanian (lt)
  • [ ] Macedonian (mk)
  • [ ] Maltese (mt)
  • [ ] Serbian (sr)
  • [ ] Slovenian (sl)
  • [ ] Thai (th)
  • [ ] Vietnamese (vi)

Translated

  • [x] Albanian (sq)
  • [x] Basque (eu)
  • [x] Bulgarian (bg)
  • [x] Catalan (ca)
  • [x] Chinese (zh)
  • [x] Czech (cs)
  • [x] Danish (da)
  • [x] Dutch (nl)
  • [x] Finnish (fi)
  • [x] French (fr)
  • [x] German (de)
  • [x] Greek (el)
  • [x] Hebrew (he / iw)
  • [x] Hindi (hi)
  • [x] Hungarian (hu)
  • [x] Indonesian (id)
  • [x] Irish (ga)
  • [x] Italian (it)
  • [x] Japanese (ja)
  • [x] Kazakh (kk)
  • [x] Malay (ms)
  • [x] Norwegian (no)
  • [x] Norwegian Norsk (nn)
  • [x] Polish (pl)
  • [x] Portuguese (pt)
  • [x] Romanian (ro)
  • [x] Russian (ru)
  • [x] Slovak (sk)
  • [x] Spanish (es)
  • [x] Swedish (sv)
  • [x] Turkish (tr)
  • [x] Ukrainian (uk)

hb20007 avatar Sep 30 '22 20:09 hb20007

Thanks for this - I will merge language update PRs

jodastephen avatar Oct 02 '22 20:10 jodastephen

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

jodastephen avatar Oct 10 '22 08:10 jodastephen