moinwiki / moin

MoinMoin Wiki Development (2.0+), unstable, for production please use 1.9.x.
https://moinmo.in/
Other
303 stars 90 forks source link

update de, pt_BR, ru translations #651

Open ThomasWaldmann opened 6 years ago

ThomasWaldmann commented 6 years ago

we should update the english strings, they haven't been updated since a while.

ThomasWaldmann commented 6 years ago

after #652 the translation tools should now work as documented.

i also updated MoinMoin.pot and the English strings in the existing translations (de, pt_BR, ru).

ThomasWaldmann commented 6 years ago

merged #652.

ThomasWaldmann commented 6 years ago

The actual translation work (de, pt_BR, ru) is still TODO.

ThomasWaldmann commented 6 years ago

This is caused by some fuzzy translations:

src/moin/translations/pt_br/lc_messages/messages.po:648: unknown named placeholder u'invalid_names'
src/moin/translations/pt_br/lc_messages/messages.po:663: unknown named placeholder u'item_name'
src/moin/translations/pt_br/lc_messages/messages.po:2292: unknown named placeholder u'item_name'
src/moin/translations/ru/lc_messages/messages.po:200: incompatible format for placeholder u'email': 'r' and 's' are not compatible
src/moin/translations/ru/lc_messages/messages.po:679: unknown named placeholder u'item_name'
src/moin/translations/ru/lc_messages/messages.po:2005: unknown named placeholder u'item_name'
src/moin/translations/ru/lc_messages/messages.po:2317: unknown named placeholder u'item_name'
JanHoefelmeyer commented 2 years ago

Heyho, how do I test this? I've made some translations, but can't find how to set the language of my wiki. I want to check whether my translations are really accurate and don't break anything if possible. tyvm

RogerHaase commented 2 years ago

The normal way is to create a user, login, and then go to UserSettings > Personal and set the user Locale.

I can find no docs on setting default for the wiki, but try adding:

Config.user_defaults['locale'] = 'en'

near the end of wikiconfig.py or wikiconfigeditme.py.

UlrichB22 commented 1 year ago

Compiling the german catalog gives a warning:

$ python3 setup.py compile_catalog -l de
WARNING: Start of line didn't match any expected keyword.
WARNING: Problem on line 1: '\ufeff# German translations for MoinMoin.'

The reason is an invisible byte order mark at the beginning of the file, see https://en.wikipedia.org/wiki/Byte_order_mark#UTF-16

UlrichB22 commented 12 months ago

I plan to update the message catalog and add some German translations.

Is it OK to add width = 116 in the extract_messages and update_catalog sections of setup.py? This would avoid multiple line breaks on long lines. The width 116 results in lines with a maximum of about 120 characters, the default setting is 76.

RogerHaase commented 12 months ago

OK to make width 116