| Author |
Message |
YoN

Joined: 04 Jul 2007 Posts: 76 Location: NIPPON
|
Posted: Mon 09 Jul 2007, 19:36 Post subject:
[SOLVED]Japanese Menu goes back to English Menu |
|
Hi
I tarnslate Puppy2.16 to Japanese.
I have a menu problem.
When I install .sfs file(i.e. devx_sfs, OpenOffice.org.sfs) or PET-Packages and reboot PC,
Menu goes back to English menu.
Is there any solutions?
I marked up to /usr/share/applications/***.desktop files.
Sample: /usr/share/applications/GTK-theme.desktop
| Code: | [Desktop Entry]
Encoding=UTF-8
Name=GTK theme
Name[ja]=GTK TE-E-MA <----japanese 2 bite characters
Icon=mini.window3d.xpm
Comment=GTK theme
Exec=gtk-theme
Terminal=false
Type=Application
Categories=X-Desktop
GenericName=GTK theme |
And I also edit /root/.jwmrc to Japanese.
I want Help.
Last edited by YoN on Tue 10 Jul 2007, 22:31; edited 1 time in total
|
|
Back to top
|
|
 |
HairyWill

Joined: 26 May 2006 Posts: 2949 Location: Southampton, UK
|
Posted: Tue 10 Jul 2007, 03:22 Post subject:
|
|
I don't know what is going wrong with the desktop files, do they still have japanese in them after the reboot.
As far as .jwmrc goes, at the top of mine it says | Code: | | <!-- IMPORTANT, ONLY EDIT /etc/xdg/templates/_root_.jwmrc --> | so I suggest you make your changes there. If you have edited the desktop files then running fixmenus should generate your .jwmrc automatically.
_________________ Will
contribute: community website, screenshots, puplets, wiki, rss
|
|
Back to top
|
|
 |
YoN

Joined: 04 Jul 2007 Posts: 76 Location: NIPPON
|
Posted: Tue 10 Jul 2007, 04:13 Post subject:
|
|
HairyWill,
Thank you reply.
I edit /etc/xdg/templates/_root_.jwmrc file.
And
| Code: | <Program label="ヘルプ" icon="help24.xpm">exec defaulthtmlviewer file:///usr/share/doc/index.html</Program>
<Menu label="シャットダウン" icon="shutdown24.xpm" height="16">
<Exit confirm="false" label="プロンプトに戻る" icon="prompt16.xpm" />
<Program label="コンピュータの再起動" icon="mini-turn.xpm">exec /usr/X11R7/bin/wmreboot</Program>
<Program label="コンピュータの電源を切る" icon="mini-stop.xpm">exec /usr/X11R7/bin/wmpoweroff</Program>
<Program label="Xサーバのリスタート" icon="mini-x.xpm">restartwm</Program>
<Restart label="JWMのリスタート" icon="mini-windows.xpm"/>
<Program label="ウィンドウマネージャの変更" icon="mini-windows.xpm">changewm.sh</Program> |
are OK. They are still Japanese after reboot PC.
But
| Code: | <RootMenu label="MENU" labeled="false" height="24" onroot="3">
PUPPYMENU jwm-xdgmenu /etc/xdg/menus/puppy-desktop.menu
PUPPYMENU jwm-xdgmenu /etc/xdg/menus/puppy-system.menu
PUPPYMENU jwm-xdgmenu /etc/xdg/menus/puppy-setup.menu
...... etc..... |
are goes back into English.
I added a line "Name[ja]= GTK テーマ" into /usr/share/applications/***.desktop files.
They are not not displayed in Japanese after reboot PC.
They back into English.
I think "grep" or "sed" commands of /usr/sbin/fixmenu script will not work well in ja_JP.UTF-8.
|
|
Back to top
|
|
 |
HairyWill

Joined: 26 May 2006 Posts: 2949 Location: Southampton, UK
|
Posted: Tue 10 Jul 2007, 06:44 Post subject:
|
|
Yon
I know nothing about localisation issues.
I can see two ways for you to make a static menu system work but don't know enough to fix the dynamic system. You could:
1) hard code your entire menu into /etc/xdg/templates/_root_.jwmrc
2) or you could hard code it into /root/.jwmrc and disable or rename fixmenus to stop it ever overwriting your new menu.
sorry I can't help further
_________________ Will
contribute: community website, screenshots, puplets, wiki, rss
|
|
Back to top
|
|
 |
jcoder24

Joined: 06 May 2005 Posts: 601 Location: Barbados
|
Posted: Tue 10 Jul 2007, 08:24 Post subject:
|
|
Yon
Installing packages and sfs packs usually updates the menu. Then menu is updated by regenerating it from the various .desktop files.
You will therefore need to localise the text in each of the .desktop files including the ones in the sfs packs.
|
|
Back to top
|
|
 |
YoN

Joined: 04 Jul 2007 Posts: 76 Location: NIPPON
|
Posted: Tue 10 Jul 2007, 22:27 Post subject:
SOLVED |
|
Thank you all.
The problem that a Japanese menu returns to English Menu was solved.
I solved it by changing the file entry "Name =" in the following two directories into Japanese.
/usr/share/applications/
/usr/share/desktop-directories/
File example of making trouble;
/usr/share/applications/GTK-theme.desktop
| Code: |
[Desktop Entry]
Encoding=UTF-8
Name=GTK theme <----English
Name[ja]=GTK テーマ <-----Japanese
Icon=mini.window3d.xpm
Comment=GTK theme
Exec=gtk-theme
Terminal=false
Type=Application
Categories=X-Desktop
GenericName=GTK theme |
/usr/share/desktop-directories/Puppy-Desktop.directory
| Code: | [Desktop Entry]
Encoding=UTF-8
Name=Desktop <----English
Name[ja]=デスクトップ <-----Japanese
Icon=x24.xpm
Type=Directory |
File example of rewriting and solution;
/usr/share/applications/GTK-theme.desktop
| Code: | [Desktop Entry]
Encoding=UTF-8
Name=GTK テーマ <-----Japanese
Name[ja]=GTK テーマ <-----Japanese
Icon=mini.window3d.xpm
Comment=GTK theme
Exec=gtk-theme
Terminal=false
Type=Application
Categories=X-Desktop
GenericName=GTK theme |
/usr/share/desktop-directories/Puppy-Desktop.directory
| Code: | [Desktop Entry]
Encoding=UTF-8
Name=デスクトップ <-----Japanese
Name[ja]=デスクトップ <-----Japanese
Icon=x24.xpm
Type=Directory |
Thanks.
|
|
Back to top
|
|
 |
|