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 Mon 20 Oct 2014, 19:20
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Utilities
report video GUI localised
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 2 [17 Posts]   Goto page: 1, 2 Next
Author Message
don570


Joined: 10 Mar 2010
Posts: 3336
Location: Ontario

PostPosted: Sat 12 Jan 2013, 16:51    Post subject:  report video GUI localised  

I've taken Barry Kauler's report-video (a simple script to report
blacklisting of video drivers) and made a GUI. Tazoc has essentially
done the same HERE , however he hasn't localised his application.

I have localised to help the foreign language guys out there.

version 2.4 advises about gtkdialog version
and is compatible with XFCE Thunar and Enlightenment





______________________________________________________
report-video_NLS-2.4.pet
Description  german and french locales
pet

 Download 
Filename  report-video_NLS-2.4.pet 
Filesize  1.97 KB 
Downloaded  225 Time(s) 
report-video-2.4.pet
Description  GUI for report-video
pet

 Download 
Filename  report-video-2.4.pet 
Filesize  16.22 KB 
Downloaded  272 Time(s) 

Last edited by don570 on Wed 23 Jan 2013, 20:46; edited 8 times in total
Back to top
View user's profile Send private message 
RSH


Joined: 05 Sep 2011
Posts: 2420
Location: Germany

PostPosted: Sun 13 Jan 2013, 11:29    Post subject:  

Hey don570.

Are you kidding?

You are the guy with the foreign language! Laughing

And also: I've just found a fr:french file inside the .pet, which contains the following localization:
Code:
#!/bin/bash
#report-video
#version=1.0
#language=english
#translator:Native by don570

set -a

LOC119="Rapport vidéo"


Original en_US:english file is:
Code:
#!/bin/bash
#report-video
#version=1.0
#language=english
#translator:Native by don570

set -a

LOC100="VIDEO REPORT:"
LOC101="Chip description:"
LOC102="Resolution (widthxheight, in pixels):"
LOC103="Depth (bits, or planes):"
LOC104="Modules requested to be loaded:"
LOC105="Modules requested to not be loaded:"
LOC106="Drivers requested to be loaded:"
LOC107="NOTE: there is no /etc/X11/xorg.conf configuration file."
LOC108="Probing Xorg startup log file (/var/log/Xorg.0.log):"
LOC109="Driver loaded (and currently in use):"
LOC110="Loaded modules:"
LOC111="Actual rendering on monitor:"
LOC112="Resolution:"
LOC113="Depth:"
LOC114="unknown"
LOC115="...the report is also recorded in /tmp/report-video"
LOC116="Requested by /etc/X11/xorg.conf:"
LOC117="Type 'report-video' in terminal"
LOC118="version"
LOC119="Report video"

You are really a funny guy, aren't you? Laughing

Greetings,

RSH

_________________
LazY Puppy
RSH's DNA
SARA B.
Back to top
View user's profile Send private message 
don570


Joined: 10 Mar 2010
Posts: 3336
Location: Ontario

PostPosted: Mon 14 Jan 2013, 19:03    Post subject:  

I'm not totally fluent in French, so I was hoping Argolance
(the mind behind ToOpPy "Precise" 5.4.3 bêta - 2PDE ) would be
interested in translating. He's done that so I'll continue to
substitute more words by checking $LANG first.

________________________________________________
Back to top
View user's profile Send private message 
don570


Joined: 10 Mar 2010
Posts: 3336
Location: Ontario

PostPosted: Tue 15 Jan 2013, 21:16    Post subject: new version 1.2  

new version 1.2

1) It is now safe to use with other software such as Tazoc's sys-info
since it can now be used at the terminal safely i.e. Xdialog window
doesn't pop up



2) I put in Argolance's French translation

3) The word 'planes' has been replaced by 'bits' except
when $LANG is 'en'

4) At the terminal report-video -v and report-video -h
will act as expected

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


Joined: 05 Sep 2011
Posts: 2420
Location: Germany

PostPosted: Wed 16 Jan 2013, 00:23    Post subject:  

Ok.

Here are the German translations for report-video-1.2.

Code:
#!/bin/bash
#report-video
#version=1.0
#language=German
#translator:RSH

set -a

LOC100="Grafikhardware-Bericht:"
LOC101="Beschreibung des Grafikprozessors:"
LOC102="Auflösung (Breite*Höhe, in pixel):"
LOC103="Farbtiefe (Bit oder Ebenen):"
LOC104="Module laden angefordert:"
LOC105="Module laden nicht angefordert:"
LOC106="Treiber laden angefordert:"
LOC107="Hinweis: die Konfigurationsdatei /etc/X11/xorg.conf fehlt!"
LOC108="Untersuche Xorg Startup Log-Datei (/var/log/Xorg.0.log):"
LOC109="Treiber geladen (und zurzeit verwendet):"
LOC110="Geladene Module:"
LOC111="Aktuelle, tatsächliche Monitordaten:"
LOC112="Auflösung:"
LOC113="Farbtiefe:"
LOC114="unbekannt"
LOC115="...der Bericht wurde ebenfalls gespeichert, in: /tmp/report-video"
LOC116="Angefordert von: /etc/X11/xorg.conf:"
LOC117="Geben Sie 'report-video' im Terminal ein"
LOC118="Version"
LOC119="Grafikhardware-Bericht"

I'll remove this when added to report-video.

RSH

_________________
LazY Puppy
RSH's DNA
SARA B.
Back to top
View user's profile Send private message 
BarryK
Puppy Master


Joined: 09 May 2005
Posts: 7047
Location: Perth, Western Australia

PostPosted: Wed 16 Jan 2013, 06:12    Post subject:  

Good work, but would it be too much to ask for you to convert the translation to the gettext method?

The "technosourus/zigbert method" is deprecated. Most, perhaps all, of zigbert's scripts have been converted to the gettext method.

Also, MoManager in Puppy supports the gettext method only.

_________________
http://bkhome.org/news/
Back to top
View user's profile Send private message Visit poster's website 
RSH


Joined: 05 Sep 2011
Posts: 2420
Location: Germany

PostPosted: Wed 16 Jan 2013, 16:21    Post subject:  

Quote:
Good work, but would it be too much to ask for you to convert the translation to the gettext method?

I'm sure, a lot of us, who do use the "zigbert-method" would like to do this using the gettext-method.

But for me personally it would be good to have a guide plus a working example application (that only shows how the gettext works - without any other code/functions) - to "play" with it.

That would help a lot!

We can't do anything learn from scratch without some guiding by more experienced people/developers. Wink

_________________
LazY Puppy
RSH's DNA
SARA B.
Back to top
View user's profile Send private message 
don570


Joined: 10 Mar 2010
Posts: 3336
Location: Ontario

PostPosted: Wed 16 Jan 2013, 21:21    Post subject:  

new version 1.5


Added info about pupsave file and RAM and improved the French translation


I'm still working on this project...

I don't know anything about 'gettext ' so I'll have to learn from scratch.

Here's the French pupsave data




________________________________________________


By the way this app isn't compatible to Tazoc's sys-info . Oddly
version 1.0 was partially compatible which gave me high hopes Rolling Eyes

______________________________________________
Back to top
View user's profile Send private message 
Argolance


Joined: 06 Jan 2008
Posts: 1835
Location: PORT-BRILLET (Mayenne - France)

PostPosted: Thu 17 Jan 2013, 13:54    Post subject:  

Hello,
Great!
BarryK wrote:
Good work, but would it be too much to ask for you to convert the translation to the gettext method?
I can do it if interesting?

Cordialement.
Back to top
View user's profile Send private message Visit poster's website 
don570


Joined: 10 Mar 2010
Posts: 3336
Location: Ontario

PostPosted: Thu 17 Jan 2013, 21:38    Post subject:  

new version 1.7

German Translation
window manager
clock type
swap memory
Bash variables



I put in lots more info about machine and Environment
but there is still a bug in the listing of Bash variables that I
need a couple of more hours to fix
Back to top
View user's profile Send private message 
vicmz


Joined: 15 Jan 2012
Posts: 1117

PostPosted: Thu 17 Jan 2013, 22:14    Post subject:  

BarryK wrote:
Good work, but would it be too much to ask for you to convert the translation to the gettext method? (...)
MoManager in Puppy supports the gettext method only.


I'm so sorry not having noticed before, actually rodin.s has report-video in his collection of gettexted scripts. Of course it doesn't have the improvements introduced by don570.

I made a separate PET, rodin.s just put the report-video script in his PET, for it was a gettexted-scripts PET, this one has the icons and menu entry.
report_video-gettexted-20130117.pet
Description  Report Video as gettexted by rodin.s
pet

 Download 
Filename  report_video-gettexted-20130117.pet 
Filesize  14.33 KB 
Downloaded  229 Time(s) 
image-3.png
 Description   Report Video in Spanish
 Filesize   723.64 KB
 Viewed   538 Time(s)

image-3.png


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


Joined: 06 Jan 2008
Posts: 1835
Location: PORT-BRILLET (Mayenne - France)

PostPosted: Fri 18 Jan 2013, 06:24    Post subject:  

Hello,
don570 wrote:
new version 1.7
It is not a "video report " any more... Don't you think this may duplicate what other little programs already do?
And what about my proposition to gettext your script?
vicmz wrote:
I'm so sorry not having noticed before, actually rodin.s has report-video in his collection of gettexted scripts
I noticed this on the Arrow ToOpPy "Precise" 5.4.3 bêta - 2PDE thread:
Quote:
Je suppose que ce script est destiné à remplacer le rapport vidéo de Lighthouse, déjà présent sur Puppy/ToOpPy Precise

Cordialement.

_________________

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

Joined: 19 Jun 2010
Posts: 2525
Location: Moved from Hosla to www.eussenheim.de

PostPosted: Fri 18 Jan 2013, 10:56    Post subject:  

don570 wrote:
...I don't know anything about 'gettext ' so I'll have to learn from scratch....

/root/my-applications/gettext_for_don570 wrote:
#!/bin/sh
echo "Hi this is $0"

echo "Let us make it international now"
echo "Press Enter to continue" ; read x

echo "OK"
echo "Step 1: source gettext.s"
echo "Press Enter to continue" ; read x
echo ". gettext.sh"
. gettext.sh

echo "Step 2: define your TEXTDOMAIN"
echo "Press Enter to continue" ; read x
echo "export TEXTDOMAIN=gettext_for_dummies"
export TEXTDOMAIN=gettext_for_dummies

echo "Step 3: use it"
echo "Press Enter to continue" ; read x

echo "$(gettext 'hello world')"

echo "Step 4: make your translation"
echo "Press Enter to continue" ; read x
momanager

Hope that this running in console will help
Back to top
View user's profile Send private message 
don570


Joined: 10 Mar 2010
Posts: 3336
Location: Ontario

PostPosted: Sat 19 Jan 2013, 17:40    Post subject:  

New version 2.0

-Fixed Shell variables

-added crontab report

-separated locales into separate pet file


Argolance wrote:
Hope that this running in console will help


I will try to learn gettext in the next days...


It's still not properly compatible with sys-info despite hours of
trying, but I'll still investigate.


_______________________________________
Back to top
View user's profile Send private message 
tazoc


Joined: 11 Dec 2006
Posts: 1157
Location: Lower Columbia Basin WA US

PostPosted: Sat 19 Jan 2013, 21:34    Post subject: Sys-info / report-video  

Hi Don570 and BarryK,
I apologize for the conflicts with Sys-info. I am working on an updated Sys-info.pet that will include video-info instead of report-video. That way my Pet will not overwrite yours, or Barry's report-video script.

Hope that helps,
TaZoC

_________________
lhpup.org Lighthouse 64 6.02
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 1 of 2 [17 Posts]   Goto page: 1, 2 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Utilities
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.1085s ][ Queries: 13 (0.0128s) ][ GZIP on ]