official (momanager) language packs

For efforts in internationalising Puppy and solving problems in this area
Message
Author
User avatar
L18L
Posts: 3479
Joined: Sat 19 Jun 2010, 18:56
Location: www.eussenheim.de/

mdview

#271 Post by L18L »

Known issues and limitations

Prioritized language preferences via environment variable LANGUAGE are not supported. Find-n-run honors the system locale code that environment variable LANG displays - when a matching translation file is installed.
That's bad news.
In my system (all languages loades) this for example works:

Code: Select all

LANGUAGE=es findnrun
And

Code: Select all

LANGUAGE=zh_CN  findnrun
also because I have renamed the mo file to the value of TEXTDOMAIN.

User avatar
ASRI éducation
Posts: 3197
Joined: Sat 09 May 2009, 12:10
Location: France
Contact:

Re: MoManager

#272 Post by ASRI éducation »

L18L wrote:#151010
We could add a version date (always useful).
Regards

EDIT: this variable already exists. See below the message of L18L.
Attachments
momanager_20151021.jpg
(72.68 KiB) Downloaded 1080 times
Last edited by ASRI éducation on Fri 23 Oct 2015, 09:27, edited 1 time in total.
Projet ASRI éducation => [url=http://asri-education.org/]Association[/url] | [url=http://forum.asri-education.org/]Forum[/url] | [url=http://dl01.asri-education.org/]Dépôt[/url] | [url=http://kids.asri-education.org/]Espace kids[/url]

User avatar
L18L
Posts: 3479
Joined: Sat 19 Jun 2010, 18:56
Location: www.eussenheim.de/

Re: MoManager

#273 Post by L18L »

ASRI éducation wrote:
L18L wrote:#151010
We could add a version date (always useful).
Regards
Yes, always useful.

At the moment the version is a tooltip for the "yellow star" icon at the bottom of main window.
It is somewhat hidden or should I say "not obvious"?
Putting it into the title bar is good.

But please: no new variable "AppVersion".

My "lastUPDATEofTHISscript" is automatically filled with the date of last comment, e.g. "#151021"
# grep -n lastUPDATEofTHISscript momanager
139:lastUPDATEofTHISscript="` grep -E '^$' -B 1 $0 | head -n 1 | cut -d ' ' -f1`" # sort of version
1872: <button tooltip-markup="<span>About momanager (date of last local database update is <b>${lastUPDATEofTHISscript}).</b></span>">
#
If this is in the title bar you can remove it from line 1872
just to please our friend who wrote:_________________
"Logical entities must not be multiplied needlessly." / "Il ne faut pas multiplier les êtres logiques inutilement." (Ockham)
Cordialement

User avatar
ASRI éducation
Posts: 3197
Joined: Sat 09 May 2009, 12:10
Location: France
Contact:

Re: MoManager

#274 Post by ASRI éducation »

L18L wrote:At the moment the version is a tooltip for the "yellow star" icon at the bottom of main window.
It is somewhat hidden or should I say "not obvious"?
Putting it into the title bar is good.
Ok.
L18L wrote:But please: no new variable "AppVersion".

My "lastUPDATEofTHISscript" is automatically filled with the date of last comment, e.g. "#151021"
You've obviously right.
Sorry, I had not noticed the variable lastUPDATEofTHISscript.
L18L wrote:date of last local database update is $lastUPDATEofTHISscript
This variable indicates the modification date of the main script. In my humble opinion, this has no relation to the date of the database.

Some possible changes:

Code: Select all

--- ./momanager	2015-10-10 20:15:21.000000000 +0200
+++ /usr/sbin/momanager	2015-10-22 21:18:44.000000000 +0200
@@ -108,6 +108,7 @@
 #150829 create_a_txz (fatdog package)
 #151001 translate also .md files (see function get_prop), use AUTHORSPECS in write.log, some code clean up
 #151010 fixed pot for mdview; added path of zigbert's stardustlib
+#151022 ASRI: add version information in title bar of main GUI
 
 #***MOMANAGER IS ENGLISH ONLY (NOT GETTEXT'ED)***
 #it is for use by developers/translators with knowledge of english.
@@ -133,7 +134,7 @@
 
 [ "$2" ] && searchENTRY="$2" || searchENTRY='search term' #130604
 
-lastUPDATEofTHISscript="` grep -E '^$' -B 1 $0 | head -n 1 | cut -d ' ' -f1`" # sort of version
+lastUPDATEofTHISscript="` grep -E '^$' -B 1 $0 | head -n 1 | cut -d ' ' -f1 | cut -d '#' -f2`" # sort of version
 
 # working directories
 WD=/tmp/momanager; mkdir -p $WD    #140308
@@ -255,7 +256,7 @@
 ttSEARCH="${ttSEARCH} line of found '${searchENTRY}'"
 [ "$CONTEXT_AFTER" -eq 1 ] && ttSEARCH="$ttSEARCH and $CONTEXT_AFTER line after"
 [ "$CONTEXT_AFTER" -gt 1 ] && ttSEARCH="$ttSEARCH and $CONTEXT_AFTER lines after"
-ttSEARCH="${ttSEARCH}. (You can configure the number of these context lines in Preferences)"
+ttSEARCH="${ttSEARCH}. You can configure the number of these context lines in Preferences."
 
 export LANG=C
 . /etc/rc.d/PUPSTATE
@@ -1722,7 +1723,7 @@
 if [ "$POEDITOR" ];then
  [ -e /var/local/poedit_check ] && POEDIT_CHECK='true'
 # POEDIT_XML="<checkbox><label>Tick to use poedit (instead of text editor)</label><default>${POEDIT_CHECK}</default><variable>POCHECK</variable></checkbox> <text><label>"    "</label></text>"
- POEDIT_XML="<checkbox tooltip-markup="<span>Tick to use <b>poeditor</b> or untick to use <b>defaulttexteditor</b></span>"><label>Use poedit</label><default>${POEDIT_CHECK}</default><variable>POCHECK</variable></checkbox>"
+ POEDIT_XML="<checkbox tooltip-markup="<span>Tick to use <b>poeditor</b> or untick to use <b>defaulttexteditor</b>.</span>"><label>Use poedit</label><default>${POEDIT_CHECK}</default><variable>POCHECK</variable></checkbox>"
 fi
 #POEDIT_XML="$POEDIT_XML <text width-request="$(($WINDOW_WIDTH - 726 + 42))"><label>" "</label></text>" #130613 filler to keep buttons xalign left
 
@@ -1744,12 +1745,12 @@
 
 #### main window
 
-MM2_DLG="<window title="MoManager : ${PUPPY} files" resizable="false" icon-name="${WINICON}">
+MM2_DLG="<window title="MoManager (v$lastUPDATEofTHISscript)" resizable="false" icon-name="${WINICON}">
 
  <vbox>
 
   <hbox>
-   <text use-markup="true" width-request="$((WINDOW_WIDTH + 130))"><label>"First: you need to get all of the files on the right-side drop-down lists over to the left-side lists to ${TRANSLATE} to your <b>${transLANG}</b> language. Then check the left column to update/verify translations."</label></text>
+   <text use-markup="true" width-request="$((WINDOW_WIDTH + 130))"><label>"First, get all of the files on the right-side drop-down lists over to the left-side lists to ${TRANSLATE} to your <b>${transLANG}</b> language. Then, check the left column to update/verify translations."</label></text>
 </hbox>
 
   <hbox>
@@ -1855,7 +1856,7 @@
    ${POEDIT_XML}  
     
    <hbox>
-   <entry width-chars="12" tooltip-markup="<span>Note, this search is <b>case sensitive</b>. To find all <i>please</i> or <i>Please</i> type: '<i>please|Please</i>' or just '<i>[p|P]lease</i>' (without the quotes!)</span>">
+   <entry width-chars="12" tooltip-markup="<span>Note, this search is <b>case sensitive</b>. To find all <i>please</i> or <i>Please</i> type: '<i>please|Please</i>' or just '<i>[p|P]lease</i>' (without the quotes!).</span>">
     <default>$searchENTRY</default>
     <variable>searchENTRY</variable>
    </entry>
@@ -1866,10 +1867,11 @@
    
    ${PETHELP_XML}
 	
-	<button tooltip-markup="<span>About momanager (date of last local database update is <b>${lastUPDATEofTHISscript}).</b></span>">
+	<button tooltip-markup="<span>About momanager.</span>">
 	<input file stock="gtk-about"></input>
-	<action>pupdialog --background '#8080FF' --backtitle 'MoManager: About' --msgbox 'Created by Barry Kauler for Puppy Linux. (c) Copyright Barry Kauler 2012, license GPL3 (refer /usr/share/doc/legal) \\n\\n \
-	Forked by L18L 2013 for faster usage and for Fatdog ' 0 0 & </action></button>
+	<action>pupdialog --background '#8080FF' --backtitle 'MoManager: About' --msgbox 'Created by Barry Kauler for Puppy Linux. (c) Copyright Barry Kauler 2012, license GPL3 (refer /usr/share/doc/legal). \\n\\n \
+	Forked by L18L 2013 for faster usage and for Fatdog. \\n\\n \
+	Current version of momanager = $lastUPDATEofTHISscript. ' 0 0 & </action></button>
    
    <button tooltip-text="Preferences: change some defaults in a text editor.">
    <input file stock="gtk-preferences"></input>
@@ -1879,7 +1881,7 @@
 	<input file stock="gtk-refresh"></input>
 	<action>EXIT:refresh</action></button>
 
-   <button tooltip-text="Create a ${LANGPACK}_${transLANG}.">
+   <button tooltip-markup="<span>Create a <b>${LANGPACK}_${transLANG}</b>.</span>">
    <input file stock="gtk-yes"></input>
    <action>EXIT:create_pet</action></button>

Très cordialement,
Attachments
momanager-20151022.tar.gz
file /usr/sbin/momanager
(34.86 KiB) Downloaded 583 times
Projet ASRI éducation => [url=http://asri-education.org/]Association[/url] | [url=http://forum.asri-education.org/]Forum[/url] | [url=http://dl01.asri-education.org/]Dépôt[/url] | [url=http://kids.asri-education.org/]Espace kids[/url]

User avatar
L18L
Posts: 3479
Joined: Sat 19 Jun 2010, 18:56
Location: www.eussenheim.de/

Re: MoManager

#275 Post by L18L »

ASRI éducation wrote:
L18L wrote:date of last local database update is $lastUPDATEofTHISscript
This variable indicates the modification date of the main script. In my humble opinion, this has no relation to the date of the database.

Yes, and I even don‘t know what this „database" should be.
I cannot recall who has introduced  „last local database update“.
Suggest to use just your „AppVersion“ for this and forget my „lastUPDATEofTHISscript“.

ASRI, I am glad to see your list of possible changes.
See my comments and make the changes please.
And I will point to this (your) AppVersion of momanger at page 1 of this thread.

Très très cordialement

My comments (hope that anyone understands them):
---
+#151022 ASRI: add version information in title bar of main GUI

OK
---
-lastUPDATEofTHISscript="‘ grep -E ‚^$‘ -B 1 $0 | head -n 1 | cut -d ' ' -f1‚“ # sort of version
+lastUPDATEofTHISscript="‘ grep -E ‚^$‘ -B 1 $0 | head -n 1 | cut -d ' ' -f1 | cut -d ‚#‘ -f2‚“ # sort of version

Insert 20 and everyone will see it is year
+AppVersion="20‘ grep -E ‚^$‘ -B 1 $0 | head -n 1 | cut -d
' ' -f1 | cut -d ‚#‘ -f2‚“
---
 [ „$CONTEXT_AFTER“ -gt 1 ] && ttSEARCH="$ttSEARCH and $CONTEXT_AFTER lines after“

OK. (I have never used a change)
---
POEDIT

OK, the dot, point, full stop.
---
MM2_DLG
use AppVersion
---
remove text
“: you need to

User avatar
ASRI éducation
Posts: 3197
Joined: Sat 09 May 2009, 12:10
Location: France
Contact:

#276 Post by ASRI éducation »

@ L18L
OK. This will be done soon.
Projet ASRI éducation => [url=http://asri-education.org/]Association[/url] | [url=http://forum.asri-education.org/]Forum[/url] | [url=http://dl01.asri-education.org/]Dépôt[/url] | [url=http://kids.asri-education.org/]Espace kids[/url]

User avatar
vicmz
Posts: 1262
Joined: Sun 15 Jan 2012, 22:47

poedit

#277 Post by vicmz »

Here is poedit 1.4.6 compiled in Slacko 6.3.0 32bit:

https://yadi.sk/d/4i6N5lH5rFqfr

The db44 pet is not required since it is already present in Slacko but it is available just in case. See the Notes.txt

Also, there is a pet for precise, made from deb packages.
Last edited by vicmz on Mon 25 Apr 2016, 04:45, edited 1 time in total.
[url=http://murga-linux.com/puppy/viewtopic.php?t=76948]Puppy Linux en español[/url]

User avatar
L18L
Posts: 3479
Joined: Sat 19 Jun 2010, 18:56
Location: www.eussenheim.de/

momanager

#278 Post by L18L »

ASRI éducation wrote:@ L18L
OK. This will be done soon.
I have seen that there are 15 downloads of 20151022 now.
Is your patch already in that file or not?
I am a little bit confused now.
vicmz wrote:Here is poedit 1.4.6
thanks for that.

User avatar
L18L
Posts: 3479
Joined: Sat 19 Jun 2010, 18:56
Location: www.eussenheim.de/

MoManager

#279 Post by L18L »

Code: Select all

#151022 ASRI: add version information in title bar of main GUI, and many other fixes.
#151108 support mdview option path; t12s_ scripts as functions; no more external scripts
#151230 new hybrid METHODs (e.g. t12s and/or gettext and/or mdview using same TEXTDOMAIN)
Download as usual from first page.

User avatar
ASRI éducation
Posts: 3197
Joined: Sat 09 May 2009, 12:10
Location: France
Contact:

Re: MoManager

#280 Post by ASRI éducation »

L18L wrote:version 20151230
Merci !
Projet ASRI éducation => [url=http://asri-education.org/]Association[/url] | [url=http://forum.asri-education.org/]Forum[/url] | [url=http://dl01.asri-education.org/]Dépôt[/url] | [url=http://kids.asri-education.org/]Espace kids[/url]

User avatar
L18L
Posts: 3479
Joined: Sat 19 Jun 2010, 18:56
Location: www.eussenheim.de/

momanager

#281 Post by L18L »

What's new

Create English and non-English translations e.g. en_CA :lol:

Run it for just one TEXTDOMAIN

Get it from page 1.

Have fun

User avatar
BarryK
Puppy Master
Posts: 9392
Joined: Mon 09 May 2005, 09:23
Location: Perth, Western Australia
Contact:

#282 Post by BarryK »

[url]https://bkhome.org/news/[/url]

User avatar
L18L
Posts: 3479
Joined: Sat 19 Jun 2010, 18:56
Location: www.eussenheim.de/

2016-04-10

#283 Post by L18L »

BarryK wrote:Thanks, guys, I've got it:

http://barryk.org/news/?viewDetailed=00332
That 1st of April version did not hold what it promises. :lol:

But here it is, the momanager for developers.

Use it in English
Restrict it to a TEXTDOMAIN
Let momanger create TEXTDOMAIN.pot

(or create an en_AU mo :wink: )
Attachments
momanager-20160410_match_TEXTDOMAIN.png
momanager also for English developers
(24.38 KiB) Downloaded 582 times

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

#284 Post by don570 »

I tested momanager-20160410-x86_64-PET.txz on fatdog arm and fatdog 702
I couldn't use them :cry:


A safe way of using yaf-splash . This is supported by the version
distributed by Barry in WOOF.

Code: Select all

yaf-splash -timeout 0   -bg orange  -bw 4 -outline 0 -margin 10 -text  "$(gettext 'Sorry. No network was found.')
yaf-splash -bg orange -text "Please wait, scanning files..."

--> can be made more attractive with -outline 0


'-close never' option is incompatible with Barry's yaf-splash
_____________________________________________________

First of all fatdog arm

It needs pupdialog t12s mdview popup popadd
root:~# momanager
/usr/sbin/momanager: line 194: pupdialog: command not found
which: no pupdialog in (/usr/local/bin:/usr/bin:/usr/sbin:/bin:/sbin)


_______________________________________________________


yaf-splash -close never -bg orange -text "Please wait," ---> won't work
momanager:494: yaf-splash ${CLOSE} -bg orange -text "Please wait, searching for \"$pattern\" in all ${transLANG}/LC_MESSAGES/*mo files..." & #131002
_______________________________________
root:~# mdview
sh: mdview: command not found

_______________
root:~# t12s
sh: t12s: command not found
_____________________
root:~# popup
sh: popup: command not found
___________________________________
root:~# popadd
sh: popadd: command not found

momanager:543: popadd 'name=mmpop2 terminate=now|'
---------------------------------------------------------------------

fatdog 702 is similar but does have mdview and pupdialog

# popup
sh: popup: command not found
# t12s
sh: t12s: command not found

Apparently spelling error .See image.
Attachments
screenshot99-momanager.png
(13.98 KiB) Downloaded 583 times

User avatar
vicmz
Posts: 1262
Joined: Sun 15 Jan 2012, 22:47

pMusic 5.0.1

#285 Post by vicmz »

Has anyone tried to update pMusic translations?

I am unable to update translations for pMusic 5.0.1, I should get a .po of about 500 lines but I get a 48-line .po instead! And the pMusic interface appears completely in English. :shock:

I tried several Momanager versions including the latest, in the most up-to-date puppies.

pMusic 4.7.4 translates perfectly, pMusic 5.0.1 does not.
[url=http://murga-linux.com/puppy/viewtopic.php?t=76948]Puppy Linux en español[/url]

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

#286 Post by don570 »

I noticed that in Slacko 6 , yaf-splash is a link to box-splash
so it will support more options.
_______________________________________________

User avatar
vicmz
Posts: 1262
Joined: Sun 15 Jan 2012, 22:47

Re: pMusic 5.0.1

#287 Post by vicmz »

vicmz wrote:Has anyone tried to update pMusic translations?

I am unable to update translations for pMusic 5.0.1, I should get a .po of about 500 lines but I get a 48-line .po instead! And the pMusic interface appears completely in English. :shock:

I tried several Momanager versions including the latest, in the most up-to-date puppies.

pMusic 4.7.4 translates perfectly, pMusic 5.0.1 does not.
I edited the scripts that had TEXTDOMAIN missing and was able to create a .pot with all the 500+ lines, but pMusic still refused to translate the interface. Then:

http://www.murga-linux.com/puppy/viewto ... 780#913780

Either something to fix directly in Woof-CE, or maybe to include a line in the pinstall that creates that symlink (this last one will only work by installing the langpack after changing the system locale, not before).
[url=http://murga-linux.com/puppy/viewtopic.php?t=76948]Puppy Linux en español[/url]

User avatar
L18L
Posts: 3479
Joined: Sat 19 Jun 2010, 18:56
Location: www.eussenheim.de/

momanager

#288 Post by L18L »

New version 20170630 published
see initial post

- for developers
- for English of all flavours (GB HK DK ZA ...)
- for full installed systems, too (tested with Barry's Easy)
- also for md files (mdview)
- layout tested with Fatdog and Easy

step
Posts: 1349
Joined: Fri 04 May 2012, 11:20

#289 Post by step »

L18L, welcome back to the i18n business!
[url=http://murga-linux.com/puppy/viewtopic.php?t=117546]Fatdog64-810[/url]|[url=http://goo.gl/hqZtiB]+Packages[/url]|[url=http://goo.gl/6dbEzT]Kodi[/url]|[url=http://goo.gl/JQC4Vz]gtkmenuplus[/url]

User avatar
L18L
Posts: 3479
Joined: Sat 19 Jun 2010, 18:56
Location: www.eussenheim.de/

momanager for developers

#290 Post by L18L »

step wrote:L18L, welcome back to the i18n business!
Thank you.

You are the one who gave me the idea to create pot files with comments from source....

Post Reply