i18n issues

Moin

In libavogadro are strings. These need to be translated so that Kalzium can be
fully translated. To make i18n as good as possible it is important to think
about RTL and LTR languages. Currently, you find for example this code:

str = tr("Atom ") + QString::number(atom->GetIdx());
str = tr(“Bond “) + QString::number(bond->GetIdx()) + tr(” (”);

This is not translatable for many languages, we should use arguments instead.
I have to look up the exact syntax for tr() but for KDE it works like this:

i18n("%1 of 1000", peak->intensity)
i18n( “Origin of the name: %1”, nameorigin )

If it is ok for you I’ll fix that in the next couple of days.

Carsten

Carsten,

I have no problem with you fixing this, however, beyond tr() i don’t
know what is available. Is there any reason you can’t use libavogadro
and with strings returned from libavogadro just get
i18n(returned_string)?

This seems to be a problem. Hrm.

(Sun, Mar 11, 2007 at 07:05:27PM +0100) Carsten Niehaus cniehaus@gmx.de:

Moin

In libavogadro are strings. These need to be translated so that Kalzium can be
fully translated. To make i18n as good as possible it is important to think
about RTL and LTR languages. Currently, you find for example this code:

str = tr("Atom ") + QString::number(atom->GetIdx());
str = tr(“Bond “) + QString::number(bond->GetIdx()) + tr(” (”);

This is not translatable for many languages, we should use arguments instead.
I have to look up the exact syntax for tr() but for KDE it works like this:

i18n("%1 of 1000", peak->intensity)
i18n( “Origin of the name: %1”, nameorigin )

If it is ok for you I’ll fix that in the next couple of days.

Carsten


Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net’s Techsay panel and you’ll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV


Avogadro-devel mailing list
Avogadro-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/avogadro-devel