Praire

2 / 2 / 2009
Gellért

Howto translate Praire Alpha 0.2 (09-22-2008)

  1. http://drupal.org/project/potx download 6.x-2.2 official releas.
  2. Copy potx.inc and potx-cli.php to the prairie root directory. Open potx.inc in text editor and change line 683: function _potx_find_t_calls($file, $save_callback, $function_name = 't', $string_mode = POTX_STRING_RUNTIME) { to function _potx_find_t_calls($file, $save_callback, $function_name = '_', $string_mode = POTX_STRING_RUNTIME) {
  3. Run php potx-cli.php.
  4. Open the created general.pot file in POedit and translate. This is my .pot file.
  5. Save translation (.po and) .mo file as prairie.mo.
  6. Put the created prairie.mo file here: /language/[langcode]/LC_MESSAGES/prairie.mo. The langcode is for example: "en", "hu_HU", "es_MX".
  7. In core.config.php set variable: $core_config['language']['server_locale'] = "[langcode]_[COUNTRY]". For example "en_US", "hu_HU.utf8", "es_MX.utf8".
  8. In index.php add a new line after 69.: bindtextdomain($domain, dirname(__FILE__) . "/language");
    bind_textdomain_codeset($domain, "UTF-8");
    textdomain($domain);
  9. Restart webserver.
  10. See your Prairie.
Címkék

Új hozzászólás

A mező tartalma nem nyilvános.