Page 1 of 1

i18n'ed jwm - jwm internationalization with gettext

Posted: Wed 27 Jan 2010, 15:51
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.

Posted: Wed 03 Feb 2010, 15:11
by shinobar
i18n'ed jwm now in Barry's recent Quirky.
Barry's BLOG

Posted: Wed 03 Feb 2010, 23:16
by BarryK
Yeah, it'll be in the upcoming Quirky 007.

How to patch against jwm v460

Posted: Thu 11 Feb 2010, 05:57
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.

Re: How to patch against jwm v460

Posted: Fri 12 Mar 2010, 06:12
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?

jwm-492-i18n

Posted: Thu 17 Jun 2010, 22:43
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.

Update patch

Posted: Mon 13 Sep 2010, 04:08
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.

RESOLVED: jwm-493-i18n Puppy 5.x

Posted: Tue 14 Sep 2010, 03:51
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.

Posted: Wed 15 Sep 2010, 00:01
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 :()

Posted: Mon 15 Nov 2010, 16:45
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}}

Posted: Tue 22 Feb 2011, 20:32
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...