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 Sat 29 Aug 2015, 15:06
All times are UTC - 4
 Forum index » Advanced Topics » Puppy Projects » Localization Project
welcome1boot xmessage
Moderators: Lobster, MU, raffy
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 2 [20 Posts]   Goto page: 1, 2 Next
Author Message
xanad


Joined: 28 Feb 2014
Posts: 348
Location: 2 locations: MonteRosa Alp and Milano

PostPosted: Tue 09 Dec 2014, 10:46    Post subject:  welcome1boot xmessage
Subject description: How to change it?
 

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


_________________
www.xanad.tk Html5 Parallax

Last edited by xanad on Tue 09 Dec 2014, 11:03; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website 
LazY Puppy


Joined: 21 Nov 2014
Posts: 545
Location: Germany

PostPosted: Tue 09 Dec 2014, 11:01    Post subject:  

Quote:
not very nice nor understandable to beginners

Laughing

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

Laughing

_________________
RSH
No Smart-Phones, no FaceBook, no Twitter etc...
but: LazY Puppy!
Copyright is NOT Copyleft: good people are aware of this and respect both of them!
Back to top
View user's profile Send private message 
xanad


Joined: 28 Feb 2014
Posts: 348
Location: 2 locations: MonteRosa Alp and Milano

PostPosted: Tue 09 Dec 2014, 11:06    Post subject:  

LazY Puppy wrote:

Laughing

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

Laughing


Very Happy Very Happy Very Happy

_________________
www.xanad.tk Html5 Parallax
Back to top
View user's profile Send private message Visit poster's website 
ASRI éducation


Joined: 09 May 2009
Posts: 3114
Location: France

PostPosted: Wed 10 Dec 2014, 09:15    Post subject: Re: welcome1boot xmessage
Subject description: How to change it?
 

xanad wrote:

I never had this GUI.

_________________
Projet ASRI éducation => Association | Forum | Dépôt | Espace kids
Back to top
View user's profile Send private message Visit poster's website 
LazY Puppy


Joined: 21 Nov 2014
Posts: 545
Location: Germany

PostPosted: Wed 10 Dec 2014, 12:50    Post subject:  

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
No Smart-Phones, no FaceBook, no Twitter etc...
but: LazY Puppy!
Copyright is NOT Copyleft: good people are aware of this and respect both of them!
Back to top
View user's profile Send private message 
xanad


Joined: 28 Feb 2014
Posts: 348
Location: 2 locations: MonteRosa Alp and Milano

PostPosted: Wed 10 Dec 2014, 14:26    Post subject:  

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.

_________________
www.xanad.tk Html5 Parallax
Back to top
View user's profile Send private message Visit poster's website 
xanad


Joined: 28 Feb 2014
Posts: 348
Location: 2 locations: MonteRosa Alp and Milano

PostPosted: Mon 15 Dec 2014, 07:20    Post subject:  

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

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

# bacon -x -d /tmp welcome1stboot.bac

...which will generate 'welcome1stboot' and 'welcome1stboot.pot'


should change the following strings
Code:
win_width=640
  win_height=480
  language_win = WINDOW("?", win_width, win_height)

_________________
www.xanad.tk Html5 Parallax
Back to top
View user's profile Send private message Visit poster's website 
L18L

Joined: 19 Jun 2010
Posts: 2985
Location: www.eussenheim.de/

PostPosted: Mon 15 Dec 2014, 13:31    Post subject:  

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
Back to top
View user's profile Send private message 
step

Joined: 04 May 2012
Posts: 367

PostPosted: Tue 16 Dec 2014, 03:36    Post subject:  

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.

_________________
Fatdog64-700|+Packages|find-n-run|Blue Pup 4|DebianDog+OpenMediaVault
Back to top
View user's profile Send private message 
L18L

Joined: 19 Jun 2010
Posts: 2985
Location: www.eussenheim.de/

PostPosted: Tue 16 Dec 2014, 08:53    Post subject:  

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 Cool
Let us look into the source: https://github.com/puppylinux-woof-CE/woof-CE/blob/228457dc83f6d73425a519ade4ffc9923dc9abb7/woof-code/rootfs-skeleton/usr/sbin/welcome1stboot.bac

Fix 1: delete everything between line48
Code:
REM ============================ <language> ======================140210
and line 121
Code:
REM ============================ </language> ======================140210
and recompile so there will be no language choice at all

or
fix2
:
look at lines from 115 to 119:
Code:
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:
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:
 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:
set_LANGUAGE_and_launch_app quicksetup

Last edited by L18L on Tue 16 Dec 2014, 09:06; edited 1 time in total
Back to top
View user's profile Send private message 
LazY Puppy


Joined: 21 Nov 2014
Posts: 545
Location: Germany

PostPosted: Tue 16 Dec 2014, 09:03    Post subject:  

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
No Smart-Phones, no FaceBook, no Twitter etc...
but: LazY Puppy!
Copyright is NOT Copyleft: good people are aware of this and respect both of them!
Back to top
View user's profile Send private message 
xanad


Joined: 28 Feb 2014
Posts: 348
Location: 2 locations: MonteRosa Alp and Milano

PostPosted: Tue 16 Dec 2014, 10:32    Post subject:  

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

Question
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

_________________
www.xanad.tk Html5 Parallax
Back to top
View user's profile Send private message Visit poster's website 
L18L

Joined: 19 Jun 2010
Posts: 2985
Location: www.eussenheim.de/

PostPosted: Tue 16 Dec 2014, 10:56    Post subject: welcome1boot  

xanad wrote:
... already localized in Italian.

Add
Code:
LANGUAGE=it

to your localized versions

or
fix1

your choice
Back to top
View user's profile Send private message 
step

Joined: 04 May 2012
Posts: 367

PostPosted: Wed 17 Dec 2014, 02:42    Post subject:  

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 Smile

_________________
Fatdog64-700|+Packages|find-n-run|Blue Pup 4|DebianDog+OpenMediaVault
Back to top
View user's profile Send private message 
xanad


Joined: 28 Feb 2014
Posts: 348
Location: 2 locations: MonteRosa Alp and Milano

PostPosted: Wed 17 Dec 2014, 09:52    Post subject:  

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!

_________________
www.xanad.tk Html5 Parallax
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 1 of 2 [20 Posts]   Goto page: 1, 2 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Puppy Projects » Localization Project
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.0880s ][ Queries: 11 (0.0036s) ][ GZIP on ]