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 30 Aug 2014, 18:42
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 Posts_count  
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
Sub_title: 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 YIM MSNM 
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 YIM MSNM 
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
Sub_title: 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 YIM MSNM 
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:   Sort by:   
Page 1 of 1 Posts_count  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Advanced Topics » Puppy Projects » Localization Project
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0577s ][ Queries: 11 (0.0035s) ][ GZIP on ]