Commit Graph
100 Commits
Author SHA1 Message Date
Amir E. Aharoni 30165c19c7 Merge branch 'prevent_dupes' into 2013-01-09-fixes 2013-01-09 13:14:09 +02:00
Amir E. Aharoni 8b4c5444b8 Merge branch 'no-norsk' into 2013-01-09-fixes 2013-01-09 13:13:19 +02:00
Amir E. Aharoni 66a50931a5 Prevent appearance of redirects in the rendered list
utils.getLanguagesByScriptGroup() runs on the object's languages
property and not on all the langdb languages. This caused
the redirects to be counted as languages. I fixed this,
and added a test to prevent it.

Also update JS langdb, because it went out of sync in of
the previous commits.
2013-01-09 12:59:58 +02:00
Amir E. Aharoni 989c079ad6 Change region of frc to America
This is Cajun French, which is only spoken in America and not Europe.
2013-01-08 22:45:09 +02:00
Amir E. Aharoni 5828dc2374 Add autonym to code 'no' 2013-01-08 22:37:50 +02:00
Amir E. Aharoni 90a095a6cf Merge branch 'add_brx' into add_brx_rebase 2013-01-07 00:15:07 +02:00
Amir E. Aharoni e97827bb83 Add the Bodo language (brx) 2013-01-07 00:01:48 +02:00
Amir E. Aharoni b35d2ebc3b Add redirect bat-smg -> sgs 2013-01-06 20:29:30 +02:00
Amir E. Aharoni 98874233c1 Some more fixes in redirects and code
* Redirect fiu-vro to vro.
* Redirect roa-rup to rup.
* Redirect zh-yue to yue.
* Remove pru. Only prg is the right code for Prussian.
  pru is a code of a language in Indonesia, about which
  there's very little information, so it's better to remove it.
2013-01-04 21:33:43 +02:00
Amir E. Aharoni f822331b8b Redirect zh-min-nan to nan
Fixes bug
https://bugzilla.wikimedia.org/show_bug.cgi?id=43569
2013-01-04 18:54:50 +02:00
Amir E. Aharoni 13473c9f7a Render every region only once
Fixes bug
https://bugzilla.wikimedia.org/show_bug.cgi?id=43568
2013-01-04 08:31:20 +02:00
Amir E. Aharoni d4ef33d4f8 Merge pull request #58 from amire80/whitespace
Whitespace
2013-01-02 23:09:40 -08:00
Amir E. Aharoni 49436026d8 Whitespace 2013-01-02 18:48:02 +02:00
Amir E. Aharoni 1f91a4c40c Whitespace 2013-01-02 18:28:14 +02:00
Amir E. Aharoni 829c827483 Adding a special region
This is supposed to allow adding special languages.

This region's section is hidden by default and can be enabled by
passing different options to the lcd object.
2013-01-02 12:58:29 +02:00
Amir E. Aharoni 5455000f38 Fixed test title 2012-12-30 21:18:04 +02:00
Amir E. Aharoni a7f90c69d3 Add test for Zulu
Just to make sure that the last language in the list
is processed.

Also fixed a comment.
2012-12-30 21:12:21 +02:00
Amir E. Aharoni 2eb696d28c Comments 2012-12-30 21:04:47 +02:00
Amir E. Aharoni 2b4eb1ca19 Spelling 2012-12-30 20:48:46 +02:00
Amir E. Aharoni e78a2507d7 Whitespace 2012-12-30 20:34:32 +02:00
Amir E. Aharoni 2ce57b37fe Test for double redirects 2012-12-30 19:27:36 +02:00
Amir E. Aharoni 683ad727e1 Add aliases to the languages that need them 2012-12-30 19:14:51 +02:00
Amir E. Aharoni 200efaf9f2 Merge branch 'langdb_aliases_cleanup' of github.com:amire80/jquery.uls into langdb_aliases_cleanup 2012-12-17 10:48:58 +02:00
Amir E. Aharoni 22112fefbf Add missing semicolon 2012-12-17 10:45:30 +02:00
Amir E. Aharoni c127247178 Test that all redirects have valid targets 2012-12-17 10:45:30 +02:00
Amir E. Aharoni 13e249907a Skip redirects in util functions 2012-12-17 10:45:30 +02:00
Amir E. Aharoni 8f75d69997 Add aliases and tests for isRedirect 2012-12-17 10:45:30 +02:00
Amir E. Aharoni bdb1ef3b47 Add isRedirect (from an old Gerrit commit) 2012-12-17 10:45:30 +02:00
Amir E. Aharoni 5f9a0c4a17 Double quotes -> single quotes 2012-12-17 10:45:30 +02:00
Amir E. Aharoni 33819e6d16 Aliases cleanup. 2012-12-17 10:45:30 +02:00
amire80 36671284fd Add jv-java for support in web fonts
There is no content or localization in that language, but it will be
useful for web fonts.
2012-12-17 10:45:30 +02:00
amire80 593f8452f1 Update some codes with multiple scripts
This is a temporary measure on the way to implementing
language code aliasing.

Removed double scripts and indications of script names in parentheses.
2012-12-17 10:45:30 +02:00
Amir E. Aharoni b85e09db27 Add missing semicolon 2012-12-17 10:14:17 +02:00
Amir E. Aharoni 25d119be19 Test that all redirects have valid targets 2012-12-16 22:41:14 +02:00
Amir E. Aharoni 2b7fdbf379 Skip redirects in util functions 2012-12-16 22:21:45 +02:00
Amir E. Aharoni 0ee5d0f7b5 Add aliases and tests for isRedirect 2012-12-16 21:34:37 +02:00
Amir E. Aharoni 4433658486 Add isRedirect (from an old Gerrit commit) 2012-12-16 21:34:37 +02:00
Amir E. Aharoni 48240015f0 Double quotes -> single quotes 2012-12-16 21:34:37 +02:00
Amir E. Aharoni 9084c57dcb Aliases cleanup. 2012-12-16 21:34:37 +02:00
amire80 27f89cbc61 Add jv-java for support in web fonts
There is no content or localization in that language, but it will be
useful for web fonts.
2012-12-16 21:34:37 +02:00
amire80 63260821ae Update some codes with multiple scripts
This is a temporary measure on the way to implementing
language code aliasing.

Removed double scripts and indications of script names in parentheses.
2012-12-16 21:34:37 +02:00
Amir E. Aharoni dd4b8afe9c Merge pull request #54 from amire80/master
Whitespace cleanup
2012-12-13 23:50:38 -08:00
Amir E. Aharoni 2bafab8414 Whitespace 2012-12-14 09:46:03 +02:00
Amir E. Aharoni 17b6d77ac2 Merge pull request #52 from pauginer/mobile-classes
Make ULS ready for mobile
2012-12-13 23:39:14 -08:00
Amir E. Aharoni 38dcb5873d Merge pull request #51 from amire80/cleanup/2012/11/29
Rename "that = this" to meaningful names
2012-12-10 11:24:42 -08:00
Amir E. Aharoni 7a04c3c6e0 Rename "that = this" to meaningful names 2012-11-29 10:40:24 +02:00
Amir E. Aharoni 4f37bd2f1e Merge pull request #45 from pauginer/transition-fix
Avoid transition for all properties of search bar
2012-11-19 12:06:07 -08:00
Amir E. Aharoni bb94197328 Merge pull request #40 from amire80/clean_IDs
Remove superfluous element names where ID is specified

Reviewed by Pau.
2012-11-19 10:55:30 -08:00
Amir E. Aharoni e219ff6cbd Merge branch 'clean_IDs' of github.com:amire80/jquery.uls into clean_IDs
Conflicts:
	css/jquery.uls.css
2012-11-19 18:59:13 +02:00
Amir E. Aharoni 025e452560 Remove superfluous element names where ID is specified 2012-11-19 18:56:35 +02:00
Amir E. Aharoni e9081f014b Merge pull request #44 from pauginer/lint-fixes
Lint fixes for jquery.uls.css and jquery.uls.lcd.css
2012-11-19 08:54:49 -08:00
Amir E. Aharoni 83db5460b2 Remove superfluous element names where ID is specified 2012-11-16 19:46:42 +02:00
Amir E. Aharoni c9a072934c Make clicking the trigger show and hide the ULS
Bugzilla:
https://bugzilla.wikimedia.org/show_bug.cgi?id=41768
2012-11-16 19:17:54 +02:00
Amir E. Aharoni f80683b1d8 Make clicking outside the ULS close the ULS
Reported in Bugzilla:
https://bugzilla.wikimedia.org/show_bug.cgi?id=41768
2012-11-16 18:52:30 +02:00
Amir E. Aharoni 1dd303d50e Merge pull request #37 from pauginer/master
CSS fix to avoid style clash with link color on map labels
2012-11-16 04:32:24 -08:00
Amir E. Aharoni 05d003531f Merge pull request #36 from siebrand/master
Update to jQuery 1.8.2.
2012-11-16 04:13:51 -08:00
Amir E. Aharoni ba6a1e5eec Spelling of event name 2012-11-16 14:09:45 +02:00
Amir E. Aharoni 15d98ee586 Whitespace 2012-11-16 14:08:03 +02:00
Amir E. Aharoni 05e4de4020 Renamed 'that' to 'uls' 2012-11-16 14:00:25 +02:00
Amir E. Aharoni da2244279e Whitespace and quotes 2012-11-16 13:52:32 +02:00
Amir E. Aharoni 9aa9f3ee01 Replaced the deprecated languagesInScripts function 2012-10-15 16:26:51 +02:00
Amir E. Aharoni 77e62c99a5 Changed $( this ) into meaningful variables 2012-10-08 17:34:35 +02:00
Amir E. Aharoni f14073a21a Rename the variable that to lcd 2012-10-08 17:22:01 +02:00
Amir E. Aharoni 2e22c5c550 Initial whitespace cleanup 2012-10-08 17:04:05 +02:00
Amir E. Aharoni 9d38d9bd64 Fix a few trivial CSS lint issues 2012-10-08 08:35:14 +02:00
Amir E. Aharoni e35a18eb0d Merge branch '2012/bug_39963/cleanup_function_names' of github.com:amire80/jquery.uls into 2012/bug_39963/cleanup_function_names
Conflicts:
	src/jquery.uls.data.utils.js
2012-10-08 08:32:06 +02:00
Amir E. Aharoni c40caf4a29 Update the remaining calls to deprecated functions 2012-10-08 08:27:50 +02:00
Amir E. Aharoni faeac72491 .languagesByScript* -> .getLanguagesByScript* 2012-10-08 08:13:34 +02:00
Amir E. Aharoni bd355b249d .allRegions -> .getAllRegions 2012-10-08 08:13:34 +02:00
Amir E. Aharoni d74d9b003b .autonyms -> .getAutonyms 2012-10-08 08:13:34 +02:00
Amir E. Aharoni 5e16abf26d .autonym -> .getAutonym 2012-10-08 08:13:34 +02:00
Amir E. Aharoni 7d48ec230b .regions -> .getRegions 2012-10-08 08:13:34 +02:00
Amir E. Aharoni 17f525f510 Replace .script with .getScript 2012-10-08 08:13:34 +02:00
Amir E. Aharoni c007ba3427 (bug 39963) Add "get" to function names
Kept the old names and gave them simple deprecation marking.
2012-10-08 08:13:34 +02:00
Amir E. Aharoni 8f32169c3d Merge branch 'santhosh-tests' of github.com:amire80/jquery.uls into santhosh-tests 2012-10-08 07:46:33 +02:00
Amir E. Aharoni 9188e8c246 Update readme with working test commands 2012-10-08 07:43:41 +02:00
Amir E. Aharoni 427c3bf39d Added RTL tests from Gerrit and fixed another test 2012-10-08 07:43:41 +02:00
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
Amir E. Aharoni 779067bd66 .languagesByScript* -> .getLanguagesByScript* 2012-10-07 22:09:52 +02:00
Amir E. Aharoni 2f5bafda3d .allRegions -> .getAllRegions 2012-10-07 22:00:58 +02:00
Amir E. Aharoni 4b8820ddac .autonyms -> .getAutonyms 2012-10-07 21:50:56 +02:00
Amir E. Aharoni b52df71d8c .autonym -> .getAutonym 2012-10-07 21:50:05 +02:00
Amir E. Aharoni 52c2cac2a9 .regions -> .getRegions 2012-10-07 21:47:24 +02:00
Amir E. Aharoni 3847838da7 Replace .script with .getScript 2012-10-07 20:11:53 +02:00
Amir E. Aharoni ce71c79c82 (bug 39963) Add "get" to function names
Kept the old names and gave them simple deprecation marking.
2012-10-07 20:02:37 +02:00
Amir E. Aharoni 972247b895 Remove unecessary whitespace 2012-10-07 17:17:36 +02:00
Amir E. Aharoni 97194de047 Do nothing if the clicked region is already selected
Supposed to fix bug
https://bugzilla.wikimedia.org/show_bug.cgi?id=39932
2012-10-05 08:38:43 +02: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
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
Amir E. Aharoni da89d0088b (bug 39946) Add Portuguese to WW
Change-Id: I1b54971ae4e4d1ec9e1eac98a46291504d53bb61
2012-09-03 20:04:46 +03: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
Amir E. Aharoni fd8d6e2110 Filtering out languages that the ULS doesn't recognize
Change-Id: Ifda0caa640434254cf99c25a70887126f83427d2
2012-08-31 08:29:34 +03:00
Amir E. Aharoni 5172fcc253 Sort language names in the landing page
Change-Id: I7463cd08fb42e79f9e089809e3d16567c1ab1a60
2012-08-30 16:16:05 +03:00
Amir E. Aharoni 790065a1f9 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
Amir E. Aharoni ee3cd5c8d1 Add basic information and utils for RTL scripts
Change-Id: Ie01b58cd3627e8f0bf726f0bb296bffb25efcbb5
2012-08-22 18:16:01 +03:00
Amire80andGerrit Code Review 2c2e480a9c Merge "Cache the region filter results" 2012-08-21 14:14:17 +00:00