Problem/Motivation

The Drupal infrastructure can extract translatable user interface strings from modules. However, the module code needs to identify these strings with a t() function. Currently not all such strings are correctly identified as translatable strings.

Proposed resolution

Render all text presented in the user interface in a translatable fashion.

Remaining tasks

  1. Write a patch
  2. Review
  3. Commit

User interface changes

All interface text can be translated through the interface translation.

API changes

None.

Data model changes

None.

Original report by wturrell

This, in both validation plugins:

-      $message .= '<br/>Can not access your account? Use one of your recovery codes.';
+      $message .= '<br/>'.t("Can't access your account? Use one of your recovery codes.");
CommentFileSizeAuthor
#2 interdiff-1-2.txt13.78 KBidebr
#2 2998854-2.patch13.77 KBidebr
ga_login.patch1.71 KBwturrell

Comments

wturrell created an issue. See original summary.

idebr’s picture

Title: Minor grammar fix, add translatable string » Make all texts in the user interface translatable for translation extraction tools (such as Drupal.org localization)
Category: Bug report » Task
Issue summary: View changes
StatusFileSize
new13.77 KB
new13.78 KB

Thanks for the patch, wturrell!

I have expanded the issue summary and the attached patch to include all interface translations used in the module.

jcnventura’s picture

Status: Needs review » Reviewed & tested by the community

  • idebr authored 83f5011 on 8.x-1.x
    Issue #2998854 by idebr, wturrell, jcnventura: Make all texts in the...
jcnventura’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.