Commit Graph
93 Commits
Author SHA1 Message Date
Nikerabbit ef826e0e75 Simplify the cancel logic for input and display settings
Change-Id: I2afe78edad31b00a35d0589384e4091b61091275
2013-08-29 10:57:45 +00:00
Niklas Laxström 2a6ae9f162 More refactoring of tests per feature
Change-Id: Ie9acf09f9bb992f6e03ff6dfbb80e1e20a9d43ca
2013-08-28 14:56:24 +03:00
Niklas Laxström 3bd4bb4f03 Refactor ULS tests to reduce duplication and repetition
Change-Id: I96f1594f1b4d1960da9a8bc21e2a5c4727497b10
2013-08-28 14:08:17 +03:00
Niklas LaxströmandAmir E. Aharoni d695b21381 Add new scenarios for font changes
There is currently some duplication between the various page objects
and other code. Those should be cleaned up incrementally.

Change-Id: I592829a00ca65bbecd5399b773c885c764c1cc06
2013-08-27 16:35:23 +03:00
Nikerabbit 537e6def5d Revert "Simplify the cancel logic for input and display settings"
This reverts commit a5d79594a3.

Causes new integration tests to fail.

Change-Id: I7e14d73d0d726a3253e8c6e6bdf5066230d8454c
2013-08-27 12:34:50 +00:00
Niklas Laxström 7f8f1136e8 Add gitignore and remove unsupported browsers
Change-Id: Ic415bcee0cfa8822a48396a2c1b086dbff200c2a
2013-08-27 14:03:47 +03:00
Niklas LaxströmandSanthosh Thottingal ec518a03b4 Provide mw.hook when not provided by older MediaWikis
Change-Id: I8d0826722064551cc46be26215ffb954f39babb0
2013-08-22 09:46:07 +05:30
Niklas Laxström 3a6e5d312a Code conventions
Change-Id: I0f58d4675cf26050ea1e2f58fb748e0aed74b54d
2013-08-20 05:34:16 +00:00
Niklas Laxström 1f66cb22bc Log no-search-results event
Change-Id: Ia272a6783d56c75ba775d71195104aad21214121
2013-08-19 08:13:55 +00:00
Niklas LaxströmandAmir E. Aharoni df18f0a5ff Log settings-open event
Change-Id: I55fb9e4b8b6b210003f6bbad07486e1c2a8cba4f
2013-08-05 15:19:57 +08:00
Niklas Laxström 0af4375e7c Fix spelling mistake in variable name
Change-Id: I791555dc4a04beb6109e212314f8f4747fc8b6d9
2013-08-05 04:04:19 +00:00
Niklas Laxström 425709cdb3 Log language-change for interface language
Change-Id: Icf8067078043be0f3a1c4f2c645835d88414b616
2013-08-02 13:43:18 +00:00
Niklas LaxströmandAmire80 e8479a070d Log ui-lang-revert
Change-Id: Ic48dbd7a9d4d43812f437e3c9f17d1ee208166e8
2013-08-02 13:14:27 +00:00
Niklas Laxström 8e1726e745 Log login-click event
Our logEvent wrapper now returns jQuery.Promise too.

Added timeout out parameter to our logEvent wrapper. Unlike
GettingStarted, I didn't create separate logUnlessTimeout
function.

Chrome apparently emulates enter on links as a click, so
this catches enters, left and middle clicks, but not if
the link is opened via right click menu. Might not catch
enter in all browsers.

Change-Id: I4b0eb56e7c7d6e56f8fd99d536f9b60b94a2e09e
2013-08-02 13:03:15 +00:00
Niklas LaxströmandAmire80 883e87ea56 Help links for ime selector menu
Change-Id: Ia6a0db9af25216f3d03c5130de96000141ccaa57
2013-07-15 13:24:12 +00:00
Niklas Laxström da1baaf663 Help links for input settings
Bug: 42373
Change-Id: I30c8d6cbe916ac026ad70974755942c5bbea7162
2013-07-15 11:08:17 +00:00
Niklas LaxströmandSanthosh 034acf6f0f Log ime-enable and ime-disable events
Change-Id: I96964cb190d1a67bba536458ebadd3bd677d4fa6
2013-07-06 12:26:52 +00:00
Niklas Laxström c51384e4e1 Use /** for method documentation blocks
Change-Id: I6c7a8b7c2e2e861120caa1f1b5ff9b0dc7537737
2013-07-06 10:33:12 +00:00
Niklas Laxström 4543d43dda Prepare ULS for EventLogging
This change introduces a new configuration variable, $wgULSEventLogging. When
set to true, ULS will register an EventLogging schema module for
<http://meta.wikimedia.org/wiki/Schema:UniversalLanguageSelector>,
making it possible to log events using `mw.uls.logEvent`. When false, the
schema module is not loaded, and `mw.uls.logEvent` is a no-op.

Change-Id: I7139e67cc2f830a6b4b3c8ff1fc72dfcdec9a699
2013-07-02 12:47:22 +00:00
Niklas Laxström 10c1177c1d Remove comma that shouldn't have been introduced
Change-Id: Iaf24bc1cf4ec59fe2c44601eee1a19ccdac757ba
2013-06-19 18:19:42 +00:00
Niklas Laxström d9883c90d7 Remove border-radius from ULS cog
Per http://stackoverflow.com/questions/11114636/opera-border-radius-svg-background-bug

Bug: 49379
Change-Id: I197e9e9a8c5afcefc998e302329aa96dc2df33da
2013-06-19 09:54:34 +00:00
NikerabbitandGerrit Code Review 1972f02148 Merge "Update jquery.ime from upstream" 2013-06-10 07:31:20 +00:00
Niklas Laxström 0c53c38304 Hide ULS trigger from unsupported browsers
For position=sidebar, the dummy "in other languages" section is
visible in the same manner as it is to browsers without JavaScript.

Bug: 49028
Change-Id: I931a2e904b37c754f63bfe5feb2d98bfe6c2747b
2013-06-04 10:26:57 +00:00
Niklas LaxströmandGerrit Code Review 979c2da418 Workaround for border-radius due to bug 49074
Change-Id: I411ea2cda0fcfc0c3182189ed6dc2f25851cd04c
2013-06-04 09:31:51 +00:00
Niklas Laxström 15b57bc315 Fix some incorrect hook annotations
Change-Id: I2594b50c07eafbee68df29152066c81a79035a9e
2013-05-25 08:43:27 +00:00
Niklas Laxström d10f685eb9 Remove unused resources
Change-Id: I80eb3dc02e99fd0dda5990a3a690d897e054cfcd
2013-05-24 18:51:28 +00:00
Niklas Laxström 6705754c75 Optimize images
Change-Id: I8cf0ec50425374e8abb89dcedc9663375e3d1edd
2013-05-22 09:16:42 +00:00
Niklas LaxströmandSanthosh Thottingal 142bdbd7c7 Better way to fix jslint warnings
Change-Id: Id56aa9c742bdd5dd7cec5848d1b44a4dafaca9c0
2013-05-22 09:41:20 +05:30
Niklas LaxströmandAmir E. Aharoni 2f4e9cfff9 Reduce rerenderings in input settings
Change-Id: Ia929bbbb2cd6be18e37d9b73b4eea199bd0ad4b8
2013-05-09 16:28:21 +03:00
Niklas Laxström f275dbeb98 I18n for System font
Bug: 47819
Change-Id: I9244aab0ec32c27bfc56dd5a441f02a9783e5fb1
2013-05-03 08:43:08 +00:00
Niklas Laxström 065948182c Fix tipsy behaviour
* Make it visible in interlanguage position
* Do not get stuck in no-tooltip state if previous lang is invalid

Change-Id: Iaf5727a8a729579c2a0c79d0e0dc49d58bbf66ea
2013-04-29 13:07:31 +00:00
Niklas Laxström aee1fcff19 Join some appends to one call
Change-Id: Iccf4c7653aff775a6ea0ddc211135dab8b1d99d1
2013-04-29 12:20:42 +00:00
Niklas Laxström d309c687e9 Rename confusingly named function
Change-Id: I685a1658ec911e28cba4c9d3d7cbaaf4f1cca22e
2013-04-29 12:20:42 +00:00
Niklas LaxströmandGerrit Code Review 4554c79d51 Load ULS language list from a resource loader module
Having them in the page source of every page view is wasteful.

Bug: 41210
Change-Id: If15e297a4781cc49ded06fbc906529f57a22aafe
2013-04-28 11:26:40 +00:00
Niklas LaxströmandAmir E. Aharoni 60242e2c53 Use wmf geoip by default
Unlike freegeoip it also works with https

Also moved the getCountryCode function to init, as it should be
available regardless of whether we load the optional geoclient
module.

Bug: 40965
Change-Id: Ia18130890d09f86a93b5b61f7da7c48fcfa480c7
2013-04-28 14:25:26 +03:00
Niklas Laxström da255cdc77 Fix Undefined offset notice
Also removed some dead code that never ran, there is no variable named
"$buckets" so it'll never have an offset.

Bug: 45327
Change-Id: I1f70ef0ec4f2434f9f072e718140ff8050b81ba3
2013-04-26 14:29:08 +00:00
Niklas LaxströmandNemo bis 6b143320ad Introduced $wgULSAnonCanChangeLanguage
This allows us to enable web fonts and input methods for all
users by disabling just the interface language selection.

Updated the documentation of the variables to make it clearer
what each does. Summary:
* Enabling: $wgULSEnable and $wgULSEnableAnon
* Workarounds: $wgULSAnonCanChangeLanguage and $wgULSLanguageDetection

Cleaned up hooks, in particular rewritten getLanguage to separate
the logged in vs. logged out steps for easier understanding.

A followup commit is needed to disable language selection UI for
anon if $wgULSAnonCanChangeLanguage is false.

Change-Id: Ia8d21c394ff5efac0ce94664710c97dc3b74ec18
2013-04-26 12:21:23 +00:00
Niklas Laxström e34163b9d3 Consistency changes
Change-Id: Id5c62940ef7084b97573cfd62974f3bc27dd418a
2013-04-10 12:52:14 +00:00
Niklas Laxström 977640a40f Add $resourcePaths
Change-Id: I2b3ef5f57566fe5bcc6549157e09c47fdc61e95f
2013-04-03 11:13:52 +00:00
Niklas Laxström 9692a17671 Sort modules alphabetically
Change-Id: Id8a0daabe6204e2a4c52d702e29d891fd80b89ae
2013-03-28 11:11:18 +00:00
Niklas LaxströmandSanthosh Thottingal 7158b0adeb Add separate Resources.php
Change-Id: Ie02fbdd1bb8a1c83f66eacff8de0ca0bd6c67ab4
2013-03-27 15:09:59 +05:30
Niklas Laxström 00189afa66 Add ext.uls.geoclient back to deps
Change-Id: I4e1aa22edd89ff666b29c7b26c1928885e8bc896
2013-03-26 10:18:44 +00:00
Niklas Laxström 1c383fb8f9 Optimize pngs
Change-Id: I8666484a23228358a5f4ece449123c6458bb76d1
2013-03-13 09:53:48 +00:00
Niklas Laxström dfcade7f69 Update to match core changes in Idc11b547
Change-Id: I5481df33c7056cf2c661527f6ed3cf2374b6a0bf
2013-01-18 08:25:40 +00:00
Niklas Laxström 9b72969b07 (bug 44010) Try to avoid messing wrong request contexts
Also takes use of $request parameter if given, but does
not depend on Idc11b547

Change-Id: I870281f26cbc87c43d9b2a763f78c5756cb2327f
2013-01-16 09:55:48 +00:00
NikerabbitandGerrit Code Review e7d1965f7c Merge "Whitespace" 2013-01-02 07:47:55 +00:00
NikerabbitandGerrit Code Review 3555303dd6 Merge "Add Kannada Gubbi font to repo, replace Kedage" 2012-11-26 08:46:32 +00:00
NikerabbitandGerrit Code Review 018b999328 Merge "Just hide the whole window after apply button pressed" 2012-11-21 07:21:43 +00:00
NikerabbitandGerrit Code Review 8882e7b08d Merge "Updated webfonts test page with bold, italic, underline options" 2012-11-20 07:43:21 +00:00
NikerabbitandGerrit Code Review 7ef3d7864b Merge "Update docs" 2012-11-13 10:37:40 +00:00
Niklas LaxströmandGerrit Code Review 3c9e7249a8 Geoclient fixes for https and WMF
* Don't call freegeoip on https, it wont work
* Use Geo instead of GEO like WMF

Change-Id: I9ebdd9f3518e15e70122a9c8c8d64240d5e44c5b
2012-11-10 07:15:07 +00:00
NikerabbitandGerrit Code Review 9636137e50 Merge "Fix Bug 41804 - Display Settings shows dual labels for Font Selection" 2012-11-09 16:44:41 +00:00
Niklas Laxström 4b811a5997 Avoid contstructing html with concatenation
Fixes potential security issue, bug 41395.
Change-Id: I55c79e41de6084d18c49b8bb715a7f49e19dc7e9
2012-11-01 12:25:27 +00:00
Niklas LaxströmandSanthosh Thottingal 25889d77b6 Avoid constructing html with concatenation
Change-Id: I6104ade6a9f9209df921577cd04d7fe9487e65d9
2012-11-01 17:26:10 +05:30
Niklas Laxström 8529ed7377 Guard for web execution
Change-Id: I4cac7035a9b80865c3ff5a709f5d7d7c5e5cada4
2012-10-26 19:35:00 +00:00
NikerabbitandGerrit Code Review 4c26d822f2 Merge "Simplify the preference system" 2012-10-24 15:54:33 +00:00
NikerabbitandGerrit Code Review 488d4bae45 Merge "Removed "Select prefered font" heading" 2012-10-12 19:31:39 +00:00
NikerabbitandGerrit Code Review 4709c97fd4 Merge "Make the previous language link work" 2012-10-02 07:28:34 +00:00
NikerabbitandGerrit Code Review f78ee750e8 Merge "Respect the system default font for languages" 2012-10-02 07:25:29 +00:00
Niklas Laxström ceb1a80eea ext.uls.geoclient should not break if it runs before ext.uls.init
Change-Id: If4c8203bccd4287a94de6b22210f067852241614
2012-09-09 07:55:23 +00:00
NikerabbitandGerrit Code Review d29364989f Merge changes I83d4808a,If8ea8c1f
* changes:
  JsHint fixes - Move the invocation into the parens that contain the function.
  Fix Bug 39096 - Narayam compatibility with ULS
2012-09-07 11:07:10 +00:00
Niklas LaxströmandGerrit Code Review 01b41b9783 Message consistency
* Removed title case
* "language used for menus"

Change-Id: If5c0323f5e49f2e71a3b6257b62ce5a08c74704c
2012-09-03 09:10:08 +00:00
Niklas Laxström dc163127e3 Language detection was overriding language for logged in users
Change-Id: I491e429b6ea352c67bdc3b63acf191e187059fde
2012-09-01 19:09:40 +00:00
NikerabbitandGerrit Code Review be20d2f6e1 Merge "Filtering out languages that the ULS doesn't recognize" 2012-08-31 10:49:56 +00:00
Niklas LaxströmandGerrit Code Review b1fad2c1bb I18n#1473: Use preferred language for anonymous users
Change-Id: I25833bb4c35453bbb055b4782d996604c93ef7db
2012-08-31 10:31:11 +00:00
Niklas Laxström 99d3d152b4 Added/fixed some sami languages
Names taken from (en|fi).wiktionary.org

Change-Id: I6b08417e9a9d65753028d6c5f151b89485542484
2012-08-30 14:35:48 +00:00
Niklas Laxström d738b0f117 JS cleanup
Change-Id: I804d9f5e13f0c186da19cd31eae5156277f0f0d4
2012-08-30 13:56:04 +00:00
NikerabbitandGerrit Code Review ad2dfcacd6 Merge "Sort language names in the landing page" 2012-08-30 13:52:11 +00:00
Niklas LaxströmandAmir E. Aharoni 64c26ad137 Initial version of geolocation support
Change-Id: Ia1a18ac336131520bbc67f52194f4aa9c547ea67
2012-08-30 15:36:51 +03:00
Niklas Laxström 36e82a41ca Trying to fix language selection once more
Anon users were getting fatal errors if they did
not possess the language cookie.

Change-Id: I00f71ca6462ebcaa800ef8569efeea794ba16a7c
2012-08-28 13:58:44 +00:00
Niklas Laxström 0f2f7f8b62 Fix bug: language stuck in English
Change-Id: Ice51d517f5381197f9c0f72844961e74b021e3dc
2012-08-28 12:12:15 +00:00
NikerabbitandGerrit Code Review 5f579bcc5d Merge "Adding language presence by territory to langdb" 2012-08-28 08:42:29 +00:00
Niklas Laxström 7cbaf20937 Fix Icfa371d2: some workaround to avoid unstub exception and typofix
Exception from line 124 of /www/w/includes/StubObject.php: Unstub loop detected on call of $wgLang->getCode
from Message::inLanguage

[28-Aug-2012 07:45:20] PHP Notice:  Undefined variable: validLanguages in /www/w/extensions/UniversalLanguageSelector/UniversalLanguageSelector.hooks.php on line 80
[28-Aug-2012 07:45:20] PHP Warning:  array_key_exists() expects parameter 2 to be array, null given in /www/w/extensions/UniversalLanguageSelector/UniversalLanguageSelector.hooks.php on line 80

Change-Id: I6ab332ce344c753a8ea5894fd9c45721a5835909
2012-08-28 08:11:35 +00:00
Niklas Laxström d40e51c4f0 Stray space
Change-Id: I2c6e3a6670f99769b1227578c26579e4678fe781
2012-08-20 11:14:09 +00:00
NikerabbitandGerrit Code Review 08eb45509b Merge "CSS adjustments on color and sizes" 2012-08-17 13:38:55 +00:00
Niklas Laxström ee7f16526c (bug 39230) Autocompletion does not get cleared on region change
* Introduced deactivate (clear without showing all languages)
* Renamed noresult in region filter to noresults to match the
  callback in languagefilter
* Some comments to help understand the code

Change-Id: I544a29b860a6d3f4a5aa770f84cc8a72ae4a4b9d
2012-08-16 09:33:39 +00:00
Niklas Laxström ea47df33e0 Two RTL fixes
* WW can flip sides, other regions not
* Display settings icon now changes side and doesn't overlap with text

Change-Id: I35a6c93448a8dd178e657ba25093cf77199227c8
2012-08-16 08:57:16 +00:00
Niklas LaxströmandSanthosh Thottingal 3f4b5e4540 Mediawiki WebFonts repository for jquery.webfonts
Added license and upstream information and a
script to compile repoconfig automatically
from metadata.

also contains integration code

Change-Id: Ib39668249dd568a1f6017f0c08a3b9d1e2067ae4
2012-08-14 19:01:46 +05:30
Niklas LaxströmandGerrit Code Review 23763bd247 Added autonyms directly to langdb.yaml
* Can add languages not in MW
* Can get rid of foo / bar names which include different scripts
* Can get rid of directionality marks
* PHP scripts to generate the jquery.uls.data.js is now independent of
  mediawiki and moved the scripts to lib/jquery.uls/data
* No pretty printing for the jquery.uls.data.js and added a 'do not edit' comment.
* Related changes in RL module definition and example html

Change-Id: I9a360dbdec4e9312aa5c76f801424ff95a8550d6
2012-08-14 10:19:38 +00:00
NikerabbitandGerrit Code Review 8855af1428 Merge "Add a test for autonym sorting" 2012-08-09 08:10:59 +00:00
NikerabbitandGerrit Code Review c3e42fcc2a Merge "Handling enter key in language filter" 2012-08-08 13:54:27 +00:00
NikerabbitandGerrit Code Review 8925d872f4 Merge "Fix issue : Undo language tooltip present in all pages" 2012-08-07 13:06:03 +00:00
Niklas Laxström 13403af261 Fix the map in RTL, again
Change-Id: Idde206fd968757cacf778ba41140b99e7f322cc7
2012-08-07 06:41:14 +00:00
Niklas Laxström 6187cc45a5 Fix the location of America and Asia in RTL languages
Change-Id: I51485b35518d32c239962bf0943bd63f010ddc3b
2012-07-19 10:28:53 +00:00
Niklas Laxström 966416872e Replace Foo Americas with just America
Change-Id: Id11dc72c6f7e93ad88076441e5fff5ed69f7b069
2012-07-19 10:22:40 +00:00
Niklas Laxström 2c82ff0100 Enable syntax highlighting inside heredoc
Change-Id: I6e77455fac58289dfdca8a6aa72cd305f9b8d7b3
2012-07-19 10:21:18 +00:00
Niklas Laxström 6af3c4c9b8 Fix usage of console causing errors on browsers not having it
https://translatewiki.net/wiki/Thread:Support/Loss_of_script_functionality

Change-Id: Iace2ba107221673514942331d0e43559ff6b4c19
2012-07-14 01:40:28 +00:00
NikerabbitandGerrit Code Review b9ee6595d3 Merge "Actually enabled running the JS tests" 2012-06-27 06:46:04 +00:00
Niklas Laxström 1b8a56ba20 Updated langdb
Change-Id: Id76894de23aa763f84560f774b7c6bce541a5739
2012-06-26 11:39:14 +00:00
Niklas Laxström 4a782cbd65 Move the text to bottom-left as in prototypes
Change-Id: Iffb3bcee43cd0e0c76e7abd7e29cf8fa0e7ede98
2012-06-25 07:36:27 +00:00
Niklas LaxströmandSanthosh Thottingal 16d2b1c33d Proof of concept language database database
Change-Id: I5d6b9ff4ce46c8e2d48bf56ab08f093287672467
2012-06-22 17:34:43 +05:30
Niklas Laxström db360d7b9d Don't highlight empty strings (between each letter)
Change-Id: I6608c8954f415eeaa8a40da4a1c0e22638a9f860
2012-06-22 09:56:28 +00:00
Niklas Laxström 73b08997a5 Focus the search field by default
Change-Id: I0b14ccbccb4870094f0e72c1bf29e0d167e4a6b7
2012-06-22 09:53:55 +00:00