report video GUI localised

Miscellaneous tools
Post Reply
Message
Author
User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

report video GUI localised

#1 Post by don570 »

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

Image

Image

______________________________________________________
Attachments
report-video_NLS-2.4.pet
german and french locales
(1.97 KiB) Downloaded 539 times
report-video-2.4.pet
GUI for report-video
(16.22 KiB) Downloaded 600 times
Last edited by don570 on Thu 24 Jan 2013, 00:46, edited 8 times in total.

User avatar
RSH
Posts: 2397
Joined: Mon 05 Sep 2011, 14:21
Location: Germany

#2 Post by RSH »

Hey don570.

Are you kidding?

You are the guy with the foreign language! :lol:

And also: I've just found a fr:french file inside the .pet, which contains the following localization:

Code: Select all

#!/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: Select all

#!/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? :lol:

Greetings,

RSH
[b][url=http://lazy-puppy.weebly.com]LazY Puppy[/url][/b]
[b][url=http://rshs-dna.weebly.com]RSH's DNA[/url][/b]
[url=http://murga-linux.com/puppy/viewtopic.php?t=91422][b]SARA B.[/b][/url]

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

#3 Post by don570 »

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.

________________________________________________

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

new version 1.2

#4 Post by don570 »

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

Image

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

Image

User avatar
RSH
Posts: 2397
Joined: Mon 05 Sep 2011, 14:21
Location: Germany

#5 Post by RSH »

Ok.

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

Code: Select all

#!/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
[b][url=http://lazy-puppy.weebly.com]LazY Puppy[/url][/b]
[b][url=http://rshs-dna.weebly.com]RSH's DNA[/url][/b]
[url=http://murga-linux.com/puppy/viewtopic.php?t=91422][b]SARA B.[/b][/url]

User avatar
BarryK
Puppy Master
Posts: 9392
Joined: Mon 09 May 2005, 09:23
Location: Perth, Western Australia
Contact:

#6 Post by BarryK »

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.
[url]https://bkhome.org/news/[/url]

User avatar
RSH
Posts: 2397
Joined: Mon 05 Sep 2011, 14:21
Location: Germany

#7 Post by RSH »

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:
[b][url=http://lazy-puppy.weebly.com]LazY Puppy[/url][/b]
[b][url=http://rshs-dna.weebly.com]RSH's DNA[/url][/b]
[url=http://murga-linux.com/puppy/viewtopic.php?t=91422][b]SARA B.[/b][/url]

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

#8 Post by don570 »

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


Image

________________________________________________


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 :roll:

______________________________________________

User avatar
Argolance
Posts: 3767
Joined: Sun 06 Jan 2008, 22:57
Location: PORT-BRILLET (Mayenne - France)
Contact:

#9 Post by Argolance »

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.

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

#10 Post by don570 »

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

User avatar
vicmz
Posts: 1262
Joined: Sun 15 Jan 2012, 22:47

#11 Post by vicmz »

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.
Attachments
report_video-gettexted-20130117.pet
Report Video as gettexted by rodin.s
(14.33 KiB) Downloaded 548 times
[url=http://murga-linux.com/puppy/viewtopic.php?t=76948]Puppy Linux en español[/url]

User avatar
Argolance
Posts: 3767
Joined: Sun 06 Jan 2008, 22:57
Location: PORT-BRILLET (Mayenne - France)
Contact:

#12 Post by Argolance »

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:
Je suppose que ce script est destiné à remplacer le rapport vidéo de Lighthouse, déjà présent sur Puppy/ToOpPy Precise
Cordialement.

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

#13 Post by L18L »

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

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

#14 Post by don570 »

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.


_______________________________________

User avatar
tazoc
Posts: 1157
Joined: Mon 11 Dec 2006, 08:07
Location: Lower Columbia Basin WA US
Contact:

Sys-info / report-video

#15 Post by tazoc »

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
[url=http://www.lhpup.org/][b][size=100]lhpup.org[/size][/b] [img]http://www.lhpup.org/gallery/images/favicon.png[/img][/url] [url=http://www.lhpup.org/release-lhp.htm#602]Lighthouse 64 6.02[/url]

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

learn from scratch

#16 Post by L18L »

don570 wrote:...I don't know anything about 'gettext ' so I'll have to learn from scratch....
Please note,
in this scratch http://scratch.mit.edu/projects/RIngel/2864807
you can learn scratch, but not gettext. :wink:

(Click the green flag to start)

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

#17 Post by don570 »


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


I tested on old distros like Fluppy Wary
and tested the Enlightenment window manager in Exprimo.

I found some bugs in program so I spent the time to fix them.


I also added two more LOC's and translated them in French and German.

An important bug in finding PupSave file size was solved. :)

USB mouse description is given.

________________________________________________________


Note to L18L : I am learning gettext by looking at the code in
01micko's pupmd5sum.sh
and doing the translations with Barry's MoManager

.... but I will still need a couple of days more.

____________________________________________

Post Reply