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/

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....

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

bug

#291 Post by L18L »

business as usual:

create binary has a bug

does not change to UTF-8

this results in error: invalid multibyte sequence
and no mo file is created.

will be fixed soon (or later).
EDIT: This bug is affecting only binaries
you can use this version:
simply change ASCII to UTF-8 while editing the po file.





Anyone hunted another bug?


________________________

bug fixed in version 20170707 see initial post please.

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

MoManager

#292 Post by L18L »

Some bugs fixed

New features

for translators
configurable drop-down (see image)

for developers
support custom TEXTDOMAINDIR (e.g /usr/local/app/locale)

download momanager-20170815 from this post.
Attachments
MoManager_main_window.png
(29.25 KiB) Downloaded 960 times
momanager-20170815.pet
(37.32 KiB) Downloaded 742 times

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

Re: bug

#293 Post by L18L »

L18L wrote:Anyone hunted another bug?
A bug hunter at [url]http://barryk.org/news/?viewDetailed=00652[/url] wrote:Just a note: currently there is a bug with latest momanager, so I am using an older version.

Hope this was not meant for momanager-20170815 :wink:

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

#294 Post by don570 »

A possible bug??

I didn't check this out much , but I'll report this anyway.


To switch to the various languages from English I tried an unusual method in Xerus64.
I typed 'quicksetup' in terminal and then I clicked on a flag.
I checked that the language was changed by typing 'echo $LANG'
in terminal. However momanger didn't recognize the language.


Maybe I forgot to restart Xwindows?

______________________________________________

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

momanager bug

#295 Post by L18L »

don570 wrote:Maybe I forgot to restart Xwindows?
I made a similiar experiment in Fatdog, trying with French:

Code: Select all

# LANG=fr momanager

(process:28136): Gtk-WARNING **: Locale not supported by C library.
	Using the fallback 'C' locale.
Next try:

Code: Select all

# LANG=fr_CA.UTF-8 momanager
/usr/sbin/momanager: line 3171: 28464 Terminated              yaf-splash -bg orange -text "$1"
# LANG=fr_CA.UTF-8 momanager
/usr/sbin/momanager: line 3171: 28643 Terminated              yaf-splash -bg orange -text "$1"

 /usr/sbin/momanager -> reenter -> MATCH_TEXTDOMAIN=easyhelp
Please wait, building cache, scanning files...

/usr/sbin/momanager: line 3171: 28973 Terminated              yaf-splash -bg orange -text "$1"
create_actual_file easyhelp.pot METHOD=gettext
Created easyhelp.po.
urxvt: default locale unavailable, check LC_* and LANG variables. Continuing.
Please wait, creating tarball MoManager-fr-UNKNOWN.tar.gz...

move lines of /tmp/momanager/cache/NOMO_XML containing "easyhelp" to begin of /tmp/momanager/cache/YESMO_XML_ALL
create_po_file_from SOURCE_LIST=/tmp/momanager/cache/YESMO_XML
which: no easyhelp in (/usr/local/bin:/usr/bin:/usr/sbin:/bin:/sbin:/opt/qt5/bin)
/usr/sbin/momanager: line 3171: 29767 Terminated              yaf-splash -bg orange -text "$1"
Successfully created a tarball MoManager-fr-UNKNOWN.tar.gz

Left click on mo file:

Code: Select all

msgid ""
msgstr ""
"Project-Id-Version: welcome.sh VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-08-19 19:30+0200\n"
"PO-Revision-Date: 2017-08-19 19:30+0200\n"
"Last-Translator: fido@localhost\n"
"Language-Team: none\n"
"Language: fr\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"

msgid "Help for Easy"
msgstr "Aide pour Easy"

Thus I answer your question: no, restartX not required.
But a refresh in momanger has to be done.

Thanks for your feedback.
Attachments
fr_test.png
(38.36 KiB) Downloaded 854 times
Last edited by L18L on Sat 19 Aug 2017, 18:06, edited 2 times in total.

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

#296 Post by don570 »

(process:28136): Gtk-WARNING **: Locale not supported by C library.
Using the fallback 'C' locale.
I remember seeing that error!
__________________________________

Tip: refreshing or deleting /tmp files is necessary when switching from
one language to another while translating.

_________________________________________________________

Question: I can't install Easy linux. Is the help system compatible with
my app for a multilingual help system?
Explained here...
http://45.33.15.200/puppy/viewtopic.php ... c13fd6266c
________________________________

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

#297 Post by L18L »

don570 wrote:Tip: refreshing or deleting /tmp files is necessary when switching from
one language to another while translating.
refreshing is also required if code changed (devs use to do this)
Question: I can't install Easy linux. Is the help system compatible with
my app for a multilingual help system?
Explained here...
http://45.33.15.200/puppy/viewtopic.php ... c13fd6266c
________________________________
I have also no installatiuon of Easy linux, just worked a little behind the curtains...
http://barryk.org/news/?viewDetailed=00652

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

#298 Post by don570 »

refreshing is also required if code changed (devs use to do this)
Good point. I noticed that refreshing was necessary when I modified my
script with more gettext strings.
________________________________________________________

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

m omanager

#299 Post by L18L »


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

#300 Post by BarryK »

I have modified MoManager a little bit, just tidied up the differences between Puppy, Fatdog and EasyOS.

'momanager' is builtin to EasyOS (in rootfs-skeleton/usr/sbin in woofQ), not a PET. Here is the latest script, with a false .gz, see attached.

I have also written a how-to for EasyOS:

https://easyos.org/dev/translate-easyos ... guage.html
Attachments
momanager.gz
false .gz, place at /usr/sbin
(170.99 KiB) Downloaded 179 times
[url]https://bkhome.org/news/[/url]

Post Reply