Skip to contentSkip to conversation

Russian translations for mlmmj

DISCUSSION Morten K. Poulsen 3 participants 8 messages Jan 14, 2008 – Aug 31, 2008

lore
Share & tools
lore
#0 lore raw

Hi Nikolay,

Quoted 2 lines · Nikolay Derkach

I've done mlmmj translation into Russian. The attachment contains listtexts/ru directory.

Thanks, very nice.

However, before I can commit them, you have to convert the files a bit:

Quoted 8 lines · Morten K.Poulsen

I have changed the way listtexts are parsed. From now on, there will be no non-USASCII characters in the listtext files. If you need a character you simply put \uXXXX in its place, where XXXX is the unicode number (hexadecimal) for that glyph.

--- the old way ---
Subject: =?iso-8859-1?Q?Tilmeldingsforesp�rgsel?= for $listaddr$

Quoted 8 lines

Der venter en tilmeldingsforespørgsel fra
--- end ---

--- the new way ---
Subject: Tilmeldingsforesp\u00F8rgsel for $listaddr$

For at godkende denne foresp\u00F8rgsel, send et svar til --- end ---

I am not sure how this is done most easily from anything but ISO-8859-1. You have to look at the unicode value of each character and then print it as \uXXXX. If you write a tool to do it (could be using unicode.c from mlmmj), we could distribute it with mlmmj. I am not sure when I can find the time to do it, if you don't. So please write a nifty tool :-)

Спасибо,
Morten

#1 lore raw
Quoted 1 line · Morten K. Poulsen

If you write a tool to do it (could be using unicode.c from mlmmj),

That would be unistr.c

Morten

#2 lore raw
In reply to Morten K. Poulsen

Hi,

Cool... I wasn't subscribed to this mailing list, just sent a mail to Mads Martin Joergensen. Thanks to Pavel Piatruk, who pointed me to a discussion about Russian translation.

I attached converted translations, for those who interested how to make those, here is the trick:

cat file | uni2ascii -a U > file.ascii

uni2ascii can be found at http://billposer.org/Software/uni2ascii.html

PS: In my opinion, localizations in ascii is a nonsense, really it's a step back.

Signature · 1 line
Regards, Nikolay Derkach
#3 lore raw
In reply to Morten K. Poulsen
Quoted 3 lines · Nikolay Derkach

cat file | uni2ascii -a U > file.ascii

uni2ascii can be found at http://billposer.org/Software/uni2ascii.html

What's the advantage of uni2ascii compared to iconv that is a standard tool shipped with all libc6 setup?

Quoted 2 lines

PS: In my opinion, localizations in ascii is a nonsense, really it's a step back.

Every software should use gettext(), that's for sure!

Thomas

#4 lore raw
In reply to Morten K. Poulsen
Quoted 7 lines · Thomas Goirand
Quoted 3 lines · Nikolay Derkach

cat file | uni2ascii -a U > file.ascii

uni2ascii can be found at http://billposer.org/Software/uni2ascii.html

What's the advantage of uni2ascii compared to iconv that is a standard tool shipped with all libc6 setup?

Maybe, but I took a quick look at iconv and didn't succeed with it (tried -f utf8 -t ascii).

Quoted 4 lines
Quoted 2 lines

PS: In my opinion, localizations in ascii is a nonsense, really it's a step back.

Every software should use gettext(), that's for sure!

That doesn't contradict my statement.

Signature · 1 line
Regards, Nikolay Derkach
#5 lore raw
In reply to Morten K. Poulsen
Quoted 1 line · Nikolay Derkach

I attached converted translations,

Cool, thanks. I will commit it as soon as I get some Internet access at home (yes, I am the *master* of excuses).

Quoted 5 lines

for those who interested how to make those, here is the trick:

cat file | uni2ascii -a U > file.ascii

uni2ascii can be found at http://billposer.org/Software/uni2ascii.html

Nice tool.

Quoted 2 lines

PS: In my opinion, localizations in ascii is a nonsense, really it's a step back.

What is your alternative (which must not depend on a given character encoding of the files)?

Best regards,
Morten

#7 lore raw
In reply to Morten K. Poulsen
Quoted 7 lines · Morten K. Poulsen
Quoted 1 line · Thomas Goirand

Every software should use gettext(), that's for sure!

I am looking forward to a patch.

Best regards,
Morten

Sorry, I wont have the time to do a patch for it, I'm too busy for my own programming myself for our control panel. I'm following the development of MLMMJ because it's fully supported in it. I guess you know already, no?

But if you want, I can help you guys to know how works gettext(), it's a wonderful piece of software. I once used to do silly hacks, and now I'm so happy of the move. With it, you have one file per language, and each of them can use whatever encoding the translator decides. I'm not sure, however, if anything else than UTF-8 should be used...

Thomas