Notable changes: * First query global preferences to detect if global language setting is in use. If there is no global language setting, or if GlobalPreferences extension is not installed, it will fall back to changing the language as usual. If global language setting is found, it will add an override instead. * If a local override is added, the undo tooltip is different and links to the global preferences page. The task design shows mw.notify style popup located on a bottom right corner (LTR). I deviate from the design and re-use the old undo tooltip with a different message instead, for consistency. The message is chosen depending on whether local storage value `uls-gp` is set to '1' (set in mw.uls.changeLanguage). * I removed one use of deprecated mediawiki.api.options module. One other use still remains. * I changed tooltip text generation from html acrobatics to use mw.message.parseDom. Because of that I also had to move the click handler to avoid buildup of click handlers. * In message documentation fixed acronym -> autonym. Bug: T198206 Change-Id: Ie2ed792e222be919522bd1cdea98042515a0619d
70 lines
4.1 KiB
JSON
70 lines
4.1 KiB
JSON
{
|
|
"@metadata": {
|
|
"authors": [
|
|
"Nike",
|
|
"Kunal Mehta",
|
|
"Niharika",
|
|
"Amire80",
|
|
"Santhosh Thottingal"
|
|
],
|
|
"message-documentation": "qqq"
|
|
},
|
|
"uls-desc": "Gives the user several ways to select a language and to adjust language settings",
|
|
"uls-plang-title-languages": "Languages",
|
|
"uls-ime-helppage": "https://www.mediawiki.org/wiki/Special:MyLanguage/Help:Extension:UniversalLanguageSelector/Input_methods/$1",
|
|
"ext-uls-select-language-settings-icon-tooltip": "Language settings",
|
|
"ext-uls-undo-language-tooltip-text": "Language changed from $1",
|
|
"ext-uls-undo-language-tooltip-text-local": "Language changed for this wiki. Check your [[Special:GlobalPreferences|global preferences]] to change language for all wikis.",
|
|
"ext-uls-language-settings-preferences-link": "More language settings",
|
|
"uls-betafeature-label": "Compact language links",
|
|
"uls-betafeature-desc": "Show a shorter version of the language list, with just the languages that are more relevant to you.",
|
|
"ext-uls-display-settings-title": "Display settings",
|
|
"ext-uls-display-settings-language-tab": "Language",
|
|
"ext-uls-display-settings-fonts-tab": "Fonts",
|
|
"ext-uls-display-settings-title-short": "Display",
|
|
"ext-uls-display-settings-desc": "Set language used for menus and fonts.",
|
|
"ext-uls-language-settings-title": "Language settings",
|
|
"ext-uls-language-settings-apply": "Apply settings",
|
|
"ext-uls-language-settings-cancel": "Cancel",
|
|
"ext-uls-language-buttons-help": "Change the language of menus. Content language will not be affected.",
|
|
"ext-uls-display-settings-font-settings": "Font settings",
|
|
"ext-uls-display-settings-ui-language": "Display language",
|
|
"ext-uls-display-settings-anon-label": "Display language:",
|
|
"ext-uls-display-settings-anon-same-as-content": "$1 (same as content)",
|
|
"ext-uls-display-settings-anon-log-in-cta": "[[Special:UserLogin|Log in]] to select a different language for menus.",
|
|
"ext-uls-webfonts-settings-title": "Download fonts when needed",
|
|
"ext-uls-webfonts-settings-info": "Download missing fonts automatically and allow selection of preferred fonts.",
|
|
"ext-uls-webfonts-settings-info-link": "More information",
|
|
"ext-uls-webfonts-select-for": "Select font for $1",
|
|
"ext-uls-webfonts-select-for-ui-info": "Font used for user interface",
|
|
"ext-uls-webfonts-select-for-content-info": "Font used for content",
|
|
"ext-uls-webfonts-system-font": "System font",
|
|
"ext-uls-back-to-display-settings": "Back to display settings",
|
|
"ext-uls-input-settings-title": "Input settings",
|
|
"ext-uls-input-settings-title-short": "Input",
|
|
"ext-uls-input-settings-desc": "Writing in a different language?",
|
|
"ext-uls-input-settings-ime-settings": "Input methods for $1",
|
|
"ext-uls-input-settings-ui-language": "Language used for writing",
|
|
"ext-uls-back-to-input-settings": "Back to input settings",
|
|
"ext-uls-ime-help": "How to use",
|
|
"ext-uls-disable-input-method": "Use native keyboard",
|
|
"ext-uls-input-settings-more-languages-tooltip": "More languages",
|
|
"jquery-ime-other-languages": "Other languages",
|
|
"jquery-ime-disable-text": "Use native keyboard",
|
|
"jquery-ime-help": "Help",
|
|
"ext-uls-input-disable": "Disable input tools",
|
|
"ext-uls-input-enable": "Enable input tools",
|
|
"ext-uls-input-disable-info": "Input tools are disabled.",
|
|
"ext-uls-input-settings-noime": "No input methods are available for this language.",
|
|
"ext-uls-input-disable-notification": "Input tools have been disabled",
|
|
"ext-uls-input-disable-notification-undo": "Undo",
|
|
"ext-uls-input-disable-notification-info-personal": "You can enable the input tools at any time from the language settings.",
|
|
"ext-uls-input-disable-notification-info-interlanguage": "You can enable the input tools at any time from the language settings next to the language list.",
|
|
"ext-uls-language-settings-applying": "Applying...",
|
|
"ext-uls-compact-link-count": "{{PLURAL:$1|One more|$1 more}}",
|
|
"ext-uls-compact-link-info": "All languages (initial selection from common choices by you and others)",
|
|
"prefs-languages": "Languages",
|
|
"ext-uls-compact-language-links-preference": "Use a [[$1|compact language list]], with languages relevant to you.",
|
|
"ext-uls-compact-no-results": "This page is not available in the language you searched for."
|
|
}
|