The yes/no buttons in logout dialog are not translatable.

to solve this issue I used:

autologout.js
...
      var myButtons = {};
      myButtons[Drupal.t('Yes')] = function()  {
        $(this).dialog("destroy");
        clearTimeout(paddingTimer);
        refresh();
      };
      myButtons[Drupal.t('No')] = function()  {
        $(this).dialog("destroy");
        logout();
      };
...
      function dialog() {
...
      buttons: myButtons,

clear cache, translate as usual.

Comments

johnennew’s picture

Version: 7.x-4.x-dev » 6.x-4.x-dev
Assigned: Unassigned » johnennew

Hi @Pasqualle,

THanks for the patch, I have applied to the 7.x-4.x branch. Marking as 6.x-4.x for backport.

johnennew’s picture

Status: Active » Fixed

Backport applied to 6.x-4.x branch

Status: Fixed » Closed (fixed)

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

  • Commit 31e70ff on 7.x-4.x, 8.x-1.x authored by Pasqualle, committed by ceng:
    Issue #1979550 by Pasqualle: Allow Translate yes/no buttons in logout...