Hi, After good night sleep and couple off-list e-mail exchanges, I am ready to post it here :-)
On Fri, Jun 18, 2010 at 05:01:28AM +0800, Andrew Lee wrote: > Package: im-switch ... > So I came out this idea to implement the same with im-switch menu entry. > > And I found there is an im-switch menu already, but doesn't work. I'd > suggest to add option "-c" in the debian menu entry to show im-switch > selections for our users in terminal. And also use 'icon=input-keyboard' > to make the menu entry looks better. This is a design bug of im-switch. I have fixed it at the root cause by changing im-switch without option to behave properly for menu entry. > However, it seems nowadays KDE, Gnome, xfce and LXDE in Debian are all > uses menu standard from freedesktop.org which has better support on > localization. Yes. > I've created im-switch.desktop as the attachment with zh_TW localization. > > You may test it by place it to ~.local/share/applications/, and then you > will be able to see it your menu categories 'settings' immediately. Yes, that is the idea as long as you got the updated im-switch :-) Let's see how other create this. Gnome proper pakage example: keyboard.desktop Name=Keyboard Comment=Set your keyboard preferences Exec=gnome-keyboard-properties evolution-settings.desktop Name=Email Settings Comment=Configure email accounts Exec=evolution-settings scim-setup.desktop Name=SCIM Input Method Setup Comment=Setup utility for Smart Common Input Method platform Exec=scim-setup ibus-setup.desktop Name=IBus Preferences GenericName=IBus Preferences Comment=IBus Preferences Exec=ibus-setup Pretty rundom... The rule seems to be: http://standards.freedesktop.org/desktop-entry-spec/latest/ar01s05.html Name Specific name of the application, for example "Mozilla" GenericName Generic name of the application, for example "Web Browser". Comment Tooltip for the entry, for example "View sites on the Internet". The value should not be redundant with the values of Name and GenericName. So IBus is not good example. Let me propose as my try. [Desktop Entry] Name=Input Method Switcher Name[ja]=入力メソッド切換器 Comment=Set Keyboard Input Method Comment[ja]=キーボード入力メソッドの設定 Type=Application Exec="im-switch" Terminal=true Icon=input-keyboard Categories=Settings Encoding=UTF-8 Anyway, please use git to edit and add more translation. I will upload this in few days. Osamu -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

