Commit Graph

103 Commits

Author SHA1 Message Date
Amir E. Aharoni
1e955cc60d Update readme with working test commands 2012-10-08 07:42:58 +02:00
Amir E. Aharoni
b4c407163b Added RTL tests from Gerrit and fixed another test 2012-10-08 01:33:49 +02:00
Amir E. Aharoni
da4912a6cb Merge branch 'master' of git://github.com/santhoshtr/jquery.uls into santhosh-tests 2012-10-08 01:28:20 +02:00
Siebrand Mazeland
41499db706 Localisation updates from http://translatewiki.net. 2012-10-07 22:05:27 +00:00
Amir E. Aharoni
972247b895 Remove unecessary whitespace 2012-10-07 17:17:36 +02:00
Siebrand Mazeland
c5a22fc636 Localisation updates from http://translatewiki.net. 2012-10-02 13:10:20 +00:00
Santhosh Thottingal
145dec9beb Merge pull request #6 from pauginer/master
Making the world map lighter
2012-10-02 05:55:21 -07:00
Siebrand Mazeland
559d7bc96d Localisation updates from http://translatewiki.net. 2012-10-02 12:32:45 +00:00
Santhosh Thottingal
be118f1358 Add qunit tests
Importing the tests from MediaWiki gerrit

Change-Id: I2aec075b5ea04f927e2ee0a0e747334ba9efb4a0
2012-10-02 14:23:01 +05:30
pginer
c4b5de7ad9 Lighter version of the world map 2012-09-26 14:50:29 -07:00
Siebrand Mazeland
b3d480c56a Localisation updates from http://translatewiki.net. 2012-09-25 18:59:31 +00:00
Santhosh Thottingal
ca7ba74e5e Merge pull request #5 from amire80/cldr_handling_updates
CLDR handling updates
2012-09-24 17:46:48 -07:00
amire80
9ce06d2112 Whitespace in jquery.uls.data.utils.js 2012-09-24 17:34:53 -07:00
amire80
72fe9f1e82 Update ulsdata2json.php for cleaner codes handling
Add supplementalData.xml to .gitignore.
Tweaks to make CLDR codes usable in ULS.
2012-09-24 17:32:22 -07:00
Santhosh Thottingal
61649c567b Merge pull request #4 from amire80/master
Starting RTL support (copied from Gerrit, except the tests)
2012-09-24 16:57:17 -07:00
amire80
7f16137efc Fix whitespace 2012-09-24 16:51:03 -07:00
amire80
f9e3e148e3 Add basic support for dir and lang attributes for autonyms
Added a util function for getting the language's direction.

Added lang and dir attributes for every language item in the list.
2012-09-24 16:34:06 -07:00
Santhosh Thottingal
5f12a3d444 License and README 2012-09-23 21:46:30 -07:00
Santhosh Thottingal
9d988dbafe Scroll improvements
* Load the next region when scroll reached half of the current
  region
* Fix the scroll sync with region highlight in both up and down
  scrolls
* Address Bug 39923 - Make scroll to next region more fluent
2012-09-23 21:35:37 -07:00
Niklas Laxström
e63aaf90bb Fix ha names per https://gerrit.wikimedia.org/r/24761 2012-09-24 02:00:30 +03:00
Santhosh Thottingal
9beee9697a Localization updates and documentation 2012-09-23 13:09:51 -07:00
Santhosh Thottingal
2bdc515930 Correct the jquery object for i18n
Change-Id: Ic6fc68f27f9944d869206076951e3b7cdaac6f07
2012-09-22 10:05:01 -07:00
Santhosh Thottingal
2ce2718315 Build system updates
Handle i18n and images properly

Change-Id: Idbdf141601cb1dbd5110431982022e0481156645
2012-09-22 10:03:55 -07:00
Santhosh Thottingal
0781f022dd Internationalize ULS
* internationalize ULS when jquery.i18n is present. Otherwise use the
fallback English interface
* Example with and without i18n
* Message files for few languages
2012-09-21 22:24:06 -07:00
Santhosh Thottingal
2ce74db801 Grunt updates and travis build integration
Change-Id: Ia479b903908f01e82750e9e35dff6c6aef6c36ae
2012-09-18 21:04:37 -07:00
Santhosh Thottingal
2deeb98f6c Updated README
Change-Id: I527516ea52ffe3a1d28f3e4d386c50ed8b6acad1
2012-09-18 21:00:53 -07:00
Santhosh Thottingal
0747e74365 User region names instead of region codes
* Till i18n is in place, use a workaround to show region names in
  English

Change-Id: I6e14ab67600ad32263f04eb0aa6b931177425e5a
2012-09-09 07:50:16 +00:00
Nikerabbit
ccbd1dcdde 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
Santhosh Thottingal
f3967d9b11 Fix Bug 39096 - Narayam compatibility with ULS
* Correct the event propagation
* Narayam blue background prevents the autocomplete visible. Overriding
 background color with transparent, but that does not look good. May be we
should consider this while designing jquery.ime

Change-Id: If8ea8c1f074cc20b743805953a3bd68da62cb55b
2012-09-07 11:06:30 +05:30
Santhosh Thottingal
442af47190 (bug 39833) Make language code search case insensitive
Change-Id: I67b98f058f969cd2fe9fa22085f8f781b29dce3f
2012-09-06 09:59:35 +00:00
Santhosh Thottingal
c83baac893 Fix Bug 39930 - Common languages not always shown in the Worldwide region
Change-Id: I764af7ad88cf79e9e07b96f899f352ad3082df45
2012-09-06 14:15:05 +05:30
Santhosh Thottingal
badd5c95ac Fix the broken region links in 'noresults' screen.
It was commented out in some previous commits.
Also correct the region code of America from NA to AM

Change-Id: I6cec2560393134de1190291e1f49bc0ac4280af0
2012-09-05 18:15:45 +05:30
Santhosh Thottingal
a0580a9746 Add grunt to jquery.uls
This library is supposed to be hosted outside WMF gerrit. So adding a
build, test system.
* Add js lint and css lint
* minifier for css and js
* css lint does not pass now.

Change-Id: Iaadfad786f5de4b2ab95e24d3ea4f1d21952af75
2012-09-05 15:03:54 +03:00
Santhosh Thottingal
298c91a68f Misc jshint fixes
* Move the invocation into the parens that contain the function.
* unescaped regex
* Do not wrap function literals in parens unless they are to be
  immediately invoked.

Change-Id: Ib3360f88fb7674af0e857d8a84a91fdac1fd8487
2012-09-04 16:02:28 +05:30
Amir E. Aharoni
da89d0088b (bug 39946) Add Portuguese to WW
Change-Id: I1b54971ae4e4d1ec9e1eac98a46291504d53bb61
2012-09-03 20:04:46 +03:00
Siebrand
98a64d7dbb Merge "Fix Bug 39921 - World wide languages need not be repeated in all regions." 2012-09-03 16:58:27 +00:00
Siebrand
6df99929ba Merge "Fix Bug 39926 - Australia region inconsistent visibility" 2012-09-03 16:39:54 +00:00
Siebrand
392ecf8b4b Merge "Fix Bug 39829 - Language Selection does not work while using Language Code" 2012-09-03 16:35:12 +00:00
Santhosh Thottingal
f837ed904a Fix Bug 39922 - The "No results found" view lacks suggested languages
noresultsview is part of uls.lcd now, moved the html template too.

Change-Id: I9aee0ab1b62e61c3ec0e2c89f7d07b7a4432ef33
2012-09-03 19:31:41 +05:30
Santhosh Thottingal
085f9f9e87 Fix Bug 39926 - Australia region inconsistent visibility
Removed AU region, using PA instead.

Change-Id: I088baf7de6d0c0d52a0cf42a159b6d3339793dcc
2012-09-03 18:44:25 +05:30
Santhosh Thottingal
5e86782803 Fix Bug 39829 - Language Selection does not work while using Language Code
This happens when you type language code and hit enter very fast, without
a pause. A matched language is not available when enter is hit, so it goes
noop.

Handled this special case by checking whether the input is a valid language
code and calling onselect on it.

Change-Id: Icaf809f8db8162264d990247a164449b02b2f418
2012-09-03 18:18:53 +05:30
Santhosh Thottingal
f37571a250 Fix Bug 39921 - World wide languages need not be repeated in all regions.
Change-Id: I4470a2a7976df17f6f0f8f97d15ce12163cc3c27
2012-09-03 18:10:31 +05:30
Niklas Laxström
a524e09cbf Message consistency
* Removed title case
* "language used for menus"

Change-Id: If5c0323f5e49f2e71a3b6257b62ce5a08c74704c
2012-09-03 09:10:08 +00:00
Santhosh Thottingal
992c16a209 Fix Bug 39535 Recent languages in languages settings
* Refactor the code for frequent languages and introduce
  mw.uls.getFrequentLanguageList
* Use it for showing previous languages in language settings
* Show the frequent/common language list in the language selector
  opened from display settings.

Change-Id: Ic0f8ea6b9e9ba137b22649e8425fce8014ad456c
2012-09-03 08:46:47 +00:00
Amir E. Aharoni
e63a1e7eaf (bug 38679) Replacing regions NA, LA, SA with AM
Change-Id: Ib484dd9cb0453ec1bd214e0196119b14d96ac128
2012-09-01 10:09:16 +03:00
Santhosh
9f21cb06ce Merge "Fix to allow using the ULS when it is bigger than the viewport" 2012-08-31 11:03:10 +00:00
pginer
08b9a2828f Fix to allow using the ULS when it is bigger than the viewport
Small fix that make global scrolling to affect the ULS (using absolute positioning instead of fixed).
It solves the problem behind bug 39414 without the need for making the window draggable.

Change-Id: Icc3ca81c4b48040b38a5efb42422bdb53e0e2422
2012-08-31 12:16:11 +02:00
Amir E. Aharoni
fd8d6e2110 Filtering out languages that the ULS doesn't recognize
Change-Id: Ifda0caa640434254cf99c25a70887126f83427d2
2012-08-31 08:29:34 +03:00
Niklas Laxström
a4f103e78f Added/fixed some sami languages
Names taken from (en|fi).wiktionary.org

Change-Id: I6b08417e9a9d65753028d6c5f151b89485542484
2012-08-30 14:35:48 +00:00
Amir E. Aharoni
5172fcc253 Sort language names in the landing page
Change-Id: I7463cd08fb42e79f9e089809e3d16567c1ab1a60
2012-08-30 16:16:05 +03:00