Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sat 19 Apr 2014, 15:33
All times are UTC - 4
 Forum index » Advanced Topics » Puppy Projects » Localization Project
[SOLVED]Japanese Menu goes back to English Menu
Moderators: Lobster, MU, raffy
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [6 Posts]  
Author Message
YoN


Joined: 04 Jul 2007
Posts: 76
Location: NIPPON

PostPosted: 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
View user's profile Send private message 
HairyWill


Joined: 26 May 2006
Posts: 2949
Location: Southampton, UK

PostPosted: 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
View user's profile Send private message 
YoN


Joined: 04 Jul 2007
Posts: 76
Location: NIPPON

PostPosted: 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
View user's profile Send private message 
HairyWill


Joined: 26 May 2006
Posts: 2949
Location: Southampton, UK

PostPosted: 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
View user's profile Send private message 
jcoder24


Joined: 06 May 2005
Posts: 601
Location: Barbados

PostPosted: 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
View user's profile Send private message 
YoN


Joined: 04 Jul 2007
Posts: 76
Location: NIPPON

PostPosted: 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
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [6 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Puppy Projects » Localization Project
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0549s ][ Queries: 12 (0.0053s) ][ GZIP on ]