#1  
Old 18th November 2010, 22:16
Davide Davide is offline
Senior Member
 
Join Date: Jul 2006
Posts: 123
Thanks: 16
Thanked 9 Times in 8 Posts
Default Webalizer language in Debian

Hi

I have found a lot of old information about Debian webalizer and stats language, saying the only way to change language is compiling from sources. Even it's an entry on FAQ:

http://www.faqforge.com/linux/contro...-ubuntu-linux/


I have researched a little about it, and found that you don't need to compile webalizer for generating stats on your language

Debian webalizer uses gettext, so it will generate statistics on the default locale of your system.

With Debian > 4.0 (etch), you can change your locale with:

Code:
update-locale LANG=es_ES.UTF-8
You can momentarily force generation in another language simply changing your LANG env var:

Code:
export LANG=es_ES.UTF-8; webalizer -c xxxx
More info:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=291368

I'm sure Debian's stock webalizer + ISPConfig2 are generating statistics in spanish on my server, only having spanish as default system's locale.

I'm not sure about ISPConfig3. Will try it this night.

P.S. Please, edit or delete that entry on FAQ, it's guiding users by a hard and no necessary way

Last edited by Davide; 20th November 2010 at 03:05.
Reply With Quote
Sponsored Links
  #2  
Old 20th November 2010, 03:04
Davide Davide is offline
Senior Member
 
Join Date: Jul 2006
Posts: 123
Thanks: 16
Thanked 9 Times in 8 Posts
 
Default

After a little investigation, I've found I'm getting spanish statistics on my ISPConfig2 installation because of the following:

Code:
# cat /etc/environment
LANG=es_ES.UTF-8
/etc/environment is sourced by login and no login shells, so it's sourced too in cron jobs

So, if you want webalizer statistics to be generated in your language, just add a LANG definition to your locale into this file.
Reply With Quote
The Following User Says Thank You to Davide For This Useful Post:
falko (20th November 2010)
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to change webalizer language? bplgonzo Installation/Configuration 5 18th November 2010 22:08
[debian 5 + ispconfig 3] Unable to send mail tanakskool HOWTO-Related Questions 6 4th November 2009 19:20
Booting On PXE And On A Customized Debian System sebastienp HOWTO-Related Questions 7 30th July 2009 22:13
Bind Failed christoph2k HOWTO-Related Questions 4 28th April 2007 01:57
e-mail problem!!! Debian 3.1 maroonworks Installation/Configuration 18 6th December 2005 15:42


All times are GMT +2. The time now is 19:32.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.