Page 2 of 2

Re: KLV-Airedale-rc1 the Release Candidate 1 is Available!

Posted: Fri Dec 09, 2022 5:09 pm
by fredx181

@Sofiya that looks like different version than the included in rc1 (that I once shared, with 'Replaces" and "Conflict" options, a bit experimental, I'd say), is that right ?


Re: KLV-Airedale-rc1 the Release Candidate 1 is Available!

Posted: Fri Dec 09, 2022 5:13 pm
by Sofiya
fredx181 wrote: Fri Dec 09, 2022 5:09 pm

@Sofiya that looks like different version than the included in rc1 (that I once shared, with 'Replaces" and "Conflict" options, a bit experimental, I'd say), is that right ?

yes, that's why I'm a little confused
everything works packages are assembled


Re: KLV-Airedale-rc1 the Release Candidate 1 is Available!

Posted: Fri Dec 09, 2022 5:30 pm
by Sofiya

.


Re: KLV-Airedale-rc1 the Release Candidate 1 is Available!

Posted: Sun Dec 11, 2022 1:55 pm
by fredx181

@rockedge The env variable LANG is not set, this can lead to problems, for example try pasting this:
echo "поклонникам Г.О.Егора Летова радио онлайн" in a xterm window, it becomes:
echo "########### #.#.##### ###### ##### ######"
When doing first LANG=en_US.UTF-8 xterm and paste it in, it's OK.
Not sure if it's the right way for Void, but uncommenting LANG=en_US.UTF-8 in /etc/environment (tested by logout and login again) fixes it (mentioned earlier by I think @Sofiya )


Re: KLV-Airedale-rc1 the Release Candidate 1 is Available!

Posted: Sun Dec 11, 2022 3:33 pm
by rockedge

@fredx181 Totally correct solution. I thought I had set that a long time ago. It seems during the development it returned to default. I will fix it for KLV-Airedale-rc2 which should be ready in a few hours.

Way back while making the early FirstRib-Void distro's with the JWM + Rox desktop I first encountered that the environment variable ishould be set during the distro build. Void Linux has chapter on it in their manual on the recommended method to use.

I will use what you did first though since I trust your judgment on the matter.

This is what /etc/environment looks like now:

Code: Select all

#
# This file is parsed by pam_env module
#
# Syntax: simple "KEY=VAL" pairs on separate lines
#
#LC_ALL=en_US.UTF-8
#LANG=en_US.UTF-8

And this is what it looks like now (as soon as I generate the new rootfs):

Code: Select all

#
# This file is parsed by pam_env module
#
# Syntax: simple "KEY=VAL" pairs on separate lines
#
#LC_ALL=en_US.UTF-8
LANG=en_US.UTF-8

Re: KLV-Airedale-rc1 the Release Candidate 1 is Available!

Posted: Sun Dec 11, 2022 4:56 pm
by fredx181
rockedge wrote:

I will use what you did first though since I trust your judgment on the matter.

Better don't ;) as I don't know much about Void.
But your second /etc/environment code uncommented to LANG=en_US.UTF-8 works for me to solve the missing LANG env variable.


Re: KLV-Airedale-rc1 the Release Candidate 1 is Available!

Posted: Sun Dec 11, 2022 7:04 pm
by rockedge

@fredx181 This is what I use in the PLUG that builds the KLV base.

Code: Select all

# Set locale to en_US.UTF-8
sed -i 's/#en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/default/libc-locales
xbps-reconfigure -f glibc-locales

I will test this in a terminal.


Re: KLV-Airedale-rc1 the Release Candidate 1 is Available!

Posted: Sun Dec 11, 2022 7:40 pm
by fredx181
rockedge wrote: Sun Dec 11, 2022 7:04 pm

@fredx181 This is what I use in the PLUG that builds the KLV base.

Code: Select all

# Set locale to en_US.UTF-8
sed -i 's/#en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/default/libc-locales
xbps-reconfigure -f glibc-locales

I will test this in a terminal.

Mmm... running above doesnt work setting the locale (tested after re-login with echo $LANG, and it's showing empty. Should be in the right direction (official way). On Debian it's similar thing but running dpkg-reconfigure locales on Debian asks you also which to make default, that should be next step to make it work on Void too, I guess.
It does btw uncomment en_US.UTF-8 UTF-8 in /etc/default/libc-locales, so the sed -i ... part works.

edit:
The Void Handbook says to put it in /etc/locale.conf, I tried LANG=en_US.UTF-8 in locale.conf but doesn't work for me.
Also I read somewhere about problems setting the locale in void.
So I'd say put it in /etc/environment in the rootfs and be happy (and put this info in the KLV Handbook :D )
(most people want UTF8, I guess)


Re: KLV-Airedale-rc1 the Release Candidate 1 is Available!

Posted: Sun Dec 11, 2022 10:39 pm
by rockedge

@fredx181 You made me remember why I put uxterm into KLV!

If you run uxterm and do the line echo "поклонникам Г.О.Егора Летова радио онлайн" it works fine. So both xterm and uxterm are installed and work.

I wonder now with the localization set I could remove uxterm......


Re: KLV-Airedale-rc1 the Release Candidate 1 is Available!

Posted: Sun Dec 11, 2022 11:11 pm
by fredx181
rockedge wrote: Sun Dec 11, 2022 10:39 pm

@fredx181 You made me remember why I put uxterm into KLV!

If you run uxterm and do the line echo "поклонникам Г.О.Егора Летова радио онлайн" it works fine. So both xterm and uxterm are installed and work.

I wonder now with the localization set I could remove uxterm......

Yes, uxterm works with UTF-8, but if you e.g. click on a script that needs it, it doesn't work ok as it doesnt run in uxterm.
I think too, if locale is properly set to UTF8, no need for uxterm.


Re: KLV-Airedale-rc1 the Release Candidate 1 is Available!

Posted: Sun Dec 11, 2022 11:40 pm
by Sofiya

I have translated the OS into my language, though there is one caveat, the programs installed out of the box have my locale, and third-party script programs are not translated into my language even if I throw the file хххх .mо into
/usr/share/locale/ru/LC_MESSAGES/
even if I force my language to be selected for the program.
It certainly doesn't bother me, but I would like to understand the reason for this behavior


Re: KLV-Airedale-rc1 the Release Candidate 1 is Available!

Posted: Mon Dec 12, 2022 12:34 am
by Sofiya

All this problem is solved, third-party files have my language :thumbup:


Re: KLV-Airedale-rc1 the Release Candidate 1 is Available!

Posted: Mon Dec 12, 2022 12:42 am
by rockedge

@Sofiya Nice! How did you fix it?


Re: KLV-Airedale-rc1 the Release Candidate 1 is Available!

Posted: Mon Dec 12, 2022 1:16 am
by Sofiya
rockedge wrote: Mon Dec 12, 2022 12:42 am

@Sofiya Nice! How did you fix it?

edited:
Install library for internationalization gettext
for information https://ru.wikipedia.org/wiki/Gettext

Uncomment the line with your language /etc/default/libc-locales for example #ru_RU.UTF-8 UTF-8 on theru_RU.UTF-8 UTF-8

in /etc/locale.confLANG=ru_RU.UTF-8
LC_COLLATE=C

in - /etc/environment

Code: Select all

#
# This file is parsed by pam_env module
#
# Syntax: simple "KEY=VAL" pairs on separate lines
#

#LC_ALL=ru_RU.UTF-8
LANG=ru_RU.UTF-8


PATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/root/my-applications/bin:/usr/games"

then type in terminal xbps-reconfigure -f glibc-locales

exit the session


Re: KLV-Airedale-rc1 the Release Candidate 1 is Available!

Posted: Mon Dec 12, 2022 11:57 am
by Sofiya
rockedge wrote: Mon Dec 12, 2022 12:42 am

@Sofiya Nice! How did you fix it?

in file "chooselocale"
pop-up notifications and the restart button X have been edited.
re-uploaded

edited
option 2: language selection will be done automatically via "chooselocale" script in applications > settings > localization
"chooselocale" file attached below
put the "chooselocale" file in /usr/sbin

Add to /etc/profile

PATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/root/my-applications/bin:/usr/games"
#this line gets edited by chooselocale script...
LANG=ru_RU.UTF-8
export LANG

install in /usr/share/applications/

Code: Select all

[Desktop Entry]
Encoding=UTF-8
Name=Localization
Icon=locale
Comment=Choose your country localisation
Exec=chooselocale
Terminal=false
Type=Application
Categories=X-DesktopCountry;X-System;Settings;X-XFCE-SettingsDialog;X-XFCE-SystemSettings;
GenericName=Localisation

for third-party programs also install gettext

in order for a third-party program to be in your language, you need a program file xxxx.mo with your language translation
put the file in /usr/share/locale/ folder with your language

/etc/environment

Code: Select all

#
# This file is parsed by pam_env module
#
# Syntax: simple "KEY=VAL" pairs on separate lines

#LC_ALL=ru_RU.UTF-8
#LANG=ru_RU.UTF-8



Re: KLV-Airedale-rc1 the Release Candidate 1 is Available!

Posted: Mon Dec 12, 2022 4:06 pm
by fredx181
Sofiya wrote:

there is another option
but then you need to replace the file /etc/profile
and install in /usr/share/applications/

I don't understand what you say "replace the file /etc/profile"
And... :
I experimented setting to my language Dutch, besides uncommenting in /etc/default/libc-locales #nl_NL.UTF-8 UTF-8 , I had to do xbps-reconfigure -f locales (that you didn't mention) which will generate the locale, without it, setting language didn't work for me.
Also I tried running "chooselocale" and it's not found (on rc2).


Re: KLV-Airedale-rc1 the Release Candidate 1 is Available!

Posted: Mon Dec 12, 2022 5:24 pm
by Sofiya

yes, maybe it's not there because I have a save file and it's there
in file "chooselocale"
pop-up notifications and the restart button X have been edited.
re-uploaded

edited:

place in /usr/sbin
chooselocale


Re: KLV-Airedale-rc1 the Release Candidate 1 is Available!

Posted: Mon Dec 12, 2022 6:02 pm
by fredx181
Sofiya wrote: Mon Dec 12, 2022 5:24 pm

yes, maybe it's not there because I have a save file and it's there
put in /usr/sbin
create a symbolic link named chooselocale In the same place

Had a look at your attachments shared. Good intentions, I'm sure, but to implement in KLV what you shared needs much more explanation about how to handle, I think, anyway it's confusing for me :?: , but perhaps @rockedge can use it.

edit:

because I have a save file and it's there

Please try to differentiate between what you do and what's inside a new release.


Re: KLV-Airedale-rc1 the Release Candidate 1 is Available!

Posted: Mon Dec 12, 2022 6:52 pm
by Sofiya
fredx181 wrote: Mon Dec 12, 2022 6:02 pm
Sofiya wrote: Mon Dec 12, 2022 5:24 pm

yes, maybe it's not there because I have a save file and it's there
put in /usr/sbin
create a symbolic link named chooselocale In the same place

Had a look at your attachments shared. Good intentions, I'm sure, but to implement in KLV what you shared needs much more explanation about how to handle, I think, anyway it's confusing for me :?: , but perhaps @rockedge can use it.

edit:

because I have a save file and it's there

Please try to differentiate between what you do and what's inside a new release.

chooselocale end gettextneed to install
this allows me to change to my locale without xbps-reconfigure -f locales

а PATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/root/my-applications/bin:/usr/games"
localizes third-party programs like tkagif... and others


Re: KLV-Airedale-rc1 the Release Candidate 1 is Available!

Posted: Mon Dec 12, 2022 10:31 pm
by Sofiya

Thank you very much @rockedge
for a wonderful puppy :thumbup: