Commit Graph

234 Commits

Author SHA1 Message Date
Kartik Mistry
80a8a465e9 Update jquery.uls from upstream
Upstream: https://github.com/wikimedia/jquery.uls
Changes:
* Optimize all SVGs.
* Bug 60815: Add rwr and ota to the languages supported by ULS.
* Drop -moz-linear-gradient for images.
* Localisation updates from https://translatewiki.net.

Change-Id: I3455db4ec0b9ffd8f0a29d41e8ef56309e9c59d2
2014-02-20 17:59:20 +05:30
jenkins-bot
ce27557f02 Merge "Update jquery.i18n from upstream" 2014-02-14 04:24:34 +00:00
Kartik Mistry
db055c8f47 Update jquery.ime from upstream
Upstream: https://github.com/wikimedia/jquery.ime
Changes:
 * Bug 53695: For languages with no input methods, set
   "use native keyboard" by default.
 * Add Venetian input method.
 * Drop -moz-linear-gradient
 * Apply /* @embed */ pragma to all images, not just the topmost in each
   block.
 * Validate the input method id in load method.

Change-Id: I05f8350003227e150948670caf919f05a2b00f88
2014-02-11 18:38:39 +02:00
Kartik Mistry
9c40252a72 Update jquery.i18n from upstream
Upstream: https://github.com/wikimedia/jquery.i18n
Changes:
 * Support fallback loading when folder is passed as source to load
 * Do not overwrite existing messages for a locale while adding messages
   second time
 * Fix the country code case issue
 * Renamed jquery.i18n.messages.js to jquery.i18n.messagestore
 * ULS: Updated Resources.php for renaming of jquery.i18n.messages file

Change-Id: I60a6e3224cb7b8ea813a8ccd7e389071b3d1244c
2014-01-21 10:20:57 +05:30
Santhosh Thottingal
1113786330 Detect tofu before applying any default fonts
To detect whether the client can render a given string,
use a tofu detection algorithm.

If the user has an explicit font preference, do not override it.

If the user has no preference and there is a default font for a
language, see if that language can be rendered at the user's browser
using tofu detection.

If tofu is detected, apply the font.

If the element has 'autonym' class, apply Autonym font only when
that language has tofu.

Change-Id: Ib9ee9497e6bcfa7eb86f7d264e0980d8880d6b70
2014-01-20 22:20:58 +05:30
Ori Livneh
f7066d4d2a Apply /* @embed */ pragma to every image, not just the topmost in each block
/* @embed */ is scoped to the rule immediately below it, not the entire block.

Change-Id: I862b01e6bb70a53904b8264872f08d1bc1b073c1
2014-01-17 19:21:52 -08:00
Amir E. Aharoni
5f57b41101 Update ULS from upstream
Chuvash localization

Change-Id: I50b73d0f50fe6c5e71799d51bd3ddbcf0baa78c5
2014-01-12 15:57:11 +02:00
Amir E. Aharoni
ce9b6c8dbd When clicking a region, scroll only the list and not the whole page
Bug: 59175
Change-Id: I7b6b53ac01b99c6172830513f25ab51c6a83d919
2014-01-06 12:24:32 +00:00
Amir E. Aharoni
f2355dfd65 Updating from ULS upstream
* Localization updates.
* Added localization for Dutch informal.
* Performance improvements - see
  https://github.com/wikimedia/jquery.uls/pull/122

Change-Id: I6a76097722ae7ab2774172838823d73da5050581
2013-12-20 15:24:41 +02:00
Amir E. Aharoni
d7d43e1dbb Update from upstream
Includes the change of all i18n files to Unicode encoding.

Change-Id: I0529696fe541f40c9cdcf8589c9e6b717a921ff9
2013-12-03 20:13:31 +02:00
Amir E. Aharoni
d309b344ea Update uls core from upstream
Change-Id: I8e89431ce1f33da2b46826e9e6669cc214c92a4b
2013-12-01 19:28:19 +02:00
Amir E. Aharoni
6cf71a54d0 Update jquery.ime from upstream
This should fix bug 54646.

Change-Id: Ibda702d1b92f160de426ebdb05b00d38a1ff5c0d
2013-11-22 19:18:27 +00:00
Amir E. Aharoni
313b4a108a Update from upstream
* Localization updates.
* Solution for bug 54725

Change-Id: I91f8263c49fdfba3084f2b3107a8b57963fd720d
2013-11-22 22:55:48 +05:30
Santhosh Thottingal
6cd178359e Update jquery.ime to latest version
Version: v0.1.0+20131111
Changes:
* Optimizez icon images

Change-Id: I221c064c47cece276b8f9760fae7dce0e3bd4160
2013-11-11 11:14:38 +05:30
Santhosh Thottingal
42deb56323 Update jquery.i18n from upstream
Upstream: https://github.com/wikimedia/jquery.i18n
Upstream changes:
* Fixed a potential js error because of wrong logic
* Fixed some JShint errors
* Added license and credits files
* Updated gitignore file
* Fixed uk and ru grammar rules and updating tests
* Source code formatting updates

Change-Id: I43433cc3d9993045160dc85ed9e73370d22794cf
2013-11-08 16:08:54 +05:30
Kartik Mistry
fca6e1b17b Update jquery.uls from upstream.
Upstream: https://github.com/wikimedia/jquery.uls
Changes:
1. Optimize png images with optipng -o7
2. Optimize language icon SVG
3. Optimize the search and worldmap svgs
4. Localization updates.

Change-Id: Ic921b31830b0d7a1424d9d663924e92b9c5268f1
2013-11-08 15:21:57 +05:30
Santhosh Thottingal
01acd4cc94 Avoid grid overrides in jquery.uls
Updates jquery.uls from upstream

Change-Id: I0009039aa9a71bb61f5f62ed4de10d83838d9abf
2013-11-06 07:11:14 +00:00
Santhosh Thottingal
5aa1198417 Remove the Autonym font from the lib/jquery.uls
Followup I10b8658e29c03b136b4475c4c69ace33e5628a98

Change-Id: I25992159fd5b999cfa0e4861196850d36eb5890e
2013-11-04 20:02:16 +05:30
Santhosh Thottingal
c197309810 Update jquery.uls from upstream
Upstream: https://github.com/wikimedia/jquery.uls
Changes:
* Reduce data size of uls language data a bit by using unescaped unicode
* Move the autonym font to example instead of making part of jquery.uls
* Use attr and prop consistently in jquery.uls.lcd.js
* Remove unnecessary object instance from jquery.uls.lcd.js
* Avoid 'recalculate style' by changing classes conditionally while
scrolling the language list
* Remove non-existing "-ms-linear-gradient"
* Localisation updates

Change-Id: I10b8658e29c03b136b4475c4c69ace33e5628a98
2013-11-01 09:57:48 +00:00
Siebrand Mazeland
901916967f Update jQuery.IME from upstream
* Make names for Hindi input methods consistent.
* Make names for Marathi input methods consistent.

Bug: 56160
Change-Id: I0b4ff9d8d7e01392237facb54e7b77ee9ef753b0
2013-10-29 14:56:38 +01:00
Siebrand Mazeland
a1cf6c7592 Update jQuery.IME from upstream
* Add autonym class where applicable
* Change name for de-transliteration input method
* Remove obsolete my-kbd input method

Bug: 55698
Change-Id: I6e9613b760af2916a614ab687822b3b3b45e1ce5
2013-10-29 14:08:52 +01:00
Santhosh Thottingal
63a0dd5666 Update jquery.uls from upstream
Upstream: https://github.com/wikimedia/jquery.uls/

Changes:

* Update Autonym font
* Code formatting fixes
* Localization updates
* Language autonym correction and language additions
* Performance fix for region selector

Change-Id: I1da30aa31ad8a4fe430a12fef05c4e6b54fc6648
2013-10-23 20:33:14 +05:30
Santhosh Thottingal
7867b41ca4 Update jquery.webfonts from upstream
Upstream: https://github.com/wikimedia/jquery.webfonts/

Changes:
* Respect explicit font styles of child elements when switching
languages
* Fix duplicate font-weight property

Change-Id: Ic45357b2613e6f33c392f9a78cc389f31c99e036
2013-10-22 17:17:52 +00:00
Santhosh Thottingal
35ac3b972a Fix monospace font usage for input fields for latin scripts
Updating jquery.webfonts from upstream

Bug: 53734
Change-Id: I58c9c3fb74774e26e0f680cec0b0f9b2d3b2c11c
2013-10-21 16:01:35 +00:00
KartikMistry
ec532d6347 Merge "Update jquery.ime from upstream" 2013-10-21 09:23:03 +00:00
Santhosh Thottingal
007d7358c5 Update Autonym font
Downstreaming a48123ef1e

Change-Id: Iad60bfda7fea2c228754b3eb619dda16b8cfdfa5
2013-10-20 11:28:37 +05:30
Santhosh Thottingal
cc413a3a4d Update jquery.ime from upstream
version: v0.1.0+20131019 (commit: 4ac70e0047)
upstream: https://github.com/wikimedia/jquery.ime

Changes:
* Language tags are case insensitive now
* Fixes to Hindi and Persian input methods
* Shift modifier key support
* Misc CSS fixes

Bug: 54117
Change-Id: I581a1006c34fd86372facdae85ea48b4ed1ffc2c
2013-10-19 20:00:22 +05:30
jenkins-bot
b65c2d4956 Merge "Use Autonym font for language autonyms" 2013-10-18 07:17:20 +00:00
Ori Livneh
27224935c6 Cherry-pick dcbed4f from jquery.webfonts upstream
dcbed4f: Remove magic date from version query string
<https://github.com/wikimedia/jquery.webfonts/commit/dcbed4f>

Change-Id: I8cbce12916b67601db93dcbca63d9985b6b49717
2013-10-17 09:39:15 -07:00
Santhosh Thottingal
52ead2aa41 Use Autonym font for language autonyms
Updates jquery.uls from upstream autonymfont branch

Also contains an example html page which can be used
for testing the font

Change-Id: Ia702ba1df91701df67160d973a0caaa72511c743
2013-10-17 14:40:40 +05:30
Amir E. Aharoni
de57dadf33 Localization update from upstream
Change-Id: I9ac867e8b54b63119acf213e82f3171e7dee32fc
2013-09-30 16:25:06 -07:00
Santhosh Thottingal
3fbbf05c26 Optionally exclude elements from applying webfonts
* Updates jquery.webfonts from upstream
* Introduces wgULSNoWebfontsSelectors configuration variable. It
  takes an array of jquery selector to which webfonts will not be
  applied if defined.

Change-Id: I0dc263f84620af4077f52e18eeb0f986ff0f13b9
2013-09-19 10:17:54 -07:00
Kartik Mistry
9db73d2a11 Update jquery.ime from upstream
Version: v0.1.0+20130914

Changes:
1. Improved Persian keyboard.
2. Show the menu correctly if it goes off-screen.
3. Removed unneeded code.
4. Ability to customise time out for IME selector widget.

Bug: 52154
Change-Id: Id87dee11456de0499450083f434b64e188b6d33f
2013-09-14 10:51:31 +05:30
Santhosh Thottingal
8250d94625 Update jquery.ime from upstream
Version: v0.1.0+20130904
Changes:
1. Add Persian keyboard
2. In a ltr page with rtl input, if menu has no space in left,
flip it right

Bug: 50690
Change-Id: Id84fa09b93bd0e31d328bbdaedc4219ea6a9e75d
2013-09-04 12:28:13 +05:30
Amir E. Aharoni
60e038b0db Update jquery.ime from upstream
Adds support for specifying the input method menu header text.

Change-Id: I4c0b8c4879ef49b58a4c897b9131dbfddea524f0
2013-08-26 10:22:08 +00:00
Santhosh Thottingal
35f7172a11 Update jquery.webfonts from upstream
Bug: 49151
Change-Id: I9dd87f44c0465801ac225a1bdc6268e85f89911e
2013-08-26 11:44:37 +05:30
Santhosh Thottingal
17956d5af8 Update jquery.webfonts from upstream
Upstream: https://github.com/wikimedia/jquery.webfonts
Changes:
* Fixes Bug 53203
* More documentation and code cleanup

Bug: 53203
Change-Id: Ieb48ba532cc1d9880d2fde1b185af7cbed1a3eff
2013-08-23 13:52:35 +05:30
Amir E. Aharoni
e018a52498 Update jquery.ime from upstream
Change-Id: I904dfd1e089e92deaa2da50510d0975a8e317a94
2013-08-22 15:36:02 +03:00
Amir E. Aharoni
2dd6cf74b8 Update jquery.ime from upstream
Fixes bug 53041 (upstream patch by Matmarex)

Bug: 53041
Change-Id: I8653404833d83a6d798551a47e37d87e6c0c1eaf
2013-08-20 07:22:16 +00:00
Amir E. Aharoni
3b6d5cc83e Log ime-change event
Change-Id: I6dfc769f0de536e2ef35b165fe7a35f196bb181b
2013-08-20 08:34:52 +03:00
Amir E. Aharoni
21fedbb2cb Update jquery.uls from upstream
Change-Id: I2591f5f8e761f08ef07085f3a73001ec3f84ae36
2013-08-19 10:58:39 +03:00
Santhosh Thottingal
8f5be106f5 Update jquery.ime library
upstream: http://github.com/wikimedia/jquery.ime

changes:
* Support for contenteditable, like the VisualEditor surfaces. This
  support is very minimal now. Because of VE bugs on IME support, many
  things are broken. But one-one keyboard mappings should work with less
  issues. The UI of jquery.ime is not integrated with VE toolbar
* More input methods
	- IPA-X-SAMPA by Amir
	- Armenian keymaps by  Aleksey Chalabyan
	- Kurdish keymaps by Ghybu
	- Кыргыз keymap by Amir
	- Central Kurdish keyboards by Çalak
* A lot of input method bug fixes multiple contributors
* Minor UX fixes

Introduces Rangy library.
A module named rangy is defined in VisualEditor extension with more features of rangy.
Here we need only the core library. This module is loaded dynamically from
client when rangy is undefined. If VE is present rangy will be defined, the module
defined in VE will be used. ie, This get loaded only when VE is not present and
user trying to type in a contenteditable.

Bug: 49569
Bug: 50849
Bug: 50220

Change-Id: Iadad5a4e5972fbd1359847526d28e9dbbe00a7c4
2013-08-19 04:40:08 +00:00
Santhosh Thottingal
2159822145 Update jquery.i18n from upstream, use its default message store
In Iddef0805ab a custom message store was introduced for ULS, but
there were updates in jquery.i18n that allows us to use default
message store again.

(see https://github.com/wikimedia/jquery.i18n/pull/40)

Change-Id: I86cb7a44efa83e5811824cd1104c6be11b1e2925
2013-07-23 15:32:45 +05:30
Santhosh Thottingal
18b8bbd89c Update jquery.ime from upstream
Change-Id: Ieb29f2cb90862a9ffb61309dc5cbc351e79074f1
Version: v0.1.0+20130722
Upstream: http://github.com/wikimedia/jquery.ime
Bug: 50939
2013-07-22 14:11:43 +05:30
Santhosh Thottingal
28154206bf Remove jquery.i18n code that the ULS extension overrides
Instead of using the whole jquery.i18n code, use only required parts
that are not customized in MW ULS. For this define a new RL module
ext.uls.i18n.

Also refactor MW message store for jquery.i18n.

Change-Id: Idda9fe505428ade409d937314d7216ebb4232c36
2013-07-15 13:28:12 +00:00
Amir E. Aharoni
95c23085ff Update jquery.ime from upstream
Change-Id: I1eabfcda79be85c8c28c11472ddc17b2e90c061d
2013-07-15 15:59:29 +03:00
Amir E. Aharoni
8035fae75b Update from upstream
Unbreak previous update.
Done in pair programming with Niklas.

Change-Id: I8ccd5284363f38deac6df522c879867abf583c1a
2013-07-10 20:58:41 +03:00
Amir E. Aharoni
ed7589c3b8 Update jquery.webfonts from upstream
Bug: 50836
Change-Id: I6c1f79b2392d458214c897cf8542ed9a89c550f8
2013-07-10 18:26:22 +03:00
Santhosh Thottingal
ebdc446a73 Update jquery.uls from upstream
Change-Id: Id8ac99b0ae473272a83c083ac9da0fd25919b0a8
2013-07-08 15:28:09 +05:30
Santhosh Thottingal
2f61970301 Update jquery.ime from upstream
Change-Id: I37d3f1e6b0ebff3ddfd46b2c155e4f5fe590cb4b
Version: 0.1.0+20130708
2013-07-08 15:23:47 +05:30