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 Fri 25 Jul 2014, 14:28
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 4 of 9 [132 Posts]   Goto page: Previous 1, 2, 3, 4, 5, 6, 7, 8, 9 Next
Author Message
MU


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

PostPosted: Tue 17 Feb 2009, 18:14    Post subject:  

esmourguit,
remasterpup2 already has the code for ntfs, line 81:
Code:
   mount -t $AFS /dev/$ATAG /mnt/$ATAG > /dev/null 2>&1


So if ntfs does not work, there must be a bug somewhere else.
I don't know if in the script itself, or somewhere else in Puppy.
Do you use a original Puppy 4.12, or a puplet?

I will not have time to test it myself before weekend.

Mark

_________________
my recommended links
Back to top
View user's profile Send private message Visit poster's website 
esmourguit


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

PostPosted: Wed 18 Feb 2009, 04:46    Post subject:  

Bonjour,
@MU,
I have Burnt and ran a brand new Puppy 4.1.2 (kernel 2.6.25.16) with "puppy pfix=ram"
The remasterpup2 localized script could create puppylivecdbuild on ntfs partition, but still no custom-puppy.iso.

I have localized chooselocale script and it works OK. Attached file
I started localizing puppyinstaller, but there is already something wrong. I continue.
Cordialement Wink

New uploaded version is now fixed.
chooselocale-420Loc.pet
Description 
pet

 Download 
Filename  chooselocale-420Loc.pet 
Filesize  4.74 KB 
Downloaded  633 Time(s) 

_________________
Toutou Linux - Pets francisés

Last edited by esmourguit on Tue 24 Feb 2009, 11:59; edited 1 time in 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: Wed 18 Feb 2009, 09:26    Post subject:  

Bonjour,

@MU,
About xwin localized and the issues line 482 and 490.
Here are the comments after exiting to prompt :
Quote:
/usr/X11R7/bin/xwin:line 482:unexpected EOF while looking for matching '"'
/usr/X11R7/bin/xwin:line 490: Syntax error:unexpected end of file

What about that?
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 19 Feb 2009, 09:05    Post subject:  

Bonjour,
I have localized /usr/sbin/bootmanager. I have to test it before upload.
Puppyinstaller script : always with the same issues not yet fixed.
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 19 Feb 2009, 09:47    Post subject:  

Bonjour,
Here is bootmanager localized.
Cordialement Wink
bootmanage420-loc.tar.gz
Description 
gz

 Download 
Filename  bootmanage420-loc.tar.gz 
Filesize  7.52 KB 
Downloaded  766 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: Thu 19 Feb 2009, 16:28    Post subject:  

esmourguit wrote:
Bonjour,

Sorry for the inconvenience, but in fact it was missing the file /usr/share/locale/en/LC_MESSAGES/xorgwizard.mo. But not sure it was the issue.
Then it works.
Attached file xorgwizard4.2-localized and connectwizard-420loc for test and english and french files

Cordialement Wink


Hi there esmorguit. I've been testing connectwizard there, because someone translated it to spanish, but it isn't working for me... no error shows in console, but it doesn't run... Any ideas of what could be happening?

Mine isn't working, either. I am guessing it's an issue with locales, and i will solve it soon. Don't worry too much about it.
Back to top
View user's profile Send private message 
MU


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

PostPosted: Thu 19 Feb 2009, 17:58    Post subject:  

esmourguit wrote:
Bonjour,

@MU,
About xwin localized and the issues line 482 and 490.
Here are the comments after exiting to prompt :
Quote:
/usr/X11R7/bin/xwin:line 482:unexpected EOF while looking for matching '"'
/usr/X11R7/bin/xwin:line 490: Syntax error:unexpected end of file

What about that?
Cordialement Wink


I'll have a look at it at weekend.
Within the week, I am too busy with my course and tired, when I come home.
Mark

_________________
my recommended links
Back to top
View user's profile Send private message Visit poster's website 
esmourguit


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

PostPosted: Fri 20 Feb 2009, 03:57    Post subject:  

Bonjour,
@Droope,
Quote:
Hi there esmorguit. I've been testing connectwizard there, because someone translated it to spanish, but it isn't working for me... no error shows in console, but it doesn't run... Any ideas of what could be happening?
Sorry, there is an error in line 17, in /usr/share/locale/fr/LC_MESSAGES/connectwizard.mo. (only this one, the english.mo file is OK).
Change
comment5=
by
comment6=
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: Fri 20 Feb 2009, 12:08    Post subject:  

Bonjour,
About puppyinstaller script : there are issues when we get to the part on superfloppy and following.
The script does not take the localization variables.
I don't think this is a job in my skills. Sorry.
I will work on eventmanager script for now.
Cordialement Wink

_________________
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: Sat 21 Feb 2009, 13:01    Post subject:  

hi there, made a list for the spanish community, guess it could be usefull here too.
Connect wizard
Xwin
XorgWizard
Remasterpup2
Chooselocale
Bootmanager

Esmorguit, thanks a lot for all your work Very Happy i mean it, it's really apreciated.
Back to top
View user's profile Send private message 
MU


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

PostPosted: Sat 21 Feb 2009, 18:08    Post subject:  

esmourguit,
I tested your xorgwizard today in a new newyearspup.
I get no errors so far, except there:

french mo:
line 166
(: instead of =)

english mo, line 166 as in french, and line 276, there is a " in the end, that must be removed.


You can check for such errors, if you examine:
/tmp/xorgwizard-errors.log

I attach a pet with the two updated mo files and the unmodified xorgwizard.
So this is an updated pet of the one posted here:
http://www.murga-linux.com/puppy/viewtopic.php?p=274521#274521

I plan to incorporate the localized scripts from this thread in newyearspup next weekend Smile

Mark
xorgwizard420-loc.pet
Description 
pet

 Download 
Filename  xorgwizard420-loc.pet 
Filesize  24.1 KB 
Downloaded  661 Time(s) 

_________________
my recommended links
Back to top
View user's profile Send private message Visit poster's website 
esmourguit


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

PostPosted: Mon 23 Feb 2009, 04:21    Post subject:  

Bonjour,

@MU,
Thank you Mark. And what about xwin?

Here is cups_shell localized, i'had forgotten to upload.
Cordialement Wink
cups_shell-420Loc.tar.gz
Description 
gz

 Download 
Filename  cups_shell-420Loc.tar.gz 
Filesize  2.69 KB 
Downloaded  663 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: Fri 27 Feb 2009, 10:46    Post subject:  

Hi there, a member of Spanish community, not me, suggests this

Code:
#-- simple localization for scripts by MU. Essai de JJM
mo=connectwizard.mo
if [ -f "/usr/share/locale/$LANG/LC_MESSAGES/$mo" ];then
. /usr/share/locale/$LANG/LC_MESSAGES/$mo
else
. /usr/share/locale/en/LC_MESSAGES/$mo
fi


Instead of this:

Code:
#-- simple localization for scripts by MU. Essai de JJM
mo=connectwizard.mo
lng=`echo $LANG | sed "s/\(..\).*/\1/"`
. "/usr/share/locale/en/LC_MESSAGES/$mo"
if [ -f "/usr/share/locale/$lng/LC_MESSAGES/$mo" ];then
. "/usr/share/locale/$lng/LC_MESSAGES/$mo"
fi


Reasons:

-He erases the " characters, otherwise it wont work. (In Spanish).

-He erases the order that chops the $lang variable (from being es_ES it would become "es" so that would limit the possibility of translating to other languages). He says he'd rather use $lang directly and then place the translations in "es_ES" or "es_AR", for example.

- Allows the possibility of, if desirable, the other localizations can be erased, so as to reduce the iso size. If no translation exists, it'll use the english one.

I don't understand much the code, but thought it could be iteresting. If you think it is worth it, i'll change all localized scripts to use it, so that you don't have to do it.
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 27 Feb 2009, 12:14    Post subject:  

Bonjour,
Let's wait the MU's opinion.
It sounds interesting and there may be various specific localizations in the same language in relation to different countries.
Cordialement Wink

Edited Feb 27 18:00
I just look in the connectwizard file in version 4.20 RC1, and it is already like this:
Quote:
#-- simple localization for scripts by MU.
mo=connectwizard.mo
lng=`echo $LANG | sed "s/\(..\).*/\1/"`
#echo $lng
. "/usr/share/locale/en/LC_MESSAGES/$mo"
if [ -f "/usr/share/locale/$lng/LC_MESSAGES/$mo" ];then
. "/usr/share/locale/$lng/LC_MESSAGES/$mo"
fi

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


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

PostPosted: Fri 27 Feb 2009, 19:01    Post subject:  

ok, we can use the full $LANG, if it is required for different languages.
I did not use it, to save space.
For example:
de_DE
de_CH

This is german and swiss german.
In Scripts, they are usually identical.
So if we check just for "de", just one .mo is needed.
This could be solved however if we would place a symlink to the "de_DE/LC_MESSAGES/example.mo" in "de_CH/LC_MESSAGES/".

This would combine both advantages: seperate language files if required (like for "es_"), and just one with symlinks, if it is the same for all "de".

But one change is needed:
the english file should ALWAYS be loaded.
So do not use "if else".
Reason: translations are often incomplete.
Example:
mywizard 4.0 is written by MU.
droope translates it to spanish.
Then MU enhances the wizard to 5.0. As MU speaks no spanish, new words are available in english only, until droope finds time to update the translation.
With "if else" the 5.0 would not work in spanish, but if english is always loaded, then it would work, just the not yet translated words would be english.

So this would be ok:
Code:
#-- simple localization for scripts by MU. Essai de JJM
mo=connectwizard.mo

. /usr/share/locale/en/LC_MESSAGES/$mo
if [ -f "/usr/share/locale/$LANG/LC_MESSAGES/$mo" ];then
. /usr/share/locale/$LANG/LC_MESSAGES/$mo
fi


Mark

_________________
my recommended links
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 4 of 9 [132 Posts]   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:  

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.0911s ][ Queries: 13 (0.0067s) ][ GZIP on ]