welcome1boot xmessage

For efforts in internationalising Puppy and solving problems in this area
Post Reply
Message
Author
User avatar
xanad
Posts: 400
Joined: Fri 28 Feb 2014, 14:56
Location: 2 locations: MonteRosa Alp and Milano
Contact:

welcome1boot xmessage

#1 Post by xanad »

After selecting the language in the program 'welcome1boot' this huge window appears , not very nice nor understandable to beginners .
How to change it? Any suggestions?
slacko/tahr/precise

Image
Last edited by xanad on Tue 09 Dec 2014, 15:03, edited 1 time in total.
[url]http://www.xanad.tk[/url] Html5 Parallax

User avatar
LazY Puppy
Posts: 1934
Joined: Fri 21 Nov 2014, 18:14
Location: Germany

#2 Post by LazY Puppy »

not very nice nor understandable to beginners
:lol:

But it's following straight the path of the bad and ugly "less is more" philosophy.

:lol:
RSH

"you only wanted to work your Puppies in German", "you are a separatist in that you want Germany to secede from Europe" (musher0) :lol:

No, but I gave my old drum kit away for free to a music store collecting instruments for refugees! :wink:

User avatar
xanad
Posts: 400
Joined: Fri 28 Feb 2014, 14:56
Location: 2 locations: MonteRosa Alp and Milano
Contact:

#3 Post by xanad »

LazY Puppy wrote: :lol:

But it's following straight the path of the bad and ugly "less is more" philosophy.

:lol:
:D :D :D
[url]http://www.xanad.tk[/url] Html5 Parallax

User avatar
ASRI éducation
Posts: 3197
Joined: Sat 09 May 2009, 12:10
Location: France
Contact:

Re: welcome1boot xmessage

#4 Post by ASRI éducation »

xanad wrote:Image
I never had this GUI.
Projet ASRI éducation => [url=http://asri-education.org/]Association[/url] | [url=http://forum.asri-education.org/]Forum[/url] | [url=http://dl01.asri-education.org/]Dépôt[/url] | [url=http://kids.asri-education.org/]Espace kids[/url]

User avatar
LazY Puppy
Posts: 1934
Joined: Fri 21 Nov 2014, 18:14
Location: Germany

#5 Post by LazY Puppy »

It's not there in Precise (at least the Woof Version) but it's in there in Slacko (the Woof CE Version).

Probably it's to be found somewhere in delayedrun or xwin?

L18L probably should know where it is exactly, since this was invented by L18L - I think.
RSH

"you only wanted to work your Puppies in German", "you are a separatist in that you want Germany to secede from Europe" (musher0) :lol:

No, but I gave my old drum kit away for free to a music store collecting instruments for refugees! :wink:

User avatar
xanad
Posts: 400
Joined: Fri 28 Feb 2014, 14:56
Location: 2 locations: MonteRosa Alp and Milano
Contact:

#6 Post by xanad »

LazY Puppy wrote:It's not there in Precise (at least the Woof Version) but it's in there in Slacko (the Woof CE Version).
Right, it's also present in Tahr 6.0. If I search the text 'Code:', the answer more likely is that is contained in 'welcome1boot' file.

@ASRI: it appears only the first time you start a language not native.
[url]http://www.xanad.tk[/url] Html5 Parallax

User avatar
xanad
Posts: 400
Joined: Fri 28 Feb 2014, 14:56
Location: 2 locations: MonteRosa Alp and Milano
Contact:

#7 Post by xanad »

Ok, find it. The file is: welcome1stboot.bac that started by welcome1boot after selecting OK.

Extract from welcome1stboot.pupdev:
This is how to compile:

# bacon -x -d /tmp welcome1stboot.bac

...which will generate 'welcome1stboot' and 'welcome1stboot.pot'
should change the following strings

Code: Select all

win_width=640
  win_height=480
  language_win = WINDOW("?", win_width, win_height)
[url]http://www.xanad.tk[/url] Html5 Parallax

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

#8 Post by L18L »

xanad wrote:Ok, find it. The file is: welcome1stboot.bac that started by welcome1boot after selecting OK.
This version of welcome1stboot was and is for use as the very first window on the screen. It makes sense if manyl other languages are available.

It is super nonsense if the first screen is something like quicksetup where LANG is already chosen.

There has been some confusion about which script is run first
http://www.murga-linux.com/puppy/viewtopic.php?t=94948

step
Posts: 1349
Joined: Fri 04 May 2012, 11:20

#9 Post by step »

L18L wrote:This version of welcome1stboot was and is for use as the very first window on the screen. It makes sense if manyl other languages are available.
@L18L, I'm sorry, I don't get it. Are you saying that every localized puppy boots first into that non-sensical dialogue? I hope not: so much for an engaging OOTB user experience.
Who can fix this? Base distro devs? Translators? Someone else?
Thanks for your comments.
[url=http://murga-linux.com/puppy/viewtopic.php?t=117546]Fatdog64-810[/url]|[url=http://goo.gl/hqZtiB]+Packages[/url]|[url=http://goo.gl/6dbEzT]Kodi[/url]|[url=http://goo.gl/JQC4Vz]gtkmenuplus[/url]

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

#10 Post by L18L »

step wrote:..Are you saying that every localized puppy boots first into that non-sensical dialogue?
No, and I am not responsible for any Puppy :wink:
I like internationalized Puppies which can be localized by simply installing a language pack.
With a localized Puppy the localizer would be responsible.
All I have done was building a language choice into welcome1stboot .
step wrote:Who can fix this? Base distro devs? Translators? Someone else?
I hope xanad can 8)
Let us look into the source: https://github.com/puppylinux-woof-CE/w ... stboot.bac

Fix 1: delete everything between line48

Code: Select all

REM ============================ <language> ======================140210
and line 121

Code: Select all

REM ============================ </language> ======================140210
and recompile so there will be no language choice at all

or
fix2
:
look at lines from 115 to 119:

Code: Select all

IF GETENVIRON$("LANGUAGE") = "" THEN
get_app_language : REM language choice screen
ELSE
SYSTEM "kill `cat /tmp/welcome`; rm /tmp/welcome" : REM kill language choice screen
END IF
That is: set something for LANGUAGE and there well be no language choice.
If LANG was set before (in quicksetup maybe, or set to it by xanad?) launch welcome1stboot by:

Code: Select all

LANGUAGE=$LANG welcome1stboot
and you are done, I hope so.

---
How to make welcome1stboot that way it should be?
1) include available welcome1stboot.mo for all languages
2)

Code: Select all

 WHILE n < num_languages + 1
IF n = 1 THEN LANG_NAME$="English"
ELIF FILEEXISTS("/usr/share/i18n/lang_names") THEN
'get language name in language of language
use /usr/share/i18n/lang_names

---
I would prefer fix1
and use a shell script for language choice
http://www.murga-linux.com/puppy/viewtopic.php?t=92929
(/usr/share/i18n/lang_names included)

Note
in puppy precise the 1st screen always was welcome1stboot
That is why I was coding this language choice into welcome1stboot
LANGUAGE was used because LANG was always en_US.

obviously puppy slacko came different: 1st screen is quicksetup
so this quicksetup should include all translation files and be launched anything (untested ) like:

Code: Select all

set_LANGUAGE_and_launch_app quicksetup
Last edited by L18L on Tue 16 Dec 2014, 13:06, edited 1 time in total.

User avatar
LazY Puppy
Posts: 1934
Joined: Fri 21 Nov 2014, 18:14
Location: Germany

#11 Post by LazY Puppy »

L18L wrote:This version of welcome1stboot was and is for use as the very first window on the screen. It makes sense if manyl other languages are available.

It is super nonsense if the first screen is something like quicksetup where LANG is already chosen.
Since you are obviously the only person having multiple lang packs installed, this is super nonsense out of the box for any else puppy user!

Don't fix it - WIPE IT!
RSH

"you only wanted to work your Puppies in German", "you are a separatist in that you want Germany to secede from Europe" (musher0) :lol:

No, but I gave my old drum kit away for free to a music store collecting instruments for refugees! :wink:

User avatar
xanad
Posts: 400
Joined: Fri 28 Feb 2014, 14:56
Location: 2 locations: MonteRosa Alp and Milano
Contact:

#12 Post by xanad »

It is super nonsense if the first screen is something like quicksetup where LANG is already chosen.
:?:
example:
For some months the Italian users, can download the livecd of precise571, slacko570, 593, 593-64b and now Tahr 6.0 already localized in Italian.
The first screen after the boot is welcome1boot with these parameters preset:
main language: it
time zone: Europe/Rome
keyboard layout: it
Then the Italian users, found that it's all right, select OK .... et voilà the 'huge' appears
It is not just a problem of multilingual.

is useless if it is better to wipe it
[url]http://www.xanad.tk[/url] Html5 Parallax

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

welcome1boot

#13 Post by L18L »

xanad wrote:... already localized in Italian.
Add

Code: Select all

LANGUAGE=it
to your localized versions

or
fix1

your choice

step
Posts: 1349
Joined: Fri 04 May 2012, 11:20

#14 Post by step »

LazY Puppy wrote:
L18L wrote:This version of welcome1stboot was and is for use as the very first window on the screen. It makes sense if manyl other languages are available.

It is super nonsense if the first screen is something like quicksetup where LANG is already chosen.
Since you are obviously the only person having multiple lang packs installed, this is super nonsense out of the box for any else puppy user!

Don't fix it - WIPE IT!
@LBL1, thanks for your comments and code analysis. Now I understand better. In summary:
1. You say that the dialog should be invoked only when a user has at leat two extra languages installed (a seemingly rare but possible occurrence, I add)
2. You suggest that a single extra language ISO (such as xanad's IT) should include LANGUAGE=xx to keep the dialog from showing up.

My own suggestions:
a. Amend the .bac file in woof-ce to include comment #2, so newcomers will know what to do next time this issue pops up
b. Consider committing an improved woof-ce .bac source file that pops up the dialog only when at least two extra languages are available. That would restrain the dialog to where you originally wanted it to appear regardless of what translators do, right or wrong.

If my summary and suggestions don't make sense please ignore them. Like I said before I don't fully grasp this issue as I'm just looking from the outside. You have a much broader perspective than I about localizing puppies. Actually, I have close to zero knowledge on the subject :)
[url=http://murga-linux.com/puppy/viewtopic.php?t=117546]Fatdog64-810[/url]|[url=http://goo.gl/hqZtiB]+Packages[/url]|[url=http://goo.gl/6dbEzT]Kodi[/url]|[url=http://goo.gl/JQC4Vz]gtkmenuplus[/url]

User avatar
xanad
Posts: 400
Joined: Fri 28 Feb 2014, 14:56
Location: 2 locations: MonteRosa Alp and Milano
Contact:

#15 Post by xanad »

Back to the question posed on the front page:
can replace the window title
from "?"
to "Confirm your choice"
and decrease the size of the window?
If anyone knows how to do it can do?
Thanks!
[url]http://www.xanad.tk[/url] Html5 Parallax

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

#16 Post by L18L »

step wrote:In summary:
1. You say that the dialog should be invoked only when a user has at leat two extra languages installed (a seemingly rare but possible occurrence, I add)
2. You suggest that a single extra language ISO (such as xanad's IT) should include LANGUAGE=xx to keep the dialog from showing up.

1- No. The dialog should be invoked only if it the very first window of a fresh puppy., and must contain all translations for this welcome1stboot.
2 - Yes. it is superfluos, there us nothing to choose and nothing to confirm.
Your quoting is ...lazy
but your summary made sense
Thank you.
-
xanad wrote: Back to the question posed on the front page:
can replace the window title
from "?"
to "Confirm your choice"
This is dialog for choosing a language
I do not know which language the user understands

The only words are languages in the language of that language :wink:
That is how it should work.......

There is nothing to confirm about the language in a remastered localized Puppy I think.

User avatar
xanad
Posts: 400
Joined: Fri 28 Feb 2014, 14:56
Location: 2 locations: MonteRosa Alp and Milano
Contact:

#17 Post by xanad »

There is nothing to confirm about the language in a remastered localized Puppy I think.
you'll see that if you do a test by selecting "en" The next window is in English. It's not a huge problem but there is and should be solved. At least in the next skeleton. :wink:
[url]http://www.xanad.tk[/url] Html5 Parallax

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

#18 Post by L18L »

Our huge problem seems to be that we do not understand each other. :cry:
selecting "en" The next window is in English.
That is OK for me.

Did you remaster?
... and change

Code: Select all

welcome1stboot
to

Code: Select all

LANGUAGE=it welcome1stboot
:?:

User avatar
xanad
Posts: 400
Joined: Fri 28 Feb 2014, 14:56
Location: 2 locations: MonteRosa Alp and Milano
Contact:

#19 Post by xanad »

:D It happens that the communications suffer interference. Sorry but I do not understand where I should intervene. I do not know the subject: in which file? :idea:
[url]http://www.xanad.tk[/url] Html5 Parallax

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

#20 Post by L18L »

xanad wrote:.. in which file? :idea:
first: in no file. Use just console.

Code: Select all

welcome1stboot
should start with choice between en and it.

Code: Select all

LANGUAGE=en welcome1stboot
should start without choice in en.

Code: Select all

LANGUAGE=it welcome1stboot
should start without choice in it.
Right?
We could now search where in which file this invocation is located

Code: Select all

grep welcome1stboot /usr/*/* 2>/dev/null
is your friend for this task.
maybe in /usr/sbin/delayedrun and change it there.


Second
Alternatively try

Code: Select all

export LANGUAGE=it
If

Code: Select all

welcome1stboot
is working then
that is starting in Italian without choice
we could try to add just this statement

Code: Select all

LANGUAGE=it; export LANGUAGE
to
/etc/rc.d/rc.local
... and add only this file to langpack_it


EDIT
You can get it if you really want. But you must try....... :wink:

Post Reply