[Interest] Linguist does not show several input field for strings with plural numbers

Dmitry Volosnykh dmitry.volosnykh at gmail.com
Mon Oct 26 11:32:46 CET 2015


I face the same problem with Internationalization QML-example (
http://doc.qt.io/qt-5/qtqml-qml-i18n-example.html). I've just replaces
qsTr("Hello") with qsTr("%n second(s)"). But still cannot see Linguist
providing multiple input fields for a number of translations.

Also tried Linguist 5.6.0 built with Qt from the repo. Most probably, not
the latest revision.

On Mon, Oct 26, 2015 at 12:14 PM, Dmitry Volosnykh <
dmitry.volosnykh at gmail.com> wrote:

> I have several strings defined in .qml file and marked with QT_TR_NOOP.
> The placeholder I use is %n like the docs suggest. After running lupdate
> tool on the project file I open generated .ts files in Linguist which does
> not recognize them as ones which should be translated according to
> translation rules for plurals.
>
> Never the less context sources for the strings in question are displayed
> correctly and target language is evaluated fine if I open 'Translation file
> settings...' menu item. However, I tried to add plural translations
> manually to .ts files (added numerus="yes" attribute to message tag and put
> several <numerusform/> items as children of <translation/>)/ when I ran
> lupdate tool once again it provided the following output:
>
> Removed plural forms as the target language has less forms.
>
> If this sounds wrong, possibly the target language is not set or
> recognized.
>
>
> However, the language attribute of tag <TS/> is set as expected.
>
> I am using prebuilt Qt 5.4.2. Linguis version is just the same.
>
> May you suggest what to do to diagnose this problem further?
>
> Regads,
> Dmitry.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20151026/1aa6923a/attachment.html>


More information about the Interest mailing list