[Kde-games-devel] i18n issue with Move menu

Albert Astals Cid aacid at kde.org
Thu Oct 18 21:07:12 CEST 2007


A Dijous 18 Octubre 2007, Burkhard Lück va escriure:
> Hi,
>
> 14 kdegames have an menu "Move", but 11 of them show the wrong translation
> from kdelibs4.po or kdeqt.po.
>
> In german as in a lot of other languages "Move" for games (in de "Zug")
> needs another translation than the "Move" from kdelibs4.po or kdeqt.po (in
> de "Verschieben").
>
> So all kdegames with a "Move" menu need to have a msgid "Move" in their po
> file (catalog), which overrides the default translation from  kdelibs4.po
> or kdeqt.po.
> This is another beast than the check with the x-test language. x-test only
> indicates, that the messages are translatable, not if the correct
> translations are pulled in.
>
> For kbackgammon, kmahjongg and ksudoku the translation of "Move" is ok, the
> message catalogs have a message "Move" from *ui.rc files.
>
> bovo, katomic, kblackbox, kgoldrunner, kpat, ksame, kwin4 and kreversi show
> the wrong translation from kdelibs4.po or kdeqt.po, because they have no
> message "Move" in their catalogs.
>
> kjumpingcube, klines and kshisen also show the wrong translation of "Move",
> even if they have a message "Move" in their catalogs (via static const char
> dummy[] = I18N_NOOP2("Menu title", "&Move");).
> There is a comment ("// A hack to circumvent tricky i18n issue...") above
> the I18N_NOOP2 macros, but I don't understand it.
> I guess the message in the macro should not have a context.

Actually the move from kdelibs is the Move is there because it's the kdegames 
Move menu so you should translate it as "Zug". If you see kdelibs4.po it says

#. i18n: tag text
#. i18n: file ./kdeui/xmlgui/ui_standards.rc line 83
#: rc.cpp:225
msgid "&Move"
msgstr ""

where ./kdeui/xmlgui/ui_standards.rc line 83 is

 <Menu name="move"><text>&amp;Move</text>
    <Action name="move_repeat"/>
    <Action name="move_undo"/>
    <Action name="move_redo"/>
    <MergeLocal name="move_undo_merge"/>
    <Separator/>
    <Action name="move_roll"/>
    <Action name="move_end_turn"/>
    <MergeLocal name="move_turn_merge"/>
    <Separator/>
    <Action name="move_hint"/>
    <Action name="move_demo"/>
    <Action name="move_solve"/>
    <MergeLocal name="move_solve_merge"/>
    <Separator/>
    <MergeLocal/>
  </Menu>


and all those actions are the kdegames actions.

It would be good adding some context to the message saying it is the kdegames 
Move, not sure if that can be done, i'll check.

Albert

>
> Burkhard Lück
> _______________________________________________
> kde-games-devel mailing list
> kde-games-devel at kde.org
> https://mail.kde.org/mailman/listinfo/kde-games-devel




More information about the kde-games-devel mailing list