2 / 2 / 2009
Howto translate Praire Alpha 0.2 (09-22-2008)
- http://drupal.org/project/potx download 6.x-2.2 official releas.
- Copy
potx.incandpotx-cli.phpto the prairie root directory. Openpotx.incin text editor and change line 683:function _potx_find_t_calls($file, $save_callback, $function_name = 't', $string_mode = POTX_STRING_RUNTIME) {tofunction _potx_find_t_calls($file, $save_callback, $function_name = '_', $string_mode = POTX_STRING_RUNTIME) { - Run
php potx-cli.php. - Open the created
general.potfile in POedit and translate. This is my .pot file. - Save translation (.po and) .mo file as
prairie.mo. - Put the created
prairie.mofile here:/language/[langcode]/LC_MESSAGES/prairie.mo. The langcode is for example: "en", "hu_HU", "es_MX". - In
core.config.phpset variable:$core_config['language']['server_locale'] = "[langcode]_[COUNTRY]". For example "en_US", "hu_HU.utf8", "es_MX.utf8". - In
index.phpadd a new line after 69.:bindtextdomain($domain, dirname(__FILE__) . "/language");
bind_textdomain_codeset($domain, "UTF-8");
textdomain($domain); - Restart webserver.
- See your Prairie.
Címkék
Új hozzászólás