Localizing site

Registered by Marcelo Bonatto

First version was build in Brazilian Portuguese, but is necessary translate to English to other people translate for other severy languages.

Blueprint information

Status:
Started
Approver:
None
Priority:
Medium
Drafter:
None
Direction:
Needs approval
Assignee:
None
Definition:
Approved
Series goal:
Accepted for 2.0
Implementation:
Started
Milestone target:
milestone icon 2.0.0
Started by
Marcelo Bonatto

Related branches

Sprints

Whiteboard

Translation will be publish in Launchpad Translation tab. Site will receive this codes:

<?= _("Key"); ?> //example

This code will write translation referent to browser's current language. Before this, is necessary this code:

<?
$locale = "pt_BR";
if (isSet($_GET["locale"])) $locale = $_GET["locale"];
putenv("LC_ALL=$locale");
setlocale(LC_ALL, $locale);
bindtextdomain("messages", "./locale");
textdomain("messages");
?>

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.