ClearFoundation Tracker - ClearOS
View Issue Details
0013201ClearOSapp-language - Languagepublic2017-02-21 13:192018-09-26 09:26
dloper 
dloper 
highfeaturealways
closedfixed 
7.2.0 Updates 
7.3.17.3.1 
0013201: Language detection from grub
On firstboot and subsequent boots, webconfig should preview environment variables potentially set in grub and change the language of the OS and the web interface if the environment variable is changed in any of these files:

/boot/grub2/grubenv
/boot/efi/EFI/clearos/grubenv
/boot/efi/EFI/install/grubenv

The priority is the last item.

A sample output of this text file is:

# GRUB Environment Block
saved_entry=ClearOS (3.10.0-327.36.1.v7.x86_64) 7 (Final)
lang=en
language=en_US
raid=RAID
raidmode=BTRFS
#############... snip ...

NOTE: THERE IS NO CARRIAGE RETURN ON THE LAST LINE OF THE BOOT BLOCK

Standard file which is ignored may look like this:

# GRUB Environment Block
saved_entry=ClearOS (3.10.0-514.6.1.el7.x86_64) 7 (Beta 1)
#############... snip ...
Feel free to cross sync this data if it exists so that if a change is made in Webconfig that it ALSO affects grubenv variables IF they exist.
No tags attached.
Issue History
2017-02-21 13:19dloperNew Issue
2017-02-21 13:37user2Statusnew => confirmed
2017-02-21 13:37user2Target Version7.3.0 => 7.3.1
2017-02-21 13:38user2Categorywebconfig-utils => app-language - Language
2017-02-21 13:56user2Description Updatedbug_revision_view_page.php?rev_id=1531#r1531
2017-02-23 16:33user2Note Added: 0004891
2017-02-23 16:33user2Statusconfirmed => resolved
2017-02-23 16:33user2Resolutionopen => fixed
2017-02-23 16:33user2Assigned To => user2
2017-03-09 08:57user2Assigned Touser2 => dloper
2017-03-09 08:57user2Statusresolved => assigned
2017-03-09 08:57user2Note Added: 0005001
2017-03-09 08:57user2Statusassigned => resolved
2017-03-09 08:57user2Fixed in Version => 7.3.1
2018-09-26 09:26user2Statusresolved => closed

Notes
(0004891)
user2   
2017-02-23 16:33   
The grub2-to-locale.conf conversion will be checked on first boot and only first boot.
(0005001)
user2   
2017-03-09 08:57   
Requires verification.