Commit Graph
100 Commits
Author SHA1 Message Date
Santhosh ThottingalandAmire80 be99ff9a55 Fix bug: Cannot apply changes after switching panels back and forth
Bug: 57011
Change-Id: I0614d97dea99781f46bb80a496b12c95aef55c8c
2013-11-14 14:12:59 +00:00
Santhosh ThottingalandNikerabbit cd6766da28 Add explicit mediawiki.util dependency to RL modules
Change-Id: I3f08b9cda83bd6c25c14c976d6c81e1e2d07ff5e
2013-11-13 12:57:39 +00:00
Santhosh ThottingalandNikerabbit 6f113bdf19 Keep previous input settings if new language selected and cancelled
Bug: 56913
Change-Id: If25c0cc07ae233085d1b270f9a75a0002ffe1882
2013-11-13 12:44:58 +00:00
Santhosh ThottingalandNiklas Laxström a1b8316ecc Remove the non-existing lazyload option for uls plugin
Change-Id: I1fac753c449b47de97eec244a8a53dbb8e77fc38
2013-11-13 12:43:38 +00:00
Santhosh ThottingalandNikerabbit 8b3d27a505 Validate the dirty flag before saving preferences in each modules
Pressing apply button is applicable to all settings module, not only
for the one that is visible. Unless we do a validation before we save
preferences, other module can cause incorrect (old) preferences to be
saved.

Bug: 56885
Change-Id: I31df2ee0bf8b600a94e8fed1a784daf529186b16
2013-11-13 12:39:57 +00:00
Santhosh Thottingal f5ce066c80 Lazyload jquery.uls library
In the "interlanguage" position ULS is shown after 2 clicks,
so don't load it initially.

In the "personal" position ULS is shown immediately after
the language icon click, so load it, but conditionally.

The new RL module ext.uls.mediawiki is added for setting
jquery.uls defaults in a way that will lazy-load the language names.

Change-Id: Ic33ef034c794a523b5403867196c6098a58eb5b1
2013-11-11 14:13:02 +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 8430ac8833 Simplify the test code - create autonyms dynamically
Change-Id: Ie71963cb28a6346155dba065480be9601d48dea9
2013-11-10 11:36:48 +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
Santhosh ThottingalandAmire80 9dd4072d3d Avoid a js error when inputsettings are saved.
It happens when input settings are accessed directly while display
settings are not initialized. While saving the display settings
will not be rendered, causing a js error

Change-Id: I3ef1afe67a6bcdc3047b482d697bc03baab6ac47
2013-11-07 13:58:06 +00:00
Santhosh ThottingalandAmire80 7e787c0fc5 Avoid bigger fonts being default for languages
* Avoided Amiri being default font for ar
* Avoided CharisSIL, DuolosSIL being default fonts for
cdo, nan respectively

The change is because of the bandwidth efficiency concerns. Also
Arabic being widely supported language, having defaut font is not
must.

Change-Id: I657d08ded26f25342d18483f6c5a0393f625001b
2013-11-07 12:22:51 +00:00
Santhosh Thottingal dfc40c8f59 Refactor the css for interlanguage links and autonym class
Move it to a seperate css file ext.uls.webfonts.css so that the RL
modules are more granular and clear.

Also get the @font-face css for Autonym font get ready on page load
so that the font applied automatically to any future elements on page.

Change-Id: Icb76df5baedaba8ab613d665a1be923779a6b9e7
2013-11-06 20:51:26 +05:30
Santhosh ThottingalandNikerabbit 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 27f356d1f6 Add autonym class to the buttons displaying language
Change-Id: Iade66179acd46835099e015d73c01349526f80ec
2013-11-05 15:00:12 +05:30
Santhosh Thottingal 2b31b242f9 Add autonym class to ULS trigger
Change-Id: I1c613988d399e2ee38ba5d1f1fa8ad5747f7da15
2013-11-05 14:54:15 +05:30
Santhosh ThottingalandNiklas Laxström 76e82e4a9c ResourceLoader Module for serving json based localization messages
ApiULSLocalization is still present since we have to provide live
language preview feature.

Moved the loading of json file to includes/JsonMessageLoader.php

Also moved all RL modules to includes folder.

Bug: 56509
Change-Id: Ic39dec1c484982fb07edd167e83794c0b5f470ee
2013-11-04 14:59:14 +00:00
Santhosh Thottingal 1f42e3a982 Update Autonym font to latest version(20131104)
Release: https://github.com/santhoshtr/AutonymFont/releases/tag/20131104
Changes:
* Remove Tamil GSUB rules, use GPOS alone
* Autohint Latin glyphs
* Dont strip hints for eot format
* Glyph simplifications and misc cleanup

Bug: 56552
Bug: 56346

Change-Id: Ib2014e0606983dbf33391e479f96c75fab79075f
2013-11-04 20:28:06 +05:30
Santhosh Thottingal e00df28903 Correct the path to the font in test file
Change-Id: I134be7f625464ab3d895535cc18d19930e67e447
2013-11-04 14:37:02 +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 7d49a9ca42 Define autonym css class
Follow up: I10b8658e29c03b136b4475c4c69ace33e5628a98 and
I48b0cc4a19c3ddd8d00f585faf31046d8ba6bf9c

Define this class in MW ULS since jquery.uls removed this class
definition

Change-Id: I5e52feb6a53362378b382b06727ac6e671e0f91a
2013-11-04 12:19:44 +05:30
Santhosh ThottingalandAmir E. Aharoni 65d1b3e27f Use Autonym font in webfonts repository
This was served from jquery.uls. But jquery.uls does not contain
the font now, but only provides and example usage with Autonym font

This also make sure consistency in font serving in terms of URLs,
caching etc.

Change-Id: I48b0cc4a19c3ddd8d00f585faf31046d8ba6bf9c
2013-11-01 12:39:42 +02:00
Santhosh ThottingalandNikerabbit 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
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 507cacfa75 Strip hints from Jomolhari font, reducing size by 50%
Used sfntly with strip hints option.
Pros: Reduced font size- by 50%
Cons: at small sizes, on old versions of windows, rendering quality
will be affected.

Change-Id: Ibfddd7b53ce70aca4e26220f481f0cd11c47ce48
2013-10-23 11:15:43 +05:30
Santhosh ThottingalandSiebrand 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 ThottingalandAmire80 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
Santhosh Thottingal d823fd7f1e Use Autonymfont for interlanguage links
Change-Id: If194efa7785d472f78790ffcb6c68636fcaee5ad
2013-10-21 04:30:10 +00:00
Santhosh Thottingal 007d7358c5 Update Autonym font
Downstreaming https://github.com/wikimedia/jquery.uls/commit/a48123ef1e7de6efa5c3a99fcdc6c622c8a98adc

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
Santhosh Thottingal 6a08a6d216 Update Meera font from upstream
Version: 6.0
Upstream: https://savannah.nongnu.org/projects/smc

Change-Id: If3638c7662e8ae3ca055504c9b7189335af51e92
2013-10-18 15:19:11 +05:30
Santhosh Thottingal c593ecef4c Support languages written in Tibetan script
Languages listed in
https://en.wikipedia.org/wiki/Category:Languages_written_in_Tibetan_script
mapped to Jomolhari font

See https://www.mediawiki.org/wiki/Talk:Universal_Language_Selector#Several_problems_with_web_fonts_31516
and https://github.com/wikimedia/jquery.webfonts/issues/29

Change-Id: I873dfb8c3689470a6070f90088984a668a3faf51
2013-10-17 17:19:54 +05:30
Santhosh Thottingal ba57ebc9ae Use AbyssinicaSIL for Ge'ez and Tigre languages
See https://www.mediawiki.org/wiki/Talk:Universal_Language_Selector#Several_problems_with_web_fonts_31516
and https://github.com/wikimedia/jquery.webfonts/issues/29

Change-Id: I7a2853682f0a103e2ce7e459d2bd3097a21001ed
2013-10-17 16:24:06 +05:30
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
Santhosh Thottingal efaa3dc317 Disable jquery.ime for VE till IME support is improved
Bug: 55492
Change-Id: I30cffd94413b50bb57a403a9d06dbc0498a02d0a
2013-10-09 19:05:20 +05:30
Santhosh Thottingal 243972403b Use MW_INSTALL_PATH for test path if defined
Change-Id: Ib4eedb61f37e3b8a5c834dc417342543771a2d33
2013-10-09 17:54:17 +05:30
Santhosh Thottingal b4f794f9fe Reset language and font while preview
If not reset, the font-family will persist for languages
without font preferences

Steps to reproduce:
1. Open language settings->Display settings.
Switch language to English. Inspect the lang and font-family
of uls-display-settings element.

2. Switch language to hi. Inspect the lang and font-family
of uls-display-settings element. You can see Lohit Devanagari
as font.

3. Switch the language back to English. You can still see font
as Lohit Devanagari. With this patch, you should see font family
reset for English.

Change-Id: Ib3346d8b888c7dcfda16e8a10473c785a1ebd890
2013-09-30 10:59:55 +05:30
Santhosh Thottingal 32bb03045f Refactor all language, font change code to preview method
Avoids duplication of code and better organising language and font
change logic

Change-Id: I4e95cfc2de7b650a75e2bd550af547647d5b3eb3
2013-09-30 04:14:46 +00:00
Santhosh ThottingalandAmire80 2d8522d1ba Keep correct lang attribute when display settings closed
Bug: 54594
Change-Id: I15b12e17b5a922cce6717577bc0d56dfd80ccfee
2013-09-26 07:36:13 +00: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
Santhosh Thottingal e0fa027b9f Fix typo in the fontname of Estrangelo Edessa
It was Estarngelo Edessa
Bug: 47229

Change-Id: I941c8c09bedcf58428f93231936f168f993cde8f
2013-09-11 18:09:22 -07:00
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
Santhosh ThottingalandAmir E. Aharoni 3af403fee5 Make the cancel and apply button applicable for all modules
If a user does changes in module A, does not save or cancel,
goes to module B, does some changes, moves to other modules,
and finally presses Apply, all changes should get saved.

Similarly, if a user cancels, all changes should get cancelled.

This required moving the cancel and apply button outside of modules
and managed by the language settings framework.

Modules get mw.uls.settings.apply or mw.uls.settings.cancel triggers
to do whatever they want to do on apply or save.

Includes some refactoring related to this.

Bug: 53256
Change-Id: I7d773d33a980a78604b36e39bf96a5686870124e
2013-09-02 17:03:13 +02:00
Santhosh Thottingal a2627e444f Update TuladhaJejeg font for Javanese to 2.0.1 version
Change-Id: Id7690d8efdb8eaec0d06cb1b8c0106c742a8e126
2013-08-27 15:25:20 +05:30
Santhosh ThottingalandAmire80 a5d79594a3 Simplify the cancel logic for input and display settings
Restore the language(ui, content), font values, input method values.

Rest of the UI resetting will be done by redrawing the settings
area whenever the language settings is accessed again.

Change-Id: Ia1488d1501f9c9f61726cea3637624f22a7ba135
2013-08-26 14:56:38 +00:00
Santhosh ThottingalandAmire80 0d9bbd8113 Make the behavior of close button same as cancel button
Bug: 53255
Change-Id: If27a770c531d78538c70dd86199f1791b1171c2d
2013-08-26 14:31:09 +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 c793a9bd31 Pass an actual array to fontStack option to webfonts
Change-Id: Id836d7ce82e22e7d0679a5c615be014b1fce08b3
2013-08-26 09:43:00 +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
Santhosh Thottingal 4704cf5182 Use mw.hook for notifying cancel of settings window to modules
This avoids mandate of having 'cancel' method defined in settings module.
Also avoids looping of all modules while cancel is happening.

Change-Id: I87d0975f2ef1bdee61f71d66eabe3040b81876b8
2013-08-22 11:51:26 +05:30
Santhosh ThottingalandNikerabbit 7649b47f5c Followup I59dfcfb25c, language change work with out event logging
In I59dfcfb25c, for logging events when page is navigating away, we
used callbacks with mw.hook. That is wrong approach. If event logging
is disabled those callbacks will never called: it broke language change
and all use cases which navigates away from current page.

Event logging should not interfere with any ULS functionality. If ULS
functionality depends on callbacks from event logging, it is wrong.

In this patch, we give a small time window to make sure event logging is
fired, but we won't wait for its success or failure.

If eventlogging is disabled, this time window does not exist.

Change-Id: I0b7d9d8b9d1d01b99422010596ebfa80b2589d04
2013-08-19 10:13:56 +00:00
Santhosh ThottingalandNikerabbit 44bd73325a Log font-change event
Change-Id: I093e27d74d047a639082a5da6442944f590c67dc
2013-08-19 06:00:26 +00: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 ThottingalandAmir E. Aharoni 117cc5bf46 eventlogger module for ULS
Separating event logging out of ULS functionality. Event logging
is now loosely coupled with ULS. ULS core modules can emit an event
whenever EventLogging is required. The eventlogger module will act
on the event if configured.

Change-Id: I59dfcfb25c1acb85376b56239f2355ee7c4aff1e
2013-08-15 17:08:15 +03:00
Santhosh ThottingalandAmir E. Aharoni c4631fdf51 Top position the ULS for IME menu wrt the input field
Currently it is positioned relative to the ... menu item.
It caused weird positioning at some places.
Positioning it relative to the input field makes more sense.

lazyload option was removed from jquery.uls. Removing it from here.

Change-Id: I331051a38d7dfd97466601bfcc2facaf446d0db9
2013-07-30 15:55:42 +03:00
Santhosh ThottingalandAmir E. Aharoni 82fbfe62e7 Load jquery.ime only when user focus on editable fields
To reduce javascript size for page load.

Change-Id: Ibf2ccd5b5501720837051d6e268b122e8a9f8590
2013-07-30 14:18:55 +03:00
Santhosh Thottingal 961ccfafa6 Change upstream URL for Shapour font for Pahlavi script
Change-Id: I6ce06e1d7df33982cf7778a9d3ffe991d621c00d
2013-07-29 13:00:21 +05:30
Santhosh Thottingal 3042b7a39e Compress the eot font more using microtype express compression
Change-Id: I2b4591836e29e93f74ee4d92e724c38a07c84141
Followup: I4f04298628f799a60350707b6870efb16c6a9de0
Bug: 44076
2013-07-27 10:13:15 +05:30
Santhosh ThottingalandAmir E. Aharoni 63d547915f Load jquery.ime only when user focus on editable fields
To reduce javascript size for page load.

Change-Id: I71928ac5149cbcf2cc75073fdf628403e6abe456
2013-07-26 16:08:35 +03:00
Santhosh ThottingalandAmir E. Aharoni d92c75518b Delay loading of language settings javascript
Load them when language settings is opened using cog or ULS icon click

Change-Id: I472497c549bff0fd578156fa0113dae2d6a7a7fb
2013-07-26 15:55:07 +03:00
Santhosh Thottingal 81586572ab Lazy initialization of language settings and ULS from interface triggers
1. For interlanguage position, initialize language settings on first
click on cog
2. For personal toolbar position, initialie ULS on first click of
ULS trigger

Change-Id: Icda498f676d1d3ddaefad75fd9212150f6966666
2013-07-25 12:10:46 +05:30
Santhosh Thottingal 472432517a Lazy initilization of language settings from ULS
For personal toolbar position, initialize langauge settings only
after user clicks on the settings links

Bug: 48211

Change-Id: Ib3e2372e982de890db614a81c06fbbe170ce0d01
2013-07-25 12:10:38 +05:30
Santhosh Thottingal eff459eea6 Lazy initialization of language settings for IME menu
Initialize it only when first time user clicks on it

In a page like Special:Translate where lot of input fields
appearing, the previous approach was adding many language settings
div to the page.

Bug: 48211

Change-Id: If063df6782c6a51ac77ed5531dfa253c7f3ddbc4
2013-07-24 11:12:01 +00:00
Santhosh Thottingal 1aafd31cf5 Typo fix
Change-Id: I496d137a706bd1672ea12f4d6d465d858a399794
2013-07-24 15:28:33 +05:30
Santhosh Thottingal 7284215879 Fix javascript error with language fallbacks
Fallbacks are handled with ApiULSLocalization.

Bug: 51923

Change-Id: I9f68e0744bf0c730aa3a410901a9b536af7623fc
2013-07-24 09:50:02 +05:30
Santhosh ThottingalandAmir E. Aharoni f11ef736a4 Fix the logic of apply and cancel actions
* Refactored the Cancel button handler code to cancel method in
display settings and input settings.
* When the user makes changes in multiple modules and clicks the Cancel
button or closes the language settings after that, cancel the changes in
all the modules. See bug 50564.
* The Apply button was always active in input methods module. Fixed the
logic for that.
* Renamed the enableApplyButton method to markDirty in both modules.
* Introduced isDirty attribute to the modules for optimizing the Cancel
method to avoid unnecessary restore actions.
* More minor cleanup and documentation.

Bug: 50564

Change-Id: I71f527bfb7dd7f6724e4365371ac3e4fc0723ed6
2013-07-23 14:09:27 +03: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 321c5ccc07 Remove some unwanted top RL module definitions
Change-Id: I7ae638fa606a68b93519dea726725d0dc714811e
2013-07-23 14:09:09 +05:30
Santhosh ThottingalandHashar f144cd5c16 Fix regression of bf1d62ba4
https://gerrit.wikimedia.org/r/#/c/75076/ had multiple issues:
1. Selecting of input methods stopped working
2. With 'personal' position, ULS windows comes on every page click

Bug: 50559

Change-Id: I0cf815228760d27bca07acd58631713988659831
2013-07-22 11:25:30 +00:00
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 bf1d62ba42 Close language settings when clicked outside
To make the behavior consistent with ULS langauge selection window.

This also avoid multiple language settings screen appearing in rare
case of using two entry points to access language settings one after
another.

Bug: 50559
Change-Id: I990eb6402085290df314db0a75235e0ad7b2fd55
2013-07-22 13:40:23 +05:30
Santhosh ThottingalandAmir E. Aharoni 6ac12b6584 Better blacklisting of browsers using $.client
Change-Id: Ibc4d15008671700374fdc1e33d2e85f9899f9b35
2013-07-21 19:36:12 +03:00
Santhosh Thottingal aee6c78935 Remove unused test html file
Change-Id: I66b897680c165837c81c4f736b87a6e11be98dbd
2013-07-19 11:43:57 +05:30
Santhosh Thottingal 944c74c958 Update the previous UI and content font whenever font value changes
Bug: 50562
Change-Id: I1e89af19149a02ad4ed7a4a6b7f096c258258cf4
2013-07-19 10:40:29 +05:30
Santhosh Thottingal a3bf6f7e3d Naming convention fix.
Change-Id: If1661a9c35fafb048b2a30b9fefbace7668e98d7
2013-07-19 10:20:31 +05:30
Santhosh ThottingalandAmire80 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
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
Santhosh ThottingalandNikerabbit e4cefe06fd Apply webfonts to the IME selector too
It get added to DOM after DOM is ready, and does not inherit styles
(by design)

Change-Id: I45a982b5c1c2a39718f38e77a33b79f89e460474
2013-07-08 07:42:49 +00:00
Santhosh Thottingal d217a2fe73 Make anything with class 'uls-settings-trigger' work like ULS trigger
Usecase:

Reading problems? click [here]. That [here] can be a ULS trigger to open
language settings.

Change-Id: I1561f8b782037bfdb418f33097fc8b4c519ef393
2013-07-08 13:05:44 +05:30
Santhosh ThottingalandNiklas Laxström 1445d02e6e Accessibility attributes for ULS trigger
Bug: 50575
Change-Id: I07a6fa740e6dcdcb0fd4ae8832ba0ad6fd875170
2013-07-08 07:30:04 +00:00
Santhosh Thottingal 0145529035 Documentation for mw.uls.init
Bug: 50858
Change-Id: Iada465a8228955bf24f7a4628bf2288b3fe0c0ac
2013-07-08 12:40:49 +05:30
Santhosh Thottingal 3d6e4a007f jquery.i18n message store for ULS
Bug: 49935
Change-Id: Iddef0805abbf9b4ff0e606fc311c57e9dfa7107d
2013-07-08 06:55:21 +00:00
Santhosh Thottingal 69e037862c Update jquery.ime from upstream
Bug: 50790
Change-Id: I3755581136cca9958e31b20694c4285c14646c38
2013-07-07 21:01:57 +05:30
Santhosh ThottingalandAmire80 8ddff0b2fc Use single entry point mw.uls.init for all ULS ui initialization
Change-Id: I485ea27deebb530eb89e4b0935eda01a5276f884
2013-07-04 17:05:10 +00:00
Santhosh Thottingal 44c6b50d84 Update jquery.uls from upstream
Performance improvements by matmarex

Change-Id: Ie89bd56702dec231a8c27f9cf8eeb7bbffe9b251
2013-07-04 16:20:35 +05:30
Santhosh ThottingalandNikerabbit acbc10c494 After rendering input and display settings, refresh webfonts
Because those windows are rendered later. The settings window inherits
fonts. But button in those panels doesn't inherit. Make sure all panel
elements have current font applied.

Change-Id: Ibb8b12b3d973023c49ef89a04d534081bf8ee87f
2013-07-02 10:53:21 +00:00
Santhosh Thottingal 1b8d0eb169 Remove Arial fontfamily style for buttons
This came from Agora button styles. Explicit font style for buttons
prevent them to inherit font family style from parents.

Change-Id: I81833273ea7f7f865d04d56d2156df0852373110
2013-07-02 10:32:58 +05:30
Santhosh Thottingal 0ee46eaec1 Remove namespace parameter from ApiULSLocalization
Return messages from all known namespaces for the language

Change-Id: I3fe70108458dd5dfa6689a6d30c65f510e94b4d8
2013-07-01 16:12:48 +05:30
Santhosh Thottingal 2776a28d58 ULS i18n performance fixes
* Since there is an API to load the i18n json files, avoid sending
  list of localizations to client. Previously this list was used to
  avoid 404s for json files. Now API takes care of it. Remove the
  caching for this list too.

* Preload the i18n files on document ready. This avoids delay in
  initializing IME or ULS window after fetch i18n from server.

* ApiULSLocalization can serve messages for all namespaces known if
  namespace parameter is not set

Bug: 50391
Change-Id: I6b848da35f57353790bf460983cdf19a11bb238a
2013-06-30 18:08:19 +05:30
Santhosh ThottingalandNiklas Laxström 8f9cec5835 Sort the language modules by id
Bug: 49735
Change-Id: I82e0d47781f982dd1a6ea7cc1e3cbe07bfd6b616
2013-06-26 10:25:25 +00:00
Santhosh Thottingal 5b16505dc1 Update jquery.uls from upstream
Bug: 49847
Change-Id: I4172445ed39525956b167cd8ee38bbfc676997f2
2013-06-25 19:00:17 +05:30
Santhosh Thottingal 96f6721772 Update jquery.ime from upstream
Version:  v0.1.0+20130625

* Add sa-iast input method
* Fix bug https://github.com/wikimedia/jquery.ime/issues/188

Bug: 49515
Change-Id: I8ebd5bc4857285eb29d0ec6741cc6953ac187722
2013-06-25 17:17:46 +05:30
Santhosh Thottingal 6374b34029 Update jquery.ime from upstream
Version: v0.1.0+20130624
Fixes Kannada transliteration input method name

Bug: 50006
Change-Id: I283d2b1faaf6640f6327f82ea2ba74b3d0121f4f
2013-06-24 11:19:22 +05:30
Santhosh Thottingal 8e27852651 Fonts for nan(Min-nan) - Charis SIL and Doulos SIL
Added Doulos SIL
Mapped Charis SIL to nan

Bug: 47190
Change-Id: I2778f2e432bd9012fc985d8f10708a6ac7153ab3
2013-06-20 15:50:05 +05:30
Santhosh Thottingal 0815b87fe1 Update LinuxLiberine fonts
All fonts are autohinted from upstream
Version: 5.3.0

Bug: 49511
Change-Id: I1ad0c0e4fa2570ae9190be8f3ee8c5d5e21413a8
2013-06-20 11:31:18 +05:30
Santhosh Thottingal 47d4854aba Update Lohit fonts from upstream
All upgraded to 2.5.3 version from upstream
https://fedorahosted.org/lohit/

Bug: 49567
Change-Id: I407fbb84c8466302888d4f3c2390884aee860282
2013-06-20 10:36:05 +05:30
Santhosh ThottingalandGerrit Code Review 1be1fdd1bd jquery.ime updates - keyboard mapping fixes
For ru,uz,be kbd mappings

Change-Id: I9a802c21294ab09955760201b14f1cab866402de
2013-06-19 18:25:05 +00:00
Santhosh ThottingalandGerrit Code Review 7a95d13345 Use content language as default language for ime selector
Change-Id: I9780cefc6585ebcc99bd8a45ccf10ecf6ee54a4d
2013-06-19 10:04:43 +00:00
Santhosh ThottingalandNiklas Laxström 8dfc3976b1 Update jquery.ime from upstream
Version: 0.1.0+20130619
* Make system as default ime for all languages
* Update uk keyboard

Bug: 49783
Change-Id: I534b13e50f9d95673f66639f1ccef90d7fa8304c
2013-06-19 09:58:55 +00:00
Santhosh Thottingal 5ca1b906b8 Update jquery.uls from upstream
New localizations

Change-Id: I2625f1277ce30029ebf5bd3269ce26876f6c0dd3
2013-06-17 18:10:09 +05:30