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 Mon 20 Oct 2014, 00:43
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Unsorted
tool to translate JWM and Icewm-menu in Puppy 3
Moderators: deshlab, Flash, GuestToo, Ian, JohnMurga, Lobster
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [3 Posts]  
Author Message
MU


Joined: 24 Aug 2005
Posts: 13642
Location: Karlsruhe, Germany

PostPosted: Fri 23 Nov 2007, 01:45    Post subject:  tool to translate JWM and Icewm-menu in Puppy 3  

This program translates the menu of JWM and Icewm after "fixmenus" is executed.


Create a file "Translate-menus.mo" containing words, that shall replace the words from

/root/.jwmrc
and
/root/.icewm/menus

This file must be in the locale folder of your country, for german (de) this is:
/usr/share/locale/de/LC_MESSAGES/Translate-menus.mo

Use this file as a template for your own language.

Every translation consists of 2 lines:
x+=1:titles[x]="Help"
x+=1:titles[x]="Hilfe"

So the first has the original word, and the second the translation.
It is extremely important not to forget a character like the ".
Or the translation will not work.

Then edit /usr/sbin/fixmenus to start the translator every time when "fimenus" has updated the menus.
Add as last line:

/usr/local/Translate-menus/translate-menus



Also fix /etc/xdg/templates/
replace the line:
Code:
prog   Help help24 defaulthtmlviewer file:///usr/share/doc/index.html

with:
Code:
prog "Help" help24 defaulthtmlviewer file:///usr/share/doc/index.html


Code:
menu   "Desktop" x24 {

with:
Code:
menu "Desktop" x24 {

(replace the tab with 1 space).

Translate-menus, (c) Mark Ulrich, nov. 2007, License: GPL3 or later.

Download:
http://puppyfiles.org/dotpupsde/puppy3/dotpups/Desktop-Tools/Translate-menus.pup

Last edited by MU on Fri 23 Nov 2007, 02:46; edited 2 times in total
Back to top
View user's profile Send private message Visit poster's website 
MU


Joined: 24 Aug 2005
Posts: 13642
Location: Karlsruhe, Germany

PostPosted: Fri 23 Nov 2007, 01:52    Post subject: UTF-8 locale, unicode Xterm for Puppy3 and tips  

Icewm Unicode

I had a problem with unicode in the Icewm-menu in Puppy 3.01.

The Icewm menu did not show the correct characters.

Here is how I could fix it.

First I had to run chooselocale to install german, but NOT utf8 (it is not available anyway).

Then I downloaded the glibc-i18n from Slackware.
Link:
http://dotpups.de/diverse-tgz/glibc-i18n-2.5-noarch-4.tgz
WARNING: it is 16 MB, and 50 or so extracted!

I extracted it to a temporary folder, and copied /usr/lib/locale/de_DE.utf8

The language in /etc/profile (set with chooselocale) still must be de_DE , not de_DE.utf8 !

Now I edit /root/my-applications/bin/starticewm

Here I add 2 lines before icewm is executed:

export LANG=de_DE.utf8
export LC_ALL=de_DE.utf8

Now if you restart X, your Icewm-menu should display characters correctly.
However, in rxvt you still cannot type utf.

So I installed Xterm instead.
Link:
http://dotpups.de/puppy3/dotpups/System_Utilities/rxvt-xterm.pup

It will extract
/usr/bin/rxvt-xterm/rxvt
And a script:
/usr/bin/myrxvt

Now backup your existing /usr/bin/rxvt, then rename myrxvt to rxvt.

Like this rxvt works with unicode, it does not matter if I run it from the Desktop (Rox), from xfe, or from Icewm.

If you would set the LANG=de_DE.utf8 in /etc/profile, rxvt would act erratic.
You then had to hit a key like "ä" twice to see it, also other weired things happened here.

Mark
Back to top
View user's profile Send private message Visit poster's website 
magerlab

Joined: 08 Jul 2007
Posts: 731

PostPosted: Fri 23 Nov 2007, 08:34    Post subject:  

in russian there are more problems with many encodings
so icewm didn work with utf-8
what i did is to put txt file named charset into /usr/share/locale/ru
with only one line : utf-8
and it works
also i put ru-Ru-utf folder form glibc locales into /usr/lib/locale and made a symlink to it named simply ru
and i choose this in localechooser
voila!
Icewm works with menu in russian

_________________
skype: desafimager
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [3 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Unsorted
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.0481s ][ Queries: 11 (0.0030s) ][ GZIP on ]