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 Sat 19 Apr 2014, 15:55
All times are UTC - 4
 Forum index » Advanced Topics » Puppy Projects » Localization Project
zigbert and gettext
Moderators: Lobster, MU, raffy
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 5 [72 Posts]   Goto page: 1, 2, 3, 4, 5 Next
Author Message
zigbert


Joined: 29 Mar 2006
Posts: 5562
Location: Valåmoen, Norway

PostPosted: 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. Smile

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

Joined: 22 Sep 2010
Posts: 338
Location: Ukraine

PostPosted: 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
View user's profile Send private message 
zigbert


Joined: 29 Mar 2006
Posts: 5562
Location: Valåmoen, Norway

PostPosted: 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
View user's profile Send private message Visit poster's website 
vicmz

Joined: 15 Jan 2012
Posts: 1013

PostPosted: 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)

_________________
OpenboxPlus|OB-Puppy|Puppy en español
Back to top
View user's profile Send private message 
BarryK
Puppy Master


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

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

_________________
http://bkhome.org/news/
Back to top
View user's profile Send private message Visit poster's website 
BarryK
Puppy Master


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

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

_________________
http://bkhome.org/news/
Back to top
View user's profile Send private message Visit poster's website 
rodin.s

Joined: 22 Sep 2010
Posts: 338
Location: Ukraine

PostPosted: 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
View user's profile Send private message 
vicmz

Joined: 15 Jan 2012
Posts: 1013

PostPosted: 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. Very Happy
Back to top
View user's profile Send private message 
don570


Joined: 10 Mar 2010
Posts: 3078
Location: Ontario

PostPosted: 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
View user's profile Send private message 
rodin.s

Joined: 22 Sep 2010
Posts: 338
Location: Ukraine

PostPosted: 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.
MoManager-ru_UA-pprocess_gtxt-2.2.5.tar.gz
Description  MoManager Russian translation for pProcess
gz

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

 Download 
Filename  pprocess_gtxt-2.2.5.pet 
Filesize  3.94 KB 
Downloaded  377 Time(s) 
Back to top
View user's profile Send private message 
zigbert


Joined: 29 Mar 2006
Posts: 5562
Location: Valåmoen, Norway

PostPosted: Sun 29 Jul 2012, 06:23    Post subject:  

rodin.s
Very Happy

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
View user's profile Send private message Visit poster's website 
zigbert


Joined: 29 Mar 2006
Posts: 5562
Location: Valåmoen, Norway

PostPosted: 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..... Smile


Thank you
Sigmund

_________________
Stardust resources
Back to top
View user's profile Send private message Visit poster's website 
L18L

Joined: 19 Jun 2010
Posts: 2476
Location: Burghaslach, Germany somewhere also known as "Hosla"

PostPosted: 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..... Smile


Just detected this thread Smile

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 Laughing
Back to top
View user's profile Send private message 
L18L

Joined: 19 Jun 2010
Posts: 2476
Location: Burghaslach, Germany somewhere also known as "Hosla"

PostPosted: 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
View user's profile Send private message 
zigbert


Joined: 29 Mar 2006
Posts: 5562
Location: Valåmoen, Norway

PostPosted: 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
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 1 of 5 [72 Posts]   Goto page: 1, 2, 3, 4, 5 Next
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.0802s ][ Queries: 13 (0.0048s) ][ GZIP on ]