The time now is Tue 10 Dec 2019, 17:14
All times are UTC - 4 |
Page 84 of 135 [2023 Posts] |
Goto page: Previous 1, 2, 3, ..., 82, 83, 84, 85, 86, ..., 133, 134, 135 Next |
Author |
Message |
step
Joined: 04 May 2012 Posts: 1224
|
Posted: Sun 06 Jan 2019, 08:56 Post subject:
|
|
technosaurus wrote: |
One thing I remember learning from that, which I never posted about was that it becomes important to replace echo with printf to allow for differing language rules. It allows a %s to be included in the translated string so that variables can be inserted at the appropriate syntactical location.
Here is an oversimplified example:
Code: |
setLANG_de(){
#uncomment these after translating to german
#_M_1="translate %s strings\n"
#_M_2="some"
#_M_3="some more"
}
printf "${_M_1:-translate %s strings\n}" "3"
printf "${_M_1:-translate %s strings\n}" "${_M_2:-some}"
printf "${_M_1:-translate %s strings\n}" "${_M_3:-some more}" |
| I agree. The alternative to printf is sourcing gettext.sh and calling
Code: |
# howmay="some more" eval_gettext 'translate $howmany strings'
|
Both shell printf and eval_gettext share the limitation that one can't re-arrange the order of arguments. That limits somewhat the translation. However, I think this sort of limitation isn't going to be an issue in practice because good translators can usually work around it.
Some of my scripts use a single gettext -es call to translate all messages at once instead of each single message with its own gettext call. This is done for speed and to keep all strings in a single place. The technique is illustrated in this message table script, which the application script sources. Script xgettext.sh in this folder is used to extract the gettext strings (the folder contains all scripts I use to generate a .pot file for findnrun).
_________________ Fatdog64-810|+Packages|Kodi|gtkmenuplus
|
Back to top
|
|
 |
rufwoof

Joined: 24 Feb 2014 Posts: 3672
|
Posted: Mon 07 Jan 2019, 11:42 Post subject:
|
|
Just to report that tmux from ...
http://www.murga-linux.com/puppy/viewtopic.php?p=1002738#1002738 seems to work well under the latest EasyOS version. I also install mc from petget as a terminal/cli file manager and text editor.
Setting things to log into to the Easy Container and then Ctrl-Shift to disable alt-F6 switching to the main/real root desktop and instead running all root commands from root/cli (I like to use ctrl-alt-F3 for root/cli) works well.
For absolutely necessary root/windows gui actions you can run those from the console/cli for example
DISPLAY=:1 leafpad
from root/cli to fire up a (real root) leafpad window on the Easy containers gui desktop. That does however become insecure so best if no other Easy container windows, in particular browser, are running at that time.
With a reasonable tput based (textual/cli) menu, much of the root actions you might normally use in the main (real root) session can be replicated under ctrl-alt-F3 root/cli (console).
 |
Description |
|
Filesize |
140.71 KB |
Viewed |
1389 Time(s) |

|
_________________ ( ͡° ͜ʖ ͡°) :wq
Fatdog multi-session usb
echo url|sed -e 's/^/(c/' -e 's/$/ hashbang.sh)/'|sh
|
Back to top
|
|
 |
rufwoof

Joined: 24 Feb 2014 Posts: 3672
|
Posted: Mon 07 Jan 2019, 11:47 Post subject:
|
|
Just to highlight the insecurities of running real root X programs/windows alongside user or less secure windows (browsers etc.), here (attached image) note how with a real root window present on the Easy containers desktop, a easy container program such as sakura can detect that, and stuff commands into it (for simplicity I used xdotool to do that).
Description |
|
Filesize |
139.79 KB |
Viewed |
1378 Time(s) |

|
_________________ ( ͡° ͜ʖ ͡°) :wq
Fatdog multi-session usb
echo url|sed -e 's/^/(c/' -e 's/$/ hashbang.sh)/'|sh
|
Back to top
|
|
 |
rufwoof

Joined: 24 Feb 2014 Posts: 3672
|
Posted: Mon 07 Jan 2019, 15:41 Post subject:
Audacious |
|
Start audacious
View Visualisations and add the Blur visualisation, click its top panel and select the Dock Left option and it docks OK.
Repeat for another visualisation and audacious crashes.
I usually activate and dock all three of the available visualisations.
Description |
|
Filesize |
153.72 KB |
Viewed |
1350 Time(s) |

|
_________________ ( ͡° ͜ʖ ͡°) :wq
Fatdog multi-session usb
echo url|sed -e 's/^/(c/' -e 's/$/ hashbang.sh)/'|sh
|
Back to top
|
|
 |
BarryK
Puppy Master

Joined: 09 May 2005 Posts: 9090 Location: Perth, Western Australia
|
Posted: Tue 08 Jan 2019, 07:39 Post subject:
|
|
@rufwoof,
Thanks for your reports. Yes, I do need to think some more about ratcheting-up the security. That is on the to-do list.
Right now, I am working on something else: out-of-the-box non-English support.
See this post:
http://bkhome.org/news/201901/non-english-builds-of-easyos.html
Releasing a ready-to-go non-English build of Easy is real nice for users. Also, it is good for containers -- currently, that is a difficult situation.
I am building the non-English Easy distro in WoofE, with the langpack built-in. So, running in containers is fully translated.
Otherwise, if the langpack is a PET, it would have to be installed in each container. It could be an SFS instead, but there are still problems.
Building language-specific EasyOSs does mean a lot of extra uploads, if I have say, several of them, but these days I have a 4G plan with unlimited data.
This is quite exciting.
One thing, the test German build of Easy still had LibreOffice displaying in English. So I am compiling it again, with support for all languages.
_________________ https://bkhome.org/news/
|
Back to top
|
|
 |
BarryK
Puppy Master

Joined: 09 May 2005 Posts: 9090 Location: Perth, Western Australia
|
Posted: Thu 10 Jan 2019, 21:29 Post subject:
|
|
EasyOS version 0.9.18 is released, see blog announcement:
http://bkhome.org/news/201901/easyos-0918-with-german-build.html
The really exciting thing is that there is a German build, ready-to-go (almost) fully translated.
Earlier post, with photos:
http://bkhome.org/news/201901/non-english-builds-of-easyos.html
Download:
http://distro.ibiblio.org/easyos/amd64/releases/pyro/0.9.18/
Stay tuned, more languages expected very soon.
_________________ https://bkhome.org/news/
|
Back to top
|
|
 |
Sage
Joined: 04 Oct 2005 Posts: 5501 Location: GB
|
Posted: Fri 11 Jan 2019, 08:22 Post subject:
|
|
Thanks for the .iso!
It's not the German, or other, versions that are of concern but the alleged 'English' variety with all the American allusions and defaults, not least the locales - most would be happy to see Perth/Oz as defaults, recognising the talents of the inventor! Not as if the Yanks invented computers or coding, even....
Babbage, Ada, Turing, Flowers, & co...
|
Back to top
|
|
 |
BarryK
Puppy Master

Joined: 09 May 2005 Posts: 9090 Location: Perth, Western Australia
|
Posted: Fri 11 Jan 2019, 20:35 Post subject:
|
|
A Portuguese (pt) build of EasyOS 0.9.18, see blog post:
http://bkhome.org/news/201901/easyos-0918-portuguese-build.html
Robert (forum member robwoj44) has expressed an interest in doing some pt translating. He explained that he doesn't come to the Puppy Forum much these days, but it is great that he will have some input.
_________________ https://bkhome.org/news/
|
Back to top
|
|
 |
Billtoo

Joined: 07 Apr 2009 Posts: 3680 Location: Ontario Canada
|
Posted: Fri 11 Jan 2019, 20:38 Post subject:
EasyOS Pyro 0.9.18, January 11, 2019 |
|
.
I downloaded easy-0.9.18-de-amd64.img.gz and easydd, I used the command
"sudo sh easydd easy-0.9.18-de-amd64.img.gz" (from Manjaro).
Drive a: is the hard drive, and I thought the flash drive would be drive b:
(Sandisk Ultra usb 3.0) but it turned out that drive b: was the empty
SD card reader and the flash drive was drive c:
I installed to drive c:, when easy booted drive c: had become drive b:
On first boot I changed to U.S. english, saw a message that it would be
english after rebooting and it was.
I think I'll give easy a rest for a few releases and give it another try
at that point.
Thanks.
|
Back to top
|
|
 |
BarryK
Puppy Master

Joined: 09 May 2005 Posts: 9090 Location: Perth, Western Australia
|
Posted: Sat 12 Jan 2019, 00:22 Post subject:
Re: EasyOS Pyro 0.9.18, January 11, 2019 |
|
Billtoo wrote: | .
I downloaded easy-0.9.18-de-amd64.img.gz and easydd, I used the command
"sudo sh easydd easy-0.9.18-de-amd64.img.gz" (from Manjaro).
Drive a: is the hard drive, and I thought the flash drive would be drive b:
(Sandisk Ultra usb 3.0) but it turned out that drive b: was the empty
SD card reader and the flash drive was drive c:
I installed to drive c:, when easy booted drive c: had become drive b:
On first boot I changed to U.S. english, saw a message that it would be
english after rebooting and it was.
I think I'll give easy a rest for a few releases and give it another try
at that point.
Thanks. |
Thanks for all the testing that you have done.
I want to bring out version 1.0, maybe in a couple of weeks.
Then I also will give it a rest.
My Purism Librem 5 phone dev-kit arrived recently, and I am keen to play with it. So will put EasyOS on the back-burner for awhile.
_________________ https://bkhome.org/news/
|
Back to top
|
|
 |
BarryK
Puppy Master

Joined: 09 May 2005 Posts: 9090 Location: Perth, Western Australia
|
Posted: Sat 12 Jan 2019, 00:29 Post subject:
|
|
Here is a French build:
http://bkhome.org/news/201901/easyos-0918-french-build.html
_________________ https://bkhome.org/news/
|
Back to top
|
|
 |
petihar

Joined: 09 Apr 2007 Posts: 362
|
Posted: Sat 12 Jan 2019, 12:01 Post subject:
|
|
Quote: | Hi guys,
Just to let you know, in case anyone is interested. There is a French build of EasyOS, ready-to-go |
Super nice! Thank you Barry, I'll be quick to test it.
petihar
|
Back to top
|
|
 |
BarryK
Puppy Master

Joined: 09 May 2005 Posts: 9090 Location: Perth, Western Australia
|
Posted: Sun 13 Jan 2019, 06:23 Post subject:
|
|
And more!
http://bkhome.org/news/201901/easyos-0918-polish-build.html
http://bkhome.org/news/201901/easyos-0918-spanish-build.html
These have UI translation for SeaMonkey, but it has to be manually enabled. The Mozilla developers have made it more difficult to get the language translation extension to be enabled automatically. Will keep trying.
I you start "seamonkey" in a terminal, you will see the message:
Quote: | Warn: Disabling foreign installed addon langpack-pl@seamonkey.mozilla.org |
_________________ https://bkhome.org/news/
|
Back to top
|
|
 |
Rodney Byne
Joined: 31 Jan 2014 Posts: 229
|
Posted: Sun 13 Jan 2019, 12:31 Post subject:
Desktop container |
|
In trying to get accustomed to v18, it seems like the desktop container
system needs more work.
Default SfsGet delivers Firefox ok.
In container system, SfsGet looks as if it wants to download Firefox
while showing the orange % progress banner, but doesn't actually install.
Same thing with Chromium. Is this right or wrong?
If SfsGet is supposed to provide working s/w in this mode, then it isn't doing its job.
Also the package manager downloads a critically out of date Firefox 42.9esr.
Regards.
|
Back to top
|
|
 |
Gyle
Joined: 23 Dec 2007 Posts: 115 Location: Fr
|
Posted: Sun 13 Jan 2019, 16:22 Post subject:
|
|
For those who are concerned:
I just discovered some comments from BK on a thread specialized in translations
1 I destroyed the translation files, I made in a hurry just to bring help, so as not to interfere with musher0's, just in case, hoping for normal relations in the near future between him and BK. He is far better than me, a true bilingual, I sometimes read his posts.
2 Between musher0, belham2, and myself there is no relationship at all, Edit : I'm totally unknown to each other,Edit : I have never communicated with each other in any way, so there can be no rivalry, discussion, dispute of any kind in the past or present. They can confirm this.
EDIT: ooops ! sorry for belham2 and musher0, I don't know nothing about their relations
3 Not too seriously, when there's somewhere a mess, there's always a messiah.
Good night, janv 13, 21:12, it's time for me to drill in the political messes.
Last edited by Gyle on Mon 14 Jan 2019, 13:59; edited 1 time in total
|
Back to top
|
|
 |
|
Page 84 of 135 [2023 Posts] |
Goto page: Previous 1, 2, 3, ..., 82, 83, 84, 85, 86, ..., 133, 134, 135 Next |
|
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
|