I tried to translate the following strings via core translation:
"Terms of Use" --> Found and translated
"Click here to read the full disclaimer" --> not found
"I agree with these terms" --> Found and translated

Even if I can tranlate 2 of 3 strings, they are not displayed when I change the language, they are always in english.

How can I translate them in multiple languages?

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

bisonbleu’s picture

Same issue. Terms of Use is translated but always appears in English.

alberto56’s picture

Title: Translation » "Terms of Use" and "I agree with these terms" appear in English even when they are translated
Version: 7.x-1.2 » 7.x-1.x-dev

Better title for this issue.

alberto56’s picture

There is currently a function "_site_disclaimer_variable_get_translated", only "Terms of Use" uses it, not "I agree with these terms".

It uses i18n_variable, not the default Drupal string translation mechanism.

If you want to translate only "Terms of Use", you can follow the instructions below starting at (2).

If you want to translate "I agree with these terms" also, you must follow the instructions below including point (1).

If you have followed steps 2 to 6, and then applied the patch after, you must follow all the steps again.

For this to work:

(1) Apply the enclosed patch if it has not yet been applied to this module.
(2) Install and enable i18n's i18n_variable module.
(3) Go to admin/config/regional/i18n/variable
(4) Check all checkboxes and save
(5) Go to admin/config/people/site_disclaimer
(6) Notice that there is a new "THERE ARE MULTILINGUAL VARIABLES IN THIS FORM" section in the form, click on the language to which you want to translate, and change the values in the form, and save.

It should work now!

alberto56’s picture

Status: Active » Needs review
FileSize
667 bytes

Here is the patch

ybabel’s picture

worked for me

iva2k’s picture

Status: Needs review » Reviewed & tested by the community

Patch looks reasonable, need to roll it in.

Scott Robertson’s picture

Status: Reviewed & tested by the community » Fixed

Committed, thanks!

Status: Fixed » Closed (fixed)

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