[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-core-devel
Subject: KIntNumInput::setTemplate(const QString &template)
From: Sébastien_Laoût <slaout () linux62 ! org>
Date: 2006-08-27 15:41:06
Message-ID: 200608271741.06754.slaout () linux62 ! org
[Download RAW message or body]
Currently, the class KIntNumInput has two methods:
- setPrefix(const QString &prefix)
- setSuffix(const QString &suffix)
This generate two problems:
1/ No plural for is allowed.
Or to be more precise, all numbers are always presented in the plural form.
2/ Currency translation is bad.
In USA, the program should call setPreffix("$ ").
In Europe, the program should call setSuffix(" ¤")
(not sure if ¤ should be postfixed or prefixed, but it's for the example:
other currencies are placed after the number).
For KDE 4, I propose you remove those methods in profit of that one:
- KIntNumInput::setTemplate(const QString &template)
The two examples will be transformed to:
- setTemplate(i18n("%n minute", "%n minutes));
- setTemplate(i18n("$ %n"));
"$ %n" or "$ %1"... I don't know.
Or perhapse even (you decide):
- KIntNumInput::setTemplate(I18N_NOOP("%n minute"), I18N_NOOP("%n minutes"));
So KIntNumInput will be able to call i18n(singular, plural, n) for each new
number.
But the point is that KIntNumInput will only have to replace %somthing.
Solve the two problems above.
What do you think?
Note: I'm not voluntering to do that change ;-)
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic