i18n'ed jwm - jwm internationalization with gettext

For efforts in internationalising Puppy and solving problems in this area
Post Reply
Message
Author
User avatar
shinobar
Posts: 2672
Joined: Thu 28 May 2009, 09:26
Location: Japan
Contact:

i18n'ed jwm - jwm internationalization with gettext

#1 Post by shinobar »

Hi all, i18n'ed jwm binary and pot file.
you can creat translations using poedit or something.
at this point of time, its i18n is partially, only the window menu.

EDIT 2010-09-14:
Four builds of jwm-493-i18n: Download from here(4 in 1).
  • jwm-493-i18np4: for Puppy/Puplet-4.x
  • jwm-493-i18nq: for Quirky-1.2
  • jwm-493-i18nl: for Lupu/LupQ-5.x
  • jwm-493-i18nw: for Wary-0.7
A trap: jwmrc on most of puppies define the font as ' DejaVu Sans-12'. It makes trouble in showing non-european characters. It should be 'DejaVu Sans 12', not '-' but blank.
They are at /etc/xdg/templates/_root_.jwmrc, /root/.jwmrc, /root/.jwm/jwmrc-theme, and /root/.jwm/themes/*-jwmrc.
Run jwm_font_repair.sh combined with the tarball above to repair them all.

JWM-493 accepts 'nofocus'. For example, you can add next entry in jwmrc:

Code: Select all

<Group>
 <Class>gtkdialog-splash</Class>
 <Option>nolist</Option>
 <Option>nofocus</Option>
</Group> 
Ttrap: do not use '<Option>layer:9</Option>' other than Wary.
See Barry's blog.

the source and the patch against jwm svn version 493, 492, 464, and 460 is avairable here.

EDIT: 2010-06-18
Three builds of jwm-492-i18n:
jwm-492-i18np4: for Puppy/Pupplet-4.x
jwm-492-i18nq: for Quirky-1.2
jwm-492-i18nl: for Lupu-5.0.1

EDIT: 2010-03-13
sintani-san uploaded jwm-469-i18n_and_taskbar-fix.tar.bz2
see the 5th post of this topic.

EDIT: 2010-02-11
jwm-464 can be a bit buggy. try jwm-460-i18n.

For jwm-493, see the top of this post.
Attachments
jwm-492-i18np4.tar.gz
Build on Puppy-4.3.1JPqs3
(68.38 KiB) Downloaded 1810 times
jwm-492-i18nq.tar.gz
Build on Quirky-1.2
(69.28 KiB) Downloaded 1743 times
jwm-492-i18nl.tar.gz
Build on Lupu-5.0.1
(71.74 KiB) Downloaded 1903 times
jwm-460-i18n.tar.gz
can be more stable than recent v467
i18n'ed jwm binary and pot file
(69.66 KiB) Downloaded 1845 times
jwm-464-i18n.tar.gz
i18n'ed jwm binary and pot file
(69.63 KiB) Downloaded 1799 times
Last edited by shinobar on Thu 16 Sep 2010, 04:46, edited 9 times in total.
Downloads for Puppy Linux [url]http://shino.pos.to/linux/downloads.html[/url]

User avatar
shinobar
Posts: 2672
Joined: Thu 28 May 2009, 09:26
Location: Japan
Contact:

#2 Post by shinobar »

i18n'ed jwm now in Barry's recent Quirky.
Barry's BLOG

User avatar
BarryK
Puppy Master
Posts: 9392
Joined: Mon 09 May 2005, 09:23
Location: Perth, Western Australia
Contact:

#3 Post by BarryK »

Yeah, it'll be in the upcoming Quirky 007.
[url]https://bkhome.org/news/[/url]

User avatar
shinobar
Posts: 2672
Joined: Thu 28 May 2009, 09:26
Location: Japan
Contact:

How to patch against jwm v460

#4 Post by shinobar »

shintani informed me that jwm-464 is a bit buggy in iconifying applications, aqualung, retrovol and etc.,
and that jwm-460 can be more stable.

to apply jwm-464-i18n.patch against jwm-460 fails to update the file 'configure', but autoconf can creat sane 'configure' file.

assuming jwm-460.tar.bz2 and jwm-464-i18n.patch.gz are at the current directory:

Code: Select all

gunzip jwm-464-i18n.patch.gz
tar -xjf jwm-460.tar.bz2
cd jwm-460
patch -p1 < ../jwm-464-i18n.patch
autoconf
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --build=i486-t2-linux-gnu
make
strip src/jwm
you may need to modify 'jwm.h' before make in case with newer version of fribidi package.
See Barry's BLOG.

shintani
Posts: 1
Joined: Fri 12 Mar 2010, 05:58

Re: How to patch against jwm v460

#5 Post by shintani »

shinobar wrote:shintani informed me that jwm-464 is a bit buggy in iconifying applications, aqualung, retrovol and etc.,
and that jwm-460 can be more stable.
Hi.

Change between svn461 and 462 is bad??

WEBsvn:
http://joewing.net/websvn/comp.php?repn ... []=%2F@462

I got svn469 and patched shinobar's code and rolled back svn461's ./src/taskbar.c and compiled it.

how about it?
Attachments
taskbar.c.gz
./src/taskbar.c that rolled back to svn461
(4.18 KiB) Downloaded 1836 times
jwm-469-i18n_and_taskbar-fix.tar.bz2
(64.22 KiB) Downloaded 1741 times

User avatar
shinobar
Posts: 2672
Joined: Thu 28 May 2009, 09:26
Location: Japan
Contact:

jwm-492-i18n

#6 Post by shinobar »

Three build of jwm-492-i18n:
For Puppy/Pupplet-4.x, for Quirky-1.2 and for Lupu-5.0.1.
See the top of this topic.

User avatar
shinobar
Posts: 2672
Joined: Thu 28 May 2009, 09:26
Location: Japan
Contact:

Update patch

#7 Post by shinobar »

EDIT: new patch worked on Puppy Linux 4.3.1JPqs3, but doesn't work on Puppy 5.x. I am wondering why...
RESOLVED: see the next post.

The jwm-464-i18n.patch against another version of jwm fails to update the file 'configure'.
Attached jwm-493-i18n.patch, without modifying the file 'configure'. You need to execute 'autoconf' to update the file 'configure'.

The source of jwm-493 and jwm-492-fullscreen-patriot.patch are available at http://bkhome.org/sources/alphabetical/j/
Barry's blog: http://bkhome.org/blog/?viewDetailed=01805

Code: Select all

patch -p1 < ../jwm-492-fullscreen-patriot.patch
patch -p1 < ../jwm-493-i18n.patch
For recent puppies, you need to edit 'src/jwm.h' at line 102 or so.
'<fribidi/fribidi_char_sets.h>' to <fribidi/fribidi-char-sets.h>, replace the underscore '_' with minus'-'. There is jwm-593-fribidi.patch

Code: Select all

patch -p1 < ../jwm-493-fribidi.patch
Then, compile and strip. You need to execute 'autoconf' to update the file 'configure':

Code: Select all

autoconf
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --build=i486-t2-linux-gnu
make
strip src/jwm
Complied on Puppy Linux-431JPqs3 works fine.
I did the same thing on LupQ-508. It works as normal jwm, but does not work the i18n. Tried on Wary-0.7, got same result. Quirky-1.2 got the same. I cannot find out what is wrong... :cry:

See the next post for the patches.
Last edited by shinobar on Tue 14 Sep 2010, 04:06, edited 1 time in total.
Downloads for Puppy Linux [url]http://shino.pos.to/linux/downloads.html[/url]

User avatar
shinobar
Posts: 2672
Joined: Thu 28 May 2009, 09:26
Location: Japan
Contact:

RESOLVED: jwm-493-i18n Puppy 5.x

#8 Post by shinobar »

shinobar wrote:new patch worked on Puppy Linux 4.3.1JPqs3, but doesn't work on Puppy 5.x. I am wondering why...
Got it :D

The version of the autoconf, i used for generating new configure file, is different between Puppy Linux 4.x and 5.x. And the newer autoconf-2.65 seems problem with NLS support.
The autoconf have to be done on Puppy 4.x, autoconf-2.59.

Code: Select all

patch -p1 < ../jwm-492-fullscreen-patriot.patch
patch -p1 < ../jwm-492-i18n.patch
autoconf
Continue on Puppy 5.x:

Code: Select all

patch -p1 < ../jwm-493-fribidi.patch
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --build=i486-t2-linux-gnu
make
strip src/jwm
Made 4 buils, for Puppy 4.x, Quirky, Wary and Lucid. See the top of this topic.
Last edited by shinobar on Wed 15 Sep 2010, 11:00, edited 1 time in total.
Downloads for Puppy Linux [url]http://shino.pos.to/linux/downloads.html[/url]

User avatar
technosaurus
Posts: 4853
Joined: Mon 19 May 2008, 01:24
Location: Blue Springs, MO
Contact:

#9 Post by technosaurus »

Excellent work, I'm glad to see that you got Patriot's full screen patch too.

Now the only big thing jwm is missing is the ability to have invisible trays/traybuttons (with visible icons/text) so that desktop icons could be emulated. (Setting the background color to None /NULL didnt work :()
Check out my [url=https://github.com/technosaurus]github repositories[/url]. I may eventually get around to updating my [url=http://bashismal.blogspot.com]blogspot[/url].

User avatar
technosaurus
Posts: 4853
Joined: Mon 19 May 2008, 01:24
Location: Blue Springs, MO
Contact:

#10 Post by technosaurus »

I was going through amigo's list of goodies and found desklaunch
http://distro.ibiblio.org/pub/linux/dis ... nch-1.1.3/

desklaunch is a small utility for creating desktop icons which can be launched by clicking them. (it compiles to only 13k)

This is the last function jwm needs to become a full desktop environment.

since it is only a single C file it seems like it could be fairly easily integrated into jwm by renaming it's main and inserting a function call to it in jwm's main??

Note: its hard-coded font is not installed by default in puppy => should either change it to one that exists or better yet refactor to use jwm's font (otherwise it will segfault when it can't find the font)
Note2: desklaunch currently only works with xpm (=more refactoring to add png)

{{of course you could always just run desklaunch as a separate app, just with ~2MB of additional resource waste due to glibc and libX11 inefficiencies - kernels after 2.6.33 reduce this to ~0.5MB, while adding it to jwm should be less than ~50kb}}
Check out my [url=https://github.com/technosaurus]github repositories[/url]. I may eventually get around to updating my [url=http://bashismal.blogspot.com]blogspot[/url].

User avatar
Blesphemy206
Posts: 5
Joined: Fri 18 Feb 2011, 15:01

#11 Post by Blesphemy206 »

technosaurus wrote:Excellent work, I'm glad to see that you got Patriot's full screen patch too.

Now the only big thing jwm is missing is the ability to have invisible trays/traybuttons (with visible icons/text) so that desktop icons could be emulated. (Setting the background color to None /NULL didnt work :()
The full screen patch totally made this work the way it needed to visually. i think that is the best compliment that can be given here. It's nice when appearance works and you can just play with little internal things from there on out...
[url=http://puppylinux.org/wikka/PuppySites]http://puppylinux.org/wikka/[/url][url=http://www.iaqsource.com/aprilaire.php]aprilaire[/url][url=http://puppylinux.org/wikka/PuppySites]/puppysites[/url]

Post Reply