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 27 Nov 2014, 07:49
All times are UTC - 4
 Forum index » Advanced Topics » Puppy Projects » Localization Project
Localizing scripts
Moderators: Lobster, MU, raffy
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 5 of 9 Posts_count   Goto page: Previous 1, 2, 3, 4, 5, 6, 7, 8, 9 Next
Author Message
MU


Joined: 24 Aug 2005
Posts: 13644
Location: Karlsruhe, Germany

PostPosted: Sun 01 Mar 2009, 19:46    Post_subject:  

esmourguit,

I can reproduce your errors with "xwin".
Unfortunately I could not find out yet, what causes them.

Newyearspup02 rc4 will contain bootmanager, cups_shell, xorgwizard (not xwin), remasterpup2 (and connectwizard from droope in english, though I am not certain, if Dougal has a more recent version meanwhile. Which one should we use?)

For the next release I will look, if droope already created spanish translations, I currently just use the french ones that were included in esmourguits files.

Is Droopes spanish remasterscript.mo compatible with esmourguits remasterpup2?
Esmurguit: remasterpup2: 19455 byte
Droope: remasterpup2: 18057 byte.

So I assume, that the one from esmurguit is more complete?

Mark

_________________
my recommended links
Back to top
View user's profile Send_private_message Visit_website 
esmourguit


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

PostPosted: Mon 02 Mar 2009, 05:07    Post_subject:  

Bonjour,
@ MU here is the connectwizard in 4.20RC1.
It is bad for xwin issue, although it works normally
I 'm working on localization of the Petget package. May be ready for wednesday.
II have translated in french Remaster Express by pa_mcclamrock. Is it possible to localize this kind of program in a similar way as the scripts?
Cordialement Wink

_________________
Toutou Linux - Pets francisés
Back to top
View user's profile Send_private_message 
MU


Joined: 24 Aug 2005
Posts: 13644
Location: Karlsruhe, Germany

PostPosted: Mon 02 Mar 2009, 13:05    Post_subject:  

thanks for the connectwizard-link Smile

remaster-express is written in Tcl/Tk.
It is also a script-language, but the syntax is very different from bash scripts.
I coded some small utilities maybe 8 years ago, but have forgotten most.
It would be best, to request David to show you an example, or to add the basic stuff to use external languagefiles with a short example.

Once you see how the syntax works, you could add more localization variables on your own, just like for the bash scripts.

Mark

_________________
my recommended links
Back to top
View user's profile Send_private_message Visit_website 
esmourguit


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

PostPosted: Wed 04 Mar 2009, 04:50    Post_subject:  

Bonjour,
@MU,
I had already asked pa_mcclamrock, see here.
But i found that
Quote:
#==========================================#
# Load international messages #
#==========================================#
# msgdir : directory where message file are
# file name example fr.msg de.msg nl.msg es.msg
proc IntlMsg {msgdir {lang {}} } {
package require msgcat
if {$lang == ""} {set lang [string range [::msgcat::mclocale] 0 1] }
set msgfile [file join $msgdir $lang.msg]
if { [catch {open $msgfile r} fmsg] } {
puts stderr "Could not open $msgfile for reading\n$fmsg"
} else {
while {[gets $fmsg ligne] >= 0} {
lappend ll $ligne
}
close $fmsg
::msgcat::::mcmset $lang [join $ll]
unset ll
}
}
on this site,
How do I indicate the path of files.msg in this part of script, if they are in /usr/local/remasterex for example?
Cordialement Wink

_________________
Toutou Linux - Pets francisés
Back to top
View user's profile Send_private_message 
esmourguit


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

PostPosted: Thu 05 Mar 2009, 05:36    Post_subject:  

Bonjour,
Here is a new localized utility that is petget.
There are the french and english file.mo.
If someone wants to test it?
Cordialement Wink

Edited and modified the Petget_Loc.tar.gz, today friday march 6
Petget_Loc.tar.gz
Description 
gz

 Download 
Filename  Petget_Loc.tar.gz 
Filesize  7.11 KB 
Downloaded  653 Time(s) 

_________________
Toutou Linux - Pets francisés

Edited_time_total
Back to top
View user's profile Send_private_message 
droope


Joined: 31 Jul 2008
Posts: 814
Location: Uruguay, Mercedes

PostPosted: Thu 05 Mar 2009, 20:23    Post_subject:  

It works well, i've installed and uninstalled a program.

I see it in english, but the program does read the variable values from the files.

Warning: Don't make a pet directly out of that tar, because the locale files will be misplaced at /usr/share/locale/en instead of in /usr/share/locale/en/LC_MESSAGES/

Really sleepy now. Razz Can't figure of anything else to do with the program.

Hope this helps.
Thank you
Droope
Back to top
View user's profile Send_private_message 
droope


Joined: 31 Jul 2008
Posts: 814
Location: Uruguay, Mercedes

PostPosted: Thu 05 Mar 2009, 20:41    Post_subject: Re: Localizing scripts
Sub_title: To make them translate-able. (is that correct? :|)
 

Connect wizard (This is what esmorguit linked to last)
Xwin
XorgWizard (Updated to Mu's corrected version)
Remasterpup2
Chooselocale
Bootmanager
Cups Shell
Petget.
Alsaconf & Ayttmshell Warning: Spanish only!!! they need to be translated to english.

Updated 5/03/09. Smile

Edited_times_total
Back to top
View user's profile Send_private_message 
esmourguit


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

PostPosted: Fri 06 Mar 2009, 03:30    Post_subject:  

Bonjour,
I modified the Petget_Loc.tar.gz.
Locales files are now in good place (/usr/share/en/LC_MESSAGES/)

Cordialement Wink

_________________
Toutou Linux - Pets francisés
Back to top
View user's profile Send_private_message 
MU


Joined: 24 Aug 2005
Posts: 13644
Location: Karlsruhe, Germany

PostPosted: Sun 08 Mar 2009, 14:02    Post_subject:  

merci beaucoup, petget seems to work fine.
Added it to NYP rc7:
http://www.murga-linux.com/puppy/viewtopic.php?p=282174#282174
Mark

_________________
my recommended links
Back to top
View user's profile Send_private_message Visit_website 
droope


Joined: 31 Jul 2008
Posts: 814
Location: Uruguay, Mercedes

PostPosted: Mon 09 Mar 2009, 20:41    Post_subject:  

Here comes alsaconf translated to english. It's really untidy in some areas, some things aren't centered... Really not professional looking, but functional and localized, as far as i now.

If someone would like it translated, perhaps it's easier to fix the spaces and stuff,.
alsaconf.tar.gz
Description  extract mo file in /usr/share/locale/en/LC_MESSAGES/
gz

 Download 
Filename  alsaconf.tar.gz 
Filesize  10.91 KB 
Downloaded  285 Time(s) 
Back to top
View user's profile Send_private_message 
esmourguit


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

PostPosted: Tue 10 Mar 2009, 04:51    Post_subject:  

Bonjour,
Here the /usr/sbin/petget localized file.
Thank you to test it (Puppy 4.2).
Cordialement Wink

_________________
Toutou Linux - Pets francisés
Back to top
View user's profile Send_private_message 
MU


Joined: 24 Aug 2005
Posts: 13644
Location: Karlsruhe, Germany

PostPosted: Tue 10 Mar 2009, 17:58    Post_subject:  

esmourguit,
it has several errors.
You can see them by typing:
export LANG=en_US.utf8
petget

Quote:
/usr/share/locale/en/LC_MESSAGES/petget.mo: line 73: installed: command not found
/usr/share/locale/en/LC_MESSAGES/petget.mo: line 74: you: command not found
/usr/share/locale/en/LC_MESSAGES/petget.mo: line 89: package,: command not found
/usr/share/locale/en/LC_MESSAGES/petget.mo: line 92: to: command not found
/usr/share/locale/en/LC_MESSAGES/petget.mo: line 93: So,: command not found
/usr/share/locale/en/LC_MESSAGES/petget.mo: line 96: Updating: command not found
/usr/share/locale/en/LC_MESSAGES/petget.mo: line 101: to: command not found
/usr/share/locale/en/LC_MESSAGES/petget.mo: line 102: Example:: command not found
/usr/share/locale/en/LC_MESSAGES/petget.mo: line 103: If: command not found
/usr/share/locale/en/LC_MESSAGES/petget.mo: line 104: package: command not found
/usr/share/locale/en/LC_MESSAGES/petget.mo: line 115: click: command not found
/usr/share/locale/en/LC_MESSAGES/petget.mo: line 116: PET: command not found
/usr/share/locale/en/LC_MESSAGES/petget.mo: line 117: syntax error near unexpected token `('
/usr/share/locale/en/LC_MESSAGES/petget.mo: line 117: `it is unofficial and you will need to download (from an 'unofficial' site)'


In line 71 for example, there misses the closing ".

Mark

_________________
my recommended links
Back to top
View user's profile Send_private_message Visit_website 
esmourguit


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

PostPosted: Wed 11 Mar 2009, 05:15    Post_subject:  

Bonjour,

I removed the quotes in .mo files. Added the " line 71.
For the rest i don't understand. The program seems to work.
Quote:
# petget
/usr/share/locale/en/LC_MESSAGES/petget.mo: line 86: The package: command not found
/usr/share/locale/en/LC_MESSAGES/petget.mo: line 144: There is a formatting error in: command not found
/usr/share/locale/en/LC_MESSAGES/petget.mo: line 171: Loc-dependencycheck=dependency check: command not found
/usr/share/locale/en/LC_MESSAGES/petget.mo: line 173: Loc-dependencycheck1=Choose a package that you want to check its dependenc ies,\nthat is, that it has all required libraries and dependent\npackages installed: command not found
/usr/share/locale/en/LC_MESSAGES/petget.mo: line 179: These dependencies required by: command not found
/usr/share/locale/en/LC_MESSAGES/petget.mo: line 183: It seems that all the dependencies required for this package are installed : command not found
/usr/share/locale/en/LC_MESSAGES/petget.mo: line 191: The: command not found
/usr/share/locale/en/LC_MESSAGES/petget.mo: line 209: There was an error expanding package: command not found
/usr/share/locale/en/LC_MESSAGES/petget.mo: line 257:
ERROR: file: command not found
/usr/share/locale/en/LC_MESSAGES/petget.mo: line 265: The: command not found
/usr/share/locale/en/LC_MESSAGES/petget.mo: line 86: The package: command not found
/usr/share/locale/en/LC_MESSAGES/petget.mo: line 144: There is a formatting error in: command not found
/usr/share/locale/en/LC_MESSAGES/petget.mo: line 171: Loc-dependencycheck=dependency check: command not found
/usr/share/locale/en/LC_MESSAGES/petget.mo: line 173: Loc-dependencycheck1=Choose a package that you want to check its dependenc ies,\nthat is, that it has all required libraries and dependent\npackages installed: command not found
/usr/share/locale/en/LC_MESSAGES/petget.mo: line 179: These dependencies required by: command not found
/usr/share/locale/en/LC_MESSAGES/petget.mo: line 183: It seems that all the dependencies required for this package are installed : command not found
/usr/share/locale/en/LC_MESSAGES/petget.mo: line 191: The: command not found
/usr/share/locale/en/LC_MESSAGES/petget.mo: line 209: There was an error expanding package: command not found
/usr/share/locale/en/LC_MESSAGES/petget.mo: line 257:
ERROR: file: command not found
/usr/share/locale/en/LC_MESSAGES/petget.mo: line 265: The: command not found
RETVAL=19
/usr/sbin/petget: line 973: unexpected EOF while looking for matching `]'
/usr/sbin/petget: line 1852: syntax error: unexpected end of fil

Modified lines:
816 ${${Loc_INSTALL PACKAGE}} to ${${Loc_INSTALLPACKAGE}}
818 ${Loc_ABORT INSTALL} to ${Loc_ABORTINSTALL}
892 ${Loc_dependency check} to ${Loc_dependencycheck} and {Loc_dependency check1} to ${Loc_dependencycheck1}
New Localized petget-sbin_Loc-2009-03-11.tar.gz
Cordialement Wink

_________________
Toutou Linux - Pets francisés
Back to top
View user's profile Send_private_message 
esmourguit


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

PostPosted: Thu 12 Mar 2009, 04:33    Post_subject:  

Bonjour,
In order to localize the Menu, here is the directory /usr/share/applications.
In this folder you will find the files that make up the menu.
I integrated the ability to display the menu in French by the variable
Name[fr]=Application_Name_n_French
To locate in Spanish for example, simply create a line
Name[es]=Name_of_the_application_in_Spanish.
For all those interested and for other languages the method is the same.
So please, you have to download this package first, add the localization and send back to forum to make another guy can continue with his own localization. But warn when you begin the work for not anybody else begin on an package with only the first 2 locales (example : WARNING beginning of Spanish localization by Johndoe on "date"). That is to say that we must add its own localisation only when previous has finished.
Not sure what I write is clear to understand.Wink


@Whodo
I would like to point out that two of these files contain lots of text unnecessary and take much space :
Xarchiver 3936 Bytes
Transmission 5975 Bytes

Cordialement Wink
Rep-Applications-Loc.tar.gz
Description 
gz

 Download 
Filename  Rep-Applications-Loc.tar.gz 
Filesize  22.04 KB 
Downloaded  556 Time(s) 

_________________
Toutou Linux - Pets francisés
Back to top
View user's profile Send_private_message 
droope


Joined: 31 Jul 2008
Posts: 814
Location: Uruguay, Mercedes

PostPosted: Wed 18 Mar 2009, 11:14    Post_subject:  

Sorry, i think I don't understand Confused I'll download the file anyways.
Back to top
View user's profile Send_private_message 
Display_posts:   Sort by:   
Page 5 of 9 Posts_count   Goto page: Previous 1, 2, 3, 4, 5, 6, 7, 8, 9 Next
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.1015s ][ Queries: 13 (0.0117s) ][ GZIP on ]