The Tigre and Tigrinya languages are spoken by thousands
of people in Israel, who have a more convenient access
to Hebrew keyboards than to Ethiopic keyboards.
The situation is further complicated by the fact that
the languages' names in the Hebrew alphabet have several
variant spellings, especially with regard to the first letter,
which is the most important one for searching.
This patch ensures that the languages are conveniently
findable in any Hebrew-script spelling.
(Every variant is on a separate line because
otherwise code editors mess up RTL text display.)
Bug: T375052
Change-Id: I8a6414718802f091ca1df9367b2dbc170cd568c4
This test was removed in I62f6c9da90074258f13b7fb281e777b3bcf5d17d
to allow the easy updating of local English language names in
the CLDR extension in I2c09d409567efef2e0498cde15ecead4c438c657
Now this test is restored with the new name of the Tonga (toi)
language.
This also updates the search index with the languages
whose English names were updated in
I2c09d409567efef2e0498cde15ecead4c438c657
Bug: T374785
Depends-On: I2c09d409567efef2e0498cde15ecead4c438c657
Change-Id: I922570d7bf0fb00740c1411c36e2d2e889df4c9b
Incorporates local language names that were recently added
to the CLDR extension.
Also remove a test case for "tonga". It checks a disambiguation
that will be done differently starting from
I2c09d409567efef2e0498cde15ecead4c438c657
The test will be restored in a subsequent patch
with a different language name.
Bug: T374785
Depends-On: I9b5b7aa91532eee0a1ff6ab868b3cb5f95c4590b
Change-Id: I62f6c9da90074258f13b7fb281e777b3bcf5d17d
To support us monitoring the amount of CSS and JS we ship to users
its imperative we start tracking the size of these modules statically
so we are aware when we increase the size of them.
Bug: T373017
Change-Id: I4c52d0216958a6595965e42f5416a24ee0c2054c
Adding a test to ensure that both Tongan (to) and
Chitonga can be found by searching for "tonga".
Other cases are trivial and don't require a test.
Bug: T368046
Bug: T368856
Bug: T369464
Change-Id: Ia58f593729de1302749eeba349979a1a23e4eb4c
The changes are mostly automatic and add languages
that were recently added to language-data
or updated in the CLDR.
I went over the whole long diff and couldn't find
any issues that would affect the usage of the ULS
search box.
Tests are updated to reflect the current names,
but here, too, the language finding functionality
is not supposed to be affected.
Two kinds of tests were affected:
* The name of Hindi (Latin) in Malayalam: I removed
the test because Hindi (Latin) is not used in
MediaWiki anyway, so it doesn't matter.
* Some names of Chinese varieties. I updated
the tests and also added aliases for languages
whose names were changed, so that searching
for "chinese" would find them (so it's good
that we had those tests!).
Change-Id: I22344dadb0b01d7704ab7d76271ab27077daedb3
Updated tests to reflect external changes.
NB: These tests and code should be rewritten to use mocked data to only
verify the algorithm to avoid the need to update them when the real
data changes.
Change-Id: I537df34405eea23569621ad0c5a31dc9d336c1b0
This change requires change I591628b98d16bfeecd32d157abc263be1036a71b
in extension cldr included in REL1_39 and above.
Change-Id: I6789961e4140e57e5f253fd2fbaeacf9860923e1
Update to version 6.001
Upstream font file names were changes. So updated it here too.
Added Bold and Bold Italic since they are present in upstream.
Bug: T298613
Change-Id: I1c0429f6c5abac66471df0fa96738a10a7b28d04
ext.uls.preferences only depended on ext.uls.common because of its
use of the uls global. This is unnecessary, and made clearer by using
require and module.exports to access it.
Change-Id: Ied2a1b560d19a18529fd766ced778c912199fa2f
This change allows to replace the Assert::parameterType by a type hint
in Ie215179b4631fd9071b257772c5cb193547cb7d7.
Change-Id: I399a92d3fac0e0849fe3a403c703fe7d32f51257
This reverts commit 76551ed4a7.
Reason for revert: It seems it's breaking Serbian editing Wikidata
Bug: T217770
Bug: T121747
Change-Id: If69156400ff665a8c488a24f70d6a100e26761da
When mw.uls.getFrequentLanguageList() is requested sometimes
the language that is a redirect returned causing other codebases (like Wikibase)
to show an invalid language to the user.
Bug: T217770
Change-Id: I49c802d584081aa5992dd0ba76144059bcac56c8
I noticed some language names are not searchable. I made it so
that autonyms from language-data are added to the search index.
Without this, languages not present in Names.php or in the CLDR
extension are not searchable via the API except by language code.
Change-Id: I51a9e2eb15fb40963e6edbf1db76133d84de7291
This allows to change from MWException to
Wikimedia\Assert\ParameterTypeException by
I8287118cf8ec01326ead9c90a38f7b4134c3eba9.
Change-Id: Ib0cb388958cf720052ca6df73d5145b7ab3f9529
'mw' are '$' are globals, always have been, and aren't going
anywhere. They're every bit as real as their longer versions.
If anything, the longer ones are less "real" or 'stable" because
they're not used internally by RL and easier to accidentally
replace or override. For anecdotes and history, see 91f950d6b0.
Change-Id: I526fb8c961d9477992d88f2780a0ff4cbdc51923
That second class (which is generated by the LanguageNameIndexer script)
is an integral part of the class under test.
Change-Id: I7d8dc66b4d1e86684e0de3e585d9e0a544640159
The following sniffs are failing and were disabled:
* MediaWiki.VariableAnalysis.UnusedGlobalVariables.UnusedGlobal$wgWBClientSettings
Change-Id: Ia5423c3d7ea419b3f073f35736de7a9379d4429a
The following sniffs are failing and were disabled:
* MediaWiki.Commenting.LicenseComment.InvalidLicenseTag
The following sniffs now pass and were enabled:
* MediaWiki.Commenting.FunctionComment.MissingParamComment
Change-Id: I06e0542d737cec5e2500aad6d85f72951f8b584d