official (momanager) language packs

For efforts in internationalising Puppy and solving problems in this area
Message
Author
User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

#241 Post 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:
____________________________________________

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

#242 Post by L18L »

don570 wrote: :oops:
No reason for :oops:
Understanding each other has never been easy. :)

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

#243 Post 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.
[url]https://bkhome.org/news/[/url]

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

#244 Post 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:

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

#245 Post by BarryK »

Alright, I have tried to resolve the problems with transLANG, seems OK:

http://distro.ibiblio.org/quirky/quirky ... 150309.pet
[url]https://bkhome.org/news/[/url]

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

#246 Post 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

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

welcome1stboot

#247 Post by L18L »


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

#248 Post 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,
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 20150309

#249 Post 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

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

Re: momanager 20150309

#250 Post 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,
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 20150309

#251 Post by L18L »

ASRI éducation wrote:You're right, a simple restart of X enough.
Glad to know there is no bug (detected now) :D

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

momanager

#252 Post 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.

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

Re: momanager

#253 Post 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 !
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

#254 Post 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).
[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/

#255 Post 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?

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

woof-ce-testing: pdesktop translation with momanager

#256 Post 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.
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
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

#257 Post 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.

______________________

User avatar
xanad
Posts: 400
Joined: Fri 28 Feb 2014, 14:56
Location: 2 locations: MonteRosa Alp and Milano
Contact:

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

#258 Post 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?
Attachments
pdesktop_mod.tar.gz
(1.04 KiB) Downloaded 669 times
[url]http://www.xanad.tk[/url] Html5 Parallax

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

MoManager

#259 Post 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.

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

Re: MoManager

#260 Post 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?
[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]

Post Reply