Author Topic: setlanggerman not working  (Read 301 times)

The_Raven

  • Newbie
  • *
  • Posts: 18
setlanggerman not working
« on: June 16, 2017, 13:32:46 PM »
Hi

I have activated "setlanggerman" in rc.local.
If plop (4.3.3) is starting up it gives me an error:
Code: [Select]
-bash: warning: setlocale: LC_ALL: cannot change locale (de_DE.UTF8): No such file or directoryWhat is wrong here?  :o

Elmar

  • Administrator
  • Hero Member
  • *****
  • Posts: 2363
  • a command shell is enough to do amazing things
Re: setlanggerman not working
« Reply #1 on: June 17, 2017, 09:52:36 AM »
Hello,

I assume, you use the Small Edition of Plop Linux Live. The locale files have been removed in this edition to have a smaller release file.

When you want a Plop Linux Live without X but with all console tools (including locale), then download the standard edition and remove the 'ploplinux/opt.sqfs' file. When you want to create an ISO then see https://www.plop.at/en/ploplinux/live/livecd.html 1.2. There is also the script 'make-iso.sh'.

Best regards
Elmar

The_Raven

  • Newbie
  • *
  • Posts: 18
Re: setlanggerman not working
« Reply #2 on: June 24, 2017, 09:42:59 AM »
Thx for the response.
Yes it is the small live edition.
I try it as soon as possible. But many work ATM.

The_Raven

  • Newbie
  • *
  • Posts: 18
Re: setlanggerman not working
« Reply #3 on: June 27, 2017, 15:40:12 PM »
Hm, is it not possible to add the language (german) to the small build?
The standard edition (without the opt) is much larger than the small edition. And i need only the language.

Elmar

  • Administrator
  • Hero Member
  • *****
  • Posts: 2363
  • a command shell is enough to do amazing things
Re: setlanggerman not working
« Reply #4 on: June 27, 2017, 16:08:29 PM »
Hm, is it not possible to add the language (german) to the small build?
The standard edition (without the opt) is much larger than the small edition. And i need only the language.

You can extract the usr.sqfs of the small and the standard edition. Use 'unsquashfs', you can use -d for the destination directory name.
Replace the the usr/lib/locale/locale-archive file in the small edition with the one from the standard edition.
Compress the the usr directory for the small edition (mksquashfs).
Replace the original usr.sqfs with your new created usr.sqfs.

Do you need help on any step?

Best regards
Elmar

The_Raven

  • Newbie
  • *
  • Posts: 18
Re: setlanggerman not working
« Reply #5 on: June 28, 2017, 09:03:48 AM »
Oki doki dr. johnes...  :)
The locale-archive in the small edition has a size of 1.7MB, the one from the standard edition is much bigger, it has a size of 149.1MB.
Original usr.sqfs file has a size of 227.7MB, the new one with full lang support has 259.4MB. So "only" 31.7MB more.

To keep a long story short:
It works!  8)

Does it not make sense to put the lang file by default in the small edition?

Elmar

  • Administrator
  • Hero Member
  • *****
  • Posts: 2363
  • a command shell is enough to do amazing things
Re: setlanggerman not working
« Reply #6 on: June 28, 2017, 09:15:04 AM »
To keep a long story short:
It works!  8)

Great  :)


Does it not make sense to put the lang file by default in the small edition?

I explicit removed the big locale-archive to save space. For the small edition, I create a small locale-archive file. You can create a custom locale-archive file with german locale. See "live/create-core-sqfs/02-reduced-size/20_locale" in the release archive.
See also https://www.plop.at/en/ploplinux/buildtools/buildliverelease.html

Best regards
Elmar
« Last Edit: June 28, 2017, 09:17:58 AM by Elmar »