Bric::Util::Language - Bricolage Localization
$Revision: 1.12.2.2 $
$Date: 2003/06/22 17:07:07 $
To follow
To follow
Add new Bric::Util::Language subclass, named for your language code with dashes changed to underscores and all lowercase letters. For example, en-US would be "en_us". This will be known as the "key" for your language. Add the constant key to your new subclass and have it return the key.
Copy the localization messages from Bric::Util::Language::pt_pt into your new subclass and change the Portuguese translations of the English words and phrases into your languages. Be sure to use the UTF-8 character set.
Document your new language key in Bric::Admin. Add your name to comp/widgets/help/translators.html for your language.
Create a new subdirectory in comp/media/images named for your language key. Copy all of the files from the comp/media/images/en_us directory to your new language directory and sipmly edit or recreate them in your language.
Create a new subdirectory in comp/help named for your language key. Copy all of the subdirectories and files from the comp/help/en_us directory to your new language directory and translate them. Be sure to use the UTF-8 character set.
Copy comp/media/js/en_us_messages.js to a a new JavaScript file named with your language key substituted for "en_us". Translate the JavaScript messages in your new JavaScript file. Be sure to use the UTF-8 character set.
Cláudio Valente <cvalente@co.sapo.pt>