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 Sun 23 Nov 2014, 23:08
All times are UTC - 4
 Forum index » Advanced Topics » Puppy Projects » Localization Project
i18n'ed jwm - jwm internationalization with gettext
Moderators: Lobster, MU, raffy
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [11 Posts]  
Author Message
shinobar


Joined: 28 May 2009
Posts: 2631
Location: Japan

PostPosted: Wed 27 Jan 2010, 11:51    Post subject:  i18n'ed jwm - jwm internationalization with gettext  

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:
<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.
jwm-492-i18np4.tar.gz
Description  Build on Puppy-4.3.1JPqs3
gz

 Download 
Filename  jwm-492-i18np4.tar.gz 
Filesize  68.38 KB 
Downloaded  1252 Time(s) 
jwm-492-i18nq.tar.gz
Description  Build on Quirky-1.2
gz

 Download 
Filename  jwm-492-i18nq.tar.gz 
Filesize  69.28 KB 
Downloaded  1176 Time(s) 
jwm-492-i18nl.tar.gz
Description  Build on Lupu-5.0.1
gz

 Download 
Filename  jwm-492-i18nl.tar.gz 
Filesize  71.74 KB 
Downloaded  1304 Time(s) 
jwm-460-i18n.tar.gz
Description  can be more stable than recent v467
i18n'ed jwm binary and pot file
gz

 Download 
Filename  jwm-460-i18n.tar.gz 
Filesize  69.66 KB 
Downloaded  1308 Time(s) 
jwm-464-i18n.tar.gz
Description  i18n'ed jwm binary and pot file
gz

 Download 
Filename  jwm-464-i18n.tar.gz 
Filesize  69.63 KB 
Downloaded  1244 Time(s) 

_________________
Google Chrome portable
Downloads for Puppy Linux http://shino.pos.to/linux/downloads.html

Last edited by shinobar on Thu 16 Sep 2010, 00:46; edited 9 times in total
Back to top
View user's profile Send private message Visit poster's website 
shinobar


Joined: 28 May 2009
Posts: 2631
Location: Japan

PostPosted: Wed 03 Feb 2010, 11:11    Post subject:  

i18n'ed jwm now in Barry's recent Quirky.
Barry's BLOG
Back to top
View user's profile Send private message Visit poster's website 
BarryK
Puppy Master


Joined: 09 May 2005
Posts: 7082
Location: Perth, Western Australia

PostPosted: Wed 03 Feb 2010, 19:16    Post subject:  

Yeah, it'll be in the upcoming Quirky 007.
_________________
http://bkhome.org/news/
Back to top
View user's profile Send private message Visit poster's website 
shinobar


Joined: 28 May 2009
Posts: 2631
Location: Japan

PostPosted: Thu 11 Feb 2010, 01:57    Post subject: How to patch against jwm v460  

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:
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.
Back to top
View user's profile Send private message Visit poster's website 
shintani

Joined: 12 Mar 2010
Posts: 1

PostPosted: Fri 12 Mar 2010, 02:12    Post subject: Re: How to patch against jwm v460  

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?repname=JWM&path=%2F&compare[]=%2F@461&compare[]=%2F@462

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

how about it?
taskbar.c.gz
Description  ./src/taskbar.c that rolled back to svn461
gz

 Download 
Filename  taskbar.c.gz 
Filesize  4.18 KB 
Downloaded  1304 Time(s) 
jwm-469-i18n_and_taskbar-fix.tar.bz2
Description 
bz2

 Download 
Filename  jwm-469-i18n_and_taskbar-fix.tar.bz2 
Filesize  64.22 KB 
Downloaded  1251 Time(s) 
Back to top
View user's profile Send private message 
shinobar


Joined: 28 May 2009
Posts: 2631
Location: Japan

PostPosted: Thu 17 Jun 2010, 18:43    Post subject: jwm-492-i18n  

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.
Back to top
View user's profile Send private message Visit poster's website 
shinobar


Joined: 28 May 2009
Posts: 2631
Location: Japan

PostPosted: Mon 13 Sep 2010, 00:08    Post subject: Update patch
Subject description: jwm-493-i18n.patch
 

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:
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:
patch -p1 < ../jwm-493-fribidi.patch

Then, compile and strip. You need to execute 'autoconf' to update the file 'configure':
Code:
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... Crying or Very sad

See the next post for the patches.

_________________
Google Chrome portable
Downloads for Puppy Linux http://shino.pos.to/linux/downloads.html

Last edited by shinobar on Tue 14 Sep 2010, 00:06; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website 
shinobar


Joined: 28 May 2009
Posts: 2631
Location: Japan

PostPosted: Mon 13 Sep 2010, 23:51    Post subject: RESOLVED: jwm-493-i18n Puppy 5.x  

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 Very Happy

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:
patch -p1 < ../jwm-492-fullscreen-patriot.patch
patch -p1 < ../jwm-492-i18n.patch
autoconf

Continue on Puppy 5.x:
Code:
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.
jwm-patches-20100914.tar.gz
Description  CONTENTS: jwm-492-fullscreen-patriot.patch, jwm-493-fribidi.patch, jwm-492-i18n.patch, README
gz

 Download 
Filename  jwm-patches-20100914.tar.gz 
Filesize  3.65 KB 
Downloaded  1065 Time(s) 

_________________
Google Chrome portable
Downloads for Puppy Linux http://shino.pos.to/linux/downloads.html

Last edited by shinobar on Wed 15 Sep 2010, 07:00; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website 
technosaurus


Joined: 18 May 2008
Posts: 4376

PostPosted: Tue 14 Sep 2010, 20:01    Post subject:  

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 Sad)

_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send private message 
technosaurus


Joined: 18 May 2008
Posts: 4376

PostPosted: Mon 15 Nov 2010, 12:45    Post subject:  

I was going through amigo's list of goodies and found desklaunch
http://distro.ibiblio.org/pub/linux/distributions/amigolinux/download/DeskTop/IconMgmt/desklaunch-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}}

_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send private message 
Blesphemy206


Joined: 18 Feb 2011
Posts: 5

PostPosted: Tue 22 Feb 2011, 16:32    Post subject:  

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 Sad)


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...

_________________
http://puppylinux.org/wikka/aprilaire/puppysites
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [11 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.0890s ][ Queries: 13 (0.0058s) ][ GZIP on ]