vladris / tinkerer

Python blogging engine
https://vladris.com/tinkerer
Other
305 stars 81 forks source link

Dates don't work with localization correctly #59

Closed kiith-sa closed 10 years ago

kiith-sa commented 10 years ago

While working on a Slovak translation I noticed that dates didn't translate properly. This seems to be caused by a mismatch of the date text (look for uistr.py:42 in each .po file) with the text in the actual uistr.py source. Updating the text by copying from the source file fixed the problem (for Slovak). It seems most or all the .po files have this mismatch.

Also, the file line numbers in most the .po files seem to be outdated (although I have no experience with .po - are these just comments?)

trarbr commented 10 years ago

This is caused by using an out-of-date translation template (.pot file).

The included .po files are made from a template that was generated at Tinkerer version 0.4b in 2012. Some strings in the code have changed since then and thus the ones in the .po file are no longer valid and simply don't get used.

I have generated a new and up-to-date template in #69. Once that is merged in you can use the file in /tinkerer/ext/locale/tinkerer.pot as a template for the translation.

Note: A translation template (.pot) is just the same as a .po file, except the header is slightly different and no strings are translated in the .pot file.

vladris commented 10 years ago

FYI, I merged this change today.