[PATCH] RFC: Changing the language of individual KDE programs
Krzysztof Lichota
krzysiek at lichota.net
Sat Mar 24 17:32:14 GMT 2007
Aaron J. Seigo napisaĆ(a):
>>> how does one remove fallback languages?
>> You set it to "None". Maybe button "Remove last fallback language" would
>> be better.
>
> or just a "Remove" button next to it on the right, so it's obvious? this way
> you can use the same combo, but only put a "Remove" on the non-us-english
> fallbacks, e.g.:
>
> Primary: [ russian ]
> Fallback: [ zulu ] ( Remove )
> Fallback: [ spanish ] ( Remove )
> Fallback: [ us english ]
Second try :)
I have implemented "Remove" buttons, moved implementation into separate
files (switchapplang.{cpp,h}) and fixed some minor issues. New fallback
language is added with "en_US". There is no more "None" entry, removing
is done using buttons.
I have added KPushButtonWithData class, I could not find any other way
of tying remove push button to label and language button. Maybe it could
be done better? Any ideas?
If this code is OK I would like to commit it.
I still don't know if there is any final decision if this option should
be by default put in the menu. I can add option in global config to
enable/disable it, if necessary. There were quite a few voices on
kde-i18n-doc and kde-core-devel that switching application language
feature would be welcome, so I would prefer to leave it visible to users.
Comments welcome :)
Krzysztof Lichota
-------------- next part --------------
A non-text attachment was scrubbed...
Name: language-selection-menu-with-remove.png
Type: image/png
Size: 13814 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20070324/fa043e96/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: switch-app-language2.diff
Type: text/x-patch
Size: 21132 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20070324/fa043e96/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 254 bytes
Desc: OpenPGP digital signature
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20070324/fa043e96/attachment.sig>
More information about the kde-core-devel
mailing list