Amire80
970d073efa
Send a data object in $.trigger
...
There was a mistake in #299 : the $.trigger() must take only one argument
for extraParameters. Sending another parameter causes NULL to be logged in
EventLogging for ulsPurpose.
2018-03-15 11:57:02 +02:00
Amire80
00ff49e190
Convert ulsPurpose from a data attribute to an languagefilter option
2018-03-05 12:58:00 +02:00
Amire80
ddb691a918
Allow identifying the context of the different ULS panels within one app
...
Add the ulsPurpose option. Empty string by default.
This is useful for web application that use ULS in several different context,
and need to distinguish what was the purpose of the particular ULS panel.
An example of usage can be found at
https://phabricator.wikimedia.org/T179402
2018-03-04 23:01:35 +02:00
Amire80
c6c08537f7
Redirect skr to skr-arab in langdb
...
This language is being added to MediaWiki, so we need to make
sure it will be identified.
2017-07-22 10:46:13 +03:00
Amire80
308ca1bea7
Add the Coptic language to langdb
2017-07-21 15:40:54 +03:00
Amire80
9cd578cec6
Change ckb autonym to just "کوردی"
...
This was requested by the Wikipedia community,
and it is the practice on other websites, too.
More details at
https://phabricator.wikimedia.org/T116761
2017-07-09 18:16:42 +03:00
Amire80
f3469f25c8
Add the Ho language (hoc) and the Warang Citi script (Wara) to langdb
2017-07-05 15:34:53 +03:00
Amir E. Aharoni and GitHub
387534ff0a
Merge pull request #266 from wikimedia/code-of-conduct
...
Create CODE_OF_CONDUCT.md
2017-06-12 18:09:06 +03:00
Amire80
777d71e0d2
Make all autonyms unique and add a test for this
...
In a list of languages to select autonyms must be unique so that
every user would know what to select.
* Batak Toba language in the Batak writing variant (bbc-batk) has
an autonum in the right script now. This is taken from the Indonesian
Wikipedia article "Surat Batak".
* Similarly to the practice with pa -> pa-guru:
* iu for Inuktitut in the Canadian script redirects to ike-cans.
* ks for Kashmiri in the Arabic writing redirects to ks-arab.
* tg for Tajik in the Cyrillic script redirects to tg-cyrl.
* zgh has an updated autonym, taken from Ethologue.
* zh-classical redirects to lzh, similarly to zh-yue -> yue.
2017-06-09 20:45:43 +03:00
Amire80
5f67e82192
Fix the autonym for tkr
...
Source: Русско-цахурский разговорник под редакцией А.Г. Гюльмагомедова, Махачкала 2004
2017-06-07 11:14:19 +03:00
Amire80
01520ea6bb
Add the Xibe language (sjo)
2017-06-02 16:35:58 +03:00
Amire80
791a924981
Add languages byn, dag, doi, gaa, tig to langdb
...
These languages are already used in jquery.ime,
but if they are not in ULS, they cannot be selected
in translatewiki.
2017-06-01 11:56:20 +03:00
Amir E. Aharoni and GitHub
544bca5ac2
Merge pull request #257 from nemobis/master
...
Add Hakka variants (hak-hans, hak-hant)
2017-05-31 18:57:31 +03:00
Amire80
7d24e6766a
Add the Rangi language (lag)
...
Requested at
https://translatewiki.net/wiki/Thread:Support/add_Rangi_(lag)
2017-05-03 19:49:30 +03:00
Amire80
691c11f990
Add five languages of Taiwan
...
ais, ami, tay, trv, xsy
For reference, see
https://translatewiki.net/wiki/Thread:Support/Request_4_languages_of_Indigenous_Taiwanese
2017-05-02 23:25:05 +03:00
Amire80
4d7795eea2
Add the Nyungar language (nys)
2017-03-31 20:12:10 +02:00
Amire80
0da43bab16
Add the Guambiano language
...
Requested at
https://translatewiki.net/wiki/Thread:Support/Add_new_language_to_translate
Follow up to
https://gerrit.wikimedia.org/r/#/c/344984/
2017-03-28 10:56:43 +03:00
Amir E. Aharoni and GitHub
819047b4b0
Merge pull request #244 from hhm0/patch-1
...
Add Jewish Babylonian Aramaic (tmr) to langdb
2017-03-27 22:27:11 +03:00
Amir E. Aharoni and GitHub
1604bbc1e7
Merge branch 'master' into patch-1
2017-03-27 22:25:02 +03:00
Amire80
cafe908d07
Move the message attribute to the correct element
...
Follow up to https://github.com/wikimedia/jquery.uls/pull/243 ,
addressing a comment by @Nikerabbit.
2016-12-04 11:40:45 +02:00
Amire80
1ce349475e
Remove the left-to-right mark from the lki autonym
...
This character produces a JSHint warning,
and it's definitely unnecessary.
It was possibly added as a copy-paste error in 6650db2 .
2016-12-03 21:10:43 +02:00
Amire80
7d9d2b7947
Using the message uls-search-help in the code
...
The translatable message uls-search-help was available in
the i18n files, but it was not actually used in the code,
so it was always shown in English.
This patch adds it to the JS code.
2016-11-28 15:53:55 +02:00
Amire80
0441c1eedb
Add Siberian Tatar (sty) to langdb
2016-11-27 16:55:43 +02:00
Amire80
d191a1f6e6
Change "Language search" to "Search for a language"
...
Suggested at https://phabricator.wikimedia.org/T138235 .
This brings ULS closer to the mobile language search interface
in MediaWiki.
2016-09-13 10:46:41 +03:00
Amir E. Aharoni and GitHub
d77da03dbf
Merge pull request #238 from mariushoch/bug/T144871
...
Use an empty array for quickList everywhere, not false/null
2016-09-07 11:49:10 +03:00
Amir E. Aharoni and GitHub
a9dc11b6ef
Merge pull request #237 from wikimedia/narrow
...
In narrow mode, print "All languages" heading if suggested languages …
2016-09-05 15:41:45 +03:00
Amire80
9c8f9fcf77
Add a redirect from chm to mhr
...
CLDR uses chm instead of mhr, so for practical purposes
it should be a redirect, until https://phabricator.wikimedia.org/T136164
is resolved.
2016-07-19 15:38:15 +03:00
Amir E. Aharoni and GitHub
3a6727aa94
Merge pull request #231 from Nikerabbit/bft
...
Add bft
2016-07-19 15:37:02 +03:00
Amir E. Aharoni
48501f7dca
Merge pull request #201 from Mjbmr/master
...
Add Livvi-Karelian language
2015-08-31 21:30:59 +03:00
Amir E. Aharoni
aeea1211fb
Add 'sudo: false' to upgrade to new Travis infrastructure
...
This is done according to
http://docs.travis-ci.com/user/migrating-from-legacy/
As far as I know we don't need sudo of any kind,
and the performance advantages listed there sound good.
2015-08-04 17:29:53 +03:00
Amir E. Aharoni
b4f87fb011
Update Azerbaijani varieties in langdb
...
CLDR now uses only az-arab and az-latn,
so they must both appear in langdb.
2015-08-02 20:36:20 +03:00
Amir E. Aharoni
5f35b1805e
Merge pull request #198 from Mjbmr/patch-1
...
Update Southern Luri name from MediaWiki
2015-08-02 18:15:36 +03:00
Amir E. Aharoni
d81867a7fb
Change the autonym of ady
...
Similar to https://gerrit.wikimedia.org/r/#/c/223783/
This was pointed out to me at translatewiki.net,
and I verified it in a dictionary.
2015-07-10 16:24:18 +03:00
Amir E. Aharoni
ae30317d7e
Merge pull request #194 from wikimedia/Mjbmr-patch-1
...
Mjbmr patch 1
2015-07-10 16:21:48 +03:00
Amir E. Aharoni
54ec06e40d
Merge branch 'patch-1' of https://github.com/Mjbmr/jquery.uls into Mjbmr-patch-1
2015-07-10 16:18:45 +03:00
Amir E. Aharoni
f4b9bcf8ea
Merge pull request #193 from Mjbmr/patch-2
...
Add Tunisian variants
2015-07-10 16:16:11 +03:00
Amir E. Aharoni
f724e4a289
Remove unnecessary semicolon
2015-04-08 09:41:17 +03:00
Amir E. Aharoni
eb4f8ff251
Make language count calculation only in core.js
2015-03-31 10:20:34 +03:00
Amir E. Aharoni
c81561b3fc
Refactor the object keys counter function
2015-03-14 23:20:09 +02:00
Amir E. Aharoni
da9a849b42
Show the Common language section only if the list is long enough
2015-03-14 00:48:18 +02:00
Amir E. Aharoni
b6a30c3d44
Restore support for IE8
...
IE8 does not support Object.keys.
https://phabricator.wikimedia.org/T86516
Copying the patch from Gerrit:
https://gerrit.wikimedia.org/r/#/c/184316/
2015-02-26 10:46:35 +02:00
Amir E. Aharoni and Santhosh Thottingal
f44302106b
For narrow ULS show one column without separators
2014-12-22 11:09:48 +05:30
Amir E. Aharoni
6d72638d6f
A more explicit support for valid columns number
...
Only 1, 2 or 4.
2014-12-15 11:27:44 +02:00
Amir E. Aharoni
f21f103de3
Simplify getMenuWidth()
2014-12-09 13:57:03 +02:00
Amir E. Aharoni
3c93da564c
Select the menu width automatically
...
A follow-up to https://phabricator.wikimedia.org/T76196 .
2014-12-09 13:18:21 +02:00
Amir E. Aharoni
dd59d4d0c8
CSS tweaks for narrow ULS
2014-12-04 00:39:57 +02:00
Amir E. Aharoni
b55bc61dc7
Grid-compatible adjustable columns
2014-12-02 22:16:09 +02:00
Amir E. Aharoni
752a295ee2
Allow sending the number of lcd columns as a parameter
...
This is needed for https://phabricator.wikimedia.org/T76196
and may also nbe useful for many other features.
2014-12-02 13:23:22 +02:00
Amir E. Aharoni
c6e26c4a4c
Update the Arabic script autonym for aeb
...
This is consistent with
https://gerrit.wikimedia.org/r/175972
2014-11-26 12:40:25 +02:00
Amir E. Aharoni
987acc1996
Change smn back to lowercase like other Sami languages
2014-11-25 21:18:42 +02:00
Amir E. Aharoni
8cdb2262f9
Update langdb JSON with the latest yaml changes
2014-11-16 17:44:50 +02:00
Amir E. Aharoni
1007d94462
Add languages to langdb: Bari, Dinka, Songhay
2014-11-16 17:41:58 +02:00
Amir E. Aharoni
abe3dd3a0d
Merge pull request #163 from siebrand/mw2
...
Update langdb with codes and autonyms
2014-11-16 17:15:51 +02:00
Amir E. Aharoni
a31872d729
Merge pull request #164 from siebrand/mw3
...
Update langdb with codes and autonyms used in translatewiki.net
2014-11-16 17:15:09 +02:00
Amir E. Aharoni
b345da64af
Change the autonym for Algerian Arabic
...
The incubator at https://incubator.wikimedia.org/wiki/Wp/arq uses
the Arabic script and this name.
2014-08-07 12:23:13 +01:00
Amir E. Aharoni
78589aef15
Adding Rutul language
...
Requested in the Russian Wikipedia for the Rutul incubator.
https://ru.wikipedia.org/wiki/Обсуждение_проекта:Разделы_Википедии_на_региональных_языках_России
2014-06-16 15:06:39 +03:00
Amir E. Aharoni
1b41a31dc6
Add the Khakas language (kjh)
2014-06-09 16:55:54 +03:00
Amir E. Aharoni
bdbff7919e
Changing the writing system and the autonym for Ottoman Turkish
2014-04-25 17:07:27 +03:00
Amir E. Aharoni
d8fc3d4b9e
Remove double scrollTop call
2014-01-06 13:30:53 +02:00
Amir E. Aharoni
2d93a37019
When clicking a region, scroll only the list and not the whole page
...
Downstream bug:
https://bugzilla.wikimedia.org/show_bug.cgi?id=59175
2014-01-06 11:45:29 +02:00
Amir E. Aharoni
09aeb8e29a
Update the Autonym for 'cu'
...
Reported downstream in the Autonym repository:
https://github.com/santhoshtr/AutonymFont/issues/44
2013-12-03 20:19:21 +02:00
Amir E. Aharoni
d8fdcd4baf
Corrected the Unicode character in the Arab Kazakh autonym
2013-10-02 21:57:15 -07:00
Amir E. Aharoni
601a5256b8
Add missing semicolon
2013-07-08 00:23:54 +03:00
Amir E. Aharoni
0e0098fc3b
Redirect fil language (Filipino) to tl (Tagalog)
2013-06-19 11:30:29 -07:00
Amir E. Aharoni
452994efa5
Added the Syriac language
2013-05-21 10:00:52 +03:00
Amir E. Aharoni
482d1beacd
Merge pull request #92 from siebrand/jshint
...
Add .jshintrc, .jshintignore and update .gitignore
2013-04-28 03:42:38 -07:00
Amir E. Aharoni
64cc7969a7
Use the supplied position values instead of hardcoded
2013-04-26 16:11:12 +03:00
Amir E. Aharoni
986831b124
Add Zyyy for an undetermined script and use it accordingly
2013-04-25 18:10:45 +03:00
Amir E. Aharoni
6309d1889b
Comments format
2013-04-25 14:48:37 +03:00
Amir E. Aharoni
a568b3244e
Rename the hook to "visible" and add documentation
2013-04-25 13:29:25 +03:00
Amir E. Aharoni
b28bed9bb5
Add an afterShowing hook
...
A hook that can optionally run after the ULS menu is shown.
There are things that cannot be done in ready(), because
the style may not have been initialized yet.
2013-04-23 22:43:14 +03:00
Amir E. Aharoni
851e2e84bc
Remove an extra var statement
2013-04-23 17:56:59 +03:00
Amir E. Aharoni
e9c425265b
Merge pull request #85 from siebrand/jquery
...
Use jQuery 1.9.1 for example
2013-04-22 04:44:49 -07:00
Amir E. Aharoni
62cab27eb2
Leave only one var statement per scope
2013-04-22 14:40:12 +03:00
Amir E. Aharoni
d410338c93
Don't ignore backspace in the search box
2013-04-10 18:57:20 +03:00
Amir E. Aharoni
49f623c61f
Fix Pali language name
2013-02-19 00:15:20 +05:30
Amir E. Aharoni
4d313a2d5f
Whitespace
2013-02-08 10:23:02 +05:30
Amir E. Aharoni
e40ca2e885
Whitespace, JSHint, removed unused function
2013-01-13 23:32:40 +02:00
Amir E. Aharoni
9147af93d7
JSHint, whitespace, quotes
2013-01-13 23:24:47 +02:00
Amir E. Aharoni
31cd276019
JSHint cleanup
2013-01-13 23:20:05 +02:00
Amir E. Aharoni
1112f423a7
Suppress "dot notation" warnings in JSHint
2013-01-13 23:13:04 +02:00
Amir E. Aharoni
9695cc1b68
Better adherence to coding conventions
2013-01-13 23:05:40 +02:00
Amir E. Aharoni
bbc7190384
Add 'frc' to AM region test
2013-01-09 13:16:02 +02:00
Amir E. Aharoni
44ed95ccdb
Merge branch 'use_strict_data' into 2013-01-09-fixes
2013-01-09 13:14:50 +02:00
Amir E. Aharoni
30165c19c7
Merge branch 'prevent_dupes' into 2013-01-09-fixes
2013-01-09 13:14:09 +02:00
Amir E. Aharoni
8b4c5444b8
Merge branch 'no-norsk' into 2013-01-09-fixes
2013-01-09 13:13:19 +02:00
Amir E. Aharoni
66a50931a5
Prevent appearance of redirects in the rendered list
...
utils.getLanguagesByScriptGroup() runs on the object's languages
property and not on all the langdb languages. This caused
the redirects to be counted as languages. I fixed this,
and added a test to prevent it.
Also update JS langdb, because it went out of sync in of
the previous commits.
2013-01-09 12:59:58 +02:00
Amir E. Aharoni
989c079ad6
Change region of frc to America
...
This is Cajun French, which is only spoken in America and not Europe.
2013-01-08 22:45:09 +02:00
Amir E. Aharoni
5828dc2374
Add autonym to code 'no'
2013-01-08 22:37:50 +02:00
Amir E. Aharoni
df2c40dc92
'use strict' in JavaScript langdb
...
JSHint can complain about this in build checks, and it shouldn't
hurt anything. But correct me if I'm wrong.
2013-01-08 22:34:16 +02:00
Amir E. Aharoni
90a095a6cf
Merge branch 'add_brx' into add_brx_rebase
2013-01-07 00:15:07 +02:00
Amir E. Aharoni
e97827bb83
Add the Bodo language (brx)
2013-01-07 00:01:48 +02:00
Amir E. Aharoni
b35d2ebc3b
Add redirect bat-smg -> sgs
2013-01-06 20:29:30 +02:00
Amir E. Aharoni
98874233c1
Some more fixes in redirects and code
...
* Redirect fiu-vro to vro.
* Redirect roa-rup to rup.
* Redirect zh-yue to yue.
* Remove pru. Only prg is the right code for Prussian.
pru is a code of a language in Indonesia, about which
there's very little information, so it's better to remove it.
2013-01-04 21:33:43 +02:00
Amir E. Aharoni
f822331b8b
Redirect zh-min-nan to nan
...
Fixes bug
https://bugzilla.wikimedia.org/show_bug.cgi?id=43569
2013-01-04 18:54:50 +02:00
Amir E. Aharoni
13473c9f7a
Render every region only once
...
Fixes bug
https://bugzilla.wikimedia.org/show_bug.cgi?id=43568
2013-01-04 08:31:20 +02:00
Amir E. Aharoni
d4ef33d4f8
Merge pull request #58 from amire80/whitespace
...
Whitespace
2013-01-02 23:09:40 -08:00
Amir E. Aharoni
49436026d8
Whitespace
2013-01-02 18:48:02 +02:00
Amir E. Aharoni
1f91a4c40c
Whitespace
2013-01-02 18:28:14 +02:00
Amir E. Aharoni
829c827483
Adding a special region
...
This is supposed to allow adding special languages.
This region's section is hidden by default and can be enabled by
passing different options to the lcd object.
2013-01-02 12:58:29 +02:00