Page 14 of 15
mdview
Posted: Tue 20 Oct 2015, 15:20
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:
And
also because I have
renamed the mo file to the value of TEXTDOMAIN.
Re: MoManager
Posted: Wed 21 Oct 2015, 11:06
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.
Re: MoManager
Posted: Thu 22 Oct 2015, 08:39
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
Re: MoManager
Posted: Thu 22 Oct 2015, 22:50
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,
Re: MoManager
Posted: Fri 23 Oct 2015, 09:52
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
Posted: Sun 25 Oct 2015, 00:51
by ASRI éducation
@ L18L
OK. This will be done soon.
poedit
Posted: Fri 20 Nov 2015, 23:19
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.
momanager
Posted: Sat 21 Nov 2015, 09:50
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.
MoManager
Posted: Wed 30 Dec 2015, 10:15
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.
Re: MoManager
Posted: Fri 01 Jan 2016, 19:29
by ASRI éducation
L18L wrote:version 20151230
Merci !
momanager
Posted: Fri 01 Apr 2016, 12:47
by L18L
What's new
Create English and non-English translations e.g. en_CA
Run it for just one TEXTDOMAIN
Get it from
page 1.
Have fun
Posted: Sat 02 Apr 2016, 00:38
by BarryK
2016-04-10
Posted: Sat 09 Apr 2016, 10:31
by L18L
That 1st of April version did not hold what it promises.
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
)
Posted: Thu 28 Apr 2016, 19:14
by don570
I tested momanager-20160410-x86_64-PET.txz on fatdog arm and fatdog 702
I couldn't use them
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.
pMusic 5.0.1
Posted: Sat 30 Apr 2016, 20:55
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.
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.
Posted: Mon 02 May 2016, 18:38
by don570
I noticed that in Slacko 6 , yaf-splash is a link to box-splash
so it will support more options.
_______________________________________________
Re: pMusic 5.0.1
Posted: Tue 19 Jul 2016, 03:58
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.
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).
momanager
Posted: Thu 29 Jun 2017, 09:32
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
Posted: Fri 30 Jun 2017, 06:07
by step
L18L, welcome back to the i18n business!
momanager for developers
Posted: Fri 30 Jun 2017, 07:56
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....