Modifications pour le document AdminLocalizationSheet
Modifié par Florent Charton le 2024/08/08 18:43
Depuis la version 1.1
modifié par superadmin
sur 2022/06/20 08:48
sur 2022/06/20 08:48
Commentaire de modification :
Install extension [org.xwiki.platform:xwiki-platform-administration-ui/13.10.6]
À la version 2.1
modifié par Florent Charton
sur 2024/08/08 18:43
sur 2024/08/08 18:43
Commentaire de modification :
Install extension [org.xwiki.platform:xwiki-platform-administration-ui/15.10.11]
Résumé
-
Propriétés de la Page (1 modifications, 0 ajouts, 0 suppressions)
-
Objets (1 modifications, 1 ajouts, 0 suppressions)
Détails
- Propriétés de la Page
-
- Auteur du document
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. superadmin1 +xwiki:XWiki.fcharton
- XWiki.JavaScriptExtension[0]
-
- Code
-
... ... @@ -1,3 +1,9 @@ 1 +define('xwiki-administration-localization', { 2 + prefix: 'XWiki.', 3 + keys: [ 4 + 'XWikiPreferences_languages' 5 + ] 6 +}); 1 1 /** 2 2 * Replace the simple text input field for supported locales by a nicer select widget with all available locales 3 3 * ready to be selected. ... ... @@ -8,12 +8,14 @@ 8 8 * 9 9 * We also enable the improved select widget on the "timezone" field to make the user able to filter the choices. 10 10 */ 11 -require(['jquery', 'xwiki-locale-picker'], function($) { 17 +require(['jquery', 'xwiki-l10n!xwiki-administration-localization', 'xwiki-locale-picker'], function($, l10n) { 12 12 'use strict'; 13 13 14 14 $('input[name="XWiki.XWikiPreferences_0_languages"]').localePicker({ 15 15 allowEmpty: false, 16 - multiple: true 22 + multiple: true, 23 + label: l10n.get('XWikiPreferences_languages'), 24 + hint: true 17 17 }); 18 18 19 19 $('input[name="XWiki.XWikiPreferences_0_default_language"]').localePicker({
- XWiki.StyleSheetExtension[0]
-
- Mode de mise en cache
-
... ... @@ -1,0 +1,1 @@ 1 +long - Code
-
... ... @@ -1,0 +1,6 @@ 1 +/* Do not display the supported language field (we assume it's the following one) 2 + when the multilingual option is set to No. */ 3 +form#localization dd:has(> div.dropdown > select[name="XWiki.XWikiPreferences_0_multilingual"] > option[value="0"]:checked) + dt, 4 +form#localization dd:has(> div.dropdown > select[name="XWiki.XWikiPreferences_0_multilingual"] > option[value="0"]:checked) + dt + dd { 5 + display: none; 6 +} - Utiliser cette extension
-
... ... @@ -1,0 +1,1 @@ 1 +currentPage