Commit Graph
100 Commits
Author SHA1 Message Date
Amir E. AharoniandNiklas Laxström b6698228d4 Allow loading redirects in Common languages
Bug: 49847
Change-Id: Ia2380a77ebad789a2f70a7a88a1bb9970199b1c5
2013-07-04 12:55:39 +00:00
Amir E. AharoniandNikerabbit 900f5240bd Calculate the position of the menu near the cog properly
Instead of magic numbers, use a proper calculation according
to the elements' positions.

Bug: 49471
Change-Id: I9093b2c684f557e9e562762b7ef25ced37b8848b
2013-07-04 12:36:47 +00:00
Amir E. AharoniandNikerabbit 244b20d2b5 Update jquery.ime from upstream
Bug: 49679
Change-Id: I1bc5a4ac2788d20d2bdba6454bd278a3b4681168
2013-06-26 08:52:38 +00:00
Amir E. AharoniandGerrit Code Review d887705ccb Update localization from upstream
Change-Id: Ie1c3eb987f0c21abbf8e82ac5761885fd7f1bb76
2013-06-19 20:33:27 +00:00
Amir E. Aharoni b5dd51a1f3 Make Display settings the default view for the cog Language settings
Without this change, clicking the cog near the interlanguage
links can show Input settings first, and the design says that
Display settings must be shown first.

Change-Id: Ieb2dcd7efb5c1a5e1320a271ec7c7ae69d071bae
2013-06-15 08:21:29 -07:00
Amir E. Aharoni 3332062bac Cleanup ext.uls.languagesettings.js
Change-Id: Ied12c6bf2022c0c291d7e5edc213340e6a159f77
2013-06-14 18:28:35 -07:00
Amir E. Aharoni 1a17ef392d Properly save back-up preferences for repeated canceling
Before this patch, this scenarios didn't yield the expected result:

1) Disable IME, click Apply 2) Enable IME, click Cancel

The expected result is that IME would be disabled, but it was enabled.

This patch re-stashes the preferences when they are saved, so
the last saved preferences are loaded when pressing Cancel.

Change-Id: Ic7abdab165e367d970e6568ba69b25bf7d4f675a
2013-06-04 12:00:21 +03:00
Amir E. Aharoni 361eb95f33 Make "Cancel" reset preferences and "Apply" save and close
Bug: 48898
Change-Id: I9f5444ffd57ddf46d197ebdb23a18c0c4600b196
2013-06-04 10:42:29 +03:00
Amir E. AharoniandSiebrand 30aaafcaaa Don't show anonymous users tipsy with setlang
Bug: 47970
Change-Id: Ib7744b2d5f826ed781fff8359b5a4482b0bda522
2013-05-28 06:14:55 +00:00
Amir E. Aharoni 282b6c7644 Show input methods for selected language correctly
Remove redundant calls to prepareInputmethods
and redundant button styling.

Rename firstLanguauge to the clearer currentLanguage.

Switch checking for imeLanguage and the prereferences language
to make sure that the last one is shown.

Done in pair programming with Santhosh.

Bug: 48163
Change-Id: Ie8441f29eb20caa05534c8589481a26cb415a27f
2013-05-27 13:38:32 +03:00
Amir E. Aharoni 2ef2376bfe Remove webfonts enabling checkbox and associated preference
Bug: 48535
Change-Id: If735a733717596fae03042c5e277bd538bd8501f
2013-05-27 07:59:45 +03:00
Amir E. Aharoni 4221b97ab2 Hide the ULS trigger for users who disabled JS
Bug: 42500
Change-Id: I297a8d3bb9d9031e21dd6842f5d27dd54f469c29
2013-05-22 16:04:20 +03:00
Amir E. Aharoni d93c92af10 Remove a redundant CSS rule
It's already covered in ext.uls.css. The existence of the extra rule
causes wrong display.

Change-Id: I0a5fed7456279f6d313c89e7fa41335d6c437b1c
2013-05-20 15:04:31 +03:00
Amir E. AharoniandSiebrand 07465bf20c Set the position of display settings to match ULS
Bug: 47822
Change-Id: I7b04a831b2c5d7932564a3cdde94be0e233f7a7b
2013-05-16 09:48:44 +00:00
Amir E. Aharoni 5dde8024cf Revert "Avoid duplicate languagesettings dialog in page source"
This reverts commit 3b2e39d822.

Because of that commit input settings cannot be opened from
the IME menu and from the buttons at the bottom of ULS.

Change-Id: I9aee4f40d39392df0cdc5aba8b481b71838dc41a
2013-05-15 22:38:42 +03:00
Amir E. Aharoni 73e6e01c22 Scroll language settings on all changes
Change-Id: I550f309d713cb6aac6b18b326379b879dc0b9589
2013-05-15 15:33:26 +03:00
Amir E. Aharoni 977b36ade6 Replace id uls-more-languages with class
Change-Id: I51f74f0b3bcec1b45dd5588638346a6d02a44e52
2013-05-15 10:45:35 +03:00
Amir E. AharoniandPau 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 6ae0fe3e44 Add a MediaWiki preference for enabling ULS IME
Bug: 47240
Change-Id: I957d9f409b0c29f956bcf8a49187cdf27c4f42f8
2013-05-13 15:48:00 +03:00
Amir E. Aharoni 5e6ab6778e Update from upstream
Only localization. Adding hak.

Change-Id: I3998902792a36631aeba64418b4f49176f03ebe4
2013-05-13 10:40:18 +03: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. AharoniandNiklas 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. AharoniandGerrit 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. AharoniandPau 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. AharoniandGerrit 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. AharoniandGerrit 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. AharoniandSanthosh 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. AharoniandGerrit 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
Amire80andGerrit Code Review 24ec1af931 Merge "Updated cog icon for the IME menu" 2012-11-25 19:02:56 +00:00
Amire80andGerrit Code Review edc989513c Merge "CSS adjustment for the 'No input methods avaialble' message." 2012-11-25 18:52:59 +00:00
Amire80andGerrit 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
Amire80andGerrit Code Review 8a0845ee55 Merge "Move the IME customization code out of document.ready" 2012-10-29 10:31:46 +00:00
Amire80andGerrit Code Review c111f46c92 Merge "Remove unused settingspanel.js" 2012-10-29 09:39:27 +00:00
Amire80andGerrit Code Review 66b2badb5c Merge "CSS, tooltip fixes for the more button in IME selector menu." 2012-10-26 08:51:56 +00:00
Amire80andGerrit Code Review 835e4f1dbd Merge "Avoid lazyloading when used for input method language selection." 2012-10-26 08:24:28 +00:00
Amir E. AharoniandGerrit 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
Amire80andGerrit Code Review 83b912d683 Merge "Use default font only if webfonts is enabled." 2012-10-16 12:07:50 +00:00
Amire80andGerrit Code Review c04b0a83ba Merge "JSHint fixes" 2012-10-16 11:56:17 +00:00
Amire80andGerrit 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
Amire80andGerrit 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. AharoniandSanthosh 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
amire80andSanthosh 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