(dv):Change AWStats default language

  • This page was last modified on February 21, 2011, at 11:55.
The (mt) Community Wiki is a collaborative project. Any (mt) Media Temple customer or employee may contribute. Not all articles and/or content have been tested for accuracy by (mt) Media Temple.

For officially moderated and tested articles, be sure to visit our KnowledgeBase.

From (mt) Community Wiki

Languages for AWStats are defined by "Lang" directives in it's configuration files. New languages need to be set in the main AWStats configuration files:

/etc/awstats/awstats.conf
/etc/awstats/awstats.model.conf

The files which are already configured by Plesk for every domain can be found in the following files (Be sure to replace example.com with your domain name):

  • /usr/local/psa/etc/awstats/awstats.example.com-http.conf
  • /usr/local/psa/etc/awstats/awstats.<">example.com-https.conf
By default Lang is set to Lang="auto", this means it will accept the first available language by the browser. You can change it to any supported value that can be found above the Lang directive in the configuration files:


# Possible value:
 
 # Albanian=al, Bosnian=ba, Bulgarian=bg, Catalan= ca],

# Chinese (Taiwan)=tw, Chinese (Simpliefied)=cn, Croatian=hr, Czech=cz,

# Danish=dk, Dutch=nl, English=en, Estonian=et, Euskara=eu, Finnish=fi,

# French=fr, Galician=gl, German=de, Greek=gr, Hebrew=he, Hungarian=hu,

# Icelandic=is, Indonesian=id, Italian=it, Japanese=jp, Korean=ko,

# Latvian=lv, Norwegian (Nynorsk)=nn, Norwegian (Bokmal)=nb, Polish=pl,

# Portuguese=pt, Portuguese (Brazilian)=br, Romanian=ro, Russian=ru,

# Serbian=sr, Slovak=sk, Slovenian=si, Spanish=es, Swedish=se

# Turkish=tr, Ukrainian=ua, Welsh=cy.   


For example, if you want English you would use the following:

Lang="en"

When you are finished making any changes be sure to restart awstats to see any changes instantly.