| Author |
Message |
melvix

Joined: 14 Jul 2007 Posts: 80 Location: Vilnius, Lithuania
|
Posted: 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
| Description |
JWM Russian menu
|

Download |
| Filename |
JWM_ru_3.tar.gz |
| Filesize |
19.82 KB |
| Downloaded |
437 Time(s) |
_________________ Free software for free people!
|
|
Back to top
|
|
 |
gsxlm

Joined: 21 Apr 2008 Posts: 41
|
Posted: Sat 03 May 2008, 02:40 Post subject:
|
|
Very good.I'll try it in my language.
|
|
Back to top
|
|
 |
HairyWill

Joined: 26 May 2006 Posts: 2949 Location: Southampton, UK
|
Posted: 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
|
|
 |
melvix

Joined: 14 Jul 2007 Posts: 80 Location: Vilnius, Lithuania
|
Posted: 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
|
|
 |
magerlab
Joined: 08 Jul 2007 Posts: 653
|
Posted: 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
Teaching Puppy bark Russian!
new advanced vesrsions of puppyRus
http://puppyrus.org
|
|
Back to top
|
|
 |
magerlab
Joined: 08 Jul 2007 Posts: 653
|
Posted: Sat 03 May 2008, 15:29 Post subject:
|
|
the only thing one should not forget!
fixmenus works only with unicode text files
_________________ skype: desafimager
Teaching Puppy bark Russian!
new advanced vesrsions of puppyRus
http://puppyrus.org
|
|
Back to top
|
|
 |
|