[Bug 151447] New: Shortcut of "Home" key is displayed using i18n("Home") rather than i18nc("keyboard-key-name", "Home")
David Faure
faure at kde.org
Fri Nov 23 13:02:53 CET 2007
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.kde.org/show_bug.cgi?id=151447
Summary: Shortcut of "Home" key is displayed using i18n("Home")
rather than i18nc("keyboard-key-name","Home")
Product: kdelibs
Version: unspecified
Platform: Compiled Sources
OS/Version: Linux
Status: NEW
Severity: normal
Priority: NOR
Component: general
AssignedTo: kdelibs-bugs kde org
ReportedBy: fundawang gmail com
Version: 3.94 (using KDE Devel)
Installed from: Compiled sources
Take konqueror as example.
Under default shortcut settings, Alt+Home means to go to homepage. But the word "Home" in menu is not displayed using translation from i18nc("keyboard-key-name","Home"), but just plain i18n("Home").
The same applies to kshortcut settings dialog.
Screenshot follows.
------- Additional Comments From fundawang gmail com 2007-10-28 00:09 -------
Created an attachment (id=21926)
--> (http://bugs.kde.org/attachment.cgi?id=21926&action=view)
kshortcut-dialog-under-zh_CN-locale.png
The certain translation of "Home" is just plain translation of i18n("Home"),
rather than i18nc("keyboard-key-name","Home").
------- Additional Comments From faure kde org 2007-11-23 13:02 -------
Nice screenshot, doesn't tell me anything since I can't read chinese though :-)
I don't see i18n("Home") in kdelibs, so I think this translation comes from Qt.
Which makes it harder to change the tr call... but on the other hand, I would expect that Qt only cares about the keyboard thing so I would suggest to translate "Home" with the keyboard one, and see then ensure that the kde calls to i18n("Home") have proper context.
I see this in QTDIR/translations/qt_zh_CN.ts, but I'm not sure we even use those translations in kde? Do you have a qt.po or qt_messages.po maybe?
<message>
<location filename="../src/gui/kernel/qkeysequence.cpp" line="300"/>
<source>Home</source>
<translation>家</translation>
</message>
More information about the Kdelibs-bugs
mailing list