Amir E. Aharoni and Pau Giner
da5555aecf
Put the cog icon in the middle of the section title
...
Bug: 47978
Change-Id: I8fdd3c195f548712903d011383eb32feb8b0e0d1
2013-05-14 09:55:10 +02:00
Amir E. Aharoni
b9e1fe5547
Update from upstream
...
Bug: 43904
Change-Id: I34e8ad3e82ffa23f03b5ddf25e92d850991abb43
2013-05-08 16:16:23 +03:00
Amir E. Aharoni
d124a118a3
Force anonymous mode also in when the ULS is not shown in the sidebar
...
Change-Id: Ie82cfa06d32eb45f0c91e01135cff0bd481682b9
2013-05-07 11:50:49 +03:00
Amir E. Aharoni
42fb994f0a
Update from upstream
...
Change-Id: I376b19a7c686de2769ee64f4fc8258c4b0ceec1f
2013-05-06 19:23:45 +03:00
Amir E. Aharoni
448340b9da
Fixes for empty interlanguage links list
...
* Change the title near the icon to 'Language'.
* Remove the empty box in the Monobook skin.
Bug: 47972
Bug: 47967
Change-Id: Ie6930509ed7f200cf0bffda91b8d9fd58f1bed8b
2013-05-06 16:47:03 +03:00
Amir E. Aharoni
03546744ba
Changes to show the display settings in the sidebar
...
* Add a caret for the ULS in the sidebar.
* Adjust the panel's position.
* Immediately show the Display settings instead of the language list.
Also added documentation.
Change-Id: I6635092e9e020cb1f5b51f437abde4e81c31ae48
2013-05-02 07:51:49 +03:00
Amir E. Aharoni
c9a5ec7f19
Add backward compatibility for fetchLanguageNames
...
Bug: 46737
Change-Id: Ife7c2834c2b2c4f2619b4a5d8e0b0aa1db595984
2013-04-30 16:01:47 +03:00
Amir E. Aharoni
c1fadbd2e1
Update from upstream
...
Unbreaks escaping.
Change-Id: If7774237ba7993f366c6999c9fcefcd56d9221d2
2013-04-30 15:52:08 +03:00
Amir E. Aharoni
3471158dec
Avoid null in the IME languages buttons
...
Change-Id: Ic64763fdba34bdcebde33104f7e6130d93a84e02
2013-04-29 14:52:37 +03:00
Amir E. Aharoni and Niklas Laxström
422371f688
Don't let anonymous users change interface language
...
Language selector is still opened by default
Change-Id: Iee7d83179e71b4546d8f3cd4f6fb053262ce05e2
2013-04-29 10:47:27 +00:00
Amir E. Aharoni
d0b8f24417
Update webfonts and uls libs from upstream
...
Change-Id: I338950789e94e1638069ca97cf29cea2d78cf3b8
2013-04-28 23:50:22 +03:00
Amir E. Aharoni
cfc66213f1
Cleanup for jslint and coding conventions
...
Change-Id: I6884759d9622220721840f44220648dce7838ff6
2013-04-28 23:42:47 +03:00
Amir E. Aharoni
6168c77924
Don't show tipsy for an unknown language
...
Includes an update from upstream.
Bug: 46841
Change-Id: I5a221037af72319f2220bb54230a9549046b6024
2013-04-25 19:21:38 +03:00
Amir E. Aharoni
0d5a4780e2
Scroll the ULS panel into view automatically
...
Change-Id: I9c46fcaaa13de62147ca0a8151e4e8706a6b09ee
2013-04-25 16:30:10 +03:00
Amir E. Aharoni
2b2477c36c
Update ULS from upstream
...
Change-Id: Ic1bcfb82ad433600ebb4896e303f3cf205d384e1
2013-04-25 15:17:44 +03:00
Amir E. Aharoni
c61ff7d376
Add help text above the buttons
...
Change-Id: I73dfb7e9386f965a49ae8734d136972286f82605
2013-04-25 00:53:38 +03:00
Amir E. Aharoni
b27d0a902b
Show the web fonts selectors only if they are enabled
...
Change-Id: I70b9f9468154b542a80a9717afdb414530bd0d37
2013-04-23 18:54:11 +03:00
Amir E. Aharoni and Gerrit Code Review
865ac4d380
Split language settings view into two tabs
...
Change-Id: I539b9794227e0aeac9a759b7e4aa3daf8b73a5c8
2013-04-23 14:33:48 +00:00
Amir E. Aharoni
552cd25ae6
Update from upstream
...
Change-Id: I8affdf79e5a2f33c88f7661082d2cbd7777240fb
2013-04-23 16:03:28 +03:00
Amir E. Aharoni and Pau Giner
f4f332a459
Add the sidebar ULS cog icon and $wgULSPosition variable
...
Change-Id: I6acf1e21316a41ab8fcb4fd65e065be68693430f
2013-04-23 14:53:58 +02:00
Amir E. Aharoni
530149704c
Cleanup CSS
...
Removed overqualified and repeating selectors and fixed whitespace.
Change-Id: I139a892a577351167c9193c24b3684680f2d0e97
2013-04-22 10:18:49 +03:00
Amir E. Aharoni
fdb58375bf
Remove uls-select-content-language
...
Doesn't seem to be used.
Change-Id: I1ed94d165ccdc8d67278e8ad447322a5e637464e
2013-04-21 23:51:41 +03:00
Amir E. Aharoni
02654e58ef
Update from upstream
...
Change-Id: Ibc85020501e8193d7d104b13a966920c3de0f655
2013-04-17 15:18:00 +03:00
Amir E. Aharoni
943ac6bc6a
Update from upstream
...
Change-Id: I7675edf85004272d63d0129c3a29034e6015ad16
2013-04-12 17:46:54 +03:00
Amir E. Aharoni
95253cfd47
Adding the Alef font for Hebrew
...
Change-Id: Ie0936a690613e31204a967cb693b1ef615fad3f0
2013-03-21 18:43:14 +02:00
Amir E. Aharoni
4f651fa0e2
Cleanup for JSHint
...
Change-Id: I35d2d41640f405f4e1e94b18ddac751437a84bb5
2013-03-05 14:50:12 +02:00
Amir E. Aharoni
16424982eb
Check that ime was defined before selecting a language
...
Fixes a regression from I759c01f894569372d69d3b879e34aafda2ed41b1.
Change-Id: I5c3998b687fb92e3c90301edecb25b6a8306f423
2013-03-05 07:57:46 +02:00
Amir E. Aharoni
1df008a146
Make the IME selector state consistent in all textareas
...
Fixes:
https://mingle.corp.wikimedia.org/projects/internationalization/cards/2478
Change-Id: I759c01f894569372d69d3b879e34aafda2ed41b1
2013-03-04 18:58:11 +02:00
Amir E. Aharoni
dfbae630a5
Add 'ar' as a language supported by the Amiri font
...
It is used as the default in the Arabic Wikipedia, so it should be
used in jquery.webfonts, too.
Change-Id: I862e313add75e494fce9e85172b3b9ce869f3716
2013-02-08 17:35:38 +05:30
Amir E. Aharoni and Gerrit Code Review
f47b54819b
Make disabling input methods work
...
Mark isDirty correctly.
Change-Id: I1c5219c9f63dec15272dd97341295e346cdabcb3
2013-01-17 18:35:03 +00:00
Amir E. Aharoni
d0a340374e
Fix variable name
...
Change-Id: Ic3e39197e62ddbd25da006d660dc10135bf1218e
2013-01-15 17:40:07 +02:00
Amir E. Aharoni
d3dc07de24
Update from upstream
...
Some langdb changes and prevention of duplicate languages.
Change-Id: I3d0196c85f84b3aa830068932ff46c1ffce89d21
2013-01-09 17:24:08 +02:00
Amir E. Aharoni and Gerrit Code Review
e99f5cf170
Preferences tests
...
This is a basic test that checks the writing preferences
does not result in an error.
It depends on I8fdc1a05 and I18a5ffb5.
It is very rudimentary: The saving test only checks that the API call
didn't result in an error. It should be enough to check for bug 41763,
but it doesn't really check that the options were written correctly.
It also doesn't do anything to distinguish anonymous and logged-in
users, the preferences for which work differently.
Change-Id: I417089eea64e8a84bd38a00bbb31cbb77dc5bd68
2013-01-09 14:45:28 +00:00
Amir E. Aharoni and Santhosh Thottingal
ba7c921b55
(bug 42148) Saving the preferences only if they changed
...
Change-Id: I46a6fa85bc5ebfe6f34a957c302b1bf997cb3576
2013-01-09 20:01:57 +05:30
Amir E. Aharoni
027776c85f
(bug 41763) Add a hook for support uls-preferences
...
Change-Id: I8fdc1a0527c9a99b6e5eb95c183955a162233b1d
2013-01-09 16:12:20 +02:00
Amir E. Aharoni
e0e4ffa950
(bug 42375) Show current IME language in ULS input settings
...
Change-Id: I5240b1cb42b98ecb5dec96be838fbcf7736f81e6
2013-01-07 23:54:05 +02:00
Amir E. Aharoni
c81c2170c3
Add redirect from als to gsw
...
The 'als' is used in a non-standard way in MediaWiki -
it may be used to represent the Allemanic language,
the standard code of which is 'gsw', while 'als'
is ISO 639 3 refers to Tosk Albanian, which is
not currently used in any way in MediaWiki.
This local fix adds a redirect for it.
Also add a test to check that it works correctly.
Change-Id: Id904cab129eb58f8b96ce493e77d21da7c44ea8b
2013-01-07 17:54:02 +02:00
Amir E. Aharoni
9aaf4b1f51
Update from upstream
...
Change-Id: Iffdeee461ebbda9e010941a97fe49c7bfd77a6c9
2013-01-07 14:24:29 +02:00
Amir E. Aharoni
0927aca371
Pick "Special region" functionality from GitHub
...
Change-Id: I81c6f513a2aae584194dab9c3b7e8989563aae1c
2013-01-02 13:19:25 +02:00
Amir E. Aharoni
a6c312a381
Update from upstream
...
Change-Id: I2071ee8143e040c552f56f204e863c7dc90da872
2013-01-02 13:15:08 +02:00
Amir E. Aharoni and Gerrit Code Review
80ce8e068b
(bug 42440) Fix button state when canceling
...
Also changed class names to make finding cancel buttons easier.
Change-Id: Ieaf242eb03add06038307d913a87a196d41ba01d
2013-01-02 08:04:50 +00:00
Amir E. Aharoni
688e15f06d
Whitespace
...
Change-Id: I9946260c314600a2147d4f04cdb4da79aa51985e
2012-12-31 21:57:31 +02:00
Amir E. Aharoni
9bb13f2c4e
(bug 42384) Don't show the tooltip if the ULS panel is on
...
Change-Id: I199d2b0c84f2b682d7b698faff443504207ac466
2012-12-31 20:14:07 +02:00
Amir E. Aharoni
e8ed043352
(bug 42382) Indicate context in input settings/more languages
...
1. Fix a regression introduced in
https://github.com/wikimedia/jquery.uls/commit/27039e1141e888d165af287c942efe5c7f8be013
- a change in a class name caused the back link not to appear.
Now the link is back.
2. Copy the same logic to the input settings panel.
Change-Id: Ie80032ee2e14853f96cfb3b48dec5c85398c8373
2012-12-10 21:50:36 +02:00
Amir E. Aharoni
c81419cc9e
that -> displaySettings
...
Change-Id: I7233f7703bf6a9f2d79ed9e3cb4b744c703e09ef
2012-12-10 15:25:30 +02:00
Amir E. Aharoni
4359f1e85a
Updating from upstream
...
Change-Id: I3acc149e5272914d10c879b08e284ef5aa1e2f7f
2012-11-27 08:44:09 +02:00
Amire80 and Gerrit Code Review
24ec1af931
Merge "Updated cog icon for the IME menu"
2012-11-25 19:02:56 +00:00
Amire80 and Gerrit Code Review
edc989513c
Merge "CSS adjustment for the 'No input methods avaialble' message."
2012-11-25 18:52:59 +00:00
Amire80 and Gerrit Code Review
c83ec2abea
Merge "Fix the language selection from language selector for IME"
2012-11-23 09:57:23 +00:00
Amir E. Aharoni
ac32e53fe6
(bug 39685) Disable the Apply button until there are changes
...
This commit completes the solution of this bug for Input settings.
Change-Id: Iebabb08bdd4138cff278b811a681d684363ecc12
2012-11-22 15:44:19 +02:00
Amir E. Aharoni
d912fbccfe
(bug 39685) Disable the Apply button until there are changes
...
Make the button disabled initially.
Change the disabled property to false on every possible change.
For now this is only for display settings.
Change-Id: Ifea533a9606f66b5dfeb38075186ddec596330a6
2012-11-22 15:03:02 +02:00
Amir E. Aharoni
f410f5d99a
Consistent name for the inputSettings variable
...
Rename various names of "that = this" to "inputSettings = this".
Change-Id: If547a1e8da102c755019b50a5bc35f9c2cc4ab6a
2012-11-22 09:57:46 +02:00
Amir E. Aharoni
630f9d141a
Update from upstream
...
Change-Id: I58496182f755e152cea0ce8b34277a413385a6e5
2012-11-21 20:59:47 +02:00
Amir E. Aharoni
8d5307852a
Update from upstream
...
Change-Id: If1843b6292c92d07b3dcf7f58ade57e2eb0bd880
2012-11-10 12:01:13 +05:30
Amir E. Aharoni
0f8512a627
(bug 39560) Bring fix from upstream
...
Change-Id: I22bb979475511ec6354ff61411248e134c4a14a8
2012-10-30 07:05:49 +02:00
Amire80 and Gerrit Code Review
8a0845ee55
Merge "Move the IME customization code out of document.ready"
2012-10-29 10:31:46 +00:00
Amire80 and Gerrit Code Review
c111f46c92
Merge "Remove unused settingspanel.js"
2012-10-29 09:39:27 +00:00
Amire80 and Gerrit Code Review
66b2badb5c
Merge "CSS, tooltip fixes for the more button in IME selector menu."
2012-10-26 08:51:56 +00:00
Amire80 and Gerrit Code Review
835e4f1dbd
Merge "Avoid lazyloading when used for input method language selection."
2012-10-26 08:24:28 +00:00
Amir E. Aharoni and Gerrit Code Review
98bb1c200c
(bug 40693) Refactor font selector creation code
...
Change-Id: Id9560ad326cbd5202553da872b5fb0254c074109
2012-10-26 07:11:53 +00:00
Amir E. Aharoni
ebfc81d058
Make "system" the default font for Hebrew
...
"Miriam" was used for initial experimentation. It shouldn't be
the default, becase people complain repeatedly, and rightly, that
it's too small and hard to read.
Change-Id: Ie791ed66acdf71a20275884c39208602bddb06cc
2012-10-21 17:29:22 +02:00
Amire80 and Gerrit Code Review
83b912d683
Merge "Use default font only if webfonts is enabled."
2012-10-16 12:07:50 +00:00
Amire80 and Gerrit Code Review
c04b0a83ba
Merge "JSHint fixes"
2012-10-16 11:56:17 +00:00
Amire80 and Gerrit Code Review
b9f2ba105f
Merge "More jshint fixes"
2012-10-16 11:54:21 +00:00
Amir E. Aharoni
0385ed8bfb
(bug 39531) Only show the fonts dropdown if there are fonts
...
The Display settings template is wrapped in a new <div>
to allow easy $template.find() queries.
This change requires a change in jquery.webfonts, that makes
the lib function return an empty list when there are no fonts:
https://github.com/wikimedia/jquery.webfonts/pull/1
Change-Id: Ief5a920439df340360a44ca95de2a7f070b96d5d
2012-10-15 17:00:31 +02:00
Amir E. Aharoni
fc6a632f94
Fix Hebrew L10n
...
Change-Id: I17d9dee1c056c7bd806c8cc77625e23cf371ac64
2012-10-13 21:44:39 +02:00
Amire80 and Gerrit Code Review
702d45286e
Merge changes I1e913e08,I898bcf6e
...
* changes:
Update jquery.i18n from upstream
Load the fallback locales
2012-10-13 11:12:48 +00:00
Amir E. Aharoni
9576538e21
Update from GitHub
...
Change-Id: I3af46eea6dd81f09710157db1f3a239c623cef6b
2012-10-11 12:21:33 +02:00
Amir E. Aharoni
2ad892ae81
Removed "Select prefered font" heading
...
It seems redundant to me: There are one or two dropdown menus for
selecting fonts, with pretty clear labels.
Change-Id: If6134997b7c34eeb32efed1dcee13c61d8af7750
2012-10-11 08:41:09 +02:00
Amir E. Aharoni and Santhosh Thottingal
5a4667c3fd
Delete utils.data tests - they were moved to the jQuery component
...
Change-Id: Iead160c5845a64d4c0106037c2c7cf4d51eadae7
2012-10-10 16:27:20 +05:30
Amir E. Aharoni
2c86954cfb
Add Hebrew localization
...
It's manual, but it makes testing in RTL much easier.
Change-Id: I7aa0b172169ab1a449d394f38f7dce1247b0cb95
2012-10-09 20:20:59 +02:00
Amir E. Aharoni
3699095401
(bug 39535) Fix the creation of language buttons
...
Assure that the language buttons in the display settings always
show the content and the UI language and that all the buttons are
filled with some language (by assuming major world languages if
nothing more likely was found).
Also other fixes:
* Add lang and dir attributes for the languages.
* General refactoring and better variable names.
Change-Id: Ie6a93439237b389179ebc6c4a5df34c1566a5e12
2012-10-09 17:21:00 +02:00
Amir E. Aharoni
2991ed18f3
Refactor font selection HTML
...
Added whitespace for readability
and comments to understand the different parts of the HTML template.
Also removed an unneeded closing </span>.
The output is not supposed to change.
Change-Id: I43891170eb6fac03370cf1d71cd399d2de3c4da8
2012-10-09 12:44:59 +02:00
Amir E. Aharoni
8d31bf8c07
Updated util functions names after refactoring
...
jquery.uls.js is just updated from GitHub.
Change-Id: I506ab810d7136ba5d96dfdd469394a843110f8de
2012-10-08 20:50:49 +02:00
Amir E. Aharoni
22c20f9dbb
Update from GitHub
...
Utils refactoring
CSS lint
bug 39932: Clicking twice in a region moves the focus to the Worldwide region
Change-Id: I7853700a077db8de7dbe3c57fd71b829784f2fe6
2012-10-08 11:41:39 +02:00
Amir E. Aharoni
a0aae6d1b9
Update from GitHub
...
RTL and other bug fixes
Change-Id: I8d9040a1c140f0ff8f3dd430ff33f9602895f4fe
2012-10-07 17:19:20 +02:00
amire80 and Santhosh Thottingal
a8399e210f
Make the previous language link work
...
Refactored the showing and hiding functionality of tipsy tooltip.
Also made the class name clearer.
Change-Id: I54972e3c8039e97cceced9fce3abb10d34fbf098
2012-10-02 09:59:10 +05:30
Amir E. Aharoni
126af493b7
(bug 39946) Add Portuguese to WW
...
Change-Id: I1b54971ae4e4d1ec9e1eac98a46291504d53bb61
2012-09-03 20:04:46 +03:00
Amir E. Aharoni
de3abc3315
(bug 38679) Replacing regions NA, LA, SA with AM
...
Change-Id: Ib484dd9cb0453ec1bd214e0196119b14d96ac128
2012-09-01 10:09:16 +03:00
Amir E. Aharoni
b0f4742eb1
Filtering out languages that the ULS doesn't recognize
...
Change-Id: Ifda0caa640434254cf99c25a70887126f83427d2
2012-08-31 08:29:34 +03:00
Amir E. Aharoni
8974e61984
Fix tests after regions renumbering
...
Change-Id: I7bcb561508d6410334d1d4e1c4508911820fc537
2012-08-30 21:04:18 +03:00
Amir E. Aharoni
730d4df846
Sort language names in the landing page
...
Change-Id: I7463cd08fb42e79f9e089809e3d16567c1ab1a60
2012-08-30 16:16:05 +03:00
Amir E. Aharoni
1b2e696742
Add Accept-Language list to the landing page
...
Change-Id: I89d4ef938f9e2b9999844fcf1a05a7cf8f6fa098
2012-08-30 15:59:02 +03:00
Amir E. Aharoni and Niklas Laxström
610cc362ac
Get a list of the current user's Accept-Language codes
...
Change-Id: I2c8742f56e34aed8a368bb5add2cff30fa89ad33
2012-08-28 08:36:50 +00:00
Amir E. Aharoni
ca411138c7
Adding language presence by territory to langdb
...
A very simple mechanism for importing per-country language lists
from CLDR to ULS' langdb.
If I understand correctly, we only need languages spoken in a country
ordered by number of speakers. The CLDR data already has it and it should be
mostly useful.
Also added a utility function and a test.
Some tweaks to override the CLDR data are still needed:
* The data as it is omits some useful languages. For example, Amharic is not
listed in Eritrea.
* Some countries have a very large number of languages. Ideally it's right,
but is not practical currently, for example India with 75. Maybe
hand-picking or limiting the choice to top X languages can be useful,
but requires thought.
* Some language codes are standard, but different from Wikipedia practice,
for example "pa_Guru" (we just write "pa"). Maybe a mapping of codes
is needed.
Change-Id: I3c0cd5a9118997ba39a4f3695978e359f3de6956
2012-08-26 10:40:52 +03:00
Amir E. Aharoni
67dd765e13
Add basic information and utils for RTL scripts
...
Change-Id: Ie01b58cd3627e8f0bf726f0bb296bffb25efcbb5
2012-08-22 18:16:01 +03:00
Amir E. Aharoni
567cb54a9a
Fix font preferences saving.
...
Change-Id: I31ea1092bd5258c4af3973ae8237337133fd5d94
2012-08-22 08:36:53 +03:00
Amire80 and Gerrit Code Review
08cd11b4fb
Merge "Cache the region filter results"
2012-08-21 14:14:17 +00:00
Amir E. Aharoni
6c3378990e
Fix apply() to work with an empty string.
...
Change-Id: Ib7f7c9d9a0d99b3768cea4f7c77f8477c3421bae
2012-08-20 15:54:30 +03:00
Amir E. Aharoni and Santhosh Thottingal
fd1cbea69a
Add font selection functionality to the elements
...
* Disable the font selection dropdown if the checkbox is unchecked.
* Apply the font from the dropdown to the window.
Change-Id: I8e3f52dfb2f772fc8a2b8b18e0639ad802e8770e
2012-08-20 14:25:52 +05:30
Amir E. Aharoni
5bb5ca0118
Add webfonts reset functionality to the checkbox
...
Change-Id: I983d261fa018416c36ad2123b94850986beeca70
2012-08-17 11:57:02 +03:00
Amir E. Aharoni
a080bf8056
Remove double space
...
Change-Id: I01098eb637bbfe6170901dae68d5ea0fe1570aa6
2012-08-16 18:39:02 +03:00
Amire80 and Gerrit Code Review
6c7e82ff79
Merge "(bug 39230) Autocompletion does not get cleared on region change"
2012-08-16 15:17:28 +00:00
Amire80 and Gerrit Code Review
841bdfcfe5
Merge "More UI code"
2012-08-15 17:18:43 +00:00
Amir E. Aharoni
05a878ba9f
Added French to NA (Quebec), SA (Guiana) and WW
...
Also updated tests accordingly.
Patch originally proposed by Aude.
Change-Id: Id83f6fb80d394e6fac4d7486ba2feae9e9c5bd99
2012-08-15 09:37:16 +03:00
Amir E. Aharoni
0f98849f50
Fixed Windows line ending
...
Change-Id: I171036fe9a13c2de2ab530c1243f006209e49175
2012-08-15 09:24:58 +03:00
Amire80 and Gerrit Code Review
103269694f
Merge "WebFonts integration with ULS display settings."
2012-08-15 06:01:13 +00:00
Amir E. Aharoni
3d2e85664f
Partly reverting the langdb
...
Multiple scripts and autonyms are not currently supported by ULS utils.
I commented out the problematic lines and left the current de-facto
situation in Wikipedia.
This is a TODO item, but it needs proper specification.
Also updated the tests somewhat.
Change-Id: I8cdc6ae430f5bb5af4b1890abf6e71a91b6beb3d
2012-08-14 16:46:11 +03:00
Amir E. Aharoni
adf80d8791
Fixed languagesettings dependency
...
Also corrected to Unix line endings.
Change-Id: If6a28f312b09a0b797864064329fda41ce8332fd
2012-08-14 13:46:59 +03:00
Amir E. Aharoni and Santhosh Thottingal
a3ab65906a
Add Language settings dialog
...
Change-Id: Ie3455f32ac6ceff3c52d79643a6f7f82106ab7f1
2012-08-14 10:42:13 +05:30