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 10 Jul 2020, 21:46
All times are UTC - 4
 Forum index » Advanced Topics » Puppy Projects » Localization Project
New files 'gettextized' for everyone 2015
Moderators: Lobster, MU, raffy
Post new topic   Reply to topic View previous topic :: View next topic
Page 7 of 10 [142 Posts]   Goto page: Previous 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 Next
Author Message
don570


Joined: 10 Mar 2010
Posts: 5524
Location: Ontario

PostPosted: Mon 16 Nov 2015, 16:26    Post subject:  

Uextract 3.13 has been gettexted
pl and Russian by SFR

The script that has been gettexted is hidden in folder Uextract

http://www.murga-linux.com/puppy/viewtopic.php?t=87864

____________________________________________________
Back to top
View user's profile Send private message 
xanad


Joined: 28 Feb 2014
Posts: 400
Location: 2 locations: MonteRosa Alp and Milano

PostPosted: Wed 18 Nov 2015, 11:55    Post subject:  

pcdripper gettext.
It is a file for me complicated. My solution is this. I added gettext, but are recognized by momanager 73 lines instead of 89. But by manually creating from scratch the .pot everything works. So it is preferable to directly translate the .pot. Other solutions?
pcdripper-mod.tar.gz
Description 
gz

 Download 
Filename  pcdripper-mod.tar.gz 
Filesize  16.63 KB 
Downloaded  459 Time(s) 

_________________
www.xanad.tk Html5 Parallax
Back to top
View user's profile Send private message Visit poster's website 
rerwin


Joined: 24 Aug 2005
Posts: 2008
Location: Maine, USA

PostPosted: Sat 29 Feb 2020, 12:32    Post subject: Snap2 internationalized and released!  

BarryK on February 27, 2020 in his blog wrote:
Lutz (L18L in the forum) has been running into problems with a German translation of Snap2. He cannot get it to work. It seems that although Snap2 was gettexted, it hasn't actually been tested.


EDIT 3/26/2020: Get the released new version of internationalized snap2 here:
http://www.murga-linux.com/puppy/viewtopic.php?p=1053782#1053782
(End of edit)

I have replaced with eval_gettext, instances of gettext usage that contain variables.

I am unable to test translations, so need someone implementing them to test the attached experimental package with a translation file.

Snap2 appears in EasyOS/Pup but apparently not in woofCE pups, although peebee maintains the english-only version adapted for woofCE (as version 4.26) for Pups.

Please work with me (here or by PM) to correct any remaining translation issues. But I cannot help regarding messages about missing widget components.
Richard

UPDATE 3/1/20: Beta candidate attached, along with the xgettext output generated from the scripts for review only. I cannot test beyond that, so please let me know if anything further needs to be changed or added.

UPDATE 3/7/20: Final beta uploaded. It now includes an internationalized Help component derived from the readme.txt file, and fixes for the widget warning messages, as well as peebee's fix in version 4.26.

UPDATE 3/10/20: New 'final' beta uploaded. Most of the tests of user selections were not internationalized, so failed.

UPDATE 3/17/20: Uploaded beta with further refinements and some operational testing.

UPDATE 3/19/20: Uploaded beta with operation corrections and message simplification.

UPDATE 3/20/20: Uploaded beta with scrolling top section and internationalized desktop file. Note that the scroll bar goes to the end, but page-down, page-up and the mouse wheel work for scrolling.

UPDATE 3/20/20: Uploaded beta with corrected message that did not translate, replacing 20200320 version.

UPDATE 3/25/20: Uploaded release candidate which fixes occasional "broken pipe' messages and contains further internationalization.

UPDATE 3/26/20: Uploaded the final release to the thread, " snap2 rotating snapshot backups for Puppy," in Advanced Topics » Additional Software (PETs, n' stuff) » Utilities:
http://www.murga-linux.com/puppy/viewtopic.php?p=1053782#1053782

Since its messages differ from the release candidate, I am removing the RC.

Last edited by rerwin on Thu 26 Mar 2020, 16:10; edited 12 times in total
Back to top
View user's profile Send private message 
L18L


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

PostPosted: Tue 03 Mar 2020, 13:07    Post subject: Re: Snap2 and eval_gettext
Subject description: help using momanager
 

Hi Richard,

glad you are going to take that bull by the horns

rerwin wrote:
...
I am unable to test translations, so need someone implementing them to test the attached experimental package with a translation file.
...


Problem is not the translation, it is the code.
Real example: Help button at the main window. (gettext Help)
But there is no other gettext Help in the script
It is an offer without action.

Here ismy offer for you and all English-(only)-developers:
Use a pseudo language to test your code (see image please)
launch momanager create non-English ... in EasyOS or EasyPup
choose Matching TEXTDMAIN: "snap2"
Create (or Edit)

Start with just 1 translation
e.g.
Code:
msgid "Help"
msgstr "xHelpX"


test
next translations
test..........................

Quote:
But I cannot help regarding messages about missing widgit components.

MeToo Laughing Wink
english_translated_to_XenglishX.png
 Description   I am NOT the inventor of this method.
It is used by web designers since long timeas
 Filesize   51.92 KB
 Viewed   380 Time(s)

english_translated_to_XenglishX.png

Back to top
View user's profile Send private message 
rerwin


Joined: 24 Aug 2005
Posts: 2008
Location: Maine, USA

PostPosted: Sat 07 Mar 2020, 19:49    Post subject: snap2-4.27 candidate uploaded  

esmourguit in a PM to me wrote:
I send you the french .po and .mo files of snap2 on which you worked.
They seem to work.
Thank you very much for your work.

Thank you for trying my version of snap2 and sending me your translations.

I have now hopefully concluded my updates and have uploaded a candidate for version 4.27 of the snap2 package.
http://www.murga-linux.com/puppy/viewtopic.php?p=1051473#1051473
It contains fixes for the warning messages, the update from version 4.26 by peebee, and a new internationalized Help script, snap2help.

For anyone who has started translating for the previous (20200301) package, I am attaching a difference listing of xgettext outputs, so that your translations can be edited with the minor changes.

As I am inexperienced with using snap2, could someone familiar with using it please try 4.27 and let me know whether there are any remaining problems with it. I may try it myself but that will take some time, and I do not want to delay providing 4.27.
Richard
diff-snap2_mo_files.gz
Description  Minor differences in text strings between versions 20200301 and 20200307.
gz

 Download 
Filename  diff-snap2_mo_files.gz 
Filesize  649 Bytes 
Downloaded  49 Time(s) 
Back to top
View user's profile Send private message 
esmourguit


Joined: 17 Nov 2006
Posts: 1411
Location: Entre l'ile aux oiseaux.et l'ile de sainte Lucie

PostPosted: Tue 10 Mar 2020, 07:45    Post subject:  

Hello Rerwin,

First, please note that snap2help is not displayed by clicking on the Help button. Only this message appears extract from snap2 line 1307 :
Quote:
You have not specified the storage directory for all backups, on the 'BACKUP STORAGE' tab.

snap2help: modification to line 17 which had not been fully gettexted:
Code:
$(gettext 'Hard links are used to copy identical files between successive snapshot backups, resulting in a tremendous savings in backup storage space. Furthermore, during a backup, rsync only transmits 'deltas' (changes in files), and those changes are transmitted compressed.  This results in a great savings in bandwidth.')

and other problem line 61. I modified it as follows (but maybe there is a better way) in order to be able to extract a correct .po file:
Code:
$(eval_gettext 'There is a default backup exclusions file ($HOME/.snap2/$settingsdir/exclude/default), used for both mirror and snapshot backups. If the configuration option \"Add Default Exclusions\" is checked (ADVANCED tab), it will be used in addition to any directory-specific exclusions.')" >> /tmp/box_help

In this same line 61, it seems that $settingsdir does not appear in the text of snap2help, while the default directory created is of course: $HOME/.snap2/defaut.set/exclude/default.
I would be able to provide you the full french translation of snap2help as soon as possible and others modifications in snap2 and snap2engine .mo files.

Regards
JJ M

_________________
Toutou Linux - Paquets français
Back to top
View user's profile Send private message 
rerwin


Joined: 24 Aug 2005
Posts: 2008
Location: Maine, USA

PostPosted: Tue 10 Mar 2020, 13:18    Post subject:  

Thank you, JJ, for your feedback. I have corrected the two message errors you reported.

The 'Help' pop-up led me to discover that almost all tests of user responses were not internationalized, so no actions would be detected. I think I have corrected them all, but cannot yet verify the activities.

I note, however, that the SAVE button does nothing -- there is no code for it. Supposedly, all other options somehow do a "save".

I am trusting that the logic all works in the non-international 4.25 version and that any discrepancies are due to internationalization. I hope.

Get package snap2-4.27-beta-20200310, above.
http://www.murga-linux.com/puppy/viewtopic.php?p=1051473#1051473
Back to top
View user's profile Send private message 
L18L


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

PostPosted: Tue 10 Mar 2020, 15:06    Post subject: Help
Subject description: Hilfe
 

Helps translated Help

Code:
# <button><label>$(gettext 'Help')</label></button>
<button><label>$(gettext 'Help')</label><action>snap2help</action></button>


Code:
   fi
#elif [ "$exit1" = "Help" ]; then
#   if which snap2help &>/dev/null; then #200306...
#      snap2help
#   else
#      showfile /usr/share/doc/snap2/readme.txt
#   fi
elif [ "$FILE_DIRECTORY" != "" -o "$FILE_DIRECTORY2" != "" ]; then


Small changes in snap2help (attached)

translated
tested
ok

Wink

===================

edit

removing just fake .gz is not enough
file must also be executable
snap2help.png
 Description   
 Filesize   47.71 KB
 Viewed   279 Time(s)

snap2help.png

snap2help.gz
Description  remove fake .gz
gz

 Download 
Filename  snap2help.gz 
Filesize  11.19 KB 
Downloaded  49 Time(s) 

Last edited by L18L on Wed 11 Mar 2020, 12:58; edited 1 time in total
Back to top
View user's profile Send private message 
esmourguit


Joined: 17 Nov 2006
Posts: 1411
Location: Entre l'ile aux oiseaux.et l'ile de sainte Lucie

PostPosted: Wed 11 Mar 2020, 07:48    Post subject:  

Hello to all of you,

I modified snap2help with the modifications given by L18L, and the translation works perfectly. I also gettexted line 145 to internationalize the title of the Help window.
Then I modified line 659 in snap2, and commented lines 1297 to 1302, as indicated also by L18L, and the 'Help' button works perfectly now.

Regards,
JJ M

_________________
Toutou Linux - Paquets français
Back to top
View user's profile Send private message 
L18L


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

PostPosted: Thu 12 Mar 2020, 08:39    Post subject: snap2
Subject description: gtkmsgbox
 

Hello Richard, JJ and world Laughing

Testing UPDATE 3/10/20

translations done

minor issue: GUI does not fit on screen 1368x768 , too high.

major issue: tab LOGS & REPORTS

button Backup Tools

got that message which I do not understand. Do you? Shocked

-------------------------------

Code:
   export MSG_DIALOG="<frame $(gettext 'Message')><hbox>


-------------------------------

BTW, Delete Selected Snapshot does not work with me (translated)

and these other items sould be translatable:

User
Settings
none
never

------------------

to be continued ...........
Help_me _understand_this_please .png
 Description   
 Filesize   16.9 KB
 Viewed   221 Time(s)

Help_me _understand_this_please .png

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


Joined: 17 Nov 2006
Posts: 1411
Location: Entre l'ile aux oiseaux.et l'ile de sainte Lucie

PostPosted: Thu 12 Mar 2020, 13:22    Post subject:  

Hello,

I just tested snap2 without the .mo file, it works. But not using the .mo file.
So there is a problem in the .mo file.
Is it only with the French .mo file?

Regards,
JJ M

_________________
Toutou Linux - Paquets français
Back to top
View user's profile Send private message 
L18L


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

PostPosted: Thu 12 Mar 2020, 13:57    Post subject: snap2
Subject description: French
 

Hello JJ,
you wrote:
Hello,

I just tested snap2 without the .mo file, it works. But not using the .mo file.
So there is a problem in the .mo file.
Is it only with the French .mo file?

Regards,
JJ M

looks like you did not do what
rerwin wrote:
Get package snap2-4.27-beta-20200310, above.
http://www.murga-linux.com/puppy/viewtopic.php?p=1051473#1051473
(There is just 1 download which was done by me)

Regards
Back to top
View user's profile Send private message 
rerwin


Joined: 24 Aug 2005
Posts: 2008
Location: Maine, USA

PostPosted: Thu 12 Mar 2020, 16:48    Post subject:  

L18L wrote:
major issue: tab LOGS & REPORTS

button Backup Tools

"Error: Please choose a backup for the action."

got that message which I do not understand. Do you?

Would it help understanding if I add "Select a backup on which to act:" above the input field? The message is due to the absence of text in the input box. Apparently the box provides a list of the detected/remembered backup archives. Maybe "backup" should be "backup set", assuming the displayed names would end in ".set".
Screenshot.png
 Description   Resultant window
 Filesize   18.25 KB
 Viewed   196 Time(s)

Screenshot.png

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


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

PostPosted: Fri 13 Mar 2020, 07:32    Post subject: snap2
Subject description: Error
 

Richard,

sorry, no. Not at all.
Because I do not get that gtkdialog which your screenshot is showing

That
Error: Please choose a backup ....
is on my screen directly after having cklicked "Backup Tools" button,
and it is staying there after clicking OK button.

Launched without translation, inserted some echos (logs, COMBO, choice)

Code:
# LANGUAGE=en snap2
logs=<item>recent.1 (log available) 2020-03-13 12:03</item><item>recent.2 (log available) 2020-03-12 13:08</item><item>recent.3 (log available) 2020-03-12 10:29</item><item>mirror (log available) 2020-03-12 10:57</item>

** (gtkdialog:26865): ERROR **: 12:11:30.400: gtkdialog: Error in line 1, near token 'string': syntax error

COMBO=
choice=

Hope that helps...
or are we using different scripts ....
Back to top
View user's profile Send private message 
esmourguit


Joined: 17 Nov 2006
Posts: 1411
Location: Entre l'ile aux oiseaux.et l'ile de sainte Lucie

PostPosted: Fri 13 Mar 2020, 13:01    Post subject:  

Hello,
@ L18L, Sorry, I had not seen this update. Now i use that version.
Indeed now a part of snap2 works, but not the deletion of a snapshot backup, in the DIRECTORIES TO BACK UP tab.
I got that gtkdialog, see image.
But there is a problem in the LOGS & REPORTS tab, as it is possible to delete a backup, it is not possible to quit, except by clicking on the upper right cross.
Regards,
JJ M
edit
I found why the window does not close by clicking on Exit, i modified line 1062 :
Code:
if [ "$EXIT" = "$(gettext 'EXIT')" -o "$EXIT" = "abort" ]; then
Image.png
 Description   
 Filesize   27.83 KB
 Viewed   157 Time(s)

Image.png


_________________
Toutou Linux - Paquets français
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 7 of 10 [142 Posts]   Goto page: Previous 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 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.0966s ][ Queries: 12 (0.0196s) ][ GZIP on ]