r108447 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r108446‎ | r108447 | r108448 >
Date:18:26, 9 January 2012
Author:siebrand
Status:ok
Tags:
Comment:
MFT to trunk/HEAD for i18ndeploy.
Modified paths:
  • /branches/wmf/1.18wmf1/extensions/WebFonts/SpecialWebFonts.php (added) (history)
  • /branches/wmf/1.18wmf1/extensions/WebFonts/WebFonts.alias.php (added) (history)
  • /branches/wmf/1.18wmf1/extensions/WebFonts/WebFonts.hooks.php (modified) (history)
  • /branches/wmf/1.18wmf1/extensions/WebFonts/WebFonts.i18n.php (modified) (history)
  • /branches/wmf/1.18wmf1/extensions/WebFonts/WebFonts.php (modified) (history)
  • /branches/wmf/1.18wmf1/extensions/WebFonts/resources/ext.webfonts.css (modified) (history)
  • /branches/wmf/1.18wmf1/extensions/WebFonts/resources/ext.webfonts.js (modified) (history)
  • /branches/wmf/1.18wmf1/extensions/WebFonts/resources/ext.webfonts.preview.css (added) (history)
  • /branches/wmf/1.18wmf1/extensions/WebFonts/resources/ext.webfonts.preview.js (added) (history)

Diff [purge]

Index: branches/wmf/1.18wmf1/extensions/WebFonts/WebFonts.hooks.php
@@ -41,7 +41,7 @@
4242
4343 return true;
4444 }
45 -
 45+
4646 /**
4747 * Hook: ResourceLoaderGetConfigVars
4848 */
@@ -49,7 +49,7 @@
5050 $vars['wgWebFontsHelpPage'] = wfMsgForContent( 'webfonts-help-page' );
5151 return true;
5252 }
53 -
 53+
5454 /**
5555 * UserGetDefaultOptions hook handler.
5656 * @param $defaultOptions array
Index: branches/wmf/1.18wmf1/extensions/WebFonts/WebFonts.alias.php
@@ -0,0 +1,20 @@
 2+<?php
 3+/**
 4+ * Aliases for special pages of WebFonts extension.
 5+ *
 6+ * @file
 7+ * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later
 8+ */
 9+
 10+$specialPageAliases = array();
 11+
 12+/** English (English) */
 13+$specialPageAliases['en'] = array(
 14+ 'WebFonts' => array( 'WebFonts' ),
 15+);
 16+
 17+/** Malayalam (മലയാളം) */
 18+$specialPageAliases['ml'] = array(
 19+ 'WebFonts' => array( 'വെബ്ഫോണ്ട്സ്' ),
 20+);
 21+
Property changes on: branches/wmf/1.18wmf1/extensions/WebFonts/WebFonts.alias.php
___________________________________________________________________
Added: svn:eol-style
122 + native
Added: svn:keywords
223 + Id
Index: branches/wmf/1.18wmf1/extensions/WebFonts/resources/ext.webfonts.js
@@ -139,7 +139,7 @@
140140 styleString += fontFormats.join() + ";\n";
141141 styleString += "\tfont-weight: normal;}";
142142
143 - // inject the css to the head of the page.
 143+ // inject the css to the head of the page.
144144 mw.util.addCSS( styleString );
145145 },
146146
@@ -179,7 +179,8 @@
180180
181181 var fonts = [],
182182 languages = mw.webfonts.config.languages,
183 - requested = [mw.config.get( 'wgUserVariant' ), mw.config.get( 'wgContentLanguage' ), mw.config.get( 'wgUserLanguage' )],
 183+ requested = [mw.config.get( 'wgUserVariant' ), mw.config.get( 'wgContentLanguage' ),
 184+ mw.config.get( 'wgUserLanguage' ), mw.config.get( 'wgPageContentLanguage' )],
184185 i, j;
185186
186187 for ( i = 0; i < requested.length; i++ ) {
@@ -229,7 +230,8 @@
230231 */
231232 loadFontsForLangAttr: function() {
232233 var languages = mw.webfonts.config.languages;
233 - var requested = [mw.config.get( 'wgUserVariant' ), mw.config.get( 'wgContentLanguage' ), mw.config.get( 'wgUserLanguage' )];
 234+ var requested = [mw.config.get( 'wgUserVariant' ), mw.config.get( 'wgContentLanguage' ),
 235+ mw.config.get( 'wgUserLanguage' ), mw.config.get( 'wgPageContentLanguage' )];
234236 var fontFamily = false;
235237 // If there are tags with lang attribute,
236238 $( 'body' ).find( '*[lang]' ).each( function( i, el) {
Index: branches/wmf/1.18wmf1/extensions/WebFonts/resources/ext.webfonts.preview.js
@@ -0,0 +1,64 @@
 2+/**
 3+ * Preview page script
 4+ */
 5+(function( $, mw ) {
 6+ "use strict";
 7+
 8+ var showPreview = function () {
 9+ var font = $( 'select#webfonts-font-chooser' ).val();
 10+ var $downloadLink = $( 'a#webfonts-preview-download' );
 11+ var $previewBox = $( 'div#webfonts-preview-area' );
 12+ mw.webfonts.addFont( font );
 13+ $previewBox.css( 'font-family', font ).addClass( 'webfonts-lang-attr' );
 14+ $previewBox.css( 'font-size', parseInt( $( 'select#webfonts-size-chooser' ).val(), 10 ) );
 15+ var fontconfig = mw.webfonts.config.fonts[font];
 16+ var base = mw.config.get( 'wgExtensionAssetsPath' ) + '/WebFonts/fonts/';
 17+ $downloadLink.prop( 'href', base + fontconfig.ttf ).removeClass( 'disabled' );
 18+ return true;
 19+ };
 20+
 21+ var getFontsForLang = function ( language ) {
 22+ var $fontSelecter = $( 'select#webfonts-font-chooser' );
 23+ var $downloadLink = $( 'a#webfonts-preview-download' );
 24+ $fontSelecter.empty();
 25+ var languages = mw.webfonts.config.languages;
 26+ var fonts = languages[language];
 27+ if( !fonts ) {
 28+ $downloadLink.removeAttr( 'href' ).addClass( 'disabled' );
 29+ return false;
 30+ }
 31+ $.each( fonts, function( key, value ) {
 32+ $fontSelecter.append( $( '<option>', { value: value } )
 33+ .text( value ) );
 34+ } );
 35+ showPreview();
 36+ return true;
 37+ };
 38+
 39+ $( document ).ready( function () {
 40+ $( 'select#wpUserLanguage' ).change( function () {
 41+ var language = $( 'select#wpUserLanguage' ).val();
 42+ getFontsForLang( language );
 43+ } );
 44+
 45+ $( 'select#webfonts-font-chooser, select#webfonts-size-chooser' ).change( function () {
 46+ showPreview();
 47+ } );
 48+
 49+ $( 'button#webfonts-preview-bold' ).click( function () {
 50+ document.execCommand( 'bold', false, null );
 51+ } );
 52+
 53+ $( 'button#webfonts-preview-italic' ).click( function () {
 54+ document.execCommand( 'italic', false, null );
 55+ } );
 56+
 57+ $( 'button#webfonts-preview-underline' ).click( function () {
 58+ document.execCommand( 'underline', false, null );
 59+ } );
 60+
 61+ getFontsForLang( $( 'select#wpUserLanguage' ).val() );
 62+ showPreview();
 63+ } );
 64+
 65+} )( jQuery, mediaWiki );
Index: branches/wmf/1.18wmf1/extensions/WebFonts/resources/ext.webfonts.css
@@ -1,7 +1,7 @@
22 li#pt-webfont {
33 /* @embed */
44 background: url(images/font-icon.png) no-repeat scroll left top transparent;
5 - padding-left: 15px !important;
 5+ padding-left: 18px !important;
66 }
77
88 div#webfonts-menu {
@@ -10,7 +10,7 @@
1111 display: none;
1212 }
1313
14 -div#webfonts-menu.open{
 14+div#webfonts-menu.open {
1515 display: block;
1616 }
1717 div#webfonts-fonts {
Index: branches/wmf/1.18wmf1/extensions/WebFonts/resources/ext.webfonts.preview.css
@@ -0,0 +1,67 @@
 2+select#wpUserLanguage,
 3+select#webfonts-font-chooser,
 4+select#webfonts-size-chooser {
 5+ width: 200px;
 6+ height: 25px;
 7+ vertical-align: middle;
 8+}
 9+
 10+select#webfonts-size-chooser {
 11+ width: 50px;
 12+}
 13+
 14+div#webfonts-preview-area {
 15+ height: 300px;
 16+ border: 1px solid #cccccc;
 17+ border-radius: 0 0 4px 4px;
 18+ -webkit-border-radius: 0 0 4px 4px;
 19+ -moz-border-radius: 0 0 4px 4px;
 20+ text-align: left;
 21+ padding: 5px;
 22+ overflow: auto;
 23+}
 24+
 25+button#webfonts-preview-bold,
 26+button#webfonts-preview-italic,
 27+button#webfonts-preview-underline,
 28+a#webfonts-preview-download {
 29+ height: 25px;
 30+ vertical-align: middle;
 31+ font-weight: bold;
 32+ text-shadow: 0 1px 0 rgba(255,255,255,0.4);
 33+}
 34+
 35+a#webfonts-preview-download.disabled {
 36+ color: #808080;
 37+}
 38+
 39+div#webfonts-preview-toolbar button {
 40+ width: 30px;
 41+}
 42+
 43+button#webfonts-preview-italic {
 44+ font-style: italic;
 45+}
 46+
 47+button#webfonts-preview-underline {
 48+ text-decoration: underline;
 49+}
 50+
 51+a#webfonts-preview-download {
 52+ padding-right: 10px;
 53+ padding-left: 10px;
 54+ padding-top: 3px;
 55+ float: right;
 56+ text-decoration: none;
 57+}
 58+
 59+div#webfonts-preview-toolbar {
 60+ overflow: hidden;
 61+ background-color: #F9F9F9;
 62+ border: 1px solid #CCCCCC;
 63+ border-radius: 4px 4px 0 0;
 64+ -webkit-border-radius: 4px 4px 0 0;
 65+ -moz-border-radius: 4px 4px 0 0;
 66+ position: relative;
 67+ padding: 2px;
 68+}
Property changes on: branches/wmf/1.18wmf1/extensions/WebFonts/resources/ext.webfonts.preview.css
___________________________________________________________________
Added: svn:eol-style
169 + native
Added: svn:keywords
270 + Id
Index: branches/wmf/1.18wmf1/extensions/WebFonts/WebFonts.i18n.php
@@ -12,18 +12,28 @@
1313 * @author santhosh
1414 */
1515 $messages['en'] = array(
16 - 'webfonts' => 'WebFonts',
 16+ 'webfonts' => 'Web fonts',
1717 'webfonts-desc' => 'Embed fonts in pages',
1818 'webfonts-load' => 'Select font',
1919 'webfonts-reset' => 'Reset',
20 - 'webfonts-enable-preference' => 'Enable font embedding (WebFonts)',
 20+ 'webfonts-enable-preference' => 'Enable font embedding (Web fonts)',
2121 'webfonts-menu-tooltip' => 'Select a font for the page',
2222 'webfonts-help' => 'Help',
2323 'webfonts-help-page' => '//www.mediawiki.org/wiki/Special:MyLanguage/Help:Extension:WebFonts',
 24+ 'webfonts-preview-intro' => 'This page helps you to preview the fonts available in the WebFonts extension and optionally download and install in your computer.',
 25+ 'webfonts-preview-title' => 'Preview the fonts',
 26+ 'webfonts-preview-download' => 'Download',
 27+ 'webfonts-preview-sampletext' => 'The quick brown fox jumps over the lazy dog',
 28+ 'webfonts-preview-installing-fonts-title' => 'Installing Fonts',
 29+ 'webfonts-preview-installing-fonts-text' => 'You can download a font using the "{{int:webfonts-preview-download}}" link given above. To install the downloaded font on your computer, please see [//www.mediawiki.org/wiki/Special:MyLanguage/Help:How_to_install_fonts this documentation].',
2430 );
2531
2632 /** Message documentation (Message documentation)
2733 * @author EugeneZelenko
 34+ * @author McDutchie
 35+ * @author Mormegil
 36+ * @author Raymond
 37+ * @author Singhalawap
2838 */
2939 $messages['qqq'] = array(
3040 'webfonts' => 'The extension name - WebFonts',
@@ -31,10 +41,28 @@
3242 'webfonts-load' => 'The text shown in the webfont link',
3343 'webfonts-reset' => '{{Identical|Reset}}',
3444 'webfonts-menu-tooltip' => 'Tooltip text displayed in the webfont link',
35 - 'webfonts-help' => 'Text for the help link',
36 - 'webfonts-help-page' => 'Change this only if you want to point the help link to a different wiki page.',
 45+ 'webfonts-help' => 'Text for the help link.
 46+{{Identical|Help}}',
 47+ 'webfonts-preview-intro' => 'Introduction to [[Special:WebFonts|the special page]].',
 48+ 'webfonts-preview-title' => 'Title for the preview area.',
 49+ 'webfonts-preview-download' => 'Download link text.
 50+{{Identical|Download}}',
 51+ 'webfonts-preview-sampletext' => 'Do not translate literally, but give a [[:w:Pangram|pangram]] in your language for using as default preview text.',
 52+ 'webfonts-preview-installing-fonts-title' => 'Title of Installing Fonts section',
 53+ 'webfonts-preview-installing-fonts-text' => 'Text pointing to the installation document link.',
3754 );
3855
 56+/** Afrikaans (Afrikaans)
 57+ * @author පසිඳු කාවින්ද
 58+ */
 59+$messages['af'] = array(
 60+ 'webfonts' => 'WebFonts',
 61+ 'webfonts-load' => 'Kies font',
 62+ 'webfonts-reset' => 'Reset',
 63+ 'webfonts-menu-tooltip' => "Kies 'n font vir die bladsy",
 64+ 'webfonts-help' => 'Help',
 65+);
 66+
3967 /** Arabic (العربية)
4068 * @author روخو
4169 */
@@ -52,10 +80,30 @@
5381 'webfonts-load' => 'Seleiciona la fonte',
5482 'webfonts-reset' => 'Reaniciar',
5583 'webfonts-enable-preference' => 'Activar la incorporación de fontes (WebFonts)',
 84+ 'webfonts-menu-tooltip' => 'Seleicionar una fonte pa la páxina',
 85+ 'webfonts-help' => 'Ayuda',
5686 );
5787
 88+/** Azerbaijani (Azərbaycanca)
 89+ * @author Cekli829
 90+ */
 91+$messages['az'] = array(
 92+ 'webfonts-help' => 'Kömək',
 93+);
 94+
 95+/** Bashkir (Башҡортса)
 96+ * @author Haqmar
 97+ */
 98+$messages['ba'] = array(
 99+ 'webfonts' => 'WebFonts',
 100+ 'webfonts-load' => 'Шрифт һайларға',
 101+ 'webfonts-reset' => 'Баштан алырға',
 102+ 'webfonts-help' => 'Белешмә',
 103+);
 104+
58105 /** Belarusian (Taraškievica orthography) (‪Беларуская (тарашкевіца)‬)
59106 * @author EugeneZelenko
 107+ * @author Jim-by
60108 * @author Wizardist
61109 */
62110 $messages['be-tarask'] = array(
@@ -63,6 +111,15 @@
64112 'webfonts-desc' => 'Дазваляе ўбудоўваць шрыфты на старонкі',
65113 'webfonts-load' => 'Выбраць шрыфт',
66114 'webfonts-reset' => 'Скінуць',
 115+ 'webfonts-enable-preference' => 'Дазволіць убудаваньне шрыфтоў (WebFonts)',
 116+ 'webfonts-menu-tooltip' => 'Выбраць шрыфт для старонкі',
 117+ 'webfonts-help' => 'Дапамога',
 118+ 'webfonts-preview-intro' => 'Гэтая старонка дапаможа Вам праглядзець шрыфты даступныя ў пашырэньні WebFonts і, калі пажадаеце, загрузіць і ўсталяваць іх на Вашым кампьютары.',
 119+ 'webfonts-preview-title' => 'Праглядзець шрыфты',
 120+ 'webfonts-preview-download' => 'Загрузіць',
 121+ 'webfonts-preview-sampletext' => 'Хуткая шэрая лісіца пераскочыла праз лянівага сабаку',
 122+ 'webfonts-preview-installing-fonts-title' => 'Усталяваньне шрыфтоў',
 123+ 'webfonts-preview-installing-fonts-text' => 'Вы можаце спампаваць шрыфт, скарыстаўшыся спасылкай «{{int:webfonts-preview-download}}» вышэй. Каб інсталяваць спампаваны шрыфт у вашую сыстэму, зьвярніцеся да [//mediawiki.org/wiki/Special:MyLanguage/Help:How_to_install_fonts дакумэнтацыі]',
67124 );
68125
69126 /** Bengali (বাংলা)
@@ -73,8 +130,22 @@
74131 'webfonts-desc' => 'পাতায় ফন্ট সন্নিবেশ',
75132 'webfonts-load' => 'ফন্ট নির্বাচন',
76133 'webfonts-reset' => 'পুনরায় আরম্ভ',
 134+ 'webfonts-help' => 'সাহায্য',
77135 );
78136
 137+/** Bishnupria Manipuri (ইমার ঠার/বিষ্ণুপ্রিয়া মণিপুরী)
 138+ * @author Usingha
 139+ */
 140+$messages['bpy'] = array(
 141+ 'webfonts' => 'ৱেবফন্টস',
 142+ 'webfonts-desc' => 'পাতাহাত ফন্ট নাপকর',
 143+ 'webfonts-load' => 'ফন্ট বাছ',
 144+ 'webfonts-reset' => 'বারো অকর',
 145+ 'webfonts-enable-preference' => 'ফন্ট নাপকরানিহান অকর (ৱেবফন্ট)',
 146+ 'webfonts-menu-tooltip' => 'পাতাহানরকা ফন্ট বাছ',
 147+ 'webfonts-help' => 'পাংলাক',
 148+);
 149+
79150 /** Breton (Brezhoneg)
80151 * @author Fulup
81152 * @author Y-M D
@@ -84,7 +155,12 @@
85156 'webfonts-desc' => "Ensoc'hañ a ra ar fontoù er pajennoù",
86157 'webfonts-load' => 'Diuzañ ar font',
87158 'webfonts-reset' => 'Adderaouekaat',
 159+ 'webfonts-enable-preference' => "Gweredekaat an ensoc'hañ fontoù (Fontoù Kenrouedad)",
88160 'webfonts-menu-tooltip' => 'Dibabit ur font evit ar bajenn',
 161+ 'webfonts-help' => 'Skoazell',
 162+ 'webfonts-preview-title' => 'Rakwelet ar fontoù',
 163+ 'webfonts-preview-download' => 'Pellgargañ',
 164+ 'webfonts-preview-installing-fonts-title' => 'Staliañ ar fontoù',
89165 );
90166
91167 /** Bosnian (Bosanski)
@@ -96,6 +172,26 @@
97173 'webfonts-load' => 'Odaberi font',
98174 );
99175
 176+/** Czech (Česky)
 177+ * @author Mormegil
 178+ * @author Utar
 179+ */
 180+$messages['cs'] = array(
 181+ 'webfonts' => 'WebFonts',
 182+ 'webfonts-desc' => 'Vkládání písem do stránek',
 183+ 'webfonts-load' => 'Vybrat písmo',
 184+ 'webfonts-reset' => 'Resetovat',
 185+ 'webfonts-enable-preference' => 'Povolit vkládání písem (WebFonts)',
 186+ 'webfonts-menu-tooltip' => 'Vybrat písmo pro tuto stránku',
 187+ 'webfonts-help' => 'Nápověda',
 188+ 'webfonts-preview-intro' => 'Tato stránka vám pomůže zobrazit náhled písem dostupných v rozšíření WebFonts a případně si je i stáhnout a nainstalovat do počítače.',
 189+ 'webfonts-preview-title' => 'Náhled písem',
 190+ 'webfonts-preview-download' => 'Stáhnout',
 191+ 'webfonts-preview-sampletext' => 'Příliš žluťoučký kůň úpěl ďábelské ódy.',
 192+ 'webfonts-preview-installing-fonts-title' => 'Instalace písem',
 193+ 'webfonts-preview-installing-fonts-text' => 'Písmo sí můžete stáhnout pomocí odkazu {{int:webfonts-preview-download}} zobrazeného výše. Postup instalace staženého písma do vašeho počítače najdete v [//mediawiki.org/wiki/Special:MyLanguage/Help:How_to_install_fonts dokumentaci]',
 194+);
 195+
100196 /** Danish (Dansk)
101197 * @author Peter Alberti
102198 */
@@ -105,20 +201,38 @@
106202 'webfonts-load' => 'Vælg skrifttype',
107203 'webfonts-reset' => 'Nulstil',
108204 'webfonts-enable-preference' => 'Aktiver integrering af skrifttyper (WebFonts)',
 205+ 'webfonts-menu-tooltip' => 'Vælg en skrifttype for siden',
 206+ 'webfonts-help' => 'Hjælp',
109207 );
110208
111209 /** German (Deutsch)
112210 * @author Kghbln
 211+ * @author Metalhead64
113212 */
114213 $messages['de'] = array(
115 - 'webfonts' => 'WebSchriftarten',
 214+ 'webfonts' => 'WebFonts',
116215 'webfonts-desc' => 'Ermöglicht die Schriftarteneinbettung in Seiten',
117216 'webfonts-load' => 'Schriftart auswählen',
118217 'webfonts-reset' => 'Zurücksetzen',
119218 'webfonts-enable-preference' => 'Schriftarteneinbettung aktivieren',
120219 'webfonts-menu-tooltip' => 'Eine Schriftart für die Seite auswählen.',
 220+ 'webfonts-help' => 'Hilfe',
 221+ 'webfonts-preview-intro' => 'Diese Seite hilft dir dabei, die durch die Erweiterung Webfonts verfügbaren Schriftarten in der Vorschau anzusehen und sie auf deinen Computer herunterzuladen sowie zu installieren.',
 222+ 'webfonts-preview-title' => 'Schriftartvorschau',
 223+ 'webfonts-preview-download' => 'Herunterladen',
 224+ 'webfonts-preview-sampletext' => 'Franz jagt im komplett verwahrlosten Taxi quer durch Bayern.',
 225+ 'webfonts-preview-installing-fonts-title' => 'Schriftarten installieren',
 226+ 'webfonts-preview-installing-fonts-text' => 'Du kannst eine Schriftart herunterladen, indem du oben rechts auf den Link „{{int:webfonts-preview-download}}“ klickst. Um die heruntergeladene Schriftart auf deinem Computer zu installieren, folge bitte [//mediawiki.org/wiki/Special:MyLanguage/Help:How_to_install_fonts diesen Hinweisen].',
121227 );
122228
 229+/** German (formal address) (‪Deutsch (Sie-Form)‬)
 230+ * @author Kghbln
 231+ */
 232+$messages['de-formal'] = array(
 233+ 'webfonts-preview-intro' => 'Diese Seite hilft Ihnen dabei, die durch die Erweiterung Webfonts verfügbaren Schriftarten in der Vorschau anzusehen und sie auf Ihren Computer herunterzuladen sowie zu installieren.',
 234+ 'webfonts-preview-installing-fonts-text' => 'Sie können eine Schriftart herunterladen, indem Sie oben rechts auf den Link „{{int:webfonts-preview-download}}“ klicken. Um die heruntergeladene Schriftart auf Ihrem Computer zu installieren, folgen Sie bitte [//mediawiki.org/wiki/Special:MyLanguage/Help:How_to_install_fonts diesen Hinweisen].',
 235+);
 236+
123237 /** Lower Sorbian (Dolnoserbski)
124238 * @author Michawiki
125239 */
@@ -129,21 +243,61 @@
130244 'webfonts-reset' => 'Slědk stajiś',
131245 'webfonts-enable-preference' => 'Zasajźenje pismow zmóžniś (WebFonts)',
132246 'webfonts-menu-tooltip' => 'Pismo za bok wubraś',
 247+ 'webfonts-help' => 'Pomoc',
133248 );
134249
 250+/** Greek (Ελληνικά)
 251+ * @author AK
 252+ */
 253+$messages['el'] = array(
 254+ 'webfonts' => 'WebFonts',
 255+ 'webfonts-desc' => 'Ενσωμάτωση γραμματοσειρών στις σελίδες',
 256+ 'webfonts-load' => 'Επιλέξτε γραμματοσειρά',
 257+ 'webfonts-reset' => 'Επαναφορά',
 258+ 'webfonts-enable-preference' => 'Ενεργοποίηση της ενσωμάτωσης γραμματοσειρών (WebFonts)',
 259+ 'webfonts-menu-tooltip' => 'Επιλέξτε γραμματοσειρά για τη σελίδα',
 260+ 'webfonts-help' => 'Βοήθεια',
 261+);
 262+
 263+/** Esperanto (Esperanto)
 264+ * @author Yekrats
 265+ */
 266+$messages['eo'] = array(
 267+ 'webfonts' => 'Retaj Tiparoj',
 268+ 'webfonts-desc' => 'Enmeti tiparojn en paĝoj',
 269+ 'webfonts-load' => 'Elekti tiparon',
 270+ 'webfonts-reset' => 'Restarigi',
 271+ 'webfonts-enable-preference' => 'Ŝalti enmetadon de tiparoj (WebFonts)',
 272+ 'webfonts-menu-tooltip' => 'Elektu tiparon por la paĝo',
 273+ 'webfonts-help' => 'Helpo',
 274+);
 275+
135276 /** Spanish (Español)
136277 * @author Fitoschido
 278+ * @author Imre
 279+ * @author Platonides
137280 */
138281 $messages['es'] = array(
139282 'webfonts' => 'WebFonts',
140283 'webfonts-desc' => 'Incrustar tipografías en las páginas',
141284 'webfonts-load' => 'Seleccionar tipografía',
142285 'webfonts-reset' => 'Restablecer',
 286+ 'webfonts-enable-preference' => 'Activar la incrustación de tipografías (WebFonts)',
 287+ 'webfonts-menu-tooltip' => 'Escoger una fuente para la página',
 288+ 'webfonts-help' => 'Ayuda',
143289 );
144290
 291+/** Basque (Euskara)
 292+ * @author An13sa
 293+ */
 294+$messages['eu'] = array(
 295+ 'webfonts-help' => 'Laguntza',
 296+);
 297+
145298 /** Persian (فارسی)
146299 * @author Ebraminio
147300 * @author Huji
 301+ * @author Rmashhadi
148302 * @author ZxxZxxZ
149303 */
150304 $messages['fa'] = array(
@@ -152,11 +306,28 @@
153307 'webfonts-load' => 'انتخاب قلم',
154308 'webfonts-reset' => 'بازنشانی',
155309 'webfonts-enable-preference' => 'فعال‌کردن جاسازی قلم (وب‌قلم)',
 310+ 'webfonts-menu-tooltip' => 'انتخاب قلم برای صفحه',
 311+ 'webfonts-help' => 'کمک',
156312 );
157313
 314+/** Finnish (Suomi)
 315+ * @author Nedergard
 316+ * @author Olli
 317+ */
 318+$messages['fi'] = array(
 319+ 'webfonts' => 'WebFonts',
 320+ 'webfonts-desc' => 'Upota fontit sivuille',
 321+ 'webfonts-load' => 'Valitse fontti',
 322+ 'webfonts-reset' => 'Nollaa',
 323+ 'webfonts-enable-preference' => 'Ota fonttien upotus käyttöön (WebFonts)',
 324+ 'webfonts-menu-tooltip' => 'Valitse sivun fontti',
 325+ 'webfonts-help' => 'Ohje',
 326+);
 327+
158328 /** French (Français)
159329 * @author Gomoko
160330 * @author IAlex
 331+ * @author Od1n
161332 * @author Sherbrooke
162333 */
163334 $messages['fr'] = array(
@@ -166,6 +337,13 @@
167338 'webfonts-reset' => 'Réinitialiser',
168339 'webfonts-enable-preference' => "Active l'incorporation des fontes (WebFonts)",
169340 'webfonts-menu-tooltip' => 'Sélectionnez une police pour la page',
 341+ 'webfonts-help' => 'Aide',
 342+ 'webfonts-preview-intro' => "Cette page vous aide à prévisualiser les polices disponibles dans l'extension WebFonts et éventuellement à les télécharger et les installer dans votre ordinateur.",
 343+ 'webfonts-preview-title' => 'Prévisualiser les polices',
 344+ 'webfonts-preview-download' => 'Télécharger',
 345+ 'webfonts-preview-sampletext' => 'Portez ce vieux whisky au juge blond qui fume',
 346+ 'webfonts-preview-installing-fonts-title' => 'Installation des polices',
 347+ 'webfonts-preview-installing-fonts-text' => 'Vous pouvez télécharger une police en utilisant le lien {{int:webfonts-preview-download}} ci-dessus. Pour installer la police téléchargée sur votre ordinateur, veuillez consulter [//mediawiki.org/wiki/Special:MyLanguage/Help:How_to_install_fonts cette documentation]',
170348 );
171349
172350 /** Franco-Provençal (Arpetan)
@@ -176,6 +354,9 @@
177355 'webfonts-desc' => 'Apond les polices a les pâges.',
178356 'webfonts-load' => 'Chouèsésséd una police',
179357 'webfonts-reset' => 'Tornar inicialisar',
 358+ 'webfonts-enable-preference' => 'Activar l’aponsa de les fontes (WebFonts)',
 359+ 'webfonts-menu-tooltip' => 'Chouèsésséd una police por la pâge',
 360+ 'webfonts-help' => 'Éde',
180361 );
181362
182363 /** Galician (Galego)
@@ -184,9 +365,16 @@
185366 $messages['gl'] = array(
186367 'webfonts' => 'WebFonts',
187368 'webfonts-desc' => 'Incorporar fontes nas páxinas',
188 - 'webfonts-load' => 'Seleccione a fonte',
 369+ 'webfonts-load' => 'Seleccione unha fonte',
189370 'webfonts-reset' => 'Restablecer',
190371 'webfonts-enable-preference' => 'Activar a incorporación de fontes (WebFonts)',
 372+ 'webfonts-menu-tooltip' => 'Seleccione unha fonte para a páxina',
 373+ 'webfonts-help' => 'Axuda',
 374+ 'webfonts-preview-intro' => 'Esta páxina axúdalle a ollar unha vista previa das fontes dispoñibles na extensión WebFonts e, opcionalmente, descargalas e instalalas no seu ordenador.',
 375+ 'webfonts-preview-title' => 'Vista previa das fontes',
 376+ 'webfonts-preview-download' => 'Descargar',
 377+ 'webfonts-preview-installing-fonts-title' => 'Instalación das fontes',
 378+ 'webfonts-preview-installing-fonts-text' => 'Pode descargar unha fonte mediante a ligazón "{{int:webfonts-preview-download}}" anterior. Para instalar a fonte descargada no seu ordenador consulte [//mediawiki.org/wiki/Special:MyLanguage/Help:How_to_install_fonts esta documentación]',
191379 );
192380
193381 /** Swiss German (Alemannisch)
@@ -217,9 +405,12 @@
218406 'webfonts-load' => 'בחירת גופן',
219407 'webfonts-reset' => 'ביטול גופן רשת',
220408 'webfonts-enable-preference' => 'הפעלה של הטמעת גופנים (גופני רשת)',
 409+ 'webfonts-menu-tooltip' => 'בחירת גופן לדף',
 410+ 'webfonts-help' => 'עזרה',
221411 );
222412
223413 /** Hindi (हिन्दी)
 414+ * @author Ansumang
224415 * @author Bhawani Gautam
225416 */
226417 $messages['hi'] = array(
@@ -228,6 +419,8 @@
229420 'webfonts-load' => 'फ़ॉन्ट का चयन करें',
230421 'webfonts-reset' => 'पुनर्स्थापित करें',
231422 'webfonts-enable-preference' => 'फ़ॉन्ट एम्बेडिंग (WebFonts) को सक्षम करें',
 423+ 'webfonts-menu-tooltip' => 'पृष्ठ के लिए फ़ॉन्ट का चयन करें',
 424+ 'webfonts-help' => 'सहायता',
232425 );
233426
234427 /** Upper Sorbian (Hornjoserbsce)
@@ -240,8 +433,26 @@
241434 'webfonts-reset' => 'Wróćo stajić',
242435 'webfonts-enable-preference' => 'Zasadźenje pismow zmóžnić (WebFonts)',
243436 'webfonts-menu-tooltip' => 'Pismo za stronu wubrać',
 437+ 'webfonts-help' => 'Pomoc',
 438+ 'webfonts-preview-title' => 'Přehlad pismow',
 439+ 'webfonts-preview-download' => 'Sćahnyć',
 440+ 'webfonts-preview-installing-fonts-title' => 'Pisma instalować',
244441 );
245442
 443+/** Hungarian (Magyar)
 444+ * @author Dj
 445+ * @author Misibacsi
 446+ */
 447+$messages['hu'] = array(
 448+ 'webfonts' => 'WebFonts',
 449+ 'webfonts-desc' => 'Fontok beágyazása a lapokba',
 450+ 'webfonts-load' => 'Válassza ki a betűtípus',
 451+ 'webfonts-reset' => 'Törlés',
 452+ 'webfonts-enable-preference' => 'Fontok beágyazása (WebFonts)',
 453+ 'webfonts-menu-tooltip' => 'Válassz egy fontot az oldalhoz',
 454+ 'webfonts-help' => 'Segítség',
 455+);
 456+
246457 /** Interlingua (Interlingua)
247458 * @author McDutchie
248459 */
@@ -252,6 +463,12 @@
253464 'webfonts-reset' => 'Reinitialisar',
254465 'webfonts-enable-preference' => 'Activar le incorporation de typos de litteras (WebFonts)',
255466 'webfonts-menu-tooltip' => 'Selige un typo de litteras pro le pagina',
 467+ 'webfonts-help' => 'Adjuta',
 468+ 'webfonts-preview-intro' => 'Iste pagina permitte previsualisar le typos de litteras disponibile in le extension WebFonts e, si desirate, discargar e installar los in tu computator.',
 469+ 'webfonts-preview-title' => 'Previsualisar le typos de litteras',
 470+ 'webfonts-preview-download' => 'Discargar',
 471+ 'webfonts-preview-installing-fonts-title' => 'Installar typos de litteras',
 472+ 'webfonts-preview-installing-fonts-text' => 'Tu pote discargar un typo de litteras usante le ligamine {{int:webfonts-preview-download}} hic supra. Pro installar le typo de litteras discargate in tu computator, per favor consulta [//mediawiki.org/wiki/Special:MyLanguage/Help:How_to_install_fonts iste documentation].',
256473 );
257474
258475 /** Indonesian (Bahasa Indonesia)
@@ -272,10 +489,13 @@
273490 'webfonts-desc' => 'Ikabil dagiti kita ti letra kadagiti panid',
274491 'webfonts-load' => 'Agpili ti kita ti letra',
275492 'webfonts-reset' => 'Isubli',
276 - 'webfonts-enable-preference' => 'Ipabalin ti pinagikabil ti kita ti letra (WebFonts)',
 493+ 'webfonts-enable-preference' => 'Pakabaelan na ti agikabil ti kita ti letra (WebFonts)',
 494+ 'webfonts-menu-tooltip' => 'Agpili ti kita ti letra para iti panid',
 495+ 'webfonts-help' => 'Tulong',
277496 );
278497
279498 /** Italian (Italiano)
 499+ * @author Aushulz
280500 * @author Beta16
281501 */
282502 $messages['it'] = array(
@@ -285,6 +505,7 @@
286506 'webfonts-reset' => 'Reimposta',
287507 'webfonts-enable-preference' => "Attiva l'incorporazione dei caratteri (WebFont)",
288508 'webfonts-menu-tooltip' => 'Seleziona un tipo di carattere per la pagina',
 509+ 'webfonts-help' => 'Aiuto',
289510 );
290511
291512 /** Japanese (日本語)
@@ -298,6 +519,13 @@
299520 'webfonts-reset' => 'リセット',
300521 );
301522
 523+/** Georgian (ქართული)
 524+ * @author ITshnik
 525+ */
 526+$messages['ka'] = array(
 527+ 'webfonts-help' => 'დახმარება',
 528+);
 529+
302530 /** Khmer (ភាសាខ្មែរ)
303531 * @author Lovekhmer
304532 * @author វ័ណថារិទ្ធ
@@ -310,6 +538,25 @@
311539 'webfonts-enable-preference' => 'ដាក់ពុម្ពអក្សរបង្កប់ចូល (WebFonts)',
312540 );
313541
 542+/** Korean (한국어)
 543+ * @author Kwj2772
 544+ */
 545+$messages['ko'] = array(
 546+ 'webfonts' => '웹 글꼴',
 547+ 'webfonts-desc' => '문서에 글꼴을 포함하기',
 548+ 'webfonts-load' => '글꼴 선택',
 549+ 'webfonts-reset' => '리셋',
 550+ 'webfonts-enable-preference' => '글꼴 임베딩 켜기 (WebFonts)',
 551+ 'webfonts-menu-tooltip' => '문서를 표시할 글꼴 선택',
 552+ 'webfonts-help' => '도움말',
 553+ 'webfonts-preview-intro' => '이 페이지는 WebFonts 확장 기능에서 제공하는 글꼴을 미리 보고 글꼴을 선택하여 컴퓨터에 내려받고 설치할 수 있도록 도와 줄 것입니다.',
 554+ 'webfonts-preview-title' => '글꼴 미리 보기',
 555+ 'webfonts-preview-download' => '다운로드',
 556+ 'webfonts-preview-sampletext' => '덧글은 통신 예절 지키면서 표현 자유 추구하는 방향으로.',
 557+ 'webfonts-preview-installing-fonts-title' => '글꼴 설치하기',
 558+ 'webfonts-preview-installing-fonts-text' => '위의 "{{int:webfonts-preview-download}}" 링크를 통해 글꼴을 내려받을 수 있습니다. 내려받은 글꼴을 컴퓨터에 설치하려면 [//mediawiki.org/wiki/Special:MyLanguage/Help:How_to_install_fonts 이 설명문서]를 참고하십시오.',
 559+);
 560+
314561 /** Colognian (Ripoarisch)
315562 * @author Purodha
316563 */
@@ -319,16 +566,34 @@
320567 'webfonts-load' => 'Schreff_Aat ußsöke',
321568 'webfonts-reset' => 'Zeröksäze',
322569 'webfonts-enable-preference' => 'Et Schreff_Aate en de Sigge enboue aanschallde ({{int:webfonts}})',
 570+ 'webfonts-menu-tooltip' => 'Donn en Schreff för di Sigg ußwähle.',
323571 );
324572
325573 /** Luxembourgish (Lëtzebuergesch)
326574 * @author Robby
327575 */
328576 $messages['lb'] = array(
 577+ 'webfonts-desc' => "D'Schrëften an d'Säiten abannen",
329578 'webfonts-load' => 'Buschtawen-Typ (Font) eraussichen',
330579 'webfonts-reset' => 'Zrécksetzen',
 580+ 'webfonts-menu-tooltip' => "Sicht eng Buschtawen-Zort fir d'Säit eraus",
 581+ 'webfonts-help' => 'Hëllef',
 582+ 'webfonts-preview-download' => 'Eroflueden',
331583 );
332584
 585+/** Limburgish (Limburgs)
 586+ * @author Ooswesthoesbes
 587+ */
 588+$messages['li'] = array(
 589+ 'webfonts' => 'WebFonts',
 590+ 'webfonts-desc' => 'Sloet fonts oppe pagina in',
 591+ 'webfonts-load' => 'Selecteer fonts',
 592+ 'webfonts-reset' => 'Stèl óbbenuids in',
 593+ 'webfonts-enable-preference' => 'Sjakel insloeting fonts aan (WebFonts)',
 594+ 'webfonts-menu-tooltip' => 'Selecteer fonts veure pagina',
 595+ 'webfonts-help' => 'Hölp',
 596+);
 597+
333598 /** Macedonian (Македонски)
334599 * @author Bjankuloski06
335600 */
@@ -339,29 +604,51 @@
340605 'webfonts-reset' => 'Врати',
341606 'webfonts-enable-preference' => 'Овозможи на вметнување на фонтови (WebFonts)',
342607 'webfonts-menu-tooltip' => 'Изберете фонт за страницата',
 608+ 'webfonts-help' => 'Помош',
 609+ 'webfonts-preview-intro' => 'На оваа страница можете да ги погледате фонтовите што ви се на располагање со додатокот WebFonts (со можност да ги преземете и инсталирате на вашиот сметач).',
 610+ 'webfonts-preview-title' => 'Преглед на фонтовите',
 611+ 'webfonts-preview-download' => 'Преземи',
 612+ 'webfonts-preview-sampletext' => 'Бучниов жолт џин ѕида куќа со фурна меѓу полиња за цреши, хмељ и грозје.',
 613+ 'webfonts-preview-installing-fonts-title' => 'Инсталација на фонотовите',
 614+ 'webfonts-preview-installing-fonts-text' => 'Можете да преземете фонт преку горенаведената врска {{int:webfonts-preview-download}}. За да го инсталирате на сметачот, погледајте ја [//mediawiki.org/wiki/Special:MyLanguage/Help:How_to_install_fonts?uselang=mk оваа документација]',
343615 );
344616
345617 /** Malayalam (മലയാളം)
346618 * @author Praveenp
347619 * @author Santhosh
 620+ * @author Vssun
348621 */
349622 $messages['ml'] = array(
350 - 'webfonts' => 'വെബ്ഫോണ്ടുകള്‍',
351 - 'webfonts-desc' => 'മീഡിയവിക്കി താളുകളില്‍ ഫോണ്ടുകള്‍ എംബെഡ് ചെയ്യുക',
352 - 'webfonts-load' => 'ഫോണ്ടുകള്‍',
 623+ 'webfonts' => 'വെബ്ഫോണ്ടുകൾ',
 624+ 'webfonts-desc' => 'മീഡിയവിക്കി താളുകളിൽ ഫോണ്ടുകൾ എംബെഡ് ചെയ്യുക',
 625+ 'webfonts-load' => 'ഫോണ്ടുകൾ',
353626 'webfonts-reset' => 'പഴയപടിയാക്കുക',
354627 'webfonts-enable-preference' => 'ഫോണ്ട് എംബെഡ് ചെയ്യുക.(വെബ്ഫോണ്ട്സ്)',
355 - 'webfonts-menu-tooltip' => 'താളിനുവേണ്ടി ഒരു ഫോണ്ട് തിരഞ്ഞെടുക്കുക',
 628+ 'webfonts-menu-tooltip' => 'ഈ താളിനുവേണ്ടി ഒരു ഫോണ്ട് തിരഞ്ഞെടുക്കുക',
356629 'webfonts-help' => 'സഹായം',
 630+ 'webfonts-preview-intro' => 'വെബ്ഫോണ്ട് എക്സ്റ്റന്‍ഷനിലുള്ള ഫോണ്ടുകള്‍ പരീക്ഷിച്ചുനോക്കി അവ നിങ്ങളുടെ കമ്പ്യൂട്ടറില്‍ ഇന്‍സ്റ്റാള്‍ ചെയ്യുന്നതിനു് ഈ താള്‍ സഹായിക്കുന്നു.',
 631+ 'webfonts-preview-title' => 'ഫോണ്ടുകള്‍ പരീക്ഷിച്ചുനോക്കുക',
 632+ 'webfonts-preview-download' => 'ഡൌണ്‍ലോഡ്',
 633+ 'webfonts-preview-sampletext' => 'തിരഞ്ഞെടുത്ത ഫോണ്ട് പരീക്ഷിച്ചു നോക്കാനായി ഇവിടെ നിങ്ങള്‍ക്കിഷ്ടമുള്ളതെഴുതാം.',
 634+ 'webfonts-preview-installing-fonts-title' => 'ഫോണ്ടുകള്‍ ഇന്‍സ്റ്റാള്‍ ചെയ്യുന്ന വിധം',
 635+ 'webfonts-preview-installing-fonts-text' => 'മുകളില്‍ കൊടുത്തിരിക്കുന്ന {{int:webfonts-preview-download}} കണ്ണി ഉപയോഗിച്ചു് നിങ്ങള്‍ക്കു് ഫോണ്ട് ഡൌണ്‍ലോഡ് ചെയ്യാം. അതിനു ശേഷം ഇന്‍സ്റ്റാള്‍ ചെയ്യുന്നതിനായി [//mediawiki.org/wiki/Special:MyLanguage/Help:How_to_install_fonts ഈ താള്‍ സഹായിച്ചേക്കും.]',
357636 );
358637
359638 /** Marathi (मराठी)
360639 * @author Htt
 640+ * @author Kaajawa
 641+ * @author Mahitgar
361642 */
362643 $messages['mr'] = array(
363644 'webfonts' => 'जालटंक',
364645 'webfonts-load' => 'टंक',
365646 'webfonts-reset' => 'पूर्ववत करा',
 647+ 'webfonts-enable-preference' => '(WebFonts) फॉंट अंतःस्थापन (एंबेडिंग) सक्षम करा',
 648+ 'webfonts-menu-tooltip' => 'पानासाठी टंक निवडा',
 649+ 'webfonts-help' => 'मदत',
 650+ 'webfonts-preview-download' => 'उतरवा',
 651+ 'webfonts-preview-sampletext' => 'The quick brown fox jumps over the lazy dog कुणी अनुवादाचे हे खरे आव्हान पेलू शकेल काय ? मराठी भाषेतील प्रत्येक अक्षर येईल आणि एकदाच येईल किमान सर्वाधिक अक्षरे येतील अशी वाक्य रचना हवी आहे. येथे बदल करण्याकरिता तुम्हाला ट्रांसलेटविकि डॉट नेट वर आधी आपले खाते उघडून अनुवाद करू देण्याची फॉर्मॅलिटी पार पाडावी लागेल.',
 652+ 'webfonts-preview-installing-fonts-title' => 'फॉंट इन्स्टॉलींग',
366653 );
367654
368655 /** Malay (Bahasa Melayu)
@@ -374,8 +661,31 @@
375662 'webfonts-reset' => 'Set semula',
376663 'webfonts-enable-preference' => 'Hidupkan pembenaman fon (WebFonts)',
377664 'webfonts-menu-tooltip' => 'Pilih fon untuk laman ini',
 665+ 'webfonts-help' => 'Bantuan',
 666+ 'webfonts-preview-intro' => 'Laman ini membantu anda untuk mempralihat fon-fon yang terdapat dalam sambungan WebFonts, serta memilih untuk memuat turun dan memasang fon-fon itu dalam komputer anda.',
 667+ 'webfonts-preview-title' => 'Pralihat fon',
 668+ 'webfonts-preview-download' => 'Muat turun',
 669+ 'webfonts-preview-sampletext' => 'Taufik ialah seorang pakar virus dan jurusinar X yang rajin membaca buku, gemar menonton wayang dan pandai menghafaz al-Quran.',
 670+ 'webfonts-preview-installing-fonts-title' => 'Pemasangan Fon',
 671+ 'webfonts-preview-installing-fonts-text' => 'Anda boleh memuat turun fon dengan menggunakan pautan {{int:webfonts-preview-download}} yang disediakan di atas. Untuk memasang fon yang dimuat turun ke dalam komputer anda, sila rujuk [//mediawiki.org/wiki/Special:MyLanguage/Help:How_to_install_fonts dokumentasi ini]',
378672 );
379673
 674+/** Maltese (Malti)
 675+ * @author Chrisportelli
 676+ */
 677+$messages['mt'] = array(
 678+ 'webfonts-load' => 'Agħżel it-tipa',
 679+);
 680+
 681+/** Norwegian (bokmål)‬ (‪Norsk (bokmål)‬)
 682+ * @author Nghtwlkr
 683+ */
 684+$messages['nb'] = array(
 685+ 'webfonts' => 'WebFonts',
 686+ 'webfonts-desc' => 'Bygg inn fonter i sider',
 687+ 'webfonts-load' => 'Velg font',
 688+);
 689+
380690 /** Nepali (नेपाली)
381691 * @author Bhawani Gautam
382692 */
@@ -399,30 +709,43 @@
400710 'webfonts-reset' => 'Opnieuw instellen',
401711 'webfonts-enable-preference' => 'Lettertypen insluiten inschakelen (WebFonts)',
402712 'webfonts-menu-tooltip' => 'Selecteer een lettertype voor de pagina',
 713+ 'webfonts-help' => 'Hulp',
 714+ 'webfonts-preview-intro' => 'Via deze pagina kunt u de lettertypen bekijken die beschikbaar zijn in de uitbreiding WebFonts en als u dat wilt, kunt u ze downloaden en installeren op uw computer.',
 715+ 'webfonts-preview-title' => 'Voorvertoning lettertypen',
 716+ 'webfonts-preview-download' => 'Downloaden',
 717+ 'webfonts-preview-sampletext' => "Pa's wijze lynx bezag vroom het fikse aquaduct",
 718+ 'webfonts-preview-installing-fonts-title' => 'Lettertypen installeren',
 719+ 'webfonts-preview-installing-fonts-text' => 'U kunt een lettertype downloaden via de verwijzing "{{int:webfonts-preview-download}}" hierboven. Bekijk de [//mediawiki.org/wiki/Special:MyLanguage/Help:How_to_install_fonts documentatie] om het gedownloade lettertype te installeren op uw computer.',
403720 );
404721
405 -/** Norwegian (bokmål)‬ (‪Norsk (bokmål)‬)
406 - * @author Nghtwlkr
407 - */
408 -$messages['no'] = array(
409 - 'webfonts' => 'WebFonts',
410 - 'webfonts-desc' => 'Bygg inn fonter i sider',
411 - 'webfonts-load' => 'Velg font',
412 -);
413 -
414722 /** Oriya (ଓଡ଼ିଆ)
 723+ * @author Jnanaranjan Sahu
415724 * @author Odisha1
416725 * @author Psubhashish
417726 */
418727 $messages['or'] = array(
 728+ 'webfonts' => 'ୱେବଫଣ୍ଟ',
 729+ 'webfonts-desc' => 'ପୃଷ୍ଠାରେ ଏମବେଡ଼ କରାଯାଇଥିବା ଫଣ୍ଟ',
 730+ 'webfonts-load' => 'ଫଣ୍ଟ ବାଛିବେ',
419731 'webfonts-reset' => 'ପୁନସ୍ଥାପନ',
 732+ 'webfonts-enable-preference' => 'ଫଣ୍ଟ ଏମବେଡ଼ କରିବା ସଚଳ କରିବେ (ୱେବ ଫଣ୍ଟ)',
 733+ 'webfonts-menu-tooltip' => 'ଏହି ପୃଷ୍ଠା ପାଇଁ ଏକ ଫଣ୍ଟ ବାଛିବେ',
 734+ 'webfonts-help' => 'ସହଯୋଗ',
 735+ 'webfonts-preview-download' => 'ଡାଉନଲୋଡ',
420736 );
421737
422738 /** Polish (Polski)
 739+ * @author Olgak85
423740 * @author Woytecr
424741 */
425742 $messages['pl'] = array(
 743+ 'webfonts' => 'WebFonts',
 744+ 'webfonts-desc' => 'Czcionki osadzone na stronach',
426745 'webfonts-load' => 'Wybierz czcionkę',
 746+ 'webfonts-reset' => 'Reset',
 747+ 'webfonts-enable-preference' => 'Włącz osadzanie czcionek',
 748+ 'webfonts-menu-tooltip' => 'Wybierz czcionkę dla strony',
 749+ 'webfonts-help' => 'Pomoc',
427750 );
428751
429752 /** Piedmontese (Piemontèis)
@@ -435,6 +758,14 @@
436759 'webfonts-load' => "Ch'a selession-a un tipo ëd caràter",
437760 'webfonts-reset' => 'Spian-a',
438761 'webfonts-enable-preference' => "Abilité l'anseriment ëd tipo ëd caràter (Caràter dl'aragnà)",
 762+ 'webfonts-menu-tooltip' => 'Selessioné un tipo ëd caràter për la pàgina',
 763+ 'webfonts-help' => 'Agiut',
 764+ 'webfonts-preview-intro' => "Sta pagina a giuta a mosté ij caràter disponìbij ant l'estension WebFonts e opsionalment a dëscarieje e anstaleje an tò calcolador.",
 765+ 'webfonts-preview-title' => 'Preuva ij caràter',
 766+ 'webfonts-preview-download' => 'Dëscaria',
 767+ 'webfonts-preview-sampletext' => 'La cita volp maròn a sàuta dlà dël can fòl',
 768+ 'webfonts-preview-installing-fonts-title' => 'Anstalé Caràter',
 769+ 'webfonts-preview-installing-fonts-text' => 'It peule dëscarié un caròter an dovrand ël colegament {{int:webfonts-preview-download}} dàit dzora. Për anstalé ël caròter dëscarià an tò calcolador, për piasè fa arferiment a [//mediawiki.org/wiki/Special:MyLanguage/Help:How_to_install_fonts sta documentassion]',
439770 );
440771
441772 /** Pashto (پښتو)
@@ -442,6 +773,8 @@
443774 */
444775 $messages['ps'] = array(
445776 'webfonts-load' => 'ليکبڼه ټاکل',
 777+ 'webfonts-reset' => 'بياايښودل',
 778+ 'webfonts-help' => 'لارښود',
446779 );
447780
448781 /** Portuguese (Português)
@@ -454,14 +787,43 @@
455788 'webfonts-reset' => 'Reiniciar',
456789 );
457790
 791+/** Brazilian Portuguese (Português do Brasil)
 792+ * @author Rafael Vargas
 793+ */
 794+$messages['pt-br'] = array(
 795+ 'webfonts' => 'WebFonts',
 796+ 'webfonts-desc' => 'Incorporar as fontes nas páginas',
 797+ 'webfonts-load' => 'Selecione a fonte',
 798+ 'webfonts-reset' => 'Restaurar',
 799+ 'webfonts-enable-preference' => 'Habilitar incorporação de fontes (WebFonts)',
 800+ 'webfonts-menu-tooltip' => 'Selecione uma fonte para a página',
 801+ 'webfonts-help' => 'Ajuda',
 802+);
 803+
458804 /** Romanian (Română)
 805+ * @author Firilacroco
459806 * @author Minisarm
460807 */
461808 $messages['ro'] = array(
 809+ 'webfonts-reset' => 'Resetează',
462810 'webfonts-enable-preference' => 'Activează încorporarea fonturilor (WebFonts)',
463811 );
464812
 813+/** Tarandíne (Tarandíne)
 814+ * @author Joetaras
 815+ */
 816+$messages['roa-tara'] = array(
 817+ 'webfonts' => 'WebFonts',
 818+ 'webfonts-desc' => "'Ngapsule le font jndr'à pàgene",
 819+ 'webfonts-load' => "Scacchie 'u font",
 820+ 'webfonts-reset' => 'Azzere',
 821+ 'webfonts-enable-preference' => "Abbilite 'u 'ngapsulamende de le font (WebFonts)",
 822+ 'webfonts-menu-tooltip' => "Scacchie 'nu font pa pàgene",
 823+ 'webfonts-help' => 'Ajute',
 824+);
 825+
465826 /** Russian (Русский)
 827+ * @author Eugrus
466828 * @author Lockal
467829 * @author Александр Сигачёв
468830 */
@@ -470,9 +832,13 @@
471833 'webfonts-desc' => 'Позволяет встраивать шрифты на страницы',
472834 'webfonts-load' => 'Выбрать шрифт',
473835 'webfonts-reset' => 'Сбросить',
 836+ 'webfonts-enable-preference' => 'Включить внедрение шрифтов (WebFonts)',
 837+ 'webfonts-menu-tooltip' => 'Выберите шрифт для страницы',
 838+ 'webfonts-help' => 'Справка',
474839 );
475840
476841 /** Sanskrit (संस्कृतम्)
 842+ * @author Ansumang
477843 * @author Bhawani Gautam
478844 */
479845 $messages['sa'] = array(
@@ -481,8 +847,29 @@
482848 'webfonts-load' => 'वर्णानि चयनं करोतु',
483849 'webfonts-reset' => 'पुनर्स्थापयतु',
484850 'webfonts-enable-preference' => 'वर्णस्थापना (वेबफ़ॉन्ट) सक्रियं करोतु',
 851+ 'webfonts-help' => 'साहाय्यम्',
485852 );
486853
 854+/** Sicilian (Sicilianu)
 855+ * @author Aushulz
 856+ */
 857+$messages['scn'] = array(
 858+ 'webfonts-help' => 'Aiutu',
 859+);
 860+
 861+/** Sinhala (සිංහල)
 862+ * @author පසිඳු කාවින්ද
 863+ */
 864+$messages['si'] = array(
 865+ 'webfonts' => 'ජාලක්ෂර',
 866+ 'webfonts-desc' => 'පිටු මත එබ්බවූ අක්ෂර',
 867+ 'webfonts-load' => 'අක්ෂරය තෝරන්න',
 868+ 'webfonts-reset' => 'ප්‍රත්‍යාරම්භ කරන්න',
 869+ 'webfonts-enable-preference' => 'අක්ෂර එබ්බවීම සක්‍රිය කරන්න (ජලාක්ෂර)',
 870+ 'webfonts-menu-tooltip' => 'පිටුව සඳහා අක්ෂරයක් තෝරන්න',
 871+ 'webfonts-help' => 'උදව්',
 872+);
 873+
487874 /** Slovenian (Slovenščina)
488875 * @author Dbc334
489876 */
@@ -492,6 +879,8 @@
493880 'webfonts-load' => 'Izberite pisavo',
494881 'webfonts-reset' => 'Ponastavi',
495882 'webfonts-enable-preference' => 'Omogoči vdelavo pisav (SpletnePisave)',
 883+ 'webfonts-menu-tooltip' => 'Izberite pisavo strani',
 884+ 'webfonts-help' => 'Pomoč',
496885 );
497886
498887 /** Serbian (Cyrillic script) (‪Српски (ћирилица)‬)
@@ -501,8 +890,19 @@
502891 'webfonts' => 'Веб фонтови',
503892 'webfonts-desc' => 'Угради фонтове на страницама',
504893 'webfonts-load' => 'Изабери фонт',
 894+ 'webfonts-reset' => 'Поништи',
 895+ 'webfonts-enable-preference' => 'Омогући уграђивање фонта (WebFonts)',
 896+ 'webfonts-menu-tooltip' => 'Изаберите фонт за страницу',
 897+ 'webfonts-help' => 'Помоћ',
505898 );
506899
 900+/** Serbian (Latin script) (‪Srpski (latinica)‬) */
 901+$messages['sr-el'] = array(
 902+ 'webfonts' => 'Veb fontovi',
 903+ 'webfonts-desc' => 'Ugradi fontove na stranicama',
 904+ 'webfonts-load' => 'Izaberi font',
 905+);
 906+
507907 /** Swedish (Svenska)
508908 * @author WikiPhoenix
509909 */
@@ -511,6 +911,9 @@
512912 'webfonts-desc' => 'Bäddar in typsnitt i sidor',
513913 'webfonts-load' => 'Välj typsnitt',
514914 'webfonts-reset' => 'Återställ',
 915+ 'webfonts-enable-preference' => 'Aktivera typsnittsinbäddning (WebFonts)',
 916+ 'webfonts-menu-tooltip' => 'Välj ett typsnitt för sidan',
 917+ 'webfonts-help' => 'Hjälp',
515918 );
516919
517920 /** Tamil (தமிழ்)
@@ -523,9 +926,17 @@
524927 'webfonts-load' => 'எழுத்துரு மாற்ற',
525928 'webfonts-reset' => 'இயல்பு எழுத்துரு',
526929 'webfonts-enable-preference' => 'எழுத்துரு புதைத்தல் (இணைய எழுத்துருக்களை) பயன்படுத்துக',
 930+ 'webfonts-menu-tooltip' => 'பக்கத்திற்கான எழுத்துருவை தேர்வு செய்க',
527931 'webfonts-help' => 'உதவி',
528932 );
529933
 934+/** Telugu (తెలుగు)
 935+ * @author Veeven
 936+ */
 937+$messages['te'] = array(
 938+ 'webfonts-help' => 'సహాయం',
 939+);
 940+
530941 /** Tagalog (Tagalog)
531942 * @author AnakngAraw
532943 */
@@ -544,19 +955,87 @@
545956 );
546957
547958 /** Ukrainian (Українська)
 959+ * @author A1
548960 * @author Microcell
 961+ * @author Тест
549962 */
550963 $messages['uk'] = array(
 964+ 'webfonts' => 'WebFonts',
 965+ 'webfonts-desc' => 'Дозволяє вбудовувати шрифти у сторінки',
551966 'webfonts-load' => 'Обрати шрифт',
 967+ 'webfonts-reset' => 'Скинути',
 968+ 'webfonts-menu-tooltip' => 'Виберіть шрифт для сторінки',
 969+ 'webfonts-help' => 'Допомога',
 970+ 'webfonts-preview-download' => 'Завантажити',
552971 );
553972
 973+/** Veps (Vepsän kel')
 974+ * @author Игорь Бродский
 975+ */
 976+$messages['vep'] = array(
 977+ 'webfonts' => 'WebFonts',
 978+ 'webfonts-load' => 'Valiče šrift',
 979+ 'webfonts-menu-tooltip' => 'Valiče šrift lehtpolen täht',
 980+ 'webfonts-help' => 'Abu',
 981+);
 982+
554983 /** Vietnamese (Tiếng Việt)
555984 * @author Minh Nguyen
 985+ * @author Vinhtantran
556986 */
557987 $messages['vi'] = array(
558988 'webfonts' => 'Phông chữ Web',
559989 'webfonts-desc' => 'Nhúng phông chữ vào các trang',
560990 'webfonts-load' => 'Chọn phông chữ',
561991 'webfonts-reset' => 'Mặc định lại',
 992+ 'webfonts-enable-preference' => 'Bật các phông chữ được nhúng vào (WebFonts)',
 993+ 'webfonts-menu-tooltip' => 'Chọn phông chữ để sử dụng trong trang',
 994+ 'webfonts-help' => 'Trợ giúp',
562995 );
563996
 997+/** Yiddish (ייִדיש)
 998+ * @author Imre
 999+ */
 1000+$messages['yi'] = array(
 1001+ 'webfonts-help' => 'הילף',
 1002+);
 1003+
 1004+/** Simplified Chinese (‪中文(简体)‬)
 1005+ * @author Anakmalaysia
 1006+ * @author Liangent
 1007+ */
 1008+$messages['zh-hans'] = array(
 1009+ 'webfonts' => 'WebFonts',
 1010+ 'webfonts-desc' => '在页面中嵌入字体',
 1011+ 'webfonts-load' => '选择字体',
 1012+ 'webfonts-reset' => '重置',
 1013+ 'webfonts-enable-preference' => '启用字体嵌入(WebFonts)',
 1014+ 'webfonts-menu-tooltip' => '为本页选择字体',
 1015+ 'webfonts-help' => '帮助',
 1016+ 'webfonts-preview-intro' => '本页面可以帮助您预览在WebFonts扩展可用的字体,并可选下载并安装字体。',
 1017+ 'webfonts-preview-title' => '预览字体',
 1018+ 'webfonts-preview-download' => '下载',
 1019+ 'webfonts-preview-sampletext' => '平雪迎骨水直',
 1020+ 'webfonts-preview-installing-fonts-title' => '安装字体',
 1021+ 'webfonts-preview-installing-fonts-text' => '您可以使用上面给出的{{int:webfonts-preview-download}}链接下载字体。要安装在您的电脑上下载的字体,请参阅[//mediawiki.org/wiki/Special:MyLanguage/Help:How_to_install_fonts 此文档]。',
 1022+);
 1023+
 1024+/** Traditional Chinese (‪中文(繁體)‬)
 1025+ * @author Anakmalaysia
 1026+ */
 1027+$messages['zh-hant'] = array(
 1028+ 'webfonts' => 'WebFonts',
 1029+ 'webfonts-desc' => '在頁面中嵌入字體',
 1030+ 'webfonts-load' => '選擇字體',
 1031+ 'webfonts-reset' => '重置',
 1032+ 'webfonts-enable-preference' => '啟用字體嵌入(WebFonts)',
 1033+ 'webfonts-menu-tooltip' => '為本頁選擇字體',
 1034+ 'webfonts-help' => '幫助',
 1035+ 'webfonts-preview-intro' => '本頁面可以幫助您預覽在WebFonts擴展可用的字體,並可選下載並安裝字體。',
 1036+ 'webfonts-preview-title' => '預覽字體',
 1037+ 'webfonts-preview-download' => '下載',
 1038+ 'webfonts-preview-sampletext' => '平雪迎骨水直',
 1039+ 'webfonts-preview-installing-fonts-title' => '安裝字體',
 1040+ 'webfonts-preview-installing-fonts-text' => '您可以使用上面給出的{{int:webfonts-preview-download}}連結下載字體。要安裝在您的電腦上下載的字體,請參閱[//mediawiki.org/wiki/Special:MyLanguage/Help:How_to_install_fonts 此文檔]。',
 1041+);
 1042+
Index: branches/wmf/1.18wmf1/extensions/WebFonts/WebFonts.php
@@ -21,6 +21,7 @@
2222 $wgExtensionCredits['parserhook'][] = array(
2323 'path' => __FILE__,
2424 'name' => 'WebFonts',
 25+ 'version' => '1.0',
2526 'author' => array( 'Santhosh Thottingal', 'Niklas Laxström' ),
2627 'url' => 'https://www.mediawiki.org/wiki/Extension:WebFonts',
2728 'descriptionmsg' => 'webfonts-desc',
@@ -30,17 +31,22 @@
3132
3233 // Internationalization
3334 $wgExtensionMessagesFiles['WebFonts'] = "$dir/WebFonts.i18n.php";
 35+$wgExtensionMessagesFiles['WebFontsAlias'] = "$dir/WebFonts.alias.php";
3436
3537 // Register auto load for the page class
3638 $wgAutoloadClasses['WebFontsHooks'] = "$dir/WebFonts.hooks.php";
 39+$wgAutoloadClasses['SpecialWebFonts'] = "$dir/SpecialWebFonts.php";
3740
3841 $wgHooks['BeforePageDisplay'][] = 'WebFontsHooks::addModules';
3942 $wgHooks['GetPreferences'][] = 'WebFontsHooks::addPreference';
4043 $wgHooks['UserGetDefaultOptions'][] = 'WebFontsHooks::addDefaultOptions';
4144 $wgHooks['ResourceLoaderGetConfigVars'][] = 'WebFontsHooks::addConfig';
4245
43 -$wgWebFontsEnabledByDefault = true;
 46+$wgWebFontsEnabledByDefault = true;
4447
 48+$wgSpecialPages['WebFonts'] = 'SpecialWebFonts';
 49+$wgSpecialPageGroups['WebFonts'] = 'wiki';
 50+
4551 $wgResourceModules['ext.webfonts.init'] = array(
4652 'scripts' => 'resources/ext.webfonts.init.js',
4753 'localBasePath' => $dir,
@@ -60,10 +66,22 @@
6167 'remoteExtPath' => 'WebFonts',
6268 'messages' => array(
6369 'webfonts-load',
64 - 'webfonts-reset',
 70+ 'webfonts-reset',
6571 'webfonts-menu-tooltip',
6672 'webfonts-help',
6773 ),
68 - 'dependencies' => 'jquery.cookie',
 74+ 'dependencies' => array(
 75+ 'jquery.cookie',
 76+ 'mediawiki.util',
 77+ ),
6978 'position' => 'top',
7079 );
 80+
 81+$wgResourceModules['ext.webfonts.preview'] = array(
 82+ 'scripts' => 'resources/ext.webfonts.preview.js',
 83+ 'styles' => 'resources/ext.webfonts.preview.css',
 84+ 'localBasePath' => $dir,
 85+ 'remoteExtPath' => 'WebFonts',
 86+ 'dependencies' => 'ext.webfonts.core',
 87+ 'position' => 'top',
 88+);
Index: branches/wmf/1.18wmf1/extensions/WebFonts/SpecialWebFonts.php
@@ -0,0 +1,72 @@
 2+<?php
 3+/**
 4+ * Contains logic for special page Special:WebFonts
 5+ *
 6+ * @file
 7+ * @author Santhosh Thottingal
 8+ * @copyright Copyright © 2012 Santhosh Thottingal
 9+ * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later
 10+ */
 11+
 12+class SpecialWebFonts extends SpecialPage {
 13+ public function __construct() {
 14+ parent::__construct( 'WebFonts' );
 15+ }
 16+
 17+ public function execute( $params ) {
 18+ global $wgOut, $wgLang;
 19+ $this->out = $wgOut;
 20+ $this->lang = $wgLang->getCode();
 21+ if ( isset( $params ) ) {
 22+ $this->lang = $params;
 23+ }
 24+ $wgOut->addModules( 'ext.webfonts.preview' );
 25+ $this->setHeaders();
 26+ $this->out->setPageTitle( wfMsg( 'webfonts' ) );
 27+ $this->out->addWikiMsg( 'webfonts-preview-intro' );
 28+ $this->showPreviewForm();
 29+ }
 30+
 31+ protected function showPreviewForm() {
 32+ $this->out->wrapWikiMsg( '==$1==', 'webfonts-preview-title' ) ;
 33+ $this->out->addHtml( $this->showToolbar() );
 34+ $editArea = Html::Element( 'div', array( 'id' => 'webfonts-preview-area' , 'contenteditable' => 'true' ) ,
 35+ wfMsg( 'webfonts-preview-sampletext' ) ) ;
 36+ $this->out->addHtml( $editArea );
 37+ $this->out->wrapWikiMsg( '==$1==', 'webfonts-preview-installing-fonts-title' ) ;
 38+ $this->out->addWikiMsg( 'webfonts-preview-installing-fonts-text' );
 39+ }
 40+
 41+ protected function showToolbar() {
 42+ $langSelector = Xml::languageSelector( $this->lang );
 43+
 44+ $fontSelector = new XmlSelect();
 45+ $fontSelector->setAttribute( 'id', 'webfonts-font-chooser' );
 46+
 47+ $sizeSelector = new XmlSelect();
 48+ $sizeSelector->setAttribute( 'id', 'webfonts-size-chooser' );
 49+ for ( $size = 8; $size <= 28; $size += 2 ) {
 50+ $sizeSelector->addOption( $size , $size );
 51+ }
 52+ $sizeSelector->setDefault( 16 );
 53+
 54+ $bold = Html::Element( 'button', array( 'id' => 'webfonts-preview-bold' ) , 'B' );
 55+
 56+ $italic = Html::Element( 'button', array( 'id' => 'webfonts-preview-italic' ) , 'I' );
 57+
 58+ $underline = Html::Element( 'button', array( 'id' => 'webfonts-preview-underline' ) , 'U' );
 59+
 60+ $download = Html::Element( 'a', array( 'id' => 'webfonts-preview-download', 'href' => '#' ) ,
 61+ wfMsg( 'webfonts-preview-download' ) );
 62+
 63+ return Html::openElement( 'div', array( 'id' => 'webfonts-preview-toolbar' ) )
 64+ . $langSelector[1]
 65+ . $fontSelector->getHtml()
 66+ . $sizeSelector->getHtml()
 67+ . $bold
 68+ . $italic
 69+ . $underline
 70+ . $download
 71+ . Html::closeElement( 'div' );
 72+ }
 73+}
Property changes on: branches/wmf/1.18wmf1/extensions/WebFonts/SpecialWebFonts.php
___________________________________________________________________
Added: svn:eol-style
174 + native
Added: svn:keywords
275 + Id

Status & tagging log