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 23 Aug 2014, 11:32
All times are UTC - 4
 Forum index » Advanced Topics » Puppy Projects » Localization Project
How to make JWM menu in your language.
Moderators: Lobster, MU, raffy
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [6 Posts]  
Author Message
melvix


Joined: 14 Jul 2007
Posts: 96
Location: Vilnius, Lithuania

PostPosted: Thu 01 Nov 2007, 06:55    Post subject:  How to make JWM menu in your language.
Subject description: JWM menu translation
 

In the new versions of Puppy Linux JWM menu generate with XDG template (/etc/xdg/templates/_root_.jwmrc) and fixmenu script (/usr/sbin/), then is putting in /root (.jwmrc). Now the translation of this file not good method becouse the new program's installation or Puppy's installation generate new .jwmrc file in English.
To solve this problem you must to edite all files (submenu) in /usr/share/applications (now 135) with program's name (Name=Program's name in your language), for example in Russian:
Quote:
Desktop Entry]
Encoding=UTF-8
Name=Текстовый редактор Abiword
Icon=abiword_16.xpm
Comment=Abiword wordprocessor
Exec=abiword
Terminal=false
Type=Application
Categories=WordProcessor
GenericName=Abiword wordprocessor

Then files in /usr/share/desktop-directories (menu.desktop) and /etc/xdg/templates/_root_.jwmrc file.

There is the patch for JWM menu in Rusiian
More information about Russian Puppy (PuppyRus) in PupyyRus Linux Forum
JWM_ru_3.tar.gz
Description  JWM Russian menu
gz

 Download 
Filename  JWM_ru_3.tar.gz 
Filesize  19.82 KB 
Downloaded  777 Time(s) 

_________________
Free software for free people!
Back to top
View user's profile Send private message Visit poster's website 
gsxlm


Joined: 21 Apr 2008
Posts: 41

PostPosted: Sat 03 May 2008, 02:40    Post subject:  

Very good.I'll try it in my language.
Back to top
View user's profile Send private message 
HairyWill


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

PostPosted: Sat 03 May 2008, 03:53    Post subject:  

Here is part of a .desktop entry out of my debian install.
Code:
[Desktop Entry]
Encoding=UTF-8
Name=Evolution Mail
Name[sv]=Evolution e-post
Name[xh]=I-Imeyili ye-Evolution
Name[zh_CN]=Evolution 电子邮件
Comment=Read and write emails
Comment[sv]=Visa en notifieringsikon när dokument skrivs ut
Comment[xh]=I-Imeyili ye-Evolution
Comment[zh_CN]=Evolution 电子邮件
Exec=evolution --component=mail
Icon=evolution
Terminal=false
Type=Application
Categories=GNOME;Network;
StartupNotify=true
X-GNOME-Bugzilla-Bugzilla=GNOME
X-GNOME-Bugzilla-Product=Evolution
X-GNOME-Bugzilla-Component=Miscellaneous
X-GNOME-Bugzilla-Version=2.12.x
X-GNOME-Bugzilla-OtherBinaries=evolution-data-server-1.12;evolution-alarm-notify;

The localisation is achieved by adding extra names and comments not by overwriting the original one.

I don't know if this works in puppy?
Does the fixmenus script cope with localisations?
If not can it be made to?

Then we could start producing multi-lingual .desktop files rather than end user hacks.

_________________
Will
contribute: community website, screenshots, puplets, wiki, rss
Back to top
View user's profile Send private message 
melvix


Joined: 14 Jul 2007
Posts: 96
Location: Vilnius, Lithuania

PostPosted: Sat 03 May 2008, 14:23    Post subject:  

Good idea!
I also think about this, looking the .desktop files for new program. For example:
Code:
[Desktop Entry]
Version=1.0
Encoding=UTF-8
Name=GNOME PPP
Name[be]=GNOME PPP
Name[ca]=GNOME PPP
Name[de]=GNOME PPP
Name[es]=GNOME PPP
Name[fr]=GNOME PPP
Name[it]=GNOME PPP
Name[mk]=GNOME PPP
Name[pl]=GNOME PPP
Name[pt_BR]=GNOME PPP
Name[ru]=GNOME PPP
Name[sr]=ГППП
Name[sr@Latn]=GPPP
Name[sv]=Uppkopplingsverktyg
Name[tr]=GNOME PPP
Name[vi]=GNOME PPP
Comment=Программа для модемного соединения
Comment[be]=Інструмэнт далучэньня праз тэлефанаваньне
Comment[ca]=Utilitat d'Accés Telefònic de GNOME
Comment[cs]=GNOME Nástroj pro vytáčená připojení
Comment[de]=GNOME Dialup Tool
Comment[es]=Utilidad de acceso telefnico de Gnome
Comment[fr]=Utilitaire de connexion téléphonique GNOME
Comment[it]=Utility di accesso remoto per GNOME
Comment[mk]=GNOME алатка за бирање
Comment[pl]=Narzędzie Dialup dla GNOME
Comment[ru]=Программа для модемного соединения
Comment[sr]=Гном позивар
Comment[sr@Latn]=Gnom pozivar
Comment[sv]=Uppkopplingsverktyg
Comment[tr]=Gnome Çevrim Aracı
Comment[vi]=Công cụ quay số GNOME
Exec=gnome-ppp
Icon=/usr/share/icons/hicolor/48x48/apps/gnome-ppp.png
StartupNotify=true
Terminal=false
Type=Application
Categories=Application;Network;
X-Ubuntu-Gettext-Domain=gnome-ppp

If that will work, we'l can easy to switch languages in menu.

_________________
Free software for free people!
Back to top
View user's profile Send private message Visit poster's website 
magerlab

Joined: 08 Jul 2007
Posts: 731

PostPosted: Sat 03 May 2008, 15:27    Post subject:  

i think it must be included in puppy by default

we must compile a multilanguage menus for puppy out of the box!

_________________
skype: desafimager
Back to top
View user's profile Send private message 
magerlab

Joined: 08 Jul 2007
Posts: 731

PostPosted: Sat 03 May 2008, 15:29    Post subject:  

the only thing one should not forget!
fixmenus works only with unicode text files

_________________
skype: desafimager
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.0565s ][ Queries: 13 (0.0039s) ][ GZIP on ]