Closed (fixed)
Project:
Automated Logout
Version:
6.x-4.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
25 Apr 2013 at 12:11 UTC
Updated:
10 Jun 2014 at 13:24 UTC
Jump to comment: Most recent
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
Comment #1
johnennew commentedHi @Pasqualle,
THanks for the patch, I have applied to the 7.x-4.x branch. Marking as 6.x-4.x for backport.
Comment #2
johnennew commentedBackport applied to 6.x-4.x branch