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 Mon 06 Jul 2015, 11:59
All times are UTC - 4
 Forum index » Advanced Topics » Puppy Projects » Localization Project
Gettext of shutdownconfig (woof-ce)
Moderators: Lobster, MU, raffy
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [3 Posts]  
Author Message
ASRI éducation


Joined: 09 May 2009
Posts: 3063
Location: France

PostPosted: Wed 18 Feb 2015, 12:50    Post subject:  Gettext of shutdownconfig (woof-ce)
Subject description: Incomplete...
 

Hello,

I can not completely translate the script /usr/sbin/shutdownconfig (woof-ce testing Commits on Nov 8, 2014) in french language.
- Translation causes errors when I use single quotes ' (this is often necessary in French).
- A part gettext is not functional.

I dare not change the script, because I do not fully understand its focntionnement.
I can just signal that would be necessary that a contributor (more competent than me) tries to improve the situation.

Exemple
Actual script (gettext non functional) - Line 172
Code:
$(eval_gettext "or \Zb${T_cd}\ZB button to save your session back to the CD/DVD..." )"

New script (gettext functional)
Code:
$(eval_gettext 'or \Zb${T_cd}\ZB button to save your session back to the CD/DVD...')"


Other parts (gettext non functional)
Code:
T_sanitext="`eval_gettext \"\Zb\Z1FINAL SANITY CHECK:\Zn\ZB
Partition you are saving to:      \Zb\\\${SAVEPART}\ZB
The filesystem of \\\${SAVEPART} partition: \Zb\\\${SAVEFS}\ZB
Name of the save file:            \Zb\\\${NAMEONLY}\ZB
Path (folder) of the save file:   \Zb\\\${SAVEPATH}\ZB
Size of save file:                \Zb\\\${SIZEPFILE}KB (\\\${AAAMB}MB)\ZB
Filesystem inside save file:      \Zb\\\${SFFS}\ZB
If they definitely look right, choose \Zb\\\${T_saniyes}\ZB button...
Looks ok, but you want to change the folder, choose \Zb\\\${T_sanichange}\ZB...
If anything looks wrong, choose \Zb\\\${T_notsave}\ZB...\"`"

Code:
T_sanitext="`eval_gettext \"\Zb\Z1FINAL SANITY CHECK:\Zn\ZB
Partition you are saving to:      \Zb\\\${SAVEPART}\ZB
The filesystem of \\\${SAVEPART} partition: \Zb\\\${SAVEFS}\ZB
Path (folder) of the pupsave:   \Zb\\\${SAVEPATH}/${NAMEONLY}\ZB
If they definitely look right, choose \Zb\\\${T_saniyes}\ZB button...
Looks ok, but you want to change the folder, choose \Zb\\\${T_sanichange}\ZB...
If anything looks wrong, choose \Zb\\\${T_notsave}\ZB...\"`"


Other translators have they contate the same problems?
Regards

_________________
Projet ASRI éducation => Association | Forum | Dépôt | Espace kids
Back to top
View user's profile Send private message Visit poster's website 
don570


Joined: 10 Mar 2010
Posts: 3782
Location: Ontario

PostPosted: Wed 18 Feb 2015, 15:11    Post subject:  

When I was testing eval_gettext in the programming section of the forum
I found that the curly brackets was giving eval_gettext problems.

The solution was to define another variable before I had to use the
eval_gettext script.

So I would try

Code:

MYVARIABLE=${T_cd}
...
...
...
$(eval_gettext "or \Zb$MYVARIABLE\ZB button to save your session back to the CD/DVD..." )"




_________________________________________
Back to top
View user's profile Send private message 
L18L

Joined: 19 Jun 2010
Posts: 2943
Location: www.eussenheim.de/

PostPosted: Fri 27 Feb 2015, 08:39    Post subject: Re: Gettext of shutdownconfig (woof-ce)
Subject description: Incomplete...
 

ASRI éducation wrote:
I dare not change the script

7 lines is a bit too long for one gettext. So I have been changing your
Code:
T_sanitext="`eval_gettext \"\Zb\Z1FINAL SANITY CHECK:\Zn\ZB
Partition you are saving to:      \Zb\\\${SAVEPART}\ZB
The filesystem of \\\${SAVEPART} partition: \Zb\\\${SAVEFS}\ZB
Path (folder) of the pupsave:   \Zb\\\${SAVEPATH}/${NAMEONLY}\ZB
If they definitely look right, choose \Zb\\\${T_saniyes}\ZB button...
Looks ok, but you want to change the folder, choose \Zb\\\${T_sanichange}\ZB...
If anything looks wrong, choose \Zb\\\${T_notsave}\ZB...\"`"   

to
Code:
T_sanitext="\Zb\Z1$(gettext 'FINAL SANITY CHECK:')\Zn\ZB
$(gettext 'Partition you are saving to: ')     \Zb${SAVEPART}\ZB
$(eval_gettext 'The filesystem of ${SAVEPART} partition: ')\Zb${SAVEFS}\ZB
$(gettext 'Path (folder) of the pupsave: ')  \Zb${SAVEPATH}/${NAMEONLY}\ZB
$(eval_gettext 'If they definitely look right, choose \Zb$T_saniyes\ZB button...')
$(eval_gettext 'Looks ok, but you want to change the folder, choose \Zb$T_sanichange\ZB...')
$(eval_gettext 'If anything looks wrong, choose \Zb${T_notsave}\ZB...')"
... no problem.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [3 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.0624s ][ Queries: 11 (0.0056s) ][ GZIP on ]