Page 1 of 1

report video GUI localised

Posted: Sat 12 Jan 2013, 20:51
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

______________________________________________________

Posted: Sun 13 Jan 2013, 15:29
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

Posted: Mon 14 Jan 2013, 23:03
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.

________________________________________________

new version 1.2

Posted: Wed 16 Jan 2013, 01:16
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

Posted: Wed 16 Jan 2013, 04:23
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

Posted: Wed 16 Jan 2013, 10:12
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.

Posted: Wed 16 Jan 2013, 20:21
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:

Posted: Thu 17 Jan 2013, 01:21
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:

______________________________________________

Posted: Thu 17 Jan 2013, 17:54
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.

Posted: Fri 18 Jan 2013, 01:38
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

Posted: Fri 18 Jan 2013, 02:14
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.

Posted: Fri 18 Jan 2013, 10:24
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.

Posted: Fri 18 Jan 2013, 14:56
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

Posted: Sat 19 Jan 2013, 21:40
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.


_______________________________________

Sys-info / report-video

Posted: Sun 20 Jan 2013, 01:34
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

learn from scratch

Posted: Tue 22 Jan 2013, 12:57
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)

Posted: Thu 24 Jan 2013, 00:54
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.

____________________________________________