ElkArte Community

Title: Language problem
Post by: mozard on March 03, 2016, 02:15:48 am
Hi, it is me again..

Now I am facing problem about language. For my forum I just use 1 language and the default language is English, but I dont know why on mobile it use Chinese font .. and on PC the Home symbol change to chinese too ..

And how to fix it, I have tried change the local but nothing change

thx for your help
Title: Re: Language problem
Post by: Burke Knight on March 03, 2016, 02:31:02 am
That's the Font Awesome.
Seems like something may be amiss in the css for it.
A link would be useful, to see for myself.
Title: Re: Language problem
Post by: mozard on March 03, 2016, 03:23:26 am
Quote from: Burke Knight – That's the Font Awesome.
Seems like something may be amiss in the css for it.
A link would be useful, to see for myself.

the link is .. www.endejaya.com .. but maybe you need proxy, looks like my web host not give international bandwidth
Title: Re: Language problem
Post by: emanuele on March 03, 2016, 04:34:23 am
What browser are you using?
Title: Re: Language problem
Post by: Burke Knight on March 03, 2016, 06:38:42 am
Looks good to me, on Chrome for Android.
However, it does show as Chinese characters, for a second or two, before it catches up.
Title: Re: Language problem
Post by: TE on March 03, 2016, 09:18:48 am
Quote from: Burke Knight – Looks good to me, on Chrome for Android.
Tested with Chrome and  IE11 on Windows, both looking good.
Maybe there's a proxy between your PC and your website filtering /blocking content?
Title: Re: Language problem
Post by: Spuds on March 03, 2016, 09:19:27 am
Looks good to me as well ... like @Burke Knight stated, those icons are from the Font Awesome font set.

Usually if you are seeing Chinese Logogram characters it means one of two things:
1) you are using a really old browser, like ie7, those browsers do not support FA
2) Some server issue such as incorrect MIME type on some of the files or a CORS issue

If its a server issue, I'd suggest a few things to try ... probably the easiest is to try what I show in option C) since that will take care of the other issues, should those be issues at all.

A) IF its a CORS issue add to your .htaccess
Code: [Select]
<FilesMatch "\.(ttf|otf|eot|svg|woff|woff2)$">
    <IfModule mod_headers.c>
        Header set Access-Control-Allow-Origin "*"
    </IfModule>
</FilesMatch>

B) If its a MIME type issue add the following
Code: [Select]
 AddType application/vnd.ms-fontobject .eot
AddType application/font-woff .woff
AddType application/font-woff .woff2
AddType application/x-font-truetype .ttf
AddType image/svg+xml .svg
AddType application/x-font-opentype .otf

If you can't do anything to your server:
C) you can try to use a CDN to deliver the fonts instead (something I think we should add to the core TBH).  In Load.php
Code: (find) [Select]
	loadCSSFile('font-awesome.min.css');
Code: (replace) [Select]
	loadCSSFile('https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css');
Title: Re: Language problem
Post by: mozard on March 10, 2016, 06:31:56 pm
Sorry for late reply, I've just finished my TCG event yesterday need full concentrate for preparation as tournament organizer

I tested it using 5 browser
- Chrome for Android (auto update)
- Mozilla Firefox 44.0.2
- Chrome for PC (auto update)
- Maxthon
- Internet Explorer (legacy :))

maxthon give a good result, but others is having the same problem ..
Title: Re: Language problem
Post by: emanuele on March 11, 2016, 02:24:26 am
Would you mind asking other members of your forum if they have the same issue?
Where are you from and what language is the operating system? (I assume Windows?)
Title: Re: Language problem
Post by: mozard on March 11, 2016, 06:14:29 pm
still a new forum and only 3 members including me for testing, no publication yet. One of the having the same case using his mobile (android) using Opera Mini browser, but the one using built in browser is all good

I'm from Indonesia, server language is Bahasa Indonesia,

server operating system is linux

mine is windows ^^
Title: Re: Language problem
Post by: radu81 on March 11, 2016, 07:22:40 pm
If I remember well there was another similar discussion,and opera mini seems to be incompatible with font awesome icons
http://stackoverflow.com/questions/15028602/font-awesome-icons-are-not-working-in-some-browsers
Title: Re: Language problem
Post by: emanuele on March 12, 2016, 03:44:02 am
Yep, what radu said about Opera mini: it doesn't work with FA...

About the others, I really have no idea...
But you didn't tell me what language is your OS. ;D
Title: Re: Language problem
Post by: mozard on March 12, 2016, 09:09:32 am
Aw, sorry .. my PC/Phone default language is English, more familiar for me than Bahasa.

Following Radu's link .. I've read it, but not try it yet .. poor connection :( maybe because the solar eclipse :p