Bug 219430 - "Move to Trash"/"Move %1 Files to Trash" messages are not compatible with Russian plural forms
Summary: "Move to Trash"/"Move %1 Files to Trash" messages are not compatible with Rus...
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Usability-i18n (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-20 15:20 UTC by Alexander Potashev
Modified: 2017-08-06 07:30 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 1.1.0
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Potashev 2009-12-20 15:20:08 UTC
Version:           beta6 (using Devel)
OS:                Linux
Installed from:    Compiled sources

Hint:
"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
Comment 1 Marcel Wiesweg 2009-12-20 22:17:08 UTC
Can you please decrypt your message for us and tell us how to improve this i18n call:

i18np("Move to Trash", "Move %1 Files to Trash", quantity);
Comment 2 Alexander Potashev 2009-12-21 18:27:09 UTC
> i18np("Move to Trash", "Move %1 Files to Trash", quantity);

The best translation in this context is this triple:
msgstr[0] "Переместить %1 файл в корзину"
msgstr[1] "Переместить %1 файла в корзину"
msgstr[2] "Переместить %1 файлов в корзину"


In this context:
d->imageDeleteAction = new KAction(KIcon("user-trash"), i18n("Move to Trash"), this);
there is only one translation (because there are no parameters), but the two "Move to Trash" messages are shared in the digikam.po file and the fresh digikam.pot template.


This is surely not a digiKam bug, but it's still someone's bug.
Comment 3 Alexander Potashev 2010-01-03 20:23:57 UTC
Auto-fix ;)

===================================
SVN commit 1069567 by aspotashev:

Split translations of "Move to Trash" to allow different translations
in pluralized and non-pluralized contexts.

CCMAIL: kde-i18n-doc@kde.org


 M  +2 -2      digikam/contextmenuhelper.cpp
 M  +1 -1      digikam/digikamapp.cpp
 M  +1 -1      showfoto/showfoto.cpp
 M  +1 -1      utilities/imageeditor/editor/editorwindow.cpp
 M  +1 -1      utilities/lighttable/lighttablepreview.cpp
 M  +1 -1      utilities/lighttable/lighttablewindow.cpp