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 and Gerrit 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öm and Amir 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öm and Nemo 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öm and Santhosh 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
Nikerabbit and Gerrit Code Review
e7d1965f7c
Merge "Whitespace"
2013-01-02 07:47:55 +00:00
Nikerabbit and Gerrit Code Review
3555303dd6
Merge "Add Kannada Gubbi font to repo, replace Kedage"
2012-11-26 08:46:32 +00:00
Nikerabbit and Gerrit Code Review
018b999328
Merge "Just hide the whole window after apply button pressed"
2012-11-21 07:21:43 +00:00
Nikerabbit and Gerrit Code Review
8882e7b08d
Merge "Updated webfonts test page with bold, italic, underline options"
2012-11-20 07:43:21 +00:00
Nikerabbit and Gerrit Code Review
7ef3d7864b
Merge "Update docs"
2012-11-13 10:37:40 +00:00
Niklas Laxström and Gerrit 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
Nikerabbit and Gerrit 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öm and Santhosh 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
Nikerabbit and Gerrit Code Review
4c26d822f2
Merge "Simplify the preference system"
2012-10-24 15:54:33 +00:00
Nikerabbit and Gerrit Code Review
488d4bae45
Merge "Removed "Select prefered font" heading"
2012-10-12 19:31:39 +00:00
Nikerabbit and Gerrit Code Review
4709c97fd4
Merge "Make the previous language link work"
2012-10-02 07:28:34 +00:00
Nikerabbit and Gerrit 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
Nikerabbit and Gerrit 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öm and Gerrit 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
Nikerabbit and Gerrit Code Review
be20d2f6e1
Merge "Filtering out languages that the ULS doesn't recognize"
2012-08-31 10:49:56 +00:00
Niklas Laxström and Gerrit 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
Nikerabbit and Gerrit Code Review
ad2dfcacd6
Merge "Sort language names in the landing page"
2012-08-30 13:52:11 +00:00
Niklas Laxström and Amir 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
Nikerabbit and Gerrit 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
Nikerabbit and Gerrit 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öm and Santhosh 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öm and Gerrit 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
Nikerabbit and Gerrit Code Review
8855af1428
Merge "Add a test for autonym sorting"
2012-08-09 08:10:59 +00:00
Nikerabbit and Gerrit Code Review
c3e42fcc2a
Merge "Handling enter key in language filter"
2012-08-08 13:54:27 +00:00
Nikerabbit and Gerrit 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
Nikerabbit and Gerrit 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öm and Santhosh 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