yzc021 Posted September 1, 2005 Posted September 1, 2005 Hi I had use TotalChoiceHosting for almost a year and seldom come here to post. I am from China. And my site is writen in Chinese. In AWStats "Search Keyphrases" and "Search Keywords " items, the results are showed in mass code can't read. They are not shown in Chinese properly. Of cause it can show English corectly. I think maybe can change something from "awstats.zucaiblog.com.conf", but not sure. And also, when I enter AWStats page to check the stats, the page is: http://67.15.82.11:2082/awstats.pl?config=mysite.com&lang=en it's English page I change the language option to: http://67.15.82.11:2082/awstats.pl?config=mysite.com&lang=cn it's Chinese page, that's what I want. My question is how I can set Chinese language page for the default? Even from the Chinese page http://67.15.82.11:2082/awstats.pl?config=mysite.com&lang=cn The "Search Keyphrase" and "Search Keywords" results are mass code. Hope can get some help! Thanks Quote
TweezerMan Posted September 1, 2005 Posted September 1, 2005 In your awstats.zucaiblog.com.conf file, I believe you can set the language by finding the following option: ># Set your primary language. # Possible value: # Bosnian=ba, Chinese (Taiwan)=tw, Chinese (Traditional)=cn, Czech=cz, # Danish=dk, Dutch=nl, English=en, French=fr, German=de, Greek=gr, # Hungarian=hu, Indonesian=id, Italian=it, Japanese=jp, Korean=kr, # Latvian=lv, Norwegian (Nynorsk)=nn, Norwegian (Bokmal)=nb, Polish=pl, # Portuguese=pt, Portuguese (Brazilian)=br, Romanian=ro, Russian=ru, # Spanish=es, Swedish=se, Turkish=tr, Ukrainian=ua # Default: en # Lang="en" After setting Lang="cn", you'd need to set the permissions on awstats.zucaiblog.com.conf to 0444 so it will not be overwritten with a default .conf file. I'm not sure if this will fix your issue with the 'Search Keyphrase' and 'Search Keywords' sections though, particularly if the searches listed were done in another language. Quote
yzc021 Posted September 1, 2005 Author Posted September 1, 2005 In your awstats.zucaiblog.com.conf file, I believe you can set the language by finding the following option: ># Set your primary language. # Possible value: # Bosnian=ba, Chinese (Taiwan)=tw, Chinese (Traditional)=cn, Czech=cz, # Danish=dk, Dutch=nl, English=en, French=fr, German=de, Greek=gr, # Hungarian=hu, Indonesian=id, Italian=it, Japanese=jp, Korean=kr, # Latvian=lv, Norwegian (Nynorsk)=nn, Norwegian (Bokmal)=nb, Polish=pl, # Portuguese=pt, Portuguese (Brazilian)=br, Romanian=ro, Russian=ru, # Spanish=es, Swedish=se, Turkish=tr, Ukrainian=ua # Default: en # Lang="en" After setting Lang="cn", you'd need to set the permissions on awstats.zucaiblog.com.conf to 0444 so it will not be overwritten with a default .conf file. I'm not sure if this will fix your issue with the 'Search Keyphrase' and 'Search Keywords' sections though, particularly if the searches listed were done in another language. <{POST_SNAPBACK}> Thanks Dvid Followed your point, I had changed Lang="en" to Lang="cn" and changed the file permission to 444. But still same. I then loged out and login angain, refresh the browser, still same en default comes. I don't know why,any thing I made mistake? Thanks again! Quote
TweezerMan Posted September 1, 2005 Posted September 1, 2005 Did you remove the '&lang=en' or '&lang=cn' from the URL you're using to access AWStats? If it is left in the URL, it overrides the 'Lang' option in the .conf file. I tested this on my own server - if the URL does not contain the "&lang=" option, AWStats displays in the language specified by the 'Lang' option in the .conf file. The translation is not 100% though - there's some phrases on the page that are not translated / localized into the chosen language. The only other thing I did different is I browsed to the AWStats URL with my domain name instead of the server's IP address: >http://my-TCH-domain.com:2082/awstats.pl?config=my-TCH-domain.com Quote
yzc021 Posted September 1, 2005 Author Posted September 1, 2005 Did you remove the '&lang=en' or '&lang=cn' from the URL you're using to access AWStats? If it is left in the URL, it overrides the 'Lang' option in the .conf file. I tested this on my own server - if the URL does not contain the "&lang=" option, AWStats displays in the language specified by the 'Lang' option in the .conf file. The translation is not 100% though - there's some phrases on the page that are not translated / localized into the chosen language. The only other thing I did different is I browsed to the AWStats URL with my domain name instead of the server's IP address: >http://my-TCH-domain.com:2082/awstats.pl?config=my-TCH-domain.com <{POST_SNAPBACK}> Yes, I removed all the links from the "Tools"- "Internet Option"- "Histroy", But when I entered AWSats again, Lang=en pages comes again Quote
yzc021 Posted September 1, 2005 Author Posted September 1, 2005 I had removed all the url in the browser through "History". Maybe any other thing need to set ? Thanks Quote
TweezerMan Posted September 1, 2005 Posted September 1, 2005 It's not an issue with URLs stored in your browser's history. How are you entering (going to) the AWStats page in your browser? I did a little investigating, and noticed that if you enter CPanel, click on "Web/FTP Stats", then click on "Awstats", the page will always be displayed in English. This is because the "Awstats" linked page contains a redirect to the actual AWStats page: ><META HTTP-EQUIV="Refresh" CONTENT="0;URL=/awstats.pl?config=my-TCH-domain.com&lang=en"> It appears that the '&lang=en' is hard-coded in the redirect URL, and this will override any language setting in the AWStats .conf file. Unfortunately, I don't see any way to change the language the CPanel is setting in the redirect URL to the AWStats page. It looks to me like your best option here is to bookmark the link you said displayed the AWStats page for you in Chinese: >http://my-TCH-domain.com:2082/awstats.pl?config=my-TCH-domain.com&lang=cn ...and use the bookmark to view your AWStats page rather than going through CPanel. Once you've done this, you probably should set the permissions on the awstats.zucaiblog.com.conf back to 0644. You won't be using the 'Lang' setting in the .conf file, and resetting the permissions to 0644 will allow it to be updated if any changes or updates are published. Quote
yzc021 Posted September 1, 2005 Author Posted September 1, 2005 It's not an issue with URLs stored in your browser's history. How are you entering (going to) the AWStats page in your browser? I did a little investigating, and noticed that if you enter CPanel, click on "Web/FTP Stats", then click on "Awstats", the page will always be displayed in English. This is because the "Awstats" linked page contains a redirect to the actual AWStats page: ><META HTTP-EQUIV="Refresh" CONTENT="0;URL=/awstats.pl?config=my-TCH-domain.com&lang=en"> It appears that the '&lang=en' is hard-coded in the redirect URL, and this will override any language setting in the AWStats .conf file. Unfortunately, I don't see any way to change the language the CPanel is setting in the redirect URL to the AWStats page. It looks to me like your best option here is to bookmark the link you said displayed the AWStats page for you in Chinese: >http://my-TCH-domain.com:2082/awstats.pl?config=my-TCH-domain.com&lang=cn ...and use the bookmark to view your AWStats page rather than going through CPanel. Once you've done this, you probably should set the permissions on the awstats.zucaiblog.com.conf back to 0644. You won't be using the 'Lang' setting in the .conf file, and resetting the permissions to 0644 will allow it to be updated if any changes or updates are published. <{POST_SNAPBACK}> It's seems a good way to go. But is there any thing to do with your way that via the URL: http://my-TCH-domain.com:2082/awstats.pl?c...-TCH-domain.com Need any other setting? I like this Thanks Quote
TweezerMan Posted September 1, 2005 Posted September 1, 2005 You'll want to add the '&lang=cn' to the URL as I have it above, so the AWStats page will display in Chinese as you wanted. Other than that, no, I don't think you need any other setting. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.