Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: Views Bootstrap 5.5.4 — Minor update available for module views_bootstrap (5.5.4). Release: Rightup theme 1.0.3 — Minor update available for theme vartheme_bs5_rightup (1.0.3). Release: CommentOn 1.0.6 — Minor update available for module commenton (1.0.6). Release: ChatGPT Ads 1.0.3 — Minor update available for module chatgpt_ads (1.0.3). Release: Opensolr Search 5.1.3 — Minor update available for module opensolr_search (5.1.3). Release: ServiceM8 Webform Integration 1.2.1 — Minor update available for module servicem8_webform (1.2.1). Release: PostfixAdmin 1.0.0 — Initial release available for module postfix_admin (1.0.0)! Release: ip_analyser 1.0.3 — Minor update available for module ip_analyser (1.0.3). Module Revived: Swagger-PHP OpenAPI 3 documentation generator 1.0.0 — Module swagger_php updated after 10 months of inactivity (1.0.0). Security Coverage: Microsoft Azure AI — Module ai_provider_azure now has official Drupal security advisory coverage.

gText

Security covered
View on drupal.org

πŸ‡ΊπŸ‡¦

This module is maintained by Ukrainian developers.
Please consider supporting Ukraine in a fight for their freedom and safety of Europe.

Utility to simplify the translation of lines on the site.

Compared to drupal 7, in drupal 8 and 9 the translation of lines is quite inconvenient: it is difficult to translate one line into all languages ​​due to the need to constantly switch languages.

The module provides an alternative interface for translating lines:

  1. translate a line into all languages ​​on one page without unnecessary clicks;
  2. page of the translation line in all languages ​​(as in drupal 7);
  3. possibility of translation via google translate service;
  4. availability of the google translate service on the pages of translation of field names, blocks, entities, views, etc .;
  5. block page reloads if no data is saved;
  6. exporting translations;

Other functionality

<?php
// Analog "t('Home page', [], ['context' => 'project']);"
gtext('project')->t('Home page');
gtext()->project('Home page');

// Analog "t('User @name', ['@name' => 'Admin'], ['context' => 'project'])"
gtext()->project('User @name', ['@name' => 'Admin']);
gtext('project')->t('User @name', ['@name' => 'Admin']);

// Analog \Drupal::translation()->formatPlural(1, '@count comment', '@count comments', [], ['context' => 'project']);
gtext()->project->plural(1, '@count comment', '@count comments');

?>

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
5
Tracked since
Apr 2023
Latest release
2 years ago
Releases (12 mo)
0
Maintenance
Dormant

Release Timeline

Releases

Version Type Core Release date
9.0.12 Stable Jul 31, 2024
9.0.11 Stable Oct 7, 2023
9.0.10 Stable Jul 31, 2023
9.0.9 Stable May 16, 2023
9.0.8 Stable Apr 20, 2023