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

Language detection and links on content pages

Hi there, everything good?

Trouble on sorting by translated field on views

Hello, i`m using views on Drupal 9 to display some blocks, on those blocks i have a field called weight, this field is used to order the content in the view and can be translated, but in the view if the field is translated it is ignoring the translated value on sorting and sorting by the original value, anyone know how can i order by the translated value?

[solved] Home link language prefix > "Forbidden"

Hi

I face following problem: I have a site with two languages.

I have a page "frontpage" (set as standard front page) i can call correct with "mysite.tld/frontpage" and "mysite.tld/en/frontpage". The language switcher handles the links ok. So that works.

But when i klick the "Home" link in the branding block or the menu or from admin_toolbar, the url is "mysite.tld/de/" and "mysite.tld/en/" … and this is ending up on a white page "Forbidden. You don't have permission to access this resource."

Translating new contact field

Hello,

I added the new contact form field into .../modules/contact/contact.pages.inc, then I defined the this checkbox field in .../sites/all/translations/drupal-7.59.ro.po, but doesn't work. The website shows the variable which i defined in contact.page.inc:

  $form['gdpr'] = array(
    '#type' => 'checkbox',
    '#title' => t('Accept terms and conditions'),
    '#required' => TRUE,
  );

What can I do to translate the "Accept terms and conditions" field?

Thanks!

Is there a way to change the language visitors see by default?

I've goofed up.

I set up the a new site as a monolingual site using the default (i.e. English). However, the site is supposed to be in Norwegian. Adding Norwegian as a second language (using the multilingual features of Drupal 9) worked as expected. However, when visitors arrive at the site, they see English, and they need to navigate to the Norwegian URL (i.e. example.com/nb as opposed to example.com) to see the UI in Norwegian.

Pages

Subscribe with RSS Subscribe to RSS - Translations