Drupal 7 content translation
- Enable the "Locale" Module
- Enable the "Translation" Module
- Put all translating strings with t(). Example. t('Hello, my name is %name.', array('%name' => 'John');
- String Overrides in settings.php. Example:
$conf['locale_custom_strings_en'] = array(
'forum' => 'Discussion board',
'@count min' => '@count minutes',
‘home’ => ‘Sweet Home’,
);
- Generate .pot Files with translation template extractor (http://drupal.org/project/potx))
- Put all strings and relevant translation in .po file
- Install this .po file on the existing Site
No comments:
Post a Comment