Santhosh Thottingal
baa3aae6cc
Fix the LanguageNameSearch::search call used in phpunit test
...
Change-Id: Ib95e0738f6a6866dd7e7d84be0c0c6a03a671ce7
2012-08-30 21:54:10 +05:30
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
ad2dfcacd6
Merge "Sort language names in the landing page"
2012-08-30 13:52:11 +00: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
Niklas Laxström
64c26ad137
Initial version of geolocation support
...
Change-Id: Ia1a18ac336131520bbc67f52194f4aa9c547ea67
2012-08-30 15:36:51 +03:00
Santhosh Thottingal
fde6b18e40
Lazy loading of regions
...
Also adds landing page feature. But candidate list is hardcoded
for now. Example html file updated.
show method of lcd renamed to render.
Introduced a trigger searchclear
Introduced mw.uls.changeLanguage, setPreviousLanguages
getPreviousLanguages and getBrowserLanguage methods
Region groups re-numbered - from [4, 1, 2, 3] to [1, 2, 3, 4].
Change-Id: Iac1edf628708e6f40e41578df70d40c42f15289a
2012-08-30 14:26:57 +03:00
Santhosh Thottingal
b845045070
Use jquery.jStorage for saving preferences of anonymous users
...
Change-Id: I36f9f13a3468a11e05d1e1bb59b1841aa3464a24
2012-08-30 08:23:21 +00:00
Translation updater bot
bfcb50f86a
Localisation updates from http://translatewiki.net .
...
Change-Id: Ie0a4cd4f8067ecf93188f7c8a405cdafeadb8956
2012-08-29 19:24:11 +00:00
Santhosh Thottingal
93ed9a3ae3
Updated webfonts example
...
Change-Id: I4296fd973da66c000cb4acf3e1ee387dfaf4fbcb
2012-08-29 11:36:40 +05:30
Translation updater bot
0d5ff00223
Localisation updates from http://translatewiki.net .
...
Change-Id: Idb28226aa88dca9c24e36d3e7a2c871d284f4516
2012-08-28 19:43:26 +00: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
5f579bcc5d
Merge "Adding language presence by territory to langdb"
2012-08-28 08:42:29 +00:00
Amir E. Aharoni
610cc362ac
Get a list of the current user's Accept-Language codes
...
Change-Id: I2c8742f56e34aed8a368bb5add2cff30fa89ad33
2012-08-28 08:36:50 +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
Santhosh Thottingal
7a5f3dd91d
Do not accept invalid codes for setlang
...
Related to bug 37459, but this is not about uselang.
Change-Id: Icfa371d25697ee01c6bc262de968cfd2a1543154
2012-08-28 11:53:16 +05:30
Translation updater bot
8056b037aa
Localisation updates from http://translatewiki.net .
...
Change-Id: I9d4463b4a1c8c1bf9d9bd728e9a2df67f342b226
2012-08-27 19:33:37 +00:00
Translation updater bot
fa21529bab
Localisation updates from http://translatewiki.net .
...
Change-Id: I93c301716743666dcc860660d5ea8367424a9def
2012-08-26 20:16:17 +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
Santhosh Thottingal
0d73ffe09e
Use sans-serif as default fallback font
...
jquery.uls uses Helvetica, Arial, sans-serif.
Override it to match MediaWiki's default fallback font.
Change-Id: I2d842ce5c2f9a32c781560c4583567873320e786
2012-08-25 21:47:38 +03:00
Translation updater bot
935ad41495
Localisation updates from http://translatewiki.net .
...
Change-Id: I8fefef48fcb66f04b38ad4775415e52cdee0f275
2012-08-23 20:10:21 +00:00
Santhosh Thottingal
bc2877449c
MediaWiki override for ULS defaults.
...
Change-Id: Ia64c51b988e3b1bbd3bb9cabac53fdc1069609db
2012-08-23 15:55:12 +05:30
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
Translation updater bot
1784a85bb4
Localisation updates from http://translatewiki.net .
...
Change-Id: Ib049314979dab7cfeb26eb9546512097ad5cd688
2012-08-21 20:11:23 +00:00
Amire80
08cd11b4fb
Merge "Cache the region filter results"
2012-08-21 14:14:17 +00:00
Santhosh Thottingal
79139e650d
Avoid jquery filter for the region div for each language
...
Keep it in an object and reuse.
Change-Id: I1a367132e9b99b4fc6b2b8ff4023f638e6bc183f
2012-08-21 17:56:22 +05:30
Santhosh Thottingal
5760df80d3
Bind the language links using jquery on and not in loop
...
Change-Id: Ic4d2dd2b06acae57060bced9938a219bf8cebd73
2012-08-21 17:44:23 +05:30
Santhosh Thottingal
fbb55dfe6f
Cache the region filter results
...
Change-Id: Ia303774d3c1171f3e8c1b3f7ca8b102c79e68300
2012-08-21 17:06:41 +05:30
Santhosh Thottingal
01ceb4c4f8
Move regionfilter to a seperate javascript file
...
To lib/jquery.uls/src/jquery.uls.regionfilter.js
Change-Id: I5f4e424ff68d7a7ed6407f48ddf84cdadfe90a52
2012-08-21 16:20:03 +05:30
Santhosh Thottingal
a74aa852a9
unnecessary module additions in addModule
...
* ext.uls.init is enough since it take care of all other dependecies
Change-Id: I8588006ea690391c417ced30cad1413e16406198
2012-08-21 15:28:12 +05:30
Santhosh Thottingal
d070071274
Make the close button of language settings work
...
* Actually it should go to previous context. but that is a FIXME
* Jslint fixes
Change-Id: I2e0685adc42331fd86716dfa73be3630208aa893
2012-08-21 15:16:48 +05:30
Santhosh Thottingal
5c6567adbc
Whitespace, typo, jshint fixes
...
Change-Id: Ib22d9c4a75d1f9ce77a7db2a820dc6de9c680b09
2012-08-21 12:12:15 +03:00
Santhosh Thottingal
77515dd664
Use new jquery.uls and preferences system
...
Change-Id: I0e626320f494597e9125d394fb9bbbceccfff34c
2012-08-21 10:10:31 +05:30
Santhosh Thottingal
92ed1f656d
Updated version from upstream
...
Introduces refresh method
Introduces fontSelector hook
Change-Id: I255c213a87cd588f6dd17b1ec48ac3c294413a81
2012-08-21 10:10:27 +05:30
Santhosh Thottingal
a07dc90ddf
Make the preferences singleton
...
Renamed $.fn.uls.preferences to mw.uls.preferences since this is not a jquery
function, but a singleton object per page.
Change-Id: Ie6c37fb321685e927fa5197fa8a53f41bff656ef
2012-08-21 10:09:25 +05:30
Santhosh Thottingal
86952ff9fd
Allow selection of font for content language
...
* One more dropdown for content language( if it differs from UI
language )
* Save the font preferences for both ui and content language
* many refactoring, variable renaming for this change
* Marked many TODOs and FIXMEs
Change-Id: I93ae5eced5938667af186be51bc8a5b5cd1d7eaf
2012-08-21 10:09:25 +05:30
Translation updater bot
3a351ab478
Localisation updates from http://translatewiki.net .
...
Change-Id: Icf57c122ea5ceb2217b05e99e47d21922570f42b
2012-08-20 19:22:59 +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
Niklas Laxström
d40e51c4f0
Stray space
...
Change-Id: I2c6e3a6670f99769b1227578c26579e4678fe781
2012-08-20 11:14:09 +00:00
Santhosh Thottingal
2293040cd7
Pass searchAPI and languages to work to ULS
...
Change-Id: I7bac18842332ff445f9570f568710140fc3b3b3d
2012-08-20 14:55:16 +05:30
Amir E. Aharoni
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
Santhosh Thottingal
cacef09c6f
Link to help page, Wider font dropdown, Title for UI language picker
...
Change-Id: I6c9abda2cc8ffa112b0ce7638d9724b7e087d7e3
2012-08-20 08:41:26 +00:00
Santhosh Thottingal
3250cd9a4c
Fix the current language button behavior
...
When language is selected from ULS, re-render the language buttons.
Change-Id: I6012871bfb362f1ac2ac8e7f5d3e488346361214
2012-08-20 14:08:46 +05:30
Santhosh Thottingal
0d281887d3
ULS - Language settings navigation fix
...
Hide the popup when navigating to other window.
Change-Id: I7f1f6eef08249d6e40225d5ad7036b39e7c26b0e
2012-08-20 10:54:54 +05:30
Santhosh Thottingal
ca4ba4f270
Fix the close button of ULS
...
Regression from I9d16cbac
Change-Id: Ib0a64a9d8909e10c6f83727d4056f663c49d7ec7
2012-08-20 10:15:34 +05:30
Santhosh Thottingal
3f3608200a
Fix region highlight when result is scrolled.
...
Regresssion from I48e2e167
Change-Id: Ibe7e49a21d5527ee56d466a68e19c051b0f6e39a
2012-08-20 10:12:05 +05:30
Santhosh Thottingal
d67771fa01
Display Settings - ULS - Display settings navigation
...
Change-Id: I9d16cbac8f0f897378f769b0b98e48441503fe1a
2012-08-19 19:49:11 +03:00