For translating the Drupal user interface.
See also the Translations Group on groups.drupal.org

Disable an installed language

I have a multilanguage site in Drupal 8. I've just installed a new language but, I need to disable it from the language switch and from the frontend until I've finished to translate all.

Anyone can tell me how to do it?

Thank you

Can't import .po file for custom module

I seem to be unable to import a .po file I have created for my custom module.

Using D7.44 and Commerce Kickstart (commerce_kickstart-7.x-2.38)

When I go to /admin/config/regional/translate/import and select my .po file I get the following messages:

For security reasons, your upload has been renamed to commerce_stripe.de_.po.txt.

The specified file commerce_stripe.de_.po.txt could not be uploaded. Only files with the following extensions are allowed: po.
File to import not found.

Cant navigate localized terms in correct languages

Hi to all,
I have a taxonomy vocabulary setted to "localizable" in a two language website (EN-ES).

If I create a term for example "exampleterm" with the description "exampletermdesc" and i save it as english, when I translate it i wont be able to navigate it with the correct language.

So if visit the term throw the "es" website I will see the description in english as the title.
How is that possible? and how can i navigate the localized term?

I'm actually fixing this in a dirty way throw the preprocess_page hook:

Cannot translate node date altough other fields are translated

In twig file I use

 {{ date|t }}  /
         
          {{ comment_count }} {{ 'Comments'|t }}

Here 'Comments' text is translated but date is not translated

Cannot translate "ago" text using "time ago" in views

is there any way to translate "ago" in "time ago" date format in views.
I found and translated

%time ago
@time ago

strings but still not working

I changed the line 69 in views.install

$view->set($base . '.settings.past_format', '@interval ago');

"ago" here but nothing changed

Sort translated terms alphabetically

I wonder why this is still such an issue on Drupal 8: I added an exposed filter to a view listing all terms of a vocabulary in a select list. These terms are sorted alphabetically by the names of the default language so when I am on the page with another language enabled the term names are translated but they are sorted in the "wrong" order for the current language.

I know how to sort arrays alphabetically and so I could use hook_form_alter to do this sorting for each exposed filter in each form "manually" but maybe there is more general way to achieve this?

Pages

Subscribe with RSS Subscribe to RSS - Translations