manGNU Herds - Free Software Association - Cookbook: recipe #152, i18n settings and general...

 
 

recipe #152: i18n settings and general localization infos

Set UTF-8 as the default encoding at your host.

Markup

Meta tag:
<meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">

gettext

messages.po files:

"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"

Emacs

M-x prefer-coding-system UTF-8

.emacs: Remove all the stuff like

(standard-display-european 1)

Add:

(setq locale-coding-system 'UTF-8)
(set-terminal-coding-system 'UTF-8)
(set-keyboard-coding-system 'UTF-8)
(set-selection-coding-system 'UTF-8)
(prefer-coding-system 'UTF-8)

Vim

Set encoding: LC_CTYPE=UTF-8

XTerm

LC_CTYPE=UTF-8 & xterm -u8 -fn '-misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso10646-1'

Apache

httpd.conf: AddDefaultCharset Off

PHP

Install the php5.0-mbstring module and set the following in php.ini:

output_handler = mb_output_handler
mbstring.http_output = UTF-8

Appendix

How to convert ISO 8859-1 files to UTF-8:

iconv --from-code=ISO-8859-1 --to-code=UTF-8 oldfile > newfile

External resources

At the Free Translation Project you can find information regarding localization. For most of all the countries there is the related project site.

TP Teams: http://translationproject.org/team/index.html

PO editors: http://translationproject.org/html/software.html

Other resources:

Last update: Thu 28 Feb 2008 07:26:43 PM UTC

 

 

 

 

 

Audience and Context

Audience:
   Anonymous Users

(As there is at least one of the Audience/Feature/Action context information not set, this recipe will not show up in related recipes links)

Back to the top


Powered by Savane 3.1-cleanup