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

 
 

You are not allowed to post comments on this tracker with your current authentication level.

recipe #152: i18n settings and general localization infos

Submitter:  Davi Leal <davi>
Submitted:  Thu 26 Apr 2007 08:26:05 PM UTC
   
 
Category:  None Importance:  3 - Normal
Status:  Approved Privacy:  Public
Assigned to:  None Open/Closed:  Open

Thu 26 Apr 2007 08:26:05 PM UTC, recipe preview:  

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:

Davi Leal <davi>
Group administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by antenore (Updated the item)
  • -email is unavailable- added by davi (Submitted the item)
  •  

    Follow 15 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2008-02-28 davi RecipeSet UTF-8 as the default... -15 chars
    2008-02-28 davi RecipeSet UTF-8 as the default... +208 chars
    2008-02-28 antenore RecipeSet UTF-8 as the default... +312 chars
    2008-02-28 antenore Summary/Questioni18n settings i18n settings and general localization infos
    2007-05-13 davi RecipeSet UTF-8 as the default... +18 chars
    2007-04-26 davi Summary/QuestionInternationalization and Localization i18n settings
        RecipeSet UTF-8 as the default... +27 chars
    2007-04-26 davi RecipeSet UTF-8 as the default... +17 chars
    2007-04-26 davi RecipeSet UTF-8 as the default... +17 chars
    2007-04-26 davi Recipe== Markup == Meta... +67 chars
    2007-04-26 davi Recipe== Markup == Meta... +20 chars
    2007-04-26 davi Recipe== Markup == Meta... -162 chars
    2007-04-26 davi Recipe== Markup == Meta... -14 chars
    2007-04-26 davi Recipe== Markup == Meta... +27 chars
    2007-04-26 davi Recipe=== Markup === Meta... +2 chars

    Back to the top

    Powered by Savane 3.13-3230.
    Corresponding source code