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

Strings wrapped in t() do not show up in Translate GUI

I have a custom module. It contains a hook_form_alter() that have some strings wrapped in t(). Example:

$form['some_text'] = [
  '#markup' => t('Some text'),
];

After enabling the module, the altered strings show up on the site.

Body field not an option for translations

When I configure the Regional and Language settings for content, the body field is not available to be selected for any content type.  All the other content fields seems to be available, though.  Because of this the body of content is not translatable.  Am I missing something in the configuration or setup?

translations to block counter module

Hello I'm new in Drupal 7,

How to translate block counter module in drupal 7.x? https://www.drupal.org/project/counter

Or need to using Entity translation module translation that?

the counter module has installation in my template already. 

Does anyone know the solution for it or any suitable modules that can be implement on it? Thanks in advance.

Translate function in .theme file

Hi everyone,

I am using the Drupal 9 sites which were built using pattern lab structure. When trying to translate the content using translate function t() in .theme file, the translated word from .theme file is not showing up in interface translate search to change it manually.

Can anyone help me with this?

Translation not working for Items-per-page "Apply" button for VIEWS

Hello Forum,

I am running a Portuguese version of Drupal 9.2 and I have a View with Paged Pager with the option allowing the user to control the number of display items to list.

When this view is displayed, the "Apply" button next to the "number of pages to display" does not translate.

I have checked the translation list and "Apply" is correctly translated.

Actually, in the Pager Option configuration box, the Apply button is correctly translated.

Can anyone help me lon this one?

Thanks

Bruno

{% trans %} tag in Drupal 8

So I'm using a custom setup and would like to use the Twig I18n Extension on my site (with Twig 3.x)..... which works fine, apart from the fact that all the variables outputted in the "trans" function are not autoescaped. I've seen that this functionality, and the functionality to use the "raw" or "escape" filters etc on variables inside the trans tags is available within Drupal 8.

I was initially using the PhpMyAdmin Github extension here: https://github.com/phpmyadmin/twig-i18n-extension

Pages

Subscribe with RSS Subscribe to RSS - Translations