Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Thu 31 Jul 2014, 17:40
All times are UTC - 4
 Forum index » Advanced Topics » Puppy Projects » Localization Project
official (momanager) language packs
Moderators: Lobster, MU, raffy
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 12 [174 Posts]   Goto page: 1, 2, 3, ..., 10, 11, 12 Next
Author Message
L18L

Joined: 19 Jun 2010
Posts: 2505
Location: Burghaslach, Germany somewhere also known as "Hosla"

PostPosted: Mon 01 Oct 2012, 13:13    Post subject:  official (momanager) language packs
Subject description: hacks and fastest momanager you have ever seen
 

EDIT
download recent MoManager from http://www.murga-linux.com/puppy/viewtopic.php?t=81259&start=173
_______________________________________________

In his_blog
BarryK wrote:
I think that L18L and others were modifying 'pinstall.sh' in their langpacks, but now need to consider return to the official pinstall.sh script.

Yes, and I have been working on this issue, returned to use the official pinstall.sh with one small modification and I hope this can be integrated into the official, just 1 (the green one) line:
------------------
edit 2012-10-12: Yes, it is official now, see comment 11 Oct 2012, 8:05 on http://bkhome.org/blog/?viewDetailed=03007
------------------

end of my pinstall.sh wrote:
if [ "`pwd`" = "/" ];then #installing PET in a running puppy.
if [ "$LANG1" != "en" ];then
#need to update SSS translations...
fixscripts
fixdesk
fixmenus
[ -r /pinstall_hacks.sh ] && . /pinstall_hacks.sh #120929
pupdialog --background green --backtitle "Language Pack" --msgbox "Sprachpaket installiert, voll wirksam nach Neustart des X-Servers" 0 0 &
fi
fi


And here is my successfully tested file pinstall_hacks.sh:

Code:
#pinstall_hacks.sh
#sourced by pinstall.sh of /usr/share/doc/langpack-template
#                          ================================
#
#120510 L18L disable LANG=C enables translations of gparted
#120816 L18L cups doc
#120929 L18L add link to english original into translated /usr/share/doc/index.html
#121001 L18L create home-en.htm from home-raw-en.htm

echo "#------------------------------------
Running pinstall.sh_hacks..."
#------------------------------------

[ `sed -i 's/^export LANG=C/#export LANG=C/' usr/sbin/gparted_shell` ] || echo '#$LANG=C in gparted_shell' #120510

#120816 cups doc
cupsVERSION=`grep CUPS usr/share/cups/templates/header.tmpl | cut -d'<' -f2 | cut -d ' ' -f4`
cupsVERSION=`echo ${cupsVERSION}| cut -d'.' -f1,2`
cp -a tmp/cups/${cupsVERSION}/doc usr/share           2>/dev/null #1.3 1.4
cp -a tmp/cups/${cupsVERSION}/doc-root usr/share/cups 2>/dev/null #1.5
[ `cp -a tmp/cups/${cupsVERSION}/templates usr/share/cups` ] || echo "cups templates"

# i like my translations having a link back to the originals

# my home-raw.htm has a link to original english home-en.htm
# we need to create home-en.html:
. etc/DISTRO_SPECS # has $DISTRO_NAME
[ "`sed -e \"s#DISTRO_NAME#$DISTRO_NAME#\" usr/share/doc/home-raw-en.htm > usr/share/doc/home-en.htm`" = "" ] && echo home-en for $DISTRO_NAME created #121001

# index-en.html does NOT exist. generate from index-top and index-bottom
# or easier: take that from .sfs if existent
# change from ... aus dem Englischen Origial im ...
#          to ... aus dem <a href="/initrd/pup_ro2/usr/share/doc/index.html">Englischen Origial</a> im ...
[ "`sed -i -e 's# Englischen Original # <a href=\"/initrd/pup_ro2/usr/share/doc/index.html\">Englischen Original</a> #' /usr/share/doc/index.html.top-raw`" = "" ] && echo backlink to original index inserted #120929

#------------------------------------
echo "...pinstall.sh_hacks finished
#------------------------------------"

langpack-template is always a link to a directory on /mnt/home so I can create langpacks from different puppies.
------------------
edit 2012-10-12: changed links from absolute to relative (Barry's advice)
------------------
my_langpack-template.png
 Description   link from /usr/share/doc
 Filesize   8.57 KB
 Viewed   1743 Time(s)

my_langpack-template.png


Last edited by L18L on Wed 26 Mar 2014, 14:06; edited 11 times in total
Back to top
View user's profile Send private message 
L18L

Joined: 19 Jun 2010
Posts: 2505
Location: Burghaslach, Germany somewhere also known as "Hosla"

PostPosted: Mon 01 Oct 2012, 13:40    Post subject: official (momanager) language packs
Subject description: langpack-template
 

If you are curious what is inside the langpack-template here is langpack_de-20121001.pet
Smile
Back to top
View user's profile Send private message 
L18L

Joined: 19 Jun 2010
Posts: 2505
Location: Burghaslach, Germany somewhere also known as "Hosla"

PostPosted: Fri 12 Oct 2012, 10:24    Post subject: official (MoManager) language packs
Subject description: pinstall_hacks.sh
 

Using a customized file pinstall_hacks.sh is officially supported now.
See first post.
Back to top
View user's profile Send private message 
L18L

Joined: 19 Jun 2010
Posts: 2505
Location: Burghaslach, Germany somewhere also known as "Hosla"

PostPosted: Wed 10 Apr 2013, 11:47    Post subject: momanager  

Inspired by our Danish Puppian maans
and Karl Godt
here is official momanager extended by a small check routine.

If you want the official momanager back
it is in /initrd/pup_ro2/usr/sbin in a frugal install.

feed back appreciated
Have fun Very Happy

--------------------------------------------------------
[edit 2013-05-04]

Attachment (24 downloads) deleted because improvement is in official momanager now.
see http://bkhome.org/blog2/?viewDetailed=00215
Back to top
View user's profile Send private message 
L18L

Joined: 19 Jun 2010
Posts: 2505
Location: Burghaslach, Germany somewhere also known as "Hosla"

PostPosted: Sun 05 May 2013, 11:53    Post subject: momanager
Subject description: fast as fast can
 

Before 2 minutes once and 2 minutes after each action
Now 2 minutes once and 2 seconds after each action

How that?
Storing right and left lists
update (move from right to left) only after successful creation

Code:
#121124 edit script_strings.*, 'read -r' so backslash chars are not escapes.
#130502 L18L/BK: stay in a loop if there is an error converting .po to .mo.
#130503 test if .po file changed.
#130503 L18L: rename AppInfo.xml to AppInfo.xml.in for langpack
#130505 L18L: quick version: caching variables in CACHE/... from 2m to 2s


Attached is latest momanager and pinstall.sh
[edit] .. and fixmenus which is also a bit faster [/edit]

Have fun Very Happy

[edit] Attachments deleted because there is all in one download and updated 5 posts below.

Last edited by L18L on Sun 12 May 2013, 11:58; edited 1 time in total
Back to top
View user's profile Send private message 
vicmz


Joined: 15 Jan 2012
Posts: 1087

PostPosted: Sun 05 May 2013, 19:58    Post subject:  

The new momanager is real fast Cool
And now a multilingual derivative is possible, too.
Thanks so much, L18L.

_________________
OB Precise 14.07.26 Woof-CE|Puppy Linux en español
Back to top
View user's profile Send private message 
rodin.s

Joined: 22 Sep 2010
Posts: 338
Location: Ukraine

PostPosted: Mon 06 May 2013, 06:18    Post subject: fast momanager  

It's really great. Thank you from me too.
Back to top
View user's profile Send private message 
L18L

Joined: 19 Jun 2010
Posts: 2505
Location: Burghaslach, Germany somewhere also known as "Hosla"

PostPosted: Mon 06 May 2013, 07:44    Post subject: momanager
Subject description: bug fix
 

#130506 [ ! diff... ] -> diff...

please find the 2 lines in /usr/sbin/momanager containing
[ ! diff

remove the square brackets [ and ] and the !

Barry has found this see http://bkhome.org/blog2/?viewDetailed=00216 Smile
Back to top
View user's profile Send private message 
Bert


Joined: 30 Jun 2006
Posts: 915

PostPosted: Tue 07 May 2013, 06:56    Post subject:  

Yes, thanks from me also L18L.

What a difference!

_________________


Back to top
View user's profile Send private message 
L18L

Joined: 19 Jun 2010
Posts: 2505
Location: Burghaslach, Germany somewhere also known as "Hosla"

PostPosted: Sun 12 May 2013, 11:55    Post subject: momanager
Subject description: fast version update
 

Though the fast version did not yet make it into woof
Barry has aknowledged new translators.

Thus I have to upgrade the fast version to "aknowledge new translators" too.

One other improvement:
/tmp/momanager was never emptied before (at reboot only)

Now it is emptied at each launch of momanager.
If you are running into problems (no creation of po file possible)
a deletion of /tmp/momanager has helped sometimes before.

Now you should just close momanager and restart.
The restart will empty /tmp/momanager.

----

edit

attachment momanager-20130512.tar.gz (8 times downloaded) deleted
use[url] http://www.murga-linux.com/puppy/viewtopic.php?t=81259&start=85[/url]

Last edited by L18L on Sun 09 Jun 2013, 08:23; edited 4 times in total
Back to top
View user's profile Send private message 
Bert


Joined: 30 Jun 2006
Posts: 915

PostPosted: Sun 12 May 2013, 12:05    Post subject:  

Great, just when I needed a fresh copy of momanager. Wink

A question L18L: Is the sanity check for UTF-8 part of your new Momanager?
Yesterday I lost about 2.5 hours of translating, because of the file not being utf-8. When saving my work, Momanager closed, gave a list of curses, and left me with an empty .po..

.poo in the .pot Laughing

_________________



Last edited by Bert on Sun 12 May 2013, 14:50; edited 1 time in total
Back to top
View user's profile Send private message 
Bert


Joined: 30 Jun 2006
Posts: 915

PostPosted: Sun 12 May 2013, 12:07    Post subject:  

deleted, reply no longer relevant
_________________



Last edited by Bert on Sun 12 May 2013, 15:32; edited 1 time in total
Back to top
View user's profile Send private message 
L18L

Joined: 19 Jun 2010
Posts: 2505
Location: Burghaslach, Germany somewhere also known as "Hosla"

PostPosted: Sun 12 May 2013, 12:11    Post subject:  

Bert wrote:
Is the sanity check for UTF-8 part of your new Momanager?

It is not a special check
It is just the error messages you get when using console.
Code:
msgfmt TEXTDOMAIN.po

Errors are written to console. You can try it.
But you are using poeditor?
No idea how it is there. rodin.s to the rescue Wink
Back to top
View user's profile Send private message 
Bert


Joined: 30 Jun 2006
Posts: 915

PostPosted: Sun 12 May 2013, 12:56    Post subject:  

Thanks for explaining.

Yes, I mostly use Poedit, sometimes Geany for quick changes and also Don570's handy right-click mo-po utility.

In Poedit it's just a matter of discipline ( yes, I know the word Embarassed )... always make sure the 'catalogue' is updated and checking if file is utf-8 and if not changing it to utf-8...before saving.




_________________


Back to top
View user's profile Send private message 
L18L

Joined: 19 Jun 2010
Posts: 2505
Location: Burghaslach, Germany somewhere also known as "Hosla"

PostPosted: Tue 14 May 2013, 05:48    Post subject:  

Bert wrote:

So you are waited hand and foot Laughing

http://www.redensarten-index.de/suche.php?suchbegriff=~~Hand%20und%20Fuss%20haben&suchspalte[]=rart_ou
Sorry, German only Embarassed

Nice image Arrow momanager's logo Smile
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 12 [174 Posts]   Goto page: 1, 2, 3, ..., 10, 11, 12 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Puppy Projects » Localization Project
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0885s ][ Queries: 13 (0.0061s) ][ GZIP on ]