Page 13 of 15

Posted: Thu 12 Feb 2015, 19:44
by don570
transLANG, the language which is translated to
is taken from /root/.config/momanager
That explains why I was deleting /tmp/momanager and the lang name
wouldn't change :oops:
____________________________________________

Posted: Fri 13 Feb 2015, 09:54
by L18L
don570 wrote: :oops:
No reason for :oops:
Understanding each other has never been easy. :)

Posted: Sun 08 Mar 2015, 15:10
by BarryK
don570 wrote:I tried the newest APril64 again and it opened up the script properly this time :lol:
however there was one bug I noticed ---->

The first language that I used with momanager was French.
Then I switched to the Italian language. The heading still stated 'fr'
(see image)
Image

I tried this in another fresh install . I started in English and switched to French and
the heading stated 'en'
I noticed this today and fixed it.

I have edited L18L's momanager of 20141123-1.

yaf-splash is deprecated in Quirky, in favour of 'popup'.
Which was why I started to edit 'momanager' script -- to use popup if it exists.
Note, it also needs another script named 'popadd', that will be in the next release of Quirky.

Then while testing momanager, I found other things to fix, such as the bug reported by don570.

Note, I have my doubts about that CONFIG file, and being able to translate to a language that is not the current locale.
Seems a bit odd. But someone must have wanted it.

Here is my PET:
http://distro.ibiblio.org/quirky/quirky ... 150308.pet

...but the only thing different inside it is the /usr/sbin/momanager script, which you can extract and use.
I have commented my changes.

Posted: Sun 08 Mar 2015, 17:04
by L18L
BarryK wrote:Note, I have my doubts about that CONFIG file, and being able to translate to a language that is not the current locale.
Seems a bit odd. But someone must have wanted it.
Our multi-language talented translator vicmz uses different svefiles for different languages.

Momanager was never intended to be used for more than 1 language.

don570 has tried, failed and I think understood that it is for one non-English language only, I am hoping.

transLANG's only purpose is to differetiete between long or short language code, e.g. pt or pt_BR, nl or nl_BE, de or de_AT, etc.

Barry, thanks for the pet, some problems killed by simple kill commands. :lol:

Posted: Mon 09 Mar 2015, 12:37
by BarryK
Alright, I have tried to resolve the problems with transLANG, seems OK:

http://distro.ibiblio.org/quirky/quirky ... 150309.pet

Posted: Mon 09 Mar 2015, 13:50
by L18L
BarryK wrote:Alright, I have tried to resolve the problems with transLANG, seems OK:

http://distro.ibiblio.org/quirky/quirky ... 150309.pet
Thank you.
Tested

One small addition, a refresh
needed for the furious multi language translators only:
Insert

Code: Select all

refresh
after line 173

Code: Select all

#150309 do not allow transLANG to be changed to anything other than current locale
# (note, if was allowed, would have to check /usr/lib/locale has it, but I still don't like idea of translating to a different language then current locale).
xtransLANG="$(grep '^transLANG' $CONFIG | cut -f 2 -d '=' | cut -f 1 -d ' ')"
if [ "$(echo -n "$ORIGLANG12" | grep "$xtransLANG")" == "" ];then
 pupdialog --background '#FF8080' --msgbox "Sorry, but you cannot change transLANG to anything other than the current locale, '${ORIGLANG1}' or '${ORIGLANG12}'. Changing transLANG to '${ORIGLANG1}' in file ${CONFIG}" 0 0
 sed -i "s%^transLANG=.*%transLANG=${ORIGLANG1} #${ORIGLANG1} or ${ORIGLANG12}%" $CONFIG
 refresh #150309
fi

welcome1stboot

Posted: Mon 09 Mar 2015, 14:06
by L18L

Posted: Thu 12 Mar 2015, 19:58
by ASRI éducation
BarryK wrote:momanager-20150309.pet
After a first translation, enabling momanager is not possible.
I need to do further testing to understand what is happening.

Code: Select all

# momanager 

** (gtkdialog4:9144): ERROR **: gtkdialog: Error in line 20, near token 'string': syntax error

/usr/sbin/momanager: line 1626:  9018 Terminated              yaf-splash -bg orange -text "Please wait, scanning files..."
Regards,

momanager 20150309

Posted: Fri 13 Mar 2015, 09:46
by L18L
ASRI,
please try refresh (use button or delete directory /tmp/momanager) then restart momanager from console again.
Which Puppy are you using at the moment?
Thank you

Re: momanager 20150309

Posted: Sat 21 Mar 2015, 14:17
by ASRI éducation
L18L wrote:please try refresh (use button or delete directory /tmp/momanager) then restart momanager from console again.
Which Puppy are you using at the moment?
You're right, a simple restart of X enough.
Thank you for the reply and sorry for the disturbance.
I'm using a puplet based on Precise 5.7.1 and woof-CE.
Regards,

Re: momanager 20150309

Posted: Sun 22 Mar 2015, 12:44
by L18L
ASRI éducation wrote:You're right, a simple restart of X enough.
Glad to know there is no bug (detected now) :D

momanager

Posted: Thu 09 Apr 2015, 13:57
by L18L
Anyhow, there is a new version now at initial post page number 1.

some bugs fixed thanks to chief tester Bert.

Nothing really new, should be good somehow for Quirky and Fatdog, too.

Re: momanager

Posted: Thu 09 Apr 2015, 20:46
by ASRI éducation
L18L wrote:Anyhow, there is a new version now at initial post page number 1.

some bugs fixed thanks to chief tester Bert.
Merci !

Posted: Thu 07 May 2015, 02:03
by vicmz
I'm still getting the same momanager error as ASRI, after restaring X several times and all (April 7.0.4.1).

Code: Select all

# momanager
sed: -e expression #1, char 0: no previous regular expression
sed: -e expression #1, char 0: no previous regular expression

** (gtkdialog4:32342): ERROR **: gtkdialog: Error in line 11, near token 'string': syntax error

# 
Thanks to L18L's refresh mode, I was able to backup /tmp/momanager to check all refreshed files manually through Poedit from another puppy, however that goes for existing translations only. I was able to create just one non-existing translation. (Related topic: Has anyone compiled Poedit for April yet?)

The latest woof2 langpack_es is compatible with Quirky, it just needs some updating. It's available here:

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

The reason why I haven't tested April until just now is that I haven't got enough RAM in my home computer to run April (512 MB), so I'm booting from CD at work (4 GB).

Posted: Fri 08 May 2015, 08:11
by L18L
If there is any error in the code of the script MoManager cannot do its job, I guess.

It would be helpful to know the source of that non-existing translation.

Post (or PM) that script please and I will look what I can do.

Changing the code of the script requires always restart ( and refresh which deletes /tmp/momanager ) of MoManager.


----
Why not full install April to a partition?

woof-ce-testing: pdesktop translation with momanager

Posted: Sat 13 Jun 2015, 12:55
by ASRI éducation
I just created a Puppy Precise version based on the latest version of woof-ce-testing (20150611).

My problem: I can not translate the last Zigbert interfaces.
momanager does not show me the files to translate.

An example: how do you translate pdesktop Apps?

Thank you in advance for your advice.

Posted: Sat 13 Jun 2015, 17:29
by don570
Just a suggestion --->

Do the translation in a Puppy distro that is working correctly and bring the
mo files into your Precise distro.

Certain versions of momanager would not show the list of gettext'd scripts
on left side of pane.

______________________

Re: woof-ce-testing: pdesktop translation with momanager

Posted: Sat 13 Jun 2015, 17:36
by xanad
ASRI éducation wrote:I just created a Puppy Precise version based on the latest version of woof-ce-testing (20150611).

My problem: I can not translate the last Zigbert interfaces.
momanager does not show me the files to translate.

An example: how do you translate pdesktop Apps?

Thank you in advance for your advice.
pdesktop has no the 'export' to momanaqer, if you want try this in attachment
note: what other apps are not read by momanager?

MoManager

Posted: Wed 14 Oct 2015, 10:53
by L18L

Code: Select all

#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
What's new

documentation files in .md format can be translated by momanager now. All about jamesbond's mdview
POT files for TEXTDOMAINS from .md files are showing full path script and line number as usual now.

zigbert's libstartdust located under /usr/lib had never be found by momanager before.
Now it is simply managed by having added path of libstardust in momanager's find GETTEXTSCRIPTS.

Download as usual from first page.

Re: MoManager

Posted: Wed 14 Oct 2015, 11:48
by step
L18L wrote: documentation files in .md format can be translated by momanager now.
Thanks. Can you please show me an example of how a shell script would invoke mdview to show multi-language documentation?