72 Commits

Author SHA1 Message Date
Bartosz Dziewoński
f3adab1390 Add line-break hints in very long extension name
The name of this extension doesn't fit in the table cell on
Special:Version.

Bug: T363767
Change-Id: Ia733cfe313a8217930bee350f2a5487ac46b00f8
2024-05-10 20:17:09 +02:00
NikG
dde48f50ab Add separate buttons for 'add languages' and language settings menus
Bug: T323694
Change-Id: I23cb4687d841025905224a52b843572206fa9ddb
2023-01-25 11:47:24 +00:00
Santhosh Thottingal
3450f90678 Add support for empty states to the current language selector
Bug: T290436
Change-Id: I42c5d44ec15e291d71723c9738ddb8f0d1cf0b09
2022-07-01 09:16:40 +00:00
Santhosh Thottingal
5e6838ebdf Add actions menu inside content language selector
This patch replaces the display and input settings menu bar at the
bottom of the content language selector, with a floating icon that
opens a menu containing all the available language actions. In case
that only the language settings action is available, the language
settings menu is being opened instead.

In order to provide extensibility and support the addition of new
action items from other extensions, a registry class that inherits
from OO.Registry class is created. This class is used to create a
singleton registry object that holds all action items that should
be rendered inside the menu. Other modules/extensions can use this
registry to add new actions items to the menu, by passing the item
as argument, in the following form:
{ name: "", icon: "", text: "", handler: function() {} }

Bug: T289840
Change-Id: Iee017a9e3e6a654145e9fdd2b7df35baa348697d
2022-04-11 05:24:08 +00:00
Translation updater bot
4f43be87ab Localisation updates from https://translatewiki.net.
Change-Id: I1fef8860d0f1a8feeeff1fb4cea8f2603e39b55e
2020-08-14 08:39:49 +02:00
Translation updater bot
615b6b9956 Localisation updates from https://translatewiki.net.
Change-Id: I599604bf55b5f771c1be9c2d7a6ef6c39c8279f3
2020-04-07 08:51:54 +02:00
Abijeet
ff02e63a45 Update setlang to display confirmation dialog to change language
setlang will now display a dialog to confirm with the user that
they would like to change their interface language. The preferred
language will only be updated if the user confirms.

The dialog will be displayed if the setlang parameter is present in
the query string and,

* A user is logged in, and their preferred language is not the same
  as the one passed via setlang.
* For an anonymous user if the wgULSAnonCanChangeLanguage is true,
  and the current interface language is not the same as the one
  passed via setlang.

Bug: T63115
Change-Id: I882297d99a594fd82fd0aec3b4664e8bfd1eac3a
2019-12-19 14:54:34 +00:00
Niklas Laxström
fa9cea4627 Support UI language change when global preferences are present
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
2018-08-30 22:40:17 +00:00
Santhosh Thottingal
28c455feaf Custom no-results message for compact links search
Bug: T182539
Change-Id: I0e3bb7104015a5244290058dc0ac5b3c17b1ea20
2018-02-08 10:38:06 +05:30
Amire80
0c5b4d3072 Split API messages from ULS
It's not a lot of messages, but this is a very common and basic extension,
and it's often one of the first to be translated, so it's good to make its
translation easier.

To be committed together with the corresponding
translatewiki configuration change:
I33ca817b457abc5504917745c2730ec223e263e0

Change-Id: I13ea351553319583051778cfb6c55f843b5f86e5
2017-09-20 14:28:06 +00:00
Brad Jorsch
cc39cdaf4e API: Split description messages into summary + additional text
See MediaWiki core patch I778bab2b

Change-Id: I5f094b43468cdcc43408e87d45f02709c007993d
2017-06-13 13:27:51 -04:00
Translation updater bot
fc6d34fd72 Localisation updates from https://translatewiki.net.
Change-Id: Id2f6cbcba217b7ab61a04e8c86d23f719ee50beb
2017-02-07 23:05:56 +01:00
Translation updater bot
f321007508 Localisation updates from https://translatewiki.net.
Change-Id: I814fa5079d98b7555a0dbf165fb7e97228b0a95a
2017-01-01 10:15:38 +01:00
Translation updater bot
0240e0aed6 Localisation updates from https://translatewiki.net.
Change-Id: If02bad767b318174c420e88de6eb71ace57209da
2016-07-25 22:26:18 +02:00
Translation updater bot
65627a58ae Localisation updates from https://translatewiki.net.
Change-Id: Ifff0e60ee5ab16f63a55f853333b081e923fd52c
2016-05-21 22:24:58 +02:00
Translation updater bot
dbf57fb330 Localisation updates from https://translatewiki.net.
Change-Id: Ia9c771805d400747618b9932bdd13625c53c4f65
2016-05-20 22:32:24 +02:00
Niklas Laxström
4ff7d5adf8 Add tooltip to the "more languages" action to provide better context
Bug: T135224
Change-Id: I3c5d909ff334182e25b48fd3917260087ee276ef
2016-05-19 08:56:04 +00:00
Translation updater bot
609860947b Localisation updates from https://translatewiki.net.
Change-Id: I132245689a4f01d39d452bf739945295df1eade4
2016-05-16 22:45:53 +02:00
Santhosh Thottingal
f1995bc603 Introduce a preference to disable compact language links
Bug: T133030
Change-Id: If9ec0b8c75c59c62991f0d4bfa99f6d4c9324c30
2016-05-13 14:51:21 +02:00
Translation updater bot
8dd4334f25 Localisation updates from https://translatewiki.net.
Change-Id: Ibbe20911bb0d13470c103c1de387312a291a568a
2015-07-24 21:10:23 +02:00
Translation updater bot
39f7bc13ff Localisation updates from https://translatewiki.net.
Change-Id: Ia87b37a3830a26f4a334cebebd6eb4d1abb0fde0
2015-05-28 22:56:08 +02:00
Translation updater bot
e7a95ede3c Localisation updates from https://translatewiki.net.
Change-Id: I51694e44e83bd0ce0ee2e6be433cf8bf24653f44
2015-05-24 00:18:50 +02:00
Translation updater bot
1227a9188c Localisation updates from https://translatewiki.net.
Change-Id: I2d8e99e61ec643f2670228bd57e4a2cbb65a4cc2
2015-05-14 22:10:46 +02:00
Translation updater bot
f2786f97ea Localisation updates from https://translatewiki.net.
Change-Id: Icf6c710b4b8a4b6e09d96826d81231b079f57d06
2014-12-02 22:08:01 +01:00
Translation updater bot
f419d6cc68 Localisation updates from https://translatewiki.net.
Change-Id: I16d526f605833ee6ff5365f2e2636f7c6ccf0e56
2014-11-04 23:32:49 +01:00
Brad Jorsch
c689fbb420 Add i18n for API module help
MediaWiki core change I04b1a384 added support for i18n of API module
help. This takes advantage of that while still maintaining backwards
compatibility with earlier versions of MediaWiki.

Once support for MediaWiki before 1.25 is dropped, the methods marked
deprecated in this patch may be removed.

Change-Id: I67395aff48185f3e09da31b51a08aa2541fe6a17
2014-10-29 16:42:32 -04:00
Translation updater bot
1d054d1701 Localisation updates from https://translatewiki.net.
Change-Id: Id89535473eb0f38d99543da485c8bf613b3439f5
2014-07-13 22:24:56 +02:00
Translation updater bot
96b64ee4ae Localisation updates from https://translatewiki.net.
Change-Id: I6bbfac19f91fcd9e0f32ac9cb33d3e5ac2721909
2014-04-16 15:54:20 +00:00
Translation updater bot
e703f95dc9 Localisation updates from https://translatewiki.net.
Change-Id: Icf37b45ea9c9652563e3c82ec621cfb00c55c7af
2014-04-01 19:53:06 +00:00
Translation updater bot
52b67687ca Localisation updates from https://translatewiki.net.
Change-Id: I1d489b5147abb5696f9c22bd6b8538732a2579c6
2014-03-25 20:53:37 +00:00
Translation updater bot
7d4b6a27f7 Localisation updates from https://translatewiki.net.
Change-Id: I71f0739818d1851924e0a64a66a7c9d7a5c5e869
2014-03-25 12:56:53 +00:00
Translation updater bot
4f95efbc2b Localisation updates from https://translatewiki.net.
Change-Id: Icb62b6b4ec30a0d54d669356066d0035225f076d
2014-03-04 20:46:30 +00:00
Niharika Kohli
5ca0d5d400 Compacting the interlanguage links with the ULS
Displays a shorter version of the language list with the languages that are more relevant to you.
More info at https://www.mediawiki.org/wiki/Universal_Language_Selector/Design/Interlanguage_links

Due to a problem with duplicate patchsets we had to create a new one. 
The history and info on code and security revisions is available at
https://gerrit.wikimedia.org/r/#/c/104793/

Change-Id: I109bfb10f6181b6408aab170db5e8ca32493d657
2014-03-04 09:41:47 +00:00
Translation updater bot
5b676d4e8f Localisation updates from https://translatewiki.net.
Change-Id: Iff283a278668ffed7670c0d44314f44dd062c31c
2014-03-02 20:45:38 +00:00
Santhosh Thottingal
27771fdeaf Restore enableWebfonts pref and remove uls-enable
This patch restores the enableWebfonts preference, stored inside
the uls-preferences blob. It existed as 'enable-webfonts' in
the past and was removed in
If735a733717596fae03042c5e277bd538bd8501f

Each wiki can be configured to load the fonts by default
using the new global variable $wgULSWebfontsEnabled.
Its default value is true (to load fonts).

This also removes the preference 'uls-enable', recently added in
I71b70d8ee7c3cad7f49b32e5dc494ef4fc1bdb2f

The initialization of ext.uls.webfonts.js is changed as well,
so that minimal webfonts JS library code is loaded,
and the rest is loaded only if a user requests it.

Bug: 60304
Change-Id: I49e812eae32266f165591c75fd67b86ca06b13f0
2014-02-10 17:40:30 +05:30
Translation updater bot
bf2c718994 Localisation updates from https://translatewiki.net.
Change-Id: I31684cebd5d8351751f2be02a5f69502abe5d84c
2013-12-07 01:54:30 +00:00
Santhosh Thottingal
277b0db94d Visual indication while saving the settings
* Button label change to "applying changes"
* Button become disabled
* Cursor changes to "progress"

Bug: 53772
Change-Id: I1de459590ea9b357965a73f274d566eba8c04482
2013-11-21 14:52:48 +05:30
Translation updater bot
85da5847ce Localisation updates from http://translatewiki.net.
Change-Id: Ib2412846c01a60c79672311caac2481ebab9276d
2013-07-01 20:00:33 +00:00
Translation updater bot
06867feae2 Localisation updates from http://translatewiki.net.
Change-Id: If35a429a0ce8d5c1bd39cacf1a333b711b0f51bb
2013-06-14 21:54:33 +00:00
Translation updater bot
9673d8e923 Localisation updates from http://translatewiki.net.
Change-Id: I0c4a43fa890d96977171a7784c6785261c63c3e1
2013-06-03 11:57:43 +00:00
Santhosh Thottingal
8b46d34004 Allow ULS language settings accessed from user preference screen.
Adds a link in 'personal/i18n' section of user preferences

Bug: 47240
Change-Id: I04d1ea7d36db45f9a0af04e11dade9ae0b524e8e
2013-05-27 16:33:40 +03:00
jenkins-bot
3066c79174 Merge "Display notification when disabling input methods from keyboard icon menu" 2013-05-26 14:15:41 +00:00
Translation updater bot
a2d770f7b3 Localisation updates from http://translatewiki.net.
Change-Id: Ie6385afeb17316272a03bac7d9f8232cd118c383
2013-05-25 08:29:23 +00:00
Santhosh Thottingal
cea4d81766 Display notification when disabling input methods from keyboard icon menu
Bug: 48534
Change-Id: Id6c1cb22cb09a226cfcc84d597724e5d803392f3
2013-05-23 12:15:49 +05:30
Translation updater bot
5f1339cc10 Localisation updates from http://translatewiki.net.
Change-Id: I9fe4297e1ebf34ebbe2b580317d619ab1b668f09
2013-05-13 19:53:53 +00:00
Translation updater bot
026a08c757 Localisation updates from http://translatewiki.net.
Change-Id: I455a818cffbc3986219b00f50ef78b6061b8785c
2013-05-04 20:25:55 +00:00
Niklas Laxström
f275dbeb98 I18n for System font
Bug: 47819
Change-Id: I9244aab0ec32c27bfc56dd5a441f02a9783e5fb1
2013-05-03 08:43:08 +00:00
Translation updater bot
603b8f60ac Localisation updates from http://translatewiki.net.
Change-Id: Ifbdda617cdc3426d17af96aefaee77ea1fb54210
2013-05-02 20:50:06 +00:00
Translation updater bot
d565cb954b Localisation updates from http://translatewiki.net.
Change-Id: I530fff0131c015ebf23f5ac275263ed6c95b87b1
2013-05-01 20:39:20 +00:00
Translation updater bot
7ca5f76edc Localisation updates from http://translatewiki.net.
Change-Id: I9456385a6cc8b4001ba313c49931b3538bc7fae2
2013-04-30 21:18:39 +00:00