Author |
Message |
zigbert

Joined: 29 Mar 2006 Posts: 6629 Location: Valåmoen, Norway
|
Posted: Fri 27 Jul 2012, 09:02 Post subject:
zigbert and gettext |
|
Hi all
L18L had an course with me regarding gettext. I have avoided this as much as possible, but he (I assume that it's a he) pushed it the all way through, so I simply couldn't step off..... The result is seen in pClock which uses gettext for NLS - thanks to L18L.
Now that I know how it works you might find it reasonable that I convert my tiny apps to gettext to give our translators a better working environment. I have spend the last day thinking about this, and come to a conclusion. The work is just bigger than I find inspiration to offer. Puppy is mainly a fun-project for me, and I want it to stay that way..... I already spend some hours maintaining codelines, and I don't find bugfixing to be funny only.
But that doesn't mean I don't want gettext.
If someone out there wants to help out converting apps to use gettext (like L18L did for pClock), that is no problem to fix. The only thing we need to keep track of is that you work on the latest code. And it is no problem for me if you spend some time on the work. I don't work on all apps at the same time anyway. Let's just agree what app I should stay away from.
Today I released Pmusic 2.6.4. This is a bugfix release, and I plan the next to be 2.7.0 which includes new stuff - This will take much time, and if someone wants to work on NLS, now it's a perfect time.
Most of the others apps are smaller (except Pburn), so these is probably less time consuming to work with.
The apps in the official Puppy:
- pBurn (done by rodin.s) All NLS files are converted
- pMirror (done by rodin.s)
- pTiming (done by zigbert)
- pBackup (let's stay away from this creepy code)
- pMusic (done by zigbert)
- pClock (done by L18L)
- pSchedule (done by zigbert)
- pFind (done by L18L)
- pFilesearch (done by L18L)
- pProcess (done by rodin.s)
- pEqualizer (done by zigbert)
See you around
Sigmund
_________________ Stardust resources
Last edited by zigbert on Sat 30 Mar 2013, 12:08; edited 16 times in total
|
Back to top
|
|
 |
rodin.s
Joined: 22 Sep 2010 Posts: 344 Location: Ukraine
|
Posted: Fri 27 Jul 2012, 16:05 Post subject:
pProcess |
|
I would like to try something simple like pProcess first. Maybe even some automatic script based on sed can do it: to take some lines from translation file and put them into main script with addition of necessary gettext syntax...
|
Back to top
|
|
 |
zigbert

Joined: 29 Mar 2006 Posts: 6629 Location: Valåmoen, Norway
|
Posted: Fri 27 Jul 2012, 16:36 Post subject:
|
|
rodin.s wrote: | I would like to try something simple like pProcess | Awesome!
I have uploaded pprocess-2.2.5.pet to sync with my local codebase.
Sigmund
_________________ Stardust resources
|
Back to top
|
|
 |
vicmz

Joined: 15 Jan 2012 Posts: 1268
|
Posted: Fri 27 Jul 2012, 23:31 Post subject:
Re: pProcess |
|
rodin.s wrote: | I would like to try something simple like pProcess first. Maybe even some automatic script based on sed can do it: to take some lines from translation file and put them into main script with addition of necessary gettext syntax... |
Hi rodin.s
I have a script that you made for Pmusic 2.6.3, I was able to create a .pot file. Do I need an updated version of your script for new versions of Pmusic?
Sorry for the off-topic (well, not so off-topic): I need someone who is able to teach me some gettext basics. The information I find on the Internet assumes I have console and compiling skills (not something I can learn in the short term). If anyone is willing to, just PM me. (I know, there is MoManager, but I haven't seen any puplets with MoManager yet, and not all software is internationalized to use this method)
_________________ Puppy Linux en español
|
Back to top
|
|
 |
BarryK
Puppy Master

Joined: 09 May 2005 Posts: 9400 Location: Perth, Western Australia
|
Posted: Sat 28 Jul 2012, 08:18 Post subject:
Re: pProcess |
|
vicmz wrote: | I know, there is MoManager, but I haven't seen any puplets with MoManager yet, and not all software is internationalized to use this method |
I don't know what you mean by the second half of the sentence.
All puppies built from Woof since late February 2012 have MoManager and the support inftrastructure.
That includes Wary, Racy (me), Slacko (01micko). There are various Debian and Ubuntu builds, including a Upup made by pemasu from a recent Woof. Also there is a Mageia puplet created by scsijon. Probably some others too that I can't recall right now.
Oh yes, the ARM-board puppies are built from latest Woof.
Looking ahead, all puppies will have it.
There are some "legacy" puppies that don't, however, in theory MoManager could be backported.
The special case of forks of Woof, such as FatDog64, MoManager could also be ported to that. But, that would be up to the FatDog developers. It would be a very good thing for them to do, as then all of the langpacks would work on their puplet, and we have a growing collection.
_________________ https://bkhome.org/news/
|
Back to top
|
|
 |
BarryK
Puppy Master

Joined: 09 May 2005 Posts: 9400 Location: Perth, Western Australia
|
Posted: Sat 28 Jul 2012, 08:26 Post subject:
Re: pProcess |
|
vicmz wrote: | Sorry for the off-topic (well, not so off-topic): I need someone who is able to teach me some gettext basics. The information I find on the Internet assumes I have console and compiling skills |
In a recent Puppy (with MoManager), go to the menu and choose "Help" then "HOWTO internationalization". This has links to some documentation.
To learn more about MoManager, go to my blog and type "MoManager" into the search-box:
http://bkhome.org/blog/
With MoManager, you should not require "console" or "compiling" skills. It is a GUI, and the console utilities are executed automatically. MoManager will even create a langpack PET for you automatically.
_________________ https://bkhome.org/news/
|
Back to top
|
|
 |
rodin.s
Joined: 22 Sep 2010 Posts: 344 Location: Ukraine
|
Posted: Sat 28 Jul 2012, 13:58 Post subject:
pmusic script |
|
As for pmusic gettext script: yes, it has to be updated if pmusic translation changes. Some new lines added, old ones removed.
|
Back to top
|
|
 |
vicmz

Joined: 15 Jan 2012 Posts: 1268
|
Posted: Sat 28 Jul 2012, 14:31 Post subject:
|
|
Thank you guys. Regarding puplets I've received requests for compatibility with puplets that were built before MoManager was implemented, especially Lucid and Saluki, that was the reason of my request. I do use MoManager actively and release at least one update per month, many users are glad that you created it, BarryK. OK, after this I can focus entirely on the official langpack_es. The langpack_es official page explains which Puppy versions are compatible but doesn't include any puplets, so I'll add those you mentioned. Thank you again.
|
Back to top
|
|
 |
don570

Joined: 10 Mar 2010 Posts: 5524 Location: Ontario
|
Posted: Sat 28 Jul 2012, 15:08 Post subject:
|
|
I will be posting a new version of puppy backup
(the improved version of pmirror). It will
have a yaf-splash window to show activity.
It should be released in couple of days so I can
test it thoroughly.
So don't bother converting pmirror.
__________________________________
|
Back to top
|
|
 |
rodin.s
Joined: 22 Sep 2010 Posts: 344 Location: Ukraine
|
Posted: Sun 29 Jul 2012, 05:33 Post subject:
gettext in pProcess |
|
I have added gettext to pProcess. It's MoManager compatible. File pprocess.mo will be created in MoManager after translation. I had to do some workaround sins MoManager supports only one script for one mo-file and pprocess has tree scripts with gettext. Main script is pprocess so I have added lines from two others into main script.
Maybe now I want to try pBurn as something more complex.
Description |
MoManager Russian translation for pProcess
|

Download |
Filename |
MoManager-ru_UA-pprocess_gtxt-2.2.5.tar.gz |
Filesize |
1.69 KB |
Downloaded |
782 Time(s) |
Description |
pProcess with gettext
|

Download |
Filename |
pprocess_gtxt-2.2.5.pet |
Filesize |
3.94 KB |
Downloaded |
777 Time(s) |
|
Back to top
|
|
 |
zigbert

Joined: 29 Mar 2006 Posts: 6629 Location: Valåmoen, Norway
|
Posted: Sun 29 Jul 2012, 06:23 Post subject:
|
|
rodin.s
I'll check it out and release a new version of pProcess
Pburn 3.7.3 is up to date and ready to go
T H A N K S . . A . . L O T
Sigmund
_________________ Stardust resources
|
Back to top
|
|
 |
zigbert

Joined: 29 Mar 2006 Posts: 6629 Location: Valåmoen, Norway
|
Posted: Sun 29 Jul 2012, 17:04 Post subject:
|
|
gettext seems to work just fine in pProcess.
What I don't like is the comments at the end to sync with *.pot. I see this as a temporarily solution until MoManager supports multiple scripts for one *.mo file. For pProcess, the comments are few.... for pMusic it will be 'endless'. The worst is not extra codelines, but the fact that I have to update these comments as the app evolves. The arguments for gettext fails with this solution. We could instead use your pMusic-gettext script....
I assume that MoManager will be improved, and we continue the way towards gettext.....
Thank you
Sigmund
_________________ Stardust resources
|
Back to top
|
|
 |
L18L

Joined: 19 Jun 2010 Posts: 3493 Location: www.eussenheim.de/
|
Posted: Mon 30 Jul 2012, 07:11 Post subject:
momanager |
|
zigbert wrote: | ....
I assume that MoManager will be improved, and we continue the way towards gettext.....
|
Just detected this thread
For example /usr/local/pprocess/pprocess:
delete the comments at the end and
change 1st line to:
export TEXTDOMAIN=pprocess # box_ok func
and change momanager ~755
*)
cp -f "$ASCRIPT" ${ANAME}.sh #hack
#additional_scripts for xgettext
#LANG=${ORIGLANG} rxvt -e xgettext --no-wrap -o ${ATEXTDOMAIN}.pot ${ANAME}.sh
LANG=${ORIGLANG} rxvt -e xgettext --no-wrap -o ${ATEXTDOMAIN}.pot ${ANAME}.sh `grep 'export TEXTDOMAIN=' $ASCRIPT | cut -d '#' -f2`
;;
esac
makes xgettext to create the complete pprocess.pot file.
Zigbert, I agree totally: puppy and woof will stay fun
|
Back to top
|
|
 |
L18L

Joined: 19 Jun 2010 Posts: 3493 Location: www.eussenheim.de/
|
Posted: Mon 30 Jul 2012, 07:44 Post subject:
zigbert and gettext Subject description: converting simple things first |
|
I am going to try converting Pfilesearch now.
|
Back to top
|
|
 |
zigbert

Joined: 29 Mar 2006 Posts: 6629 Location: Valåmoen, Norway
|
Posted: Mon 30 Jul 2012, 08:31 Post subject:
Re: zigbert and gettext Subject description: converting simple things first |
|
L18L wrote: | I am going to try converting Pfilesearch now. | Great. Version 1.30 is up to date
_________________ Stardust resources
|
Back to top
|
|
 |
|