Commit Graph

4331 Commits

Author SHA1 Message Date
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
Santhosh Thottingal
f3ffe8bead jQuery.uls bug fixes and keep template with the plugin
* The jQuery selectors should be referring to the menu for the current
  ULS instance rather than querying on the page. This allows multiple
  instances of ULS present in the page
* Keep the HTML template with the plugin. No more HTML added from hooks.
* Updated the example based on above change.
* Updated the hooks code.
* Some more documentation.

Change-Id: I48e2e167bc2c09b8653a142c50317c22e8ba1362
2012-08-19 18:29:37 +03:00
Translation updater bot
5bd96823d6 Localisation updates from http://translatewiki.net.
Change-Id: I805a2db18430b5891262115034e0e97f008aa20c
2012-08-19 14:53:11 +00:00
Reedy
0f0732f865 Fixup a few minor documentation issues
Added some newlines

Left a FIXME in LanguageNameIndexer.php

Losslessly compressed display.png

Change-Id: I884b423d3812ddb964a6a70f75a6331a73371165
2012-08-19 01:19:46 +01:00
Nikerabbit
08eb45509b Merge "CSS adjustments on color and sizes" 2012-08-17 13:38:55 +00:00
Translation updater bot
395c12b61d Localisation updates from http://translatewiki.net.
Change-Id: I99c7a6333fa8f240b073c0526d506d1d69b0b194
2012-08-17 13:11:43 +00:00
pginer
7b15032626 CSS adjustments on color and sizes
Small adjustments on color to make it compliant with the Agora palette,
cross-browser gradient code added according to CSS WMF guidelines, and
adjustment of element sizes.

And whitespace and new line cleanups

Change-Id: I08890009eff9ed5edec77855467529eb07eaeb57
2012-08-17 17:23:39 +05:30
Amir E. Aharoni
5bb5ca0118 Add webfonts reset functionality to the checkbox
Change-Id: I983d261fa018416c36ad2123b94850986beeca70
2012-08-17 11:57:02 +03:00
pginer
d78074a1df Display settings CSS fixes
Some adjustments in CSS to improve layout and visual style.

Change-Id: Ic215bdd64b13a5c263d3e6b2e67615f460282231
2012-08-17 00:17:06 +03:00
Translation updater bot
bea6a2df5c Localisation updates from http://translatewiki.net.
Change-Id: If8904a16649297db8fdc76d43e345c8589eaeab0
2012-08-16 20:32:01 +00:00
Amir E. Aharoni
a080bf8056 Remove double space
Change-Id: I01098eb637bbfe6170901dae68d5ea0fe1570aa6
2012-08-16 18:39:02 +03:00
Amire80
6c7e82ff79 Merge "(bug 39230) Autocompletion does not get cleared on region change" 2012-08-16 15:17:28 +00:00