[SOLVED]Japanese Menu goes back to English Menu

For efforts in internationalising Puppy and solving problems in this area
Post Reply
Message
Author
User avatar
YoN
Posts: 76
Joined: Wed 04 Jul 2007, 07:28
Location: NIPPON

[SOLVED]Japanese Menu goes back to English Menu

#1 Post by YoN »

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?

Image

I marked up to /usr/share/applications/***.desktop files.

Sample: /usr/share/applications/GTK-theme.desktop

Code: Select all

[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 Wed 11 Jul 2007, 02:31, edited 1 time in total.

User avatar
HairyWill
Posts: 2928
Joined: Fri 26 May 2006, 23:29
Location: Southampton, UK

#2 Post by HairyWill »

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: Select all

<!-- 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: [url=http://www.puppylinux.org]community website[/url], [url=http://tinyurl.com/6c3nm6]screenshots[/url], [url=http://tinyurl.com/6j2gbz]puplets[/url], [url=http://tinyurl.com/57gykn]wiki[/url], [url=http://tinyurl.com/5dgr83]rss[/url]

User avatar
YoN
Posts: 76
Joined: Wed 04 Jul 2007, 07:28
Location: NIPPON

#3 Post by YoN »

HairyWill,

Thank you reply.

I edit /etc/xdg/templates/_root_.jwmrc file.
And

Code: Select all

<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="プロンプト

User avatar
HairyWill
Posts: 2928
Joined: Fri 26 May 2006, 23:29
Location: Southampton, UK

#4 Post by HairyWill »

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: [url=http://www.puppylinux.org]community website[/url], [url=http://tinyurl.com/6c3nm6]screenshots[/url], [url=http://tinyurl.com/6j2gbz]puplets[/url], [url=http://tinyurl.com/57gykn]wiki[/url], [url=http://tinyurl.com/5dgr83]rss[/url]

User avatar
jcoder24
Posts: 604
Joined: Fri 06 May 2005, 12:33
Location: Barbados

#5 Post by jcoder24 »

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.

User avatar
YoN
Posts: 76
Joined: Wed 04 Jul 2007, 07:28
Location: NIPPON

SOLVED

#6 Post by YoN »

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: Select all

[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: Select all

[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: Select all

[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: Select all

[Desktop Entry]
Encoding=UTF-8
Name=デスクトップ <-----Japanese
Name[ja]=デスクトップ <-----Japanese
Icon=x24.xpm
Type=Directory
Thanks.

Post Reply