This forum is for questions about translating the Drupal user interface. See also the Translations group.

Are translations and menus working in Drupal 7?

Hello

I hope someone can help me by giving me an overview to what is currently possible with Drupal 7 on a dual-language site.

I'm trying to setup an English/French website. I have previous experience with Drupal 6, but not with translations.

Current setup is:
Drupal 7.7
Most of the Internationalization modules - such as Menu translation
Installed and configured English and French
Added a Language switcher
Added translations and menu items for some pages
Menu used is the default main-menu

internationalization show all enabled languages, but only needs to show available translations.

I'm using i18n Internationalization module and the Language switcher dropdown modules.

I got a problem with internationalization or/and it's sub-modules:

If I create a random node and set it to a language, let's say English, (it's required to set a language, dutch or english, no language neutral allowed) and view the result. The dropdown language switcher shows both languages.

If you choose the other missing translated node, for example Dutch, you get exactly the same node written in english. With some extra problems that the menu is missing.

Search results and path prefix

I have a problem with a multilanguage site. I use path prefix with 'da' and 'en'. When a user makes a standard search it return results in both languages. The results in the active language link correctly using URL aliases. Results in the other language have links with wrong path prefixes and not using URL-aliases. If I click on such a link I see a page where the node content is in one language and everything else in the other language.

Translating the "Site under maintenance" title

I am building a multilingual website which will be in Serbian and English. My question is how can i translate the title of site maintenance page? Or simply if title cant be multilingual to change it to Serbian.

multilingual url aliases

Hello,

does anybody know, if it is possible to create url aliases in this way for multilingual pages:

mysite.com/en/home - homepage in english language
mysite.com/de/home - german translation of homepage
mysite.com/sk/home - slovak translation of homepage
etc...

Urls in form "site/language/alias" works fine, but not with the same alias for every language mutation of the same page.

Thank you.

Confirmation mail after registration in language of the user

Hello,

I added the following code (from another post within this forum) to my site that allows the user to choose his preferred language during the registration process:

function mymodule_form_alter($form, &$form_state, $form_id) {
    if ($form_id == 'user_register') {
        global $language;
        $languages = language_list('enabled');
        $languages = $languages[1];

        // If the user is being created, we set the user language to the page language.
        //$user_preferred_language = $user ? user_preferred_language($user) : $language;
        $user_preferred_language = $language;

        $names = array();
        foreach ($languages as $langcode => $item) {
          $name = t($item->name);
          $names[$langcode] = $name . ($item->native != $name ? ' ('. $item->native .')' : '');
        }
        $form['locale'] = array(
          '#type' => 'fieldset',
          '#title' => t('Language settings'),
          '#weight' => 1,
        );

        $form['locale']['language'] = array(
          '#type' => (count($names) <= 5 ? 'radios' : 'select'),
          '#title' => t('Language'),
          '#default_value' => $user_preferred_language->language,
          '#options' => $names,
          '#description' => t("This account's default language for e-mails."),
        );
    }
}

Pages

Subscribe with RSS Subscribe to RSS - Translations