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
This change allows to replace the Assert::parameterType by a type hint
in Ie215179b4631fd9071b257772c5cb193547cb7d7.
Change-Id: I399a92d3fac0e0849fe3a403c703fe7d32f51257
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
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
* Store prefixes and infixes separately in the data
* First match language code, then prefixes, then infixes
* Try to use suggestion either in user language or autonym first
* use formatversion=2 to avoid escaping Unicode
Using Language::fetchLanguageName might can have a small
performance impact. On the other hand there is now check
to skip languages we already found, avoiding some fuzzy
matching.
This is in a preparation for a change in jquery.uls to use
the search API more, while trying to reduce the amount of
weird autocompletion suggestions we show to the user.
Bug: T73891
Change-Id: Id94c5352d9a591969bf90144d1d2d5e758d08301
This adds several custom languages.
The addition of Punjabi addresses Bug T178070.
The addition of Chinese addresses Bug T73891.
Georgian and Catalan (Valencian) variant spellings
are added because these are the most frequent languages
that are not found in the ULS search box.
Bug: T73891
Bug: T178070
Change-Id: Ifbb08b560e454643d246379c19f725bde61917e9
* Remove manual tracking of when a hash is first seen.
ResourceLoader is no longer time-based, rather it is content based.
Except where a timestamp is actually wanted as key, a hash is all
we need. The default implementation of simply calling getScript()
and hashing its output suffices, and isn't a performance problem
in this case.
* Also simplify getScript() by passing an object to 'mw.config.set'.
Instead of multiple calls for each key/value. This is a no-op
now because there is only one key.
* Fix inaccurate class comment that was copied from an unrelated
module in MediaWiki core.
Change-Id: I9bb82cadd9caa7e584e20dd49ce30b64218326c4
With this MEÄNKELI with typos=1 finds results.
Updated test case for lowercased result. Renamed variables in test
file for clarity. Updated the default value for MW_INSTALL_PATH to
work with the default layout.
Change-Id: Id93c84d308705f55b4d2378fc8c7b7f243e1b53f