[Kst] kdeextragear-2/kst/kst
George Staikos
staikos at kde.org
Sat Jan 15 20:19:52 CET 2005
On Saturday 15 January 2005 13:47, Andrew Walker wrote:
> CVS commit by arwalker:
>
> Add help messages for several translations.
> Modify creation of lists to aid in translation.
for (i_curve = 0; i_curve < i_count; i_curve++) {
+ if (i_curve == i_count - 1) {
xlabel += xlabels[i_curve];
- if (i_curve < i_count-2) {
- xlabel += QString(", ");
+ } else if (i_curve < i_count-2) {
+ xlabel += i18n("name in a list", "%1, ").arg(xlabels[i_curve]);
} else if (i_curve == i_count-2) {
- xlabel += i18n(" and ");
+ xlabel += i18n("penultimate name in a list", "%1 and
").arg(xlabels[i_curve]);
}
Lists can't be formed in this manner and still be translatable in all
languages and locales. It would at least help to iterate the right direction
by determining the text direction (and put the 'and' in the right place), but
we might need some help from the translation team to get these right.
--
George Staikos
KDE Developer http://www.kde.org/
Staikos Computing Services Inc. http://www.staikos.net/
More information about the Kst
mailing list