1 |
85ad3d82
|
Assos Assos
|
|
2 |
|
|
(function ($) {
|
3 |
|
|
|
4 |
|
|
|
5 |
|
|
|
6 |
|
|
|
7 |
|
|
Drupal.behaviors.i18nSettingsSummary = {
|
8 |
|
|
attach: function (context) {
|
9 |
|
|
|
10 |
|
|
$('fieldset#edit-languages', context).drupalSetSummary(function (context) {
|
11 |
|
|
var summary = '';
|
12 |
|
|
if ($('.form-item-i18n-mode input[type=checkbox]:checked', context).val()) {
|
13 |
|
|
summary += Drupal.t('Translatable');
|
14 |
|
|
}
|
15 |
|
|
else {
|
16 |
|
|
summary += Drupal.t('Not translatable');
|
17 |
|
|
}
|
18 |
|
|
summary += ', ';
|
19 |
|
|
if ($('.form-item-languages input[type=checkbox]:checked', context).val()) {
|
20 |
|
|
summary += Drupal.t('Restricted to certain languages');
|
21 |
|
|
}
|
22 |
|
|
else {
|
23 |
|
|
summary += Drupal.t('Not restricted');
|
24 |
|
|
}
|
25 |
|
|
return summary;
|
26 |
|
|
});
|
27 |
|
|
}
|
28 |
|
|
};
|
29 |
|
|
|
30 |
|
|
})(jQuery); |