This is the old XigmaNAS forum in read only mode,
it will taken offline by the end of march 2021!



I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!

[SOLVED] English & English UTF8 webgui just like QuiXplorer

Post/Debate your Suggestions & Requests of XigmaNAS here. This ONLY pertains to XigmaNAS.
Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
User avatar
kkd
Forum Moderator
Forum Moderator
Posts: 306
Joined: 08 May 2013 21:47
Location: Budapest, Hungary
Contact:
Status: Offline

[SOLVED] English & English UTF8 webgui just like QuiXplorer

Post by kkd »

Hi

i got non english characters in dirnames and filenames but I use nas4free webgui in english because there is no information on the web in my language.
Maybe I'm not alone and that's why QuiXplorer has got 2 English, English and English (UTF-8).
So I recommend to create English (UTF-8) nas4free webgui.

Thanks
ps: I tried but unable to modify localized lang files :oops:
Last edited by kkd on 16 May 2013 00:18, edited 1 time in total.
XigmaNAS x64-embedded | INTEL Intel(R) Core(TM) i3-2100 CPU @ 3.10GHz | 9216MiB RAM | X x YTB WD Red ZFS mirror compressed

User avatar
raulfg3
Site Admin
Site Admin
Posts: 4865
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: English & English UTF8 webgui just like QuiXplorer

Post by raulfg3 »

kiss.daniel wrote:ps: I tried but unable to modify localized lang files
do you ask about nas4free localized?

use launchpad to complete traslations, and developers add in next compile:

https://translations.launchpad.net/nas4free/trunk
12.1.0.4 - Ingva (revision 7743) on SUPERMICRO X8SIL-F 8GB of ECC RAM, 11x3TB disk in 1 vdev = Vpool = 32TB Raw size , so 29TB usable size (I Have other NAS as Backup)

Wiki
Last changes

HP T510

User avatar
kkd
Forum Moderator
Forum Moderator
Posts: 306
Joined: 08 May 2013 21:47
Location: Budapest, Hungary
Contact:
Status: Offline

Re: English & English UTF8 webgui just like QuiXplorer

Post by kkd »

ok, i'll finish the translations, but u missunderstood me.
I want to use english webgui because in my lang I cant find nothing on the web, and this forum and logs are english also.

So I would like to use english webgui and correct nonenglish char dir and filenames (just like in the filemanager).
XigmaNAS x64-embedded | INTEL Intel(R) Core(TM) i3-2100 CPU @ 3.10GHz | 9216MiB RAM | X x YTB WD Red ZFS mirror compressed

User avatar
kkd
Forum Moderator
Forum Moderator
Posts: 306
Joined: 08 May 2013 21:47
Location: Budapest, Hungary
Contact:
Status: Offline

Re: English & English UTF8 webgui just like QuiXplorer

Post by kkd »

I changed fbegin.php

Code: Select all

<?php header("Content-Type: text/html; charset=" . system_get_language_codeset());?>
to

Code: Select all

<?php header("Content-Type: text/html; charset=utf-8");?>
and nonenglish chars seems ok now.

Anyone knows why not utf-8 but system_get_language_codeset() is used?
XigmaNAS x64-embedded | INTEL Intel(R) Core(TM) i3-2100 CPU @ 3.10GHz | 9216MiB RAM | X x YTB WD Red ZFS mirror compressed

User avatar
kkd
Forum Moderator
Forum Moderator
Posts: 306
Joined: 08 May 2013 21:47
Location: Budapest, Hungary
Contact:
Status: Offline

Re: English & English UTF8 webgui just like QuiXplorer

Post by kkd »

One more idea:

QuiXplorer uses: $GLOBALS["charset"]

Code: Select all

	echo "<meta http-equiv=\"Content-Type\" content=\"text/html\" charset=\"".$GLOBALS["charset"]."\">\n";
XigmaNAS x64-embedded | INTEL Intel(R) Core(TM) i3-2100 CPU @ 3.10GHz | 9216MiB RAM | X x YTB WD Red ZFS mirror compressed

User avatar
zoon01
Developer
Developer
Posts: 724
Joined: 20 Jun 2012 21:06
Location: Netherlands
Contact:
Status: Offline

Re: English & English UTF8 webgui just like QuiXplorer

Post by zoon01 »

watch the line below in globals.inc at /etc/inc/

Code: Select all

"en_US" => array("codeset" => "ISO-8859-1", "desc" => gettext("English")),
What if you add this line below that line?

Code: Select all

"en_US" => array("codeset" => "UTF-8", "desc" => gettext("English (UTF-8)")),
Regards,
zoon01
System specs: XigmaNAS 11.2.0.4 -embedded on Samsung 860 EVO 256GB and Supermicro X10SL7-F w / Bios v3.2, IPMI v.03.86 / CPU E3-1241 v3 @ 3.50GHz - 32GB Crucial DDR3L 1600mhz ECC 1.35v , LSI 2308 on PH20.00.07.00 IT mode, Storage: 5x Western Digital Red (WD30EFRX) raidz

Development system is same system in virtualbox.

User avatar
kkd
Forum Moderator
Forum Moderator
Posts: 306
Joined: 08 May 2013 21:47
Location: Budapest, Hungary
Contact:
Status: Offline

Re: English & English UTF8 webgui just like QuiXplorer

Post by kkd »

i think there is no reason to use different then utf8.
XigmaNAS x64-embedded | INTEL Intel(R) Core(TM) i3-2100 CPU @ 3.10GHz | 9216MiB RAM | X x YTB WD Red ZFS mirror compressed

User avatar
zoon01
Developer
Developer
Posts: 724
Joined: 20 Jun 2012 21:06
Location: Netherlands
Contact:
Status: Offline

Re: English & English UTF8 webgui just like QuiXplorer

Post by zoon01 »

kiss.daniel wrote:i think there is no reason to use different then utf8.
Honest an fact, i'm not shure about yet at all!
a solution can be adding a line!
System specs: XigmaNAS 11.2.0.4 -embedded on Samsung 860 EVO 256GB and Supermicro X10SL7-F w / Bios v3.2, IPMI v.03.86 / CPU E3-1241 v3 @ 3.50GHz - 32GB Crucial DDR3L 1600mhz ECC 1.35v , LSI 2308 on PH20.00.07.00 IT mode, Storage: 5x Western Digital Red (WD30EFRX) raidz

Development system is same system in virtualbox.

User avatar
kkd
Forum Moderator
Forum Moderator
Posts: 306
Joined: 08 May 2013 21:47
Location: Budapest, Hungary
Contact:
Status: Offline

Re: English & English UTF8 webgui just like QuiXplorer

Post by kkd »

what is the advantage of iso8859-1?
why and where do u really use it?
what will be wrong if u change it to utf8?

I changed it in my n4f version and everything is better now. hungarian characters appear perfectly now, and english chars didnt went wrong.

I ssh as root and tried: ls -l > temp.txt
If I created a php to cat temp.txt, it was only perfect when the header charset was utf8.

i know its mine installation, but i didnt changed langset or anything.

I wanna help, but if i say it's worse the present solution, drop mine.

Daniel
ps: have to admit never tried russian or chinese chars
XigmaNAS x64-embedded | INTEL Intel(R) Core(TM) i3-2100 CPU @ 3.10GHz | 9216MiB RAM | X x YTB WD Red ZFS mirror compressed

User avatar
zoon01
Developer
Developer
Posts: 724
Joined: 20 Jun 2012 21:06
Location: Netherlands
Contact:
Status: Offline

Re: English & English UTF8 webgui just like QuiXplorer

Post by zoon01 »

After thinking and some back talk with some of the old devs I will change to default UTF-8 webgui for next release!

I also to be honest did not understood why it was not set UTF-8 from begin.

Regards,
zoon01
System specs: XigmaNAS 11.2.0.4 -embedded on Samsung 860 EVO 256GB and Supermicro X10SL7-F w / Bios v3.2, IPMI v.03.86 / CPU E3-1241 v3 @ 3.50GHz - 32GB Crucial DDR3L 1600mhz ECC 1.35v , LSI 2308 on PH20.00.07.00 IT mode, Storage: 5x Western Digital Red (WD30EFRX) raidz

Development system is same system in virtualbox.

User avatar
MikeMac
Forum Moderator
Forum Moderator
Posts: 429
Joined: 07 Oct 2012 23:12
Location: Moscow, Russia
Contact:
Status: Offline

Re: [SOLVED] English & English UTF8 webgui just like QuiXplo

Post by MikeMac »

zoon01>I will change to default UTF-8 webgui for next release!

Thank you very much for this deceision. r708. I had requested this recently, with new version I could use english webgui with russian filenames.

Post Reply

Return to “Suggestions & Requests”