(OLD) (ARCHIVED) Puppy Linux Discussion Forum Forum Index (OLD) (ARCHIVED) Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info

This forum can also be accessed as http://oldforum.puppylinux.com
It is now read-only and serves only as archives.

Please register over the NEW forum
https://forum.puppylinux.com
and continue your work there. Thank you.

 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups    
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Thu 24 Sep 2020, 07:10
All times are UTC - 4
 Forum index » House Training » Users ( For the regulars )
PPM2
Moderators: Flash, Ian, JohnMurga
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies. View previous topic :: View next topic
Page 16 of 18 [262 Posts]   Goto page: Previous 1, 2, 3, ..., 14, 15, 16, 17, 18 Next
Author Message
L18L


Joined: 19 Jun 2010
Posts: 3493
Location: www.eussenheim.de/

PostPosted: Sat 17 Oct 2015, 12:53    Post subject: petget
Subject description: unclutter TEXTDOMAIN
 

Here mavrothal wrote:
OK then.
Hopefully your script will work


Attached script will.

put it into /usr/local/petget
make it executable
click it

There is nothing specific to petget inside.
Should be fine for further usage.

Code:
#!/bin/sh
# Change TEXTDOMAIN in each script of current directory $(pwd) to TEXTDOMAIN=$newTEXTDOMAIN.
# Merge exising translations
.
.
.
# /create mo files

echo "
That's it. Press ENTER key to close."
read dummy
exit 0
single_textdomain.gz
Description  put it into /usr/local/petget
remove fake .gz
make it executable
click it
gz

 Download 
Filename  single_textdomain.gz 
Filesize  3.7 KB 
Downloaded  252 Time(s) 
Back to top
View user's profile Send private message 
mavrothal


Joined: 24 Aug 2009
Posts: 3108

PostPosted: Sun 18 Oct 2015, 06:54    Post subject: Re: petget
Subject description: unclutter TEXTDOMAIN
 

L18L wrote:

Attached script will.

Nice!
Was failing to change the TEXTDOMAIN of the scripts but the following changes fixes it
Code:
--- a/single_textdomain   2015-10-18 12:38:59.000000000 +0300
+++ b/single_textdomain   2015-10-18 13:36:35.000000000 +0300
@@ -4,13 +4,13 @@
 
 die () { echo $1; exit 1;}
 
-PATTERN='^export TEXTDOMAIN='
+PATTERN='export TEXTDOMAIN='
 newTEXTDOMAIN="`basename $(pwd)`"
 TITLE="All scripts in $(dirname $0): change to TEXTDOMAIN=$newTEXTDOMAIN"
 
 [ -t 0 ] || exec rxvt -geometry "90x30" -title "$TITLE" encodings=eu+vn+jp+jp-ext+kr+zh+zh-ext -e "$0" "$@"
 
-grep -w "${PATTERN}${newTEXTDOMAIN}" * && { echo ; die "Sorry, default newTEXTDOMAIN ${newTEXTDOMAIN} alrady exists";}
+grep -w "^${PATTERN}${newTEXTDOMAIN}" * && { echo ; die "Sorry, default newTEXTDOMAIN ${newTEXTDOMAIN} alrady exists";}
 
 NUM=$(grep -n -m 1 "$PATTERN" * | wc -l)
 [ $NUM -eq 0 ] && die "nothing to do here, no '$PATTERN' found in $(pwd)." \
@@ -19,7 +19,7 @@
 script  : line number  : PATTERN
 --------------------------------"
 
-for f in * ; do grep -H -n -m 1 "$PATTERN" $f || continue ; done
+for f in * ; do grep -H -n -m 1 "^$PATTERN" $f || continue ; done
 echo "--------------------------------"
 echo "newTEXTDOMAIN is $newTEXTDOMAIN.
  Please make sure this is not yet in use.
@@ -45,12 +45,12 @@
 for f in *
 do
  [ -f $f ] || continue
- oldTEXTDOMAIN="`grep -m 1 "$PATTERN" $f `"
+ oldTEXTDOMAIN="`grep -m 1 "^$PATTERN" $f `"
  oldTEXTDOMAIN=${oldTEXTDOMAIN##*=}
  [ "$oldTEXTDOMAIN" ] || continue
 
- echo sed -i "s/${PATTERN}${oldTEXTDOMAIN}/${PATTERN}${newTEXTDOMAIN}/" $f
- # sed -i "s/${PATTERN}${oldTEXTDOMAIN}/${PATTERN}${newTEXTDOMAIN}/" $f
+ #echo sed -i "s/${PATTERN}${oldTEXTDOMAIN}/${PATTERN}${newTEXTDOMAIN}/" $f
+  sed -i "s/^${PATTERN}${oldTEXTDOMAIN}/${PATTERN}${newTEXTDOMAIN}/" $f
 
  # from momanager
     # LANG=${ORIGLANG} xgettext -o ${ATEXTDOMAIN}.pot -j --from-code=UTF-8  --keyword=_ -L Shell --no-wrap -f ./xEXTRASCRIPTS >/dev/null # --keyword= is additional
@@ -67,7 +67,7 @@
 for f in *
 do
  [ -f $f ] || continue
- oldTEXTDOMAIN="`grep -m 1 "$PATTERN" $f `" && oldTEXTDOMAIN=${oldTEXTDOMAIN##*=}
+ oldTEXTDOMAIN="`grep -m 1 "^$PATTERN" $f `" && oldTEXTDOMAIN=${oldTEXTDOMAIN##*=}
  [ "$oldTEXTDOMAIN" ] || continue
  # for transLANG in de
  for transLANG in $(ls /usr/share/locale)

Attach the modified one.

Could be a nice base for generating .pot and .mo files from anything.
If it is made to accept arguments in addition to the defaults (ie run from within the folder) then
Code:
single_textdomain [path_to_input] [new_text_domain] [path_to_output]
could do the job.

You may want to move it to its own thread if you decide to go that way.
single_textdomain.gz
Description 
gz

 Download 
Filename  single_textdomain.gz 
Filesize  1.55 KB 
Downloaded  245 Time(s) 

_________________
== Here is how to solve your Linux problems fast ==
Back to top
View user's profile Send private message 
L18L


Joined: 19 Jun 2010
Posts: 3493
Location: www.eussenheim.de/

PostPosted: Sun 18 Oct 2015, 08:10    Post subject: Re: petget
Subject description: unclutter TEXTDOMAIN
 

mavrothal wrote:
L18L wrote:

Attached script will.

Nice!
Was failing to change the TEXTDOMAIN of the scripts but the following changes fixes it
It is intended to be used only by geeks who know this:
Code:
#
Wink

mavrothal wrote:
Could be a nice base for generating .pot and .mo files from anything.
No.
For generating a .pot file from different sources see:
Code:
xgettext --help

For generating a .mo file from a .po file see:
Code:
msgfmt --help


This script was made just to help you continue debugging your ppm2. Laughing
Back to top
View user's profile Send private message 
mavrothal


Joined: 24 Aug 2009
Posts: 3108

PostPosted: Sun 18 Oct 2015, 09:09    Post subject: Re: petget
Subject description: unclutter TEXTDOMAIN
 

L18L wrote:
This script was made just to help you continue debugging your ppm2. Laughing

I see. Thanks.
But,
a) PPM2 is far from mine
b) PPM2 has no bugs ( Shocked that I know of - report if otherwise)
c) I do not want to continue anything with PPM (but if #b in not true, I may try Wink )

As a matter of fact the difficulties in translations were brought to my attention few days back by xanad (before of all the commotion here) and he was just declared it solved. Very Happy (last famous words Rolling Eyes )

_________________
== Here is how to solve your Linux problems fast ==
Back to top
View user's profile Send private message 
L18L


Joined: 19 Jun 2010
Posts: 3493
Location: www.eussenheim.de/

PostPosted: Sun 18 Oct 2015, 11:14    Post subject: Re: petget
Subject description: translations
 

As for what you call "difficulties in translations"

I call it buggy intenationalization

The solution which I have demonstrated ("of the") was just one example. Hope you (or who is feeling responsible) find the other mis-coded messages.

cheers
Back to top
View user's profile Send private message 
mavrothal


Joined: 24 Aug 2009
Posts: 3108

PostPosted: Sun 18 Oct 2015, 11:19    Post subject: Re: petget
Subject description: translations
 

L18L wrote:
Hope you (or who is feeling responsible) find the other mis-coded messages.

If you have them handy please report them.
I can not fix a problem I do not have.
I attache all the gettetxt strings in current PPM in case you or anybody else spots any issues.
Corrections in English spelling or syntax are also very welcome (did not even go through a spell check ever Rolling Eyes - got a couple already...)
petget.pot.gz
Description 
gz

 Download 
Filename  petget.pot.gz 
Filesize  8.17 KB 
Downloaded  266 Time(s) 

_________________
== Here is how to solve your Linux problems fast ==
Back to top
View user's profile Send private message 
Pelo

Joined: 10 Sep 2011
Posts: 12591
Location: Mer méditerrannée (1 kms°)

PostPosted: Fri 23 Oct 2015, 01:38    Post subject: PPM V2 tried with PRER, nothing wrong
Subject description: I aim Racy PPM to use Ubuntu repositories
 

PPM V2 tried with PRER*, nothing wrong
I aim Racy PPM to use Ubuntu repositories. It is not beforehand won, but not lost either.
Tried with Baobab to load from Ubuntu-vivid-main . It works.
PPM2 seems to work whatever ubuntu repository is, if well adressed.
*PRER : Puppy Racy Extended Range 5.5

_________________
Passenger Pelo ! don't ask him to repair the aircraft. Don't use him as a demining dog .... pleeease.

Last edited by Pelo on Fri 23 Oct 2015, 02:47; edited 2 times in total
Back to top
View user's profile Send private message Yahoo Messenger 
mavrothal


Joined: 24 Aug 2009
Posts: 3108

PostPosted: Fri 23 Oct 2015, 01:49    Post subject: Re: PPM V2 tried with PRER, nothing wrong
Subject description: I aim Racy PPM to use Ubuntu repositories
 

Pelo wrote:
PPM V2 tried with PRER*, nothing wrong

Yes PPM2 worked in Racy 5.5 with libsturdust.
Just keep in mind that the pet in the first page is outdated and not supported.
If issues with it, take the relevant files from woof-CE:testing and see if they are fixed there.

_________________
== Here is how to solve your Linux problems fast ==
Back to top
View user's profile Send private message 
slavvo67

Joined: 12 Oct 2012
Posts: 1625
Location: The other Mr. 305

PostPosted: Sat 24 Oct 2015, 15:21    Post subject:  

I was recently using an older version of Slacko and it struck me what strides were made with PPM2. PPM2 makes it difficult to revert back to the original.

Thanks Mav.

Slavvo67
Back to top
View user's profile Send private message 
augras

Joined: 11 Nov 2013
Posts: 1492
Location: france

PostPosted: Tue 29 Dec 2015, 13:38    Post subject:  

Hi,
I'm looking for the french translation and asriedu told few pages before it was ready. Is there a problem to include this translation ?
Thanks,
Philippe
Back to top
View user's profile Send private message 
mavrothal


Joined: 24 Aug 2009
Posts: 3108

PostPosted: Tue 29 Dec 2015, 17:29    Post subject:  

augras wrote:
I'm looking for the french translation and asriedu told few pages before it was ready. Is there a problem to include this translation ?

I'm not sure I understand the question.
Are you asking if ASRI's translation is OK? (I do not know)
Are you asking to include this translation with the PPM files? (contact your puppy builder).
Are you asking to make a PPM pet with the translation files included? (Ask the translator).
Something else?

_________________
== Here is how to solve your Linux problems fast ==
Back to top
View user's profile Send private message 
augras

Joined: 11 Nov 2013
Posts: 1492
Location: france

PostPosted: Wed 30 Dec 2015, 05:59    Post subject:  

Hi,
ASRI éducation wrote:
mavrothal wrote:
PPM2 is now in the testing branch

Thank you mavrothal.
French translation is ready.

The Asri's translation seems to be ok since a long time now.
Usually there is a NLS.pet or the packet is update with the translations when they are on, but nothing for PPM2.
It's a long work to translate. A translation is ready but nothing else !
A translation is not in relation with a particular puppy.
I ask to Asri.
Philippe
Back to top
View user's profile Send private message 
mavrothal


Joined: 24 Aug 2009
Posts: 3108

PostPosted: Wed 30 Dec 2015, 16:52    Post subject:  

augras wrote:
The Asri's translation seems to be ok since a long time now.
Usually there is a NLS.pet or the packet is update with the translations when they are on, but nothing for PPM2.
It's a long work to translate. A translation is ready but nothing else !
A translation is not in relation with a particular puppy.

PPM is part of woof and its translation goes with the "big" language specific pet for the puppies.
Regarding the pet in the first post of this thread, is 7-8 months old and at the time no NLS pet was available or ever made available.

_________________
== Here is how to solve your Linux problems fast ==
Back to top
View user's profile Send private message 
augras

Joined: 11 Nov 2013
Posts: 1492
Location: france

PostPosted: Thu 31 Dec 2015, 06:02    Post subject:  

Ok.
I sent a pm to Asri education about the french translation.
Philippe
Back to top
View user's profile Send private message 
Ghost Dog


Joined: 27 Jan 2012
Posts: 164

PostPosted: Fri 26 Aug 2016, 15:51    Post subject:  

Any option for overwriting installed packages? Every time I do this, I get the "package is already installed" message.

I don't care if it's already installed, I want it overwritten.

_________________
The Way of the Samurai
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 16 of 18 [262 Posts]   Goto page: Previous 1, 2, 3, ..., 14, 15, 16, 17, 18 Next
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies. View previous topic :: View next topic
 Forum index » House Training » Users ( For the regulars )
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: 2.8747s ][ Queries: 12 (2.5429s) ][ GZIP on ]