official (momanager) language packs

For efforts in internationalising Puppy and solving problems in this area
Post Reply
Message
Author
akarui.tenshi
Posts: 4
Joined: Tue 30 Oct 2012, 01:22

L18L... i have a doubt

#136 Post by akarui.tenshi »

Hi... L18L i have a doubt,

what is the meaning of this expression:

LANG="`grep '^LANG=' /etc/profile | cut -f 2 -d '=' | cut -f 1 -d ' '`"

I think that this expression means
LANG (the current language of puppy) "cut f 2" (use only two bytes to recognize the language?)

I'm confused, because, for example (in my case), pt_BR and pt_PT both of them have the same 2 first bytes 'pt' but they aren't the same language, they have differences like the US english and the UK english...

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

Re: L18L... i have a doubt

#137 Post by L18L »

akarui.tenshi wrote:Hi... L18L i have a doubt,

what is the meaning of this expression:

LANG="`grep '^LANG=' /etc/profile | cut -f 2 -d '=' | cut -f 1 -d ' '`"

I think that this expression means
LANG (the current language of puppy) "cut f 2" (use only two bytes to recognize the language?)

I'm confused, because, for example (in my case), pt_BR and pt_PT both of them have the same 2 first bytes 'pt' but they aren't the same language, they have differences like the US english and the UK english...
cut -f 2 -d '=' means
cut field number 2 where field delimiter is =
thus everything after =

Code: Select all

cut --help
helps

I do not understand the meaning of the next cut
"everything before blank" ?
should be dot.

if line
LANG=pt_PT.UTF8
in /etc/profile
then LANG will be pt_PT

This line in /etc/profile is updated by script

Code: Select all

chooselocale
.

Where did you find this "LANG=...." ?

Do continue to post all of your doubts here please.
You are the first translator to a language where the letters after the underscore are important. So you might find some bugs. :wink:

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

momanager

#138 Post by L18L »

What's new?

Code: Select all

#131013 L18L delete harmful pot files
#131014 L18L WINDOW_WIDTH no more in preferences
#131015 L18L output directory MOMADIR for MoManager-* files configurable by preferences
#131013 L18L delete harmful pot files
These are the files that prevent momanager from creating an actual pot file.
Nothing harmful happens because they continue to exist inside devx file...

#131014 L18L WINDOW_WIDTH no more in preferences
window width is "computed" from screen width....1180px max.

#131015 L18L output directory MOMADIR for MoManager-* files configurable by preferences

These files are not needed if you are the maintainer of the language_pack.
They are needed if you want to contribute a single translation and send it to the maintainer or the developper of the app.

All files created by momanager (but not the languagepack) are written into this directory.
Type in whatever you wish as directory name, this directory will be created if it is not already existing.
Example1: MOMADIR=/root/MoManager-files (Bert's suggestion)
Example2: MOMADIR=/mnt/home/momanager-files (outside of save file)
Example3: MOMADIR=/tmp/momanager-files (no persistance!)
Example4: MOMADIR=/dev/null (no existence at all 8) )
Attachments
ffmm-20131015.png
window at max width
(26.17 KiB) Downloaded 1068 times
momanager-20131015.pet
(29.63 KiB) Downloaded 675 times

User avatar
Bert
Posts: 1103
Joined: Fri 30 Jun 2006, 20:09

#139 Post by Bert »

MoManager 20131015 is the best ever!

It 'remembered' my settings. Nice.
It stretched itself, filling about two-thirds of my screen. Nice.

So far , it didn't go after the bad ('harmful') guys in /usr/share/doc/nls, but I'm confident it will, when creating a new pet.

Just to illustrate the greatness of this new FFMM: I installed a new puplet, added the devx and, without thinking too much about what I was doing, clicked 'MoManager' in the menu... Up came the original MoManager...it still works, but feels like an old snail crawling through tired molasses...

Just incredible how L18L has implemented little incremental improvements over the months and how MoManager has benefited from all those careful steps!

Of course I was eager to use the new option to save the momanager-dump to another place than /root. I chose /mnt/home/momanager-files as the new directory and lord-and-behold, it was created. But, the first translation I saved was not sent to this new folder, instead it arrived in the old place: /root, which already looked like a composting pile with all these translation files littering it.
It will maybe take a few more translations to persuade MM to send the dump to /mnt/home/...?

To paraphrase current political news: "A source close to the steering committee, who prefers to stay anonymous, told us that FFMM has already been chosen as the default puppy internationalization tool." :lol:


Image
[url=http://pupsearch.weebly.com/][img]http://pupsearch.weebly.com/uploads/7/4/6/4/7464374/125791.gif[/img][/url]
[url=https://startpage.com/do/search?q=host%3Awww.murga-linux.com%2F][img]http://i.imgur.com/XJ9Tqc7.png[/img][/url]

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

#140 Post by L18L »

Bert,

thank you for the nice words!

But I could not have done it without you
who has always given feedback and made good suggestions.

folder in /mnt/home,
I did not test it before, just /root/MOMA.
Now I changed it in preferences

Code: Select all

CONS_HEIGHT=20                # number of characters
#MOMADIR=/root/MOMA            # (existing or not) directory for storing resulting files
MOMADIR=/mnt/home/MOMA-files  # (existing or not) directory for storing resulting files
..and it has been used instantly (

Code: Select all

# pwd
/initrd/mnt/dev_save/MOMA-files
# ls
MoManager-de-UExtract-2.3-in  MoManager-de-UExtract-2.3-in.tar.gz
# 
)

other puplet
I have been trying it in luci528 without success (because window just 1 byte wide)

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

MoManager

#141 Post by L18L »

Who needs it?
Everyone who uses FatDog64 or lupu5.2.8.6

What is new?

Code: Select all

#131026 L18L fit for fatdog64 has gettext in /etc; pupdialog needs declaration as dependency
#131027 L18L fit for lupu-5.2.8.6 
In lupu5286 (Lucid Linux) the automatic window width and height do not work. Fix is:

Code: Select all

read ISSUE < /etc/issue #131027
if [ "$ISSUE" = "Lucid  Linux" ];then
 MM2_DLG="<window width-request=\"$((${WINDOW_WIDTH}+132))\"  height-request=\"450\" title=\"Forked Fast MoManager : Puppy files\"    resizable=\"true\" icon-name=\"${WINICON}\" window-position=\"1\">"
else
 MM2_DLG="<window title=\"Forked Fast MoManager : Puppy files\" resizable=\"false\" icon-name=\"${WINICON}\">"
fi
Attachments
momanager-20131027.pet
(30 KiB) Downloaded 521 times

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

momanager

#142 Post by L18L »

What's new?

Code: Select all

#131028 added animation for translation of Comment in /usr/share/applications/*.desktop 
#131029 support for language=Glade added (-j join existing)
#131104 insert 'export TEXTDOMAIN=' into *.sh.xml.sh (temporary copy of *.sh.xml)
#131110 acknowledge Bert's MM-standalone.pet instead of devx
Details

#131028 added animation for translation of Comment in /usr/share/applications/*.desktop
:arrow: Fatdog's internationalized control panel uses them as tooltips

#131029 support for language=Glade added (-j join existing)
:arrow: supporting fatdog's use of internationalisation in gtk server

#131104 insert 'export TEXTDOMAIN=' into *.sh.xml.sh (temporary copy of *.sh.xml)
:arrow: no manual insertion of "TEXTDOMAIN=..." required

#131110 acknowledge Bert's MM-standalone.pet as alternative to devx
:arrow: nice idea :D

---
edit
after 2 downloads re-uploaded disabling test on devx

----
edit after 4 downloads re-uploaded because "pet made in fatdog" did not work in puppy
Attachments
momanager-20131110.pet
4th upload fixed bug found by Bert
(30.61 KiB) Downloaded 527 times
result_of_dir2pet_in_fatdog_and_precise.png
(29.17 KiB) Downloaded 860 times

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

momanager

#143 Post by L18L »

what's new

Code: Select all

#131206 make it fatdog compatible, LANGPACK=langpack | langpack_fatdog
Fatdog needs puppy's langpack.

Code: Select all

#131212 support t12s method
If you don't know what it is you won't need it

Code: Select all

#131219 enable quirky6.0: no check on pupmode
May be of interest if you cannot have frugal install, only full install

Thus it might be not for everyone. :wink:

...and here is a screenshot
Attachments
momanager-20131219.pet
(34.74 KiB) Downloaded 540 times

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

momanager

#144 Post by L18L »

New Year - new momanager

Version 20130101
containing just some fixes for bugs detected by Finnish translator zephyr2 who has no frugal install.

That is why I have extended momanager to work with full install, tested in Quirky6.0

EDIT: xgettext, etc do yet NOT work in Quirky6.1

EDIT: works in Quirky if you install gettext-0.18.3.1.tar.bz2 from
http://ftp.nluug.nl/ftp/pub/os/Linux/di ... 2/quirky6/
Attachments
momanager-20140101.pet
(35.04 KiB) Downloaded 528 times

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

FFMM is dead

#145 Post by L18L »

FFMM is dead
Long live momanager.
Yes, I will put your latest momanager pet into quirky 6.1.1.
see
http://www.murga-linux.com/puppy/viewto ... &start=207.
Attachments
momanager-20140104.pet
(35.15 KiB) Downloaded 634 times

User avatar
Bert
Posts: 1103
Joined: Fri 30 Jun 2006, 20:09

#146 Post by Bert »

Great! Congrats...
Attachments
group_clapping_sm_wm.gif
(41.07 KiB) Downloaded 1252 times
[url=http://pupsearch.weebly.com/][img]http://pupsearch.weebly.com/uploads/7/4/6/4/7464374/125791.gif[/img][/url]
[url=https://startpage.com/do/search?q=host%3Awww.murga-linux.com%2F][img]http://i.imgur.com/XJ9Tqc7.png[/img][/url]

rodin.s
Posts: 344
Joined: Wed 22 Sep 2010, 19:50
Location: Ukraine

Slacko

#147 Post by rodin.s »

Latest momanagers do not work on latest Slacko (5.6.5.1, 5.6.5.2). I use version 20130620 which works.

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

Re: Slacko

#148 Post by L18L »

rodin.s wrote:Latest momanagers do not work on latest Slacko (5.6.5.1, 5.6.5.2). I use version 20130620 which works.
I will check momanager in slacko. Thank you, Sergey

...and thank you, Bert

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

Re: Slacko

#149 Post by L18L »

L18L wrote:
rodin.s wrote:Latest momanagers do not work on latest Slacko (5.6.5.1, 5.6.5.2). I use version 20130620 which works.
I will check momanager in slacko. Thank you, Sergey
Fix: remove the geometry :lol:
#MM1RET="`$GTKDIALOGEXE --program=MM2_DLG --geometry 0x0+0-0 `" #131014
MM1RET="`$GTKDIALOGEXE --program=MM2_DLG `" #140105

Thanks again. :D

gettext-tools (dev activated) installed , no devx 8)
EDIT: gettext-tools frpm slacko's package manager
Last edited by L18L on Sun 05 Jan 2014, 12:47, edited 1 time in total.

User avatar
Bert
Posts: 1103
Joined: Fri 30 Jun 2006, 20:09

#150 Post by Bert »

Hi L18L -and happy NY!-,

Are you talking about these gettext-tools?

We're still in festive mood here...a real hiatus, unlike Barry's :lol:

Thanks!
[url=http://pupsearch.weebly.com/][img]http://pupsearch.weebly.com/uploads/7/4/6/4/7464374/125791.gif[/img][/url]
[url=https://startpage.com/do/search?q=host%3Awww.murga-linux.com%2F][img]http://i.imgur.com/XJ9Tqc7.png[/img][/url]

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

#151 Post by L18L »

Bert wrote:Are you talking about these gettext-tools?
I was talking about gettext-tools in slacko's package manager.
Don't know whether it is the same or not. :oops:

Bon appétit :lol: :lol: :lol:

User avatar
mariojrmatos
Posts: 12
Joined: Fri 03 Jan 2014, 18:32
Location: OFC: PT and NL | DMA: Worldwide
Contact:

MoManager

#152 Post by mariojrmatos »

Great work, L18L.

Thanks to Barry, you, Bert and vicmz I was able to release the first pt_PT translation for Puppy. (see why).

I can't express my gratitude... :wink:

__________________
Puppy Linux em português de Portugal (pt_PT) | Puppy Linux em português do Brasil (pt_BR: brevemente)

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

Re: MoManager

#153 Post by L18L »

mariojrmatos wrote:I can't express my gratitude...
Yes you can
You have done it right now
Thank you and welcome.

:D

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

#154 Post by don570 »

I was using momanager in Quirky tahr , it worked well however I realized
that the .desktop file is not appropriate for language packs.
It requires translations of the name so that non-English speakers
can understand the function of program.
Barry Kauler needs to be notified of this problem.

Code: Select all

[Desktop Entry]
Encoding=UTF-8
Name=MoManager create non-English Puppy
Name[fr]=MoManager - pour traduire
Name[de]=MoManager - Übersetzung kontrollieren
Icon=chooselocale.xpm
Comment=MoManager create non-English translations
Exec=momanager
Terminal=false
Type=Application
Categories=X-Utility-development
GenericName=MoManager


User avatar
Botanic
Posts: 240
Joined: Wed 05 Sep 2007, 10:54
Location: Toulouse, France

FR language pack issue

#155 Post by Botanic »

Hello guys,
I just installed Slacko with a full install, then downloaded the lang_pack_fr and loaded it, but nothing happened.
I tried launching Momanager from the console and it complains that PUPMODE = 3 (full install) thus aborting.

Maybe the correct way was to install it when I ran it the first time, before doing the full install? Is there a way to do it now? (I just spent the all day yesterday to set it up!! ^^)
Puppy 2.16 on HP Vectra VL400 - PIII 800 MHz - 320M RAM
Wary on Acer Aspire X3200 - Phenom X4 - 2.2GHz - 4G RAM

Post Reply