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 Thu 17 Apr 2014, 23:28
All times are UTC - 4
 Forum index » Advanced Topics » Puppy Projects » Localization Project
Localizing Grafpup
Moderators: Lobster, MU, raffy
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [8 Posts]  
Author Message
Nathan F


Joined: 08 Jun 2005
Posts: 1760
Location: Wadsworth, OH (occasionally home)

PostPosted: Sat 24 May 2008, 13:17    Post subject:  Localizing Grafpup
Subject description: Asking for volunteer translators for Grafpup Linux
 

I'm formally putting forth an invitation and request for any interested parties to help with translations for the various scripts used in Grafpup Linux. There is a mountain of work to be done overall but it will probably be done in small, incremental changes. I will provide coding to make it possible for scripts to use separate language files, beginning with any new programs I write but proceeding through legacy scripts and applications from Puppy. I want eventually to see all scripts use the LANG environment variable for any on-screen displayed text.

I would like to mention that I will do my best to push anything which could be useful to Puppy as a whole upstream. I run Grafpup as a separate distro in many ways, but I am still in love with Puppy and am committed to making my contribution to the project.

If you are interested please reply to this thread or send me a pm. I'll get back with you so we can figure out the best way to collaborate.

Nathan

_________________
Bring on the locusts ...
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger 
magerlab

Joined: 08 Jul 2007
Posts: 731

PostPosted: Sat 24 May 2008, 17:41    Post subject:  

yes it would be great to have a fully localised scripts
i wrote you before a pm
so i'm interested to try a new release and it's translation

_________________
skype: desafimager
Back to top
View user's profile Send private message 
Nathan F


Joined: 08 Jun 2005
Posts: 1760
Location: Wadsworth, OH (occasionally home)

PostPosted: Sun 25 May 2008, 14:14    Post subject:  

It could be approached one of two ways. I could give you commit access to my subversion repo if you are comfortable using subversion, or more likely I could just send you the english translation files from which to work and update subversion myself. Your choice.

Right now there are only a couple scripts ready to go, but I plan on steady work over the next couple months.

Nathan

_________________
Bring on the locusts ...
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger 
esmourguit


Joined: 17 Nov 2006
Posts: 1288
Location: Sur l'ile aux oiseaux.

PostPosted: Fri 30 May 2008, 05:31    Post subject:  

Hello Nathan,

I think i can help you to localize Grafpup in french if you want.
I have made Toutou Linux, the french localization of Puppy.

Cordialement Wink

JJ M

_________________
Toutou Linux - Pets francisés
Back to top
View user's profile Send private message 
ricstef

Joined: 01 Aug 2006
Posts: 52
Location: Woodstock, ON. Canada

PostPosted: Fri 30 May 2008, 23:39    Post subject: Grafpup Localization
Subject description: where is your subversions repo ?
 

Nathan,
I'd like to look at some scripts in which you implemented localization. Where are they to be found?
Do I need any special privileges to just check a couple of them out and see how you went about it?
I think I could help separating out the text strings and replace them with
variables.
Do you have a list of what scripts you would like done first ?
Also any ground rules you would like observed for consistency sake.

Cheers,
Richard.
Back to top
View user's profile Send private message 
Nathan F


Joined: 08 Jun 2005
Posts: 1760
Location: Wadsworth, OH (occasionally home)

PostPosted: Sat 31 May 2008, 10:11    Post subject:  

ricstef - The programs I am currently working on are all in subversion hosted by google. If you have the subversion client installed then you can check out the whole tree with this command:
Code:
svn checkout http://grafpup-linux.googlecode.com/svn/trunk/ grafpup-linux

Otherwise take a look at the latest version of the wallpaper setter here. The main program is inside the directory /usr/local/apps/Wallpaper in the scripts AppRun and functions, and the translation files are in the locale subdirectory.

I based the method on what Zigbert is using with his various programs, for consistency and because it is a good implementation. So another good place to look to understand the code is Pburn or any of his other programs. Basically any displayed text must be replaced by a variable, which is stored in a separate translation file. If the translation files follow BASH syntax then they can be sourced from the main script. You can use the LANG environment variable to tell your script which translation you want it to use. As long as one complete translation file is always sourced first, followed by the desired language, it will fill in any gaps in other translations.

If you would like to help with the work of separating out the strings that would be wonderful. Much of it is just drudgery once you have a handle on the method. The main difference between my implementation and Zigbert's is that he uses numbers as variables, while I'm using names which mean something to me about what string the variable holds. Of course those names will not mean anything in other languages and it is purely for my convenience reading the code in English. My coding standards are just that you comment the code liberally to make it easy to follow and understand what part of a program/interface is being referred to. This becomes especially important for others down the road who may wish to re-use your code, or to update it.

esmourguit - I have heard good things about Toutou Linux. I would be glad of the help in translation. I have five sub-projects currently being worked on in subversion, as I mentioned before, but if you would prefer I can separate out the specific files which are ready for translation and send you a tarball. I will leave the choice up to you. Oh, and thank you very much for your offer.

Nathan

_________________
Bring on the locusts ...
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger 
ricstef

Joined: 01 Aug 2006
Posts: 52
Location: Woodstock, ON. Canada

PostPosted: Sat 31 May 2008, 22:03    Post subject: Localizing Grafpup  

Nathan,
I am looking at what you did in the wallpaper setter to orient myself to your way of doing things. Also I'll look at Zigbert's pburn.

Cheers,
Richard
Back to top
View user's profile Send private message 
esmourguit


Joined: 17 Nov 2006
Posts: 1288
Location: Sur l'ile aux oiseaux.

PostPosted: Wed 04 Jun 2008, 04:54    Post subject:  

Hello Nathan,

It's OK, send me the tarball.
Cordialement Wink
JJ M

_________________
Toutou Linux - Pets francisés
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [8 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.0584s ][ Queries: 12 (0.0111s) ][ GZIP on ]