Commit Graph

353 Commits

Author SHA1 Message Date
Siebrand Mazeland
b5b6aa15f4 Simplify if-statement
Change-Id: Icc91ed0650297935538a6398f4a540899b677317
2013-07-08 14:29:00 +02:00
Santhosh Thottingal
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
jenkins-bot
2fdf4bffb3 Merge "Accessibility attributes for ULS trigger" 2013-07-08 07:41:59 +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 Thottingal
1445d02e6e Accessibility attributes for ULS trigger
Bug: 50575
Change-Id: I07a6fa740e6dcdcb0fd4ae8832ba0ad6fd875170
2013-07-08 07:30:04 +00:00
jenkins-bot
870ac4fb16 Merge "Log ime-enable and ime-disable events" 2013-07-08 07:21:35 +00:00
Santhosh Thottingal
0145529035 Documentation for mw.uls.init
Bug: 50858
Change-Id: Iada465a8228955bf24f7a4628bf2288b3fe0c0ac
2013-07-08 12:40:49 +05:30
jenkins-bot
3121b25d02 Merge "jquery.i18n message store for ULS" 2013-07-08 07:04:52 +00:00
Santhosh Thottingal
3d6e4a007f jquery.i18n message store for ULS
Bug: 49935
Change-Id: Iddef0805abbf9b4ff0e606fc311c57e9dfa7107d
2013-07-08 06:55:21 +00:00
Siebrand
f72d552eb1 Merge "Remove default web font for Persian language" 2013-07-08 06:54:30 +00:00
Ebrahim Byagowi
b18c2b9f28 Remove default web font for Persian language
Bug: 49957
Change-Id: Ic77739a9748266eecbede8eeea28ab312ccb8b93
2013-07-08 06:50:51 +00:00
Niklas Laxström
034acf6f0f Log ime-enable and ime-disable events
Change-Id: I96964cb190d1a67bba536458ebadd3bd677d4fa6
2013-07-06 12:26:52 +00:00
jenkins-bot
2ea66a84a1 Merge "Use /** for method documentation blocks" 2013-07-06 12:22:35 +00:00
Amir E. Aharoni
6fdc9241e6 Fix indentation and tweak comments a bit
Bug: 50859
Change-Id: Ic827e200674fb72b8b88e362bab30662cc13e304
2013-07-06 14:00:35 +03:00
Niklas Laxström
c51384e4e1 Use /** for method documentation blocks
Change-Id: I6c7a8b7c2e2e861120caa1f1b5ff9b0dc7537737
2013-07-06 10:33:12 +00:00
jenkins-bot
7d1f6222fa Merge "Allow disabling of IME by a jQuery selector" 2013-07-05 13:38:36 +00:00
Amir E. Aharoni
8205e294d7 Allow disabling of IME by a jQuery selector
Add the variable $wgULSNoImeSelectors to allow custom
disabling of IME in specific elements.

Add captcha input field id to the exclusion list.

Bug: 41675
Change-Id: Ib03a20c50a4f473e6a58638b85da16659268eb09
2013-07-05 13:37:31 +00:00
Santhosh Thottingal
8ddff0b2fc Use single entry point mw.uls.init for all ULS ui initialization
Change-Id: I485ea27deebb530eb89e4b0935eda01a5276f884
2013-07-04 17:05:10 +00:00
jenkins-bot
ea50b8216c Merge "Allow loading redirects in Common languages" 2013-07-04 13:00:49 +00:00
Amir E. Aharoni
b6698228d4 Allow loading redirects in Common languages
Bug: 49847
Change-Id: Ia2380a77ebad789a2f70a7a88a1bb9970199b1c5
2013-07-04 12:55:39 +00:00
Amir E. Aharoni
900f5240bd Calculate the position of the menu near the cog properly
Instead of magic numbers, use a proper calculation according
to the elements' positions.

Bug: 49471
Change-Id: I9093b2c684f557e9e562762b7ef25ced37b8848b
2013-07-04 12:36:47 +00:00
jenkins-bot
7b9f4c863c Merge "Prepare ULS for EventLogging" 2013-07-03 10:42:43 +00:00
Niklas Laxström
4543d43dda Prepare ULS for EventLogging
This change introduces a new configuration variable, $wgULSEventLogging. When
set to true, ULS will register an EventLogging schema module for
<http://meta.wikimedia.org/wiki/Schema:UniversalLanguageSelector>,
making it possible to log events using `mw.uls.logEvent`. When false, the
schema module is not loaded, and `mw.uls.logEvent` is a no-op.

Change-Id: I7139e67cc2f830a6b4b3c8ff1fc72dfcdec9a699
2013-07-02 12:47:22 +00:00
Santhosh Thottingal
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
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 Thottingal
8f9cec5835 Sort the language modules by id
Bug: 49735
Change-Id: I82e0d47781f982dd1a6ea7cc1e3cbe07bfd6b616
2013-06-26 10:25:25 +00:00
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
Niklas Laxström
10c1177c1d Remove comma that shouldn't have been introduced
Change-Id: Iaf24bc1cf4ec59fe2c44601eee1a19ccdac757ba
2013-06-19 18:19:42 +00:00
Santhosh Thottingal
7a95d13345 Use content language as default language for ime selector
Change-Id: I9780cefc6585ebcc99bd8a45ccf10ecf6ee54a4d
2013-06-19 10:04:43 +00:00
Siebrand Mazeland
9ac9163ecf Simplify return statement
Change-Id: I6a7a5c2aae4ead9c14208f67abf9f82ff71e165d
2013-06-17 16:39:03 +02:00
Siebrand Mazeland
1f9bf6f82c Update indentation and newlines
Change-Id: Iac833df12a00949d32f2ce2fc26a657bab3d8229
2013-06-17 16:36:34 +02:00
jenkins-bot
44a5d0c3dd Merge "Validate imeId before rendering" 2013-06-17 09:43:22 +00:00
Santhosh Thottingal
3b3e2da332 Disable Webfonts too for blacklisted browsers
Change-Id: I9feb342b091e00ef0279333018b86045932d68de
2013-06-17 09:33:03 +00:00
Santhosh Thottingal
9d75ff9a09 Disable IME too in blacklisted browsers
Change-Id: I140352f723bc4863d14ed6441c9e173310c683b3
2013-06-17 09:31:06 +00:00
jenkins-bot
c57bcd86f7 Merge "Make Display settings the default view for the cog Language settings" 2013-06-17 08:18:34 +00:00
Santhosh Thottingal
34d4045c3b Validate imeId before rendering
Fix: TypeError: $.ime.sources[imeId] is undefined

Bug: 49584
Change-Id: I9f5615d8b6729d76feae04e195a5ec6f26676bda
2013-06-17 10:08:16 +05:30
Amir E. Aharoni
b5dd51a1f3 Make Display settings the default view for the cog Language settings
Without this change, clicking the cog near the interlanguage
links can show Input settings first, and the design says that
Display settings must be shown first.

Change-Id: Ieb2dcd7efb5c1a5e1320a271ec7c7ae69d071bae
2013-06-15 08:21:29 -07:00
Amir E. Aharoni
3332062bac Cleanup ext.uls.languagesettings.js
Change-Id: Ied12c6bf2022c0c291d7e5edc213340e6a159f77
2013-06-14 18:28:35 -07:00
Santhosh Thottingal
658d97de36 Make the link to undo language change usable
Fix bug: Link to revert to the earlier display language inside the tooltip cannot
be clicked. It was hiding on mouse over.

Bug: 49556
Change-Id: If536142fd61aa191601262dbfec6de960c167081
2013-06-14 11:53:01 +05:30
Santhosh Thottingal
6a34b6159d Update Lohit Tamil fonts to 2.5.3 version
Change-Id: Id447cdf5c07b0b02ae0b3b29a6bf2380c9896a7e
2013-06-13 15:58:25 +05:30
jenkins-bot
dce0b387c7 Merge "Input settings - language selection cleanup" 2013-06-13 10:09:31 +00:00
jenkins-bot
f0eca06c1c Merge "Set the language for the settings panel for correct webfonts" 2013-06-13 09:51:16 +00:00
jenkins-bot
0661c2e1b2 Merge "Use system as default font for Tamil" 2013-06-13 09:46:44 +00:00
jenkins-bot
8ca09510ba Merge "Use Tipsy on "Language settings" tooltip" 2013-06-13 09:44:38 +00:00
Santhosh Thottingal
e726f01615 Use system as default font for Tamil
Tamil has wide support in major operating systems

Change-Id: I30adb4aa607b0e4261efdce34457e5b07a0c61ca
2013-06-13 15:11:04 +05:30
Santhosh Thottingal
d11576b27e Add Linux Libertine font
It is Wikipedia wordmark font

Change-Id: Ib280869d8a8686268c7f67aefb29a76752e9e4f4
2013-06-13 12:51:07 +05:30
Santhosh Thottingal
d36f6c516e Set the language for the settings panel for correct webfonts
Change-Id: Ia404f5e0b50d5b9114255c2e1e7daca39c79d414
2013-06-13 11:22:32 +05:30
Santhosh Thottingal
a8c9b923d0 Add UnifrakturMaguntia font
Not mapped to any language, but available by explicit
style definition. style="font-family:'UnifrakturMaguntia';"

Bug: 49499
Change-Id: I346f81ecc145b261f3bc8386c47cce779ac11e33
2013-06-13 09:38:15 +05:30