Pcreole programmable application + nme (creole converter)

Word processors, spreadsheets, presentations, translation, etc.
Message
Author
mcewanw
Posts: 3169
Joined: Thu 16 Aug 2007, 10:48
Contact:

#41 Post by mcewanw »

@Li1L: I repackaged your translation files into a separate dotpet which is now available in the second post of this thread along with an invitation for further translations from anyone able to help with that. Note that, in the dotpet, I moved your de.po file to /usr/share/doc/pcreole/nls/ from the location you had it inside your tar.gz (/usr/share/doc/nls). I'd be obliged if you would modify your tar.gz accordingly or delete that one.

Thanks greatly for all your efforts and for your translation, which will be very useful I'm sure.
github mcewanw

mcewanw
Posts: 3169
Joined: Thu 16 Aug 2007, 10:48
Contact:

Pcreole version 2.0.6 uploaded

#42 Post by mcewanw »

Changes very minor (no new functionality). As detailed in first post of this thread.

However, L18L has now completed and generously provided a full German translation for the pcreole interface and Help text. Refer to second post of this thread for the dotpet to add that. Invitations for further translations and some help links on doing that are provided there.

Pcreole should work on most any Puppy Linux from Puppy 2 series upwards at least. I'd be grateful for quick confirmations of which distributions it has been successfully run on since I only have dialup Internet and can only test it on what I have (Wary 5.0 and Puppy 4.3.1 and Puppy 2.17)
github mcewanw

mcewanw
Posts: 3169
Joined: Thu 16 Aug 2007, 10:48
Contact:

Pcreole version 3.0.0 also uploaded today

#43 Post by mcewanw »

Pcreole version 3.0.0 also uploaded today

I didn't find the small interface option provided in Pcreole 2.0.x useful for my purposes. Pcreole 3.0.0 is identical in funtionality to 2.0.6 (including it working with the L18L provided German interface translation dotpet). However, the shrink window "small gui" has been re-designed to a form which is useful to myself at least. You have the choice...

An advantage of choosing to use the "shrinked gui" in either 2.0.6 and 3.0.0 is that Pcreole will start faster in that mode (albeit with less configuration options being immediately compared to either of these versions' Config/Large "GUI mode").

The shrinked "GUI mode" of either also uses less screen real-estate than the full Config/Large GUI of course.

Whichever version you prefer, Pcreole has been designed to be usable on any screen resolution of width 640 pixels and above.
github mcewanw

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

Re: Pcreole version 3.0.0 also uploaded today

#44 Post by L18L »

mcewanw wrote:...
The shrinked "GUI mode" of either also uses less screen real-estate than the full Config/Large GUI of course.

Whichever version you prefer, Pcreole has been designed to be usable on any screen resolution of width 640 pixels and above.
Here is how the new shrinked GUI looks, localized: :)
Image

BTW:
- corrected my mistake three posts above
- missing Sections B, C, ... in help
- opening a thread in Localization Project might be helpful ?

mcewanw
Posts: 3169
Joined: Thu 16 Aug 2007, 10:48
Contact:

Re: Pcreole version 3.0.0 also uploaded today

#45 Post by mcewanw »

L18L wrote: - opening a thread in Localization Project might be helpful ?
Done: http://www.murga-linux.com/puppy/viewtopic.php?p=525522
github mcewanw

mcewanw
Posts: 3169
Joined: Thu 16 Aug 2007, 10:48
Contact:

Pcreole version 3.0.1 uploaded

#46 Post by mcewanw »

Changes

3.0.1. Small gui now "remembers" SD_, SF_, TD_, and TF_ values on QUIT

Hopefully this will be the "stable" version for a while now ... Sorry in advance if any new bugs are discovered ... :-)
github mcewanw

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

Re: Pcreole version 3.0.1 uploaded

#47 Post by L18L »

mcewanw wrote: ... Sorry in advance if any new bugs are discovered ... :-)
in wary5.11.57 fresh frugal install running as fido. :)

pcreole 3.01 downloaded and installed
Help button wrote:In created .po translate helptxt msgstr to target lang
/usr/share/locale/en/LC_MESSAGES/pcreole missing :wink:

mcewanw
Posts: 3169
Joined: Thu 16 Aug 2007, 10:48
Contact:

Re: Pcreole version 3.0.1 uploaded

#48 Post by mcewanw »

L18L wrote: in wary5.11.57 fresh frugal install running as fido. :)

pcreole 3.01 downloaded and installed
Help button wrote:In created .po translate helptxt msgstr to target lang
/usr/share/locale/en/LC_MESSAGES/pcreole missing :wink:
Hmmm... But pcreole.mo is in the dotpet int he correct location okay. And it all works fine on Wary 5.0. But you are using wary5.11.57 with fido. Could you try changing the permissions on the en file pcreole.mo - temporarily to read, write and execute for everyone to see if it is then found? (how about the de pcreole.mo Help?) Might need to check permissions on the directories it is in too - should be a minimum of read and execute for containing directories I think.

If it is a permissions problem, we need to determine if it is a problem needing fixed in wary5.11.57 or in pcreole... If permissions are wrong on the containing directories (which seems unlikely) that would be a wary5.11.57 bug I think; otherwise I need to know the minimum permissions to put on the file itself. Currently I do have it as Read for Everyone (the World of Others), Write for Root user only, but no-one to execute it. I would have thought that was correct, but perhaps execute permission is required for everyone?? And why does it say "pcreole" missing, rather than "pcreole.mo" missing?
github mcewanw

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

Re: Pcreole version 3.0.1 uploaded

#49 Post by L18L »

mcewanw wrote:...
And why does it say "pcreole" missing, rather than "pcreole.mo" missing?
That was me saying pcreole missing, should have been /usr/share/locale/en/LC_MESSAGES/pcreole.mo missing :?:
Sorry, my quickshot was wrong.
It is not missing. :oops:
And permissions are OK.

But reproducing what has been happening I am able now to explain.

installed preole without German NLS
pcreole started showing the texts in English like expected
Help showing
In created .po translate helptxt msgstr to target lang
That was not expected by me but now it is clear.

gettext worked:
my LANG is de
no /usr/share/locale/de/LC_MESSAGES/pcreole.mo found
so gettext returned the msgid In created .po translate helptxt msgstr to target lang

May way to show the help:
LANGUAGE=en pcreole :arrow: everything like expected
or
LANGUAGE=de:en pcreole :arrow: everything like expected
gettext tries de and if not found uses en for each single msgid

Anyway, what can be a concluded from all of this?
Every new user (except the LOCALE=en...) could stumble into the same trap
This trap is caused by your creative use of gettext for the help.

How to avoid the trap?
- use gettext just in the intended way or
- create a workaround

workaround:
create a code snippet which is setting LANGUAGE to <user's langcode><colon>en
and put it at the beginning of pcreole script.

Here a quick and dirty one:

Code: Select all

LANGUAGE="`echo ${LANG:0:2}`:en"
8)

Why dirty?
Working correctly just for 2-letters codes
Not for Portuguese of Brazil (pt_BR) and Chineses :oops:

mcewanw
Posts: 3169
Joined: Thu 16 Aug 2007, 10:48
Contact:

Re: Pcreole version 3.0.1 uploaded

#50 Post by mcewanw »

L18L wrote: This trap is caused by your creative use of gettext for the help.

How to avoid the trap?
- use gettext just in the intended way or
- create a workaround

workaround:
create a code snippet which is setting LANGUAGE to <user's langcode><colon>en
and put it at the beginning of pcreole script.
Oh... Now I see what you mean. Hmmm... I don't really want to clog up the main pcreole script with the whole help text in english - since that also swells the sizes of all the .po and resulting .mo files, but I'll think about it or maybe adopt your suggested workaround or something like it as a compromise... As things stand it certainly encourages users to make new translation files... :-)

Of course copying the en pcreole.mo into the relevant locale location would also bring back the English version of the help button text.
github mcewanw

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

trouble with help

#51 Post by L18L »

export needed
/usr/bin/pcreole line 34 changed from blank to:

Code: Select all

export LANGUAGE="`echo ${LANG:0:2}`:en"
tested:

# LANGUAGE=bla pcreole
#
# echo $LANGUAGE

#

pcreole's behaviour was like expected: everything in English inclusive complete help

I am hoping there will be a day when I will first test and then post :lol:

mcewanw
Posts: 3169
Joined: Thu 16 Aug 2007, 10:48
Contact:

Pcreole 3.0.2 uploaded

#52 Post by mcewanw »

mcewanw wrote: Hopefully this will be the "stable" version for a while now ... Sorry in advance if any new bugs are discovered ... :-)
Changes

Pcreole 3.0.2. English help button text now provided by default until language dotpet installed.

@L18L: Whilst your suggested method works, it is indeed a workaround to compensate for some missing program logic for the special case you reported on. I wasn't happy letting pcreole change system LANGUAGE value since I prefer the system to look after all locale setting matters. It was however easy to address the issue as it turns out: I simply altered the relevant Pcreole program logic so that a provided english help button text is loaded by default. Another advantage of the change is that en locale pcreole.mo is no longer required at all.

Hoping this is the stable one! :-)
github mcewanw

mcewanw
Posts: 3169
Joined: Thu 16 Aug 2007, 10:48
Contact:

Pcreole 3.0.3 uploaded

#53 Post by mcewanw »

... oh well... maybe this time!

Recent Changes:

Pcreole 3.0.3. Removed refs to /root in /etc/pcreole_default.rc; now using $HOME

Pcreole 3.0.2. Changed program logic so that en help button text is always provided by default.

Also see above post and download from first post in this thread.

EDIT: Using the gtkdialog3 from Puppy431, I also now have Pcreole running successfully on a RedHat Enterprise Linux system (RHEL5.2) as a normal user.
github mcewanw

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

Re: Pcreole 3.0.3 uploaded

#54 Post by L18L »

mcewanw wrote:... oh well... maybe this time!
3.0.3 installed as user fido: successful

The password for root is asked.
Name of the application that required the password was:
/sbin/pup_event_frontend_d

This seems to be a default value for /usr/sbin/askpass but I don't know how to use it in the intended manner

http://bkhome.org/blog/?viewDetailed=02284

Edited
It is just my observation, no show stopper :!:

Post Reply