summaryrefslogtreecommitdiff
path: root/extensions/WikiEditor
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2014-02-28 08:36:29 +0100
committerPierre Schmitz <pierre@archlinux.de>2014-02-28 08:36:29 +0100
commita4edbfa031eb4cd72678051f1510afde4f77951e (patch)
tree76cef11b1a13538c8982a7491dbbf7324d4a7b2a /extensions/WikiEditor
parent1b65fa2a5f4c48b02ceda934e9c1aee2d03ce453 (diff)
Update to MediaWiki 1.22.3
Diffstat (limited to 'extensions/WikiEditor')
-rw-r--r--extensions/WikiEditor/.jshintignore2
-rw-r--r--extensions/WikiEditor/.jshintrc32
-rw-r--r--extensions/WikiEditor/COPYING339
-rw-r--r--extensions/WikiEditor/WikiEditor.i18n.php465
-rw-r--r--extensions/WikiEditor/modules/ext.wikiEditor.dialogs.js7
-rw-r--r--extensions/WikiEditor/modules/ext.wikiEditor.highlight.js3
-rw-r--r--extensions/WikiEditor/modules/ext.wikiEditor.js3
-rw-r--r--extensions/WikiEditor/modules/ext.wikiEditor.preview.js3
-rw-r--r--extensions/WikiEditor/modules/ext.wikiEditor.previewDialog.js3
-rw-r--r--extensions/WikiEditor/modules/ext.wikiEditor.publish.js3
-rw-r--r--extensions/WikiEditor/modules/ext.wikiEditor.templateEditor.js19
-rw-r--r--extensions/WikiEditor/modules/ext.wikiEditor.templates.js19
-rw-r--r--extensions/WikiEditor/modules/ext.wikiEditor.tests.toolbar.js16
-rw-r--r--extensions/WikiEditor/modules/ext.wikiEditor.toc.js3
-rw-r--r--extensions/WikiEditor/modules/ext.wikiEditor.toolbar.hideSig.js4
-rw-r--r--extensions/WikiEditor/modules/ext.wikiEditor.toolbar.js3
-rw-r--r--extensions/WikiEditor/modules/images/toolbar/format-bold-hy.pngbin0 -> 1675 bytes
-rw-r--r--extensions/WikiEditor/modules/images/toolbar/format-italic-hy.pngbin0 -> 1475 bytes
-rw-r--r--extensions/WikiEditor/modules/jquery.wikiEditor.css3
-rw-r--r--extensions/WikiEditor/modules/jquery.wikiEditor.dialogs.config.js59
-rw-r--r--extensions/WikiEditor/modules/jquery.wikiEditor.dialogs.js34
-rw-r--r--extensions/WikiEditor/modules/jquery.wikiEditor.highlight.js41
-rw-r--r--extensions/WikiEditor/modules/jquery.wikiEditor.iframe.js202
-rw-r--r--extensions/WikiEditor/modules/jquery.wikiEditor.js61
-rw-r--r--extensions/WikiEditor/modules/jquery.wikiEditor.preview.js15
-rw-r--r--extensions/WikiEditor/modules/jquery.wikiEditor.previewDialog.js15
-rw-r--r--extensions/WikiEditor/modules/jquery.wikiEditor.publish.js13
-rw-r--r--extensions/WikiEditor/modules/jquery.wikiEditor.templateEditor.js137
-rw-r--r--extensions/WikiEditor/modules/jquery.wikiEditor.templates.js51
-rw-r--r--extensions/WikiEditor/modules/jquery.wikiEditor.toc.js136
-rw-r--r--extensions/WikiEditor/modules/jquery.wikiEditor.toolbar.config.js7
-rw-r--r--extensions/WikiEditor/modules/jquery.wikiEditor.toolbar.js53
32 files changed, 1208 insertions, 543 deletions
diff --git a/extensions/WikiEditor/.jshintignore b/extensions/WikiEditor/.jshintignore
index 66a218b5..b97a47d3 100644
--- a/extensions/WikiEditor/.jshintignore
+++ b/extensions/WikiEditor/.jshintignore
@@ -1,2 +1,4 @@
# upstream lib from Google
modules/contentCollector.js
+# messy
+modules/jquery.wikiEditor.iframe.js
diff --git a/extensions/WikiEditor/.jshintrc b/extensions/WikiEditor/.jshintrc
index 64cd5087..5d335e32 100644
--- a/extensions/WikiEditor/.jshintrc
+++ b/extensions/WikiEditor/.jshintrc
@@ -1,9 +1,33 @@
{
+ /* Common */
+
+ // Enforcing
+ "camelcase": true,
+ "curly": true,
+ "eqeqeq": true,
+ "immed": true,
+ "latedef": true,
+ "newcap": true,
+ "noarg": true,
+ "noempty": true,
+ "nonew": true,
+ "quotmark": "single",
+ "trailing": true,
+ "undef": true,
+ "unused": true,
+ // Legacy
+ "onevar": true,
+
+ /* Local */
+
+ // Relaxing
+ "loopfunc": true,
+ "multistr": true,
+ // Environment
+ "browser": true,
+
"predef": [
"mediaWiki",
"jQuery"
- ],
- "browser": true,
- "smarttabs": true,
- "multistr": true
+ ]
}
diff --git a/extensions/WikiEditor/COPYING b/extensions/WikiEditor/COPYING
new file mode 100644
index 00000000..d159169d
--- /dev/null
+++ b/extensions/WikiEditor/COPYING
@@ -0,0 +1,339 @@
+ GNU GENERAL PUBLIC LICENSE
+ Version 2, June 1991
+
+ Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+ Preamble
+
+ The licenses for most software are designed to take away your
+freedom to share and change it. By contrast, the GNU General Public
+License is intended to guarantee your freedom to share and change free
+software--to make sure the software is free for all its users. This
+General Public License applies to most of the Free Software
+Foundation's software and to any other program whose authors commit to
+using it. (Some other Free Software Foundation software is covered by
+the GNU Lesser General Public License instead.) You can apply it to
+your programs, too.
+
+ When we speak of free software, we are referring to freedom, not
+price. Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+this service if you wish), that you receive source code or can get it
+if you want it, that you can change the software or use pieces of it
+in new free programs; and that you know you can do these things.
+
+ To protect your rights, we need to make restrictions that forbid
+anyone to deny you these rights or to ask you to surrender the rights.
+These restrictions translate to certain responsibilities for you if you
+distribute copies of the software, or if you modify it.
+
+ For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must give the recipients all the rights that
+you have. You must make sure that they, too, receive or can get the
+source code. And you must show them these terms so they know their
+rights.
+
+ We protect your rights with two steps: (1) copyright the software, and
+(2) offer you this license which gives you legal permission to copy,
+distribute and/or modify the software.
+
+ Also, for each author's protection and ours, we want to make certain
+that everyone understands that there is no warranty for this free
+software. If the software is modified by someone else and passed on, we
+want its recipients to know that what they have is not the original, so
+that any problems introduced by others will not reflect on the original
+authors' reputations.
+
+ Finally, any free program is threatened constantly by software
+patents. We wish to avoid the danger that redistributors of a free
+program will individually obtain patent licenses, in effect making the
+program proprietary. To prevent this, we have made it clear that any
+patent must be licensed for everyone's free use or not licensed at all.
+
+ The precise terms and conditions for copying, distribution and
+modification follow.
+
+ GNU GENERAL PUBLIC LICENSE
+ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+
+ 0. This License applies to any program or other work which contains
+a notice placed by the copyright holder saying it may be distributed
+under the terms of this General Public License. The "Program", below,
+refers to any such program or work, and a "work based on the Program"
+means either the Program or any derivative work under copyright law:
+that is to say, a work containing the Program or a portion of it,
+either verbatim or with modifications and/or translated into another
+language. (Hereinafter, translation is included without limitation in
+the term "modification".) Each licensee is addressed as "you".
+
+Activities other than copying, distribution and modification are not
+covered by this License; they are outside its scope. The act of
+running the Program is not restricted, and the output from the Program
+is covered only if its contents constitute a work based on the
+Program (independent of having been made by running the Program).
+Whether that is true depends on what the Program does.
+
+ 1. You may copy and distribute verbatim copies of the Program's
+source code as you receive it, in any medium, provided that you
+conspicuously and appropriately publish on each copy an appropriate
+copyright notice and disclaimer of warranty; keep intact all the
+notices that refer to this License and to the absence of any warranty;
+and give any other recipients of the Program a copy of this License
+along with the Program.
+
+You may charge a fee for the physical act of transferring a copy, and
+you may at your option offer warranty protection in exchange for a fee.
+
+ 2. You may modify your copy or copies of the Program or any portion
+of it, thus forming a work based on the Program, and copy and
+distribute such modifications or work under the terms of Section 1
+above, provided that you also meet all of these conditions:
+
+ a) You must cause the modified files to carry prominent notices
+ stating that you changed the files and the date of any change.
+
+ b) You must cause any work that you distribute or publish, that in
+ whole or in part contains or is derived from the Program or any
+ part thereof, to be licensed as a whole at no charge to all third
+ parties under the terms of this License.
+
+ c) If the modified program normally reads commands interactively
+ when run, you must cause it, when started running for such
+ interactive use in the most ordinary way, to print or display an
+ announcement including an appropriate copyright notice and a
+ notice that there is no warranty (or else, saying that you provide
+ a warranty) and that users may redistribute the program under
+ these conditions, and telling the user how to view a copy of this
+ License. (Exception: if the Program itself is interactive but
+ does not normally print such an announcement, your work based on
+ the Program is not required to print an announcement.)
+
+These requirements apply to the modified work as a whole. If
+identifiable sections of that work are not derived from the Program,
+and can be reasonably considered independent and separate works in
+themselves, then this License, and its terms, do not apply to those
+sections when you distribute them as separate works. But when you
+distribute the same sections as part of a whole which is a work based
+on the Program, the distribution of the whole must be on the terms of
+this License, whose permissions for other licensees extend to the
+entire whole, and thus to each and every part regardless of who wrote it.
+
+Thus, it is not the intent of this section to claim rights or contest
+your rights to work written entirely by you; rather, the intent is to
+exercise the right to control the distribution of derivative or
+collective works based on the Program.
+
+In addition, mere aggregation of another work not based on the Program
+with the Program (or with a work based on the Program) on a volume of
+a storage or distribution medium does not bring the other work under
+the scope of this License.
+
+ 3. You may copy and distribute the Program (or a work based on it,
+under Section 2) in object code or executable form under the terms of
+Sections 1 and 2 above provided that you also do one of the following:
+
+ a) Accompany it with the complete corresponding machine-readable
+ source code, which must be distributed under the terms of Sections
+ 1 and 2 above on a medium customarily used for software interchange; or,
+
+ b) Accompany it with a written offer, valid for at least three
+ years, to give any third party, for a charge no more than your
+ cost of physically performing source distribution, a complete
+ machine-readable copy of the corresponding source code, to be
+ distributed under the terms of Sections 1 and 2 above on a medium
+ customarily used for software interchange; or,
+
+ c) Accompany it with the information you received as to the offer
+ to distribute corresponding source code. (This alternative is
+ allowed only for noncommercial distribution and only if you
+ received the program in object code or executable form with such
+ an offer, in accord with Subsection b above.)
+
+The source code for a work means the preferred form of the work for
+making modifications to it. For an executable work, complete source
+code means all the source code for all modules it contains, plus any
+associated interface definition files, plus the scripts used to
+control compilation and installation of the executable. However, as a
+special exception, the source code distributed need not include
+anything that is normally distributed (in either source or binary
+form) with the major components (compiler, kernel, and so on) of the
+operating system on which the executable runs, unless that component
+itself accompanies the executable.
+
+If distribution of executable or object code is made by offering
+access to copy from a designated place, then offering equivalent
+access to copy the source code from the same place counts as
+distribution of the source code, even though third parties are not
+compelled to copy the source along with the object code.
+
+ 4. You may not copy, modify, sublicense, or distribute the Program
+except as expressly provided under this License. Any attempt
+otherwise to copy, modify, sublicense or distribute the Program is
+void, and will automatically terminate your rights under this License.
+However, parties who have received copies, or rights, from you under
+this License will not have their licenses terminated so long as such
+parties remain in full compliance.
+
+ 5. You are not required to accept this License, since you have not
+signed it. However, nothing else grants you permission to modify or
+distribute the Program or its derivative works. These actions are
+prohibited by law if you do not accept this License. Therefore, by
+modifying or distributing the Program (or any work based on the
+Program), you indicate your acceptance of this License to do so, and
+all its terms and conditions for copying, distributing or modifying
+the Program or works based on it.
+
+ 6. Each time you redistribute the Program (or any work based on the
+Program), the recipient automatically receives a license from the
+original licensor to copy, distribute or modify the Program subject to
+these terms and conditions. You may not impose any further
+restrictions on the recipients' exercise of the rights granted herein.
+You are not responsible for enforcing compliance by third parties to
+this License.
+
+ 7. If, as a consequence of a court judgment or allegation of patent
+infringement or for any other reason (not limited to patent issues),
+conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License. If you cannot
+distribute so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you
+may not distribute the Program at all. For example, if a patent
+license would not permit royalty-free redistribution of the Program by
+all those who receive copies directly or indirectly through you, then
+the only way you could satisfy both it and this License would be to
+refrain entirely from distribution of the Program.
+
+If any portion of this section is held invalid or unenforceable under
+any particular circumstance, the balance of the section is intended to
+apply and the section as a whole is intended to apply in other
+circumstances.
+
+It is not the purpose of this section to induce you to infringe any
+patents or other property right claims or to contest validity of any
+such claims; this section has the sole purpose of protecting the
+integrity of the free software distribution system, which is
+implemented by public license practices. Many people have made
+generous contributions to the wide range of software distributed
+through that system in reliance on consistent application of that
+system; it is up to the author/donor to decide if he or she is willing
+to distribute software through any other system and a licensee cannot
+impose that choice.
+
+This section is intended to make thoroughly clear what is believed to
+be a consequence of the rest of this License.
+
+ 8. If the distribution and/or use of the Program is restricted in
+certain countries either by patents or by copyrighted interfaces, the
+original copyright holder who places the Program under this License
+may add an explicit geographical distribution limitation excluding
+those countries, so that distribution is permitted only in or among
+countries not thus excluded. In such case, this License incorporates
+the limitation as if written in the body of this License.
+
+ 9. The Free Software Foundation may publish revised and/or new versions
+of the General Public License from time to time. Such new versions will
+be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+Each version is given a distinguishing version number. If the Program
+specifies a version number of this License which applies to it and "any
+later version", you have the option of following the terms and conditions
+either of that version or of any later version published by the Free
+Software Foundation. If the Program does not specify a version number of
+this License, you may choose any version ever published by the Free Software
+Foundation.
+
+ 10. If you wish to incorporate parts of the Program into other free
+programs whose distribution conditions are different, write to the author
+to ask for permission. For software which is copyrighted by the Free
+Software Foundation, write to the Free Software Foundation; we sometimes
+make exceptions for this. Our decision will be guided by the two goals
+of preserving the free status of all derivatives of our free software and
+of promoting the sharing and reuse of software generally.
+
+ NO WARRANTY
+
+ 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
+FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
+OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
+PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
+OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
+TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
+PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
+REPAIR OR CORRECTION.
+
+ 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
+REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
+INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
+OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
+TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
+YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
+PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
+POSSIBILITY OF SUCH DAMAGES.
+
+ END OF TERMS AND CONDITIONS
+
+ How to Apply These Terms to Your New Programs
+
+ If you develop a new program, and you want it to be of the greatest
+possible use to the public, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these terms.
+
+ To do so, attach the following notices to the program. It is safest
+to attach them to the start of each source file to most effectively
+convey the exclusion of warranty; and each file should have at least
+the "copyright" line and a pointer to where the full notice is found.
+
+ <one line to give the program's name and a brief idea of what it does.>
+ Copyright (C) <year> <name of author>
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License along
+ with this program; if not, write to the Free Software Foundation, Inc.,
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+
+Also add information on how to contact you by electronic and paper mail.
+
+If the program is interactive, make it output a short notice like this
+when it starts in an interactive mode:
+
+ Gnomovision version 69, Copyright (C) year name of author
+ Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
+ This is free software, and you are welcome to redistribute it
+ under certain conditions; type `show c' for details.
+
+The hypothetical commands `show w' and `show c' should show the appropriate
+parts of the General Public License. Of course, the commands you use may
+be called something other than `show w' and `show c'; they could even be
+mouse-clicks or menu items--whatever suits your program.
+
+You should also get your employer (if you work as a programmer) or your
+school, if any, to sign a "copyright disclaimer" for the program, if
+necessary. Here is a sample; alter the names:
+
+ Yoyodyne, Inc., hereby disclaims all copyright interest in the program
+ `Gnomovision' (which makes passes at compilers) written by James Hacker.
+
+ <signature of Ty Coon>, 1 April 1989
+ Ty Coon, President of Vice
+
+This General Public License does not permit incorporating your program into
+proprietary programs. If your program is a subroutine library, you may
+consider it more useful to permit linking proprietary applications with the
+library. If this is what you want to do, use the GNU Lesser General
+Public License instead of this License.
diff --git a/extensions/WikiEditor/WikiEditor.i18n.php b/extensions/WikiEditor/WikiEditor.i18n.php
index 26f1e2ca..fa3c1b0b 100644
--- a/extensions/WikiEditor/WikiEditor.i18n.php
+++ b/extensions/WikiEditor/WikiEditor.i18n.php
@@ -334,6 +334,7 @@ I guess that "feature-providing modules" means the same as "modules providing fe
{{Identical|Publish}}",
'wikieditor-publish-dialog-goback' => 'Button that closes the dialog that opens when the user clicks the Publish button.
{{Identical|Go back}}',
+ 'wikieditor-template-editor-dialog-title' => '{{Identical|Edit template}}',
'wikieditor-template-editor-dialog-submit' => '{{Identical|Update}}',
'wikieditor-template-editor-dialog-cancel' => '{{Identical|Cancel}}',
'wikieditor-toc-preference' => "Option at [[Special:Preferences]], tab ''{{int:prefs-editing}}''",
@@ -1281,6 +1282,7 @@ $1:Eixemplo.jpg|Piet_de_foto_2',
/** Old English (Ænglisc)
* @author Gott wisst
+ * @author Shirayuki
* @author Wōdenhelm
*/
$messages['ang'] = array(
@@ -4032,6 +4034,7 @@ $1:Cuntuh.jpg|Judul2',
);
/** Bengali (বাংলা)
+ * @author Aftab1995
* @author Bellayet
* @author Leemon2010
* @author Nasir8891
@@ -4149,8 +4152,8 @@ $messages['bn'] = array(
'wikieditor-toolbar-tool-subscript-example' => 'সাবস্ক্রিপ্ট লেখা',
'wikieditor-toolbar-group-insert' => 'যোগ করো',
'wikieditor-toolbar-tool-gallery' => 'ছবির গ্যালারী',
- 'wikieditor-toolbar-tool-gallery-example' => '$1:Example.jpg|ক্যাপশন১
-$1:Example.jpg|ক্যাপশন২',
+ 'wikieditor-toolbar-tool-gallery-example' => '$1:উদাহরণ.jpg|ক্যাপশন১
+$1:উদাহরণ.jpg|ক্যাপশন২',
'wikieditor-toolbar-tool-newline' => 'নতুন লাইন',
'wikieditor-toolbar-tool-table' => 'ছক',
'wikieditor-toolbar-tool-table-example-old' => '-
@@ -5069,7 +5072,7 @@ Voleu convertir-lo en un enllaç intern?",
'wikieditor-toolbar-tool-link-empty' => 'No heu entrat res per enllaçar.',
'wikieditor-toolbar-tool-file' => 'Fitxer incrustat',
'wikieditor-toolbar-tool-file-example' => 'Exemple.png',
- 'wikieditor-toolbar-tool-file-title' => 'Insereix arxiu',
+ 'wikieditor-toolbar-tool-file-title' => 'Inserir un fitxer',
'wikieditor-toolbar-file-target' => 'Nom del fitxer:',
'wikieditor-toolbar-file-caption' => 'Títol:',
'wikieditor-toolbar-file-size' => 'Mida:',
@@ -5077,7 +5080,7 @@ Voleu convertir-lo en un enllaç intern?",
'wikieditor-toolbar-file-default' => '(per defecte)',
'wikieditor-toolbar-file-format' => 'Format:',
'wikieditor-toolbar-file-format-none' => 'cap',
- 'wikieditor-toolbar-tool-file-insert' => 'Inserta',
+ 'wikieditor-toolbar-tool-file-insert' => 'Insereix',
'wikieditor-toolbar-tool-file-cancel' => 'Cancel·la',
'wikieditor-toolbar-tool-reference' => 'Referència',
'wikieditor-toolbar-tool-reference-example' => 'Inseriu la nota al peu aquí',
@@ -5251,8 +5254,8 @@ $1:Example.jpg|Peu2',
* @author Умар
*/
$messages['ce'] = array(
- 'wikieditor' => 'Викийозан рéдоккхучечохь аллсам чулоцург',
- 'wikieditor-desc' => 'Аьтто бо тlе хуттучо, викийозан аъ ишта кхечу харжамна рéдоккхучечохь аллсам чулоцучо',
+ 'wikieditor' => 'Викийоза тадаран шоьйра интерфейс',
+ 'wikieditor-desc' => 'Тадарш даран шоьйра интерфейс латайо кхин дукху фукцеш а',
'wikieditor-wikitext-tab' => 'Викийоза',
'wikieditor-loading' => 'Чуйолуш',
'wikieditor-preview-preference' => 'Латайé хьалха муха ю хьажар дуьхь дуьхьал',
@@ -5265,7 +5268,7 @@ $messages['ce'] = array(
'wikieditor-publish-preference' => 'Латайé цхьац ког бокхуш чутохар',
'wikieditor-publish-button-publish' => 'Нахангайта',
'wikieditor-publish-button-cancel' => 'Цаоьшу',
- 'wikieditor-publish-dialog-title' => 'Нахангайта оцу кхолламехь {{SITENAME}}',
+ 'wikieditor-publish-dialog-title' => '{{SITENAME}} проектехь арахецар',
'wikieditor-publish-dialog-summary' => 'Хийцамах лаьцна (доц язде хlу хийцам бина ахьа):',
'wikieditor-publish-dialog-minor' => 'Жим хийцам',
'wikieditor-publish-dialog-watch' => 'Тергам бé хlокху агlон',
@@ -5279,41 +5282,42 @@ $messages['ce'] = array(
'wikieditor-toc-preference' => 'Латедé коьрта дерг шавигарна аттонца',
'wikieditor-toc-show' => 'Гайта коьртехь дерг',
'wikieditor-toc-hide' => 'Къайлахьо коьртехь дерг',
- 'wikieditor-toolbar' => 'Рéдоккху меттиг',
- 'wikieditor-toolbar-desc' => 'Рéдоккху меттиг гlоле лелорца',
+ 'wikieditor-toolbar' => 'Тадаран меттиг',
+ 'wikieditor-toolbar-desc' => 'Тадаран меттиг гӀоле лелорца',
'wikieditor-toolbar-preference' => 'Латайé гlоле йолу тадар',
- 'wikieditor-toolbar-dialogs-preference' => 'Латайé йозан хьажориг йуьллург, таблийцан аъ кхин хlумнашна', # Fuzzy
+ 'wikieditor-toolbar-dialogs-preference' => 'Латайé йозан хьажораг йуьллург, таблицан а кхин хӀумнашна а',
'wikieditor-toolbar-loading' => 'Чуйолуш…',
'wikieditor-toolbar-tool-bold' => 'Дерстино',
'wikieditor-toolbar-tool-bold-example' => 'Дерстино до йоза',
'wikieditor-toolbar-tool-italic' => 'Сетта',
'wikieditor-toolbar-tool-italic-example' => 'Сеттан до йоза',
- 'wikieditor-toolbar-tool-ilink' => 'Чоьхьа хьажориг',
+ 'wikieditor-toolbar-tool-ilink' => 'Чоьхьа хьажораг',
'wikieditor-toolbar-tool-ilink-example' => 'Хьажориган коьрта могlа',
'wikieditor-toolbar-tool-xlink' => 'Арахьара хьажораг (йиц ма йе хӀотталушерг http://)',
- 'wikieditor-toolbar-tool-xlink-example' => 'http://www.example.com хьажориг корта',
- 'wikieditor-toolbar-tool-link' => 'Хьажориг',
- 'wikieditor-toolbar-tool-link-title' => 'Чуйилла хьажориг',
- 'wikieditor-toolbar-tool-link-int' => 'Оцу вики агlон',
- 'wikieditor-toolbar-tool-link-int-target' => 'Хьажийна агlо йа URL:',
- 'wikieditor-toolbar-tool-link-int-target-tooltip' => 'Агlон цlе йа URL',
+ 'wikieditor-toolbar-tool-xlink-example' => 'http://www.example.com хьажораг корта',
+ 'wikieditor-toolbar-tool-link' => 'Хьажораг',
+ 'wikieditor-toolbar-tool-link-title' => 'Чуйилла хьажораг',
+ 'wikieditor-toolbar-tool-link-int' => 'Вики агӀоне',
+ 'wikieditor-toolbar-tool-link-int-target' => 'Хьажийна агӀо я URL:',
+ 'wikieditor-toolbar-tool-link-int-target-tooltip' => 'АгӀон цӀе я URL',
'wikieditor-toolbar-tool-link-int-text' => 'Гойтуш долу йоза:',
'wikieditor-toolbar-tool-link-int-text-tooltip' => 'Чудилла схьагайта дезаш долу йоза',
'wikieditor-toolbar-tool-link-ext' => 'Хьалхара агlон чохь',
- 'wikieditor-toolbar-tool-link-ext-target' => 'URL хьажоригаш:',
- 'wikieditor-toolbar-tool-link-ext-text' => 'Хьажориган йоза:',
- 'wikieditor-toolbar-tool-link-insert' => 'Чуйилла хьажориг',
+ 'wikieditor-toolbar-tool-link-ext-target' => 'URL хьажорагаш:',
+ 'wikieditor-toolbar-tool-link-ext-text' => 'Хьажораган йоза:',
+ 'wikieditor-toolbar-tool-link-insert' => 'Чуйилла хьажораг',
'wikieditor-toolbar-tool-link-cancel' => 'Цаоьшу',
'wikieditor-toolbar-tool-link-int-target-status-exists' => 'Ишта агlо йолш ю',
'wikieditor-toolbar-tool-link-int-target-status-notexists' => 'Ишта агlо яц',
'wikieditor-toolbar-tool-link-int-target-status-invalid' => 'Ца магайо цlе',
'wikieditor-toolbar-tool-link-int-target-status-external' => 'Арахьара хьажораг',
'wikieditor-toolbar-tool-link-int-target-status-loading' => 'Агlо ю яц хьоьжуш…',
+ 'wikieditor-toolbar-tool-link-int-target-status-disambig' => 'Дуккха маьӀнаш долу агӀонаш',
'wikieditor-toolbar-tool-link-int-invalid' => 'Гойтуш йолу цlе ца магайо.',
- 'wikieditor-toolbar-tool-link-lookslikeinternal' => 'Ахьа хоттийна URL кхечу вики-агlонан хьажоригах тера ю. Лаьий хьуна и хьажориг чоьхьарчех я?',
- 'wikieditor-toolbar-tool-link-lookslikeinternal-int' => 'Чоьхьа хьажориг',
+ 'wikieditor-toolbar-tool-link-lookslikeinternal' => 'Ахьа хоттийна URL кхечу вики-агӀонан хьажорагах тера ю. Лаьий хьуна и хьажораг чоьхьарчех я?',
+ 'wikieditor-toolbar-tool-link-lookslikeinternal-int' => 'Чоьхьа хьажораг',
'wikieditor-toolbar-tool-link-lookslikeinternal-ext' => 'Арахьара хьажораг',
- 'wikieditor-toolbar-tool-link-empty' => 'Ахьа ца гайтин мичхьа хьажойеза хьажориг.',
+ 'wikieditor-toolbar-tool-link-empty' => 'Ахьа ца гайтин мичхьа хьажойеза хьажораг.',
'wikieditor-toolbar-tool-file' => 'Чохь йолу файл',
'wikieditor-toolbar-tool-file-example' => 'Example.jpg',
'wikieditor-toolbar-tool-file-title' => 'Файл чуйиллар',
@@ -5322,6 +5326,7 @@ $messages['ce'] = array(
'wikieditor-toolbar-file-size' => 'Барам:',
'wikieditor-toolbar-file-float' => 'Нисдар:',
'wikieditor-toolbar-file-default' => '(Iад йитарца)',
+ 'wikieditor-toolbar-file-format-none' => 'цхьаа',
'wikieditor-toolbar-tool-file-insert' => 'Чудилла',
'wikieditor-toolbar-tool-file-cancel' => 'Цаоьшу',
'wikieditor-toolbar-tool-reference' => 'ТIетовжар',
@@ -5331,7 +5336,7 @@ $messages['ce'] = array(
'wikieditor-toolbar-tool-reference-insert' => 'Чудилла',
'wikieditor-toolbar-tool-reference-text' => 'ТIетовжаран йоза',
'wikieditor-toolbar-tool-signature' => 'Куьгтаlор хан хlоттош',
- 'wikieditor-toolbar-section-advanced' => 'Кхин тlе дукха',
+ 'wikieditor-toolbar-section-advanced' => 'Кхин тӀе',
'wikieditor-toolbar-tool-heading' => 'Корта',
'wikieditor-toolbar-tool-heading-1' => 'Локхалла 1',
'wikieditor-toolbar-tool-heading-2' => 'Локхалла 2',
@@ -5362,26 +5367,26 @@ $messages['ce'] = array(
'wikieditor-toolbar-tool-gallery' => 'Дуккха суьрташ',
'wikieditor-toolbar-tool-gallery-example' => '$1:Example.jpg|Цуьнах лаце1
$1:Example.jpg|Цуьнах лаце2',
- 'wikieditor-toolbar-tool-newline' => 'Керла могlа',
+ 'wikieditor-toolbar-tool-newline' => 'Керла могӀа',
'wikieditor-toolbar-tool-table' => 'Таблица',
'wikieditor-toolbar-tool-table-example-old' => '-
-! коьрта могlа 1
-! коьрта могlа 2
-! коьрта могlа 3
+! коьрта могӀа 1
+! коьрта могӀа 2
+! коьрта могӀа 3
|-
-| могlа 1, чоь 1
-| могlа 1, чоь 2
-| могlа 1, чоь 3
+| могӀа 1, чоь 1
+| могӀа 1, чоь 2
+| могӀа 1, чоь 3
|-
-| могlа 2, чоь 1
-| могlа 2, чоь 2
-| могlа 2, чоь 3',
+| могӀа 2, чоь 1
+| могӀа 2, чоь 2
+| могӀа 2, чоь 3',
'wikieditor-toolbar-tool-table-example-cell-text' => 'Чоьнан йоза',
'wikieditor-toolbar-tool-table-example-header' => 'Коьрта йоза',
'wikieditor-toolbar-tool-table-title' => 'Чуйилла таблица',
'wikieditor-toolbar-tool-table-dimensions-rows' => 'МогӀанаш',
'wikieditor-toolbar-tool-table-dimensions-columns' => 'Бlогlамаш',
- 'wikieditor-toolbar-tool-table-dimensions-header' => 'Тlетоха коьрта могlан могlа',
+ 'wikieditor-toolbar-tool-table-dimensions-header' => 'ТӀетоха коьрта могӀанан могӀа',
'wikieditor-toolbar-tool-table-wikitable' => 'Кечйеш дозанашца',
'wikieditor-toolbar-tool-table-sortable' => 'Листалуш йе таблица',
'wikieditor-toolbar-tool-table-example' => 'Чоьнан йоза',
@@ -5405,12 +5410,12 @@ $1:Example.jpg|Цуьнах лаце2',
'wikieditor-toolbar-tool-replace-success' => 'Балийна хийцам: $1.', # Fuzzy
'wikieditor-toolbar-tool-replace-emptysearch' => 'Ахьа ца гайтна хlу лаха деза.',
'wikieditor-toolbar-tool-replace-invalidregex' => 'Ахьа язйина цlе юх-юха нийса яц: $1',
- 'wikieditor-toolbar-section-characters' => 'Саболу куьцаш',
+ 'wikieditor-toolbar-section-characters' => 'Леррина символаш',
'wikieditor-toolbar-characters-page-latin' => 'Латинан',
'wikieditor-toolbar-characters-page-latinextended' => 'Латинан алсам',
'wikieditor-toolbar-characters-page-ipa' => 'ДАЭ (IPA)',
- 'wikieditor-toolbar-characters-page-symbols' => 'Саболурш',
- 'wikieditor-toolbar-characters-page-greek' => 'Гlайрхойн',
+ 'wikieditor-toolbar-characters-page-symbols' => 'Символаш',
+ 'wikieditor-toolbar-characters-page-greek' => 'Грекийн',
'wikieditor-toolbar-characters-page-cyrillic' => 'Кирилан',
'wikieditor-toolbar-characters-page-arabic' => 'Ӏарбийн',
'wikieditor-toolbar-characters-page-arabicextended' => 'Iаьрбийн шординарш',
@@ -5429,7 +5434,7 @@ $1:Example.jpg|Цуьнах лаце2',
'wikieditor-toolbar-help-heading-syntax' => 'Хlу йуьллу ахьа',
'wikieditor-toolbar-help-heading-result' => 'Хlу хуьлу хьуна',
'wikieditor-toolbar-help-page-format' => 'Бáрамхlоттор',
- 'wikieditor-toolbar-help-page-link' => 'Хьажоригаш',
+ 'wikieditor-toolbar-help-page-link' => 'Хьажорагаш',
'wikieditor-toolbar-help-page-heading' => 'Коьрта могlнаш',
'wikieditor-toolbar-help-page-list' => 'Могlамаш',
'wikieditor-toolbar-help-page-file' => 'Файлаш',
@@ -5444,7 +5449,7 @@ $1:Example.jpg|Цуьнах лаце2',
'wikieditor-toolbar-help-content-bolditalic-description' => 'Дерстино курсеттан',
'wikieditor-toolbar-help-content-bolditalic-syntax' => "'''''Дерстино курсеттан'''''",
'wikieditor-toolbar-help-content-bolditalic-result' => '<em><strong>Дерстино курсеттан</strong></em>',
- 'wikieditor-toolbar-help-content-ilink-description' => 'Чоьхьа хьажориг',
+ 'wikieditor-toolbar-help-content-ilink-description' => 'Чоьхьа хьажораг',
'wikieditor-toolbar-help-content-ilink-syntax' => '[[Агlонан коьрта могlа|Хьажориган йоза]]<br />[[Агlонан коьрта могlа]]',
'wikieditor-toolbar-help-content-ilink-result' => "<a href='#'>Хьажориган йоза</a><br /><a href='#'>Агlонан коьрта могlа</a>",
'wikieditor-toolbar-help-content-xlink-description' => 'Арахьара хьажораг',
@@ -5476,7 +5481,7 @@ $1:Example.jpg|Цуьнах лаце2',
'wikieditor-toolbar-help-content-reference-description' => 'Билгалдаккхар',
'wikieditor-toolbar-help-content-reference-syntax' => 'Агlонан йоза.&lt;ref name="test"&gt;[http://www.example.org Хьажориган йоза], кхин тlе дузуш йоза.&lt;/ref&gt;',
'wikieditor-toolbar-help-content-reference-result' => "Агlонан йоза.<sup><a href='#'>[1]</a></sup>",
- 'wikieditor-toolbar-help-content-rereference-description' => 'Кхин тlе лело изза хьажориг',
+ 'wikieditor-toolbar-help-content-rereference-description' => 'Кхин тӀе лело изза хьажораг',
'wikieditor-toolbar-help-content-rereference-result' => "Агlонан йоза<sup><a href='#'>[1]</a></sup>.",
'wikieditor-toolbar-help-content-showreferences-description' => 'Гайта билгалдаккхар',
'wikieditor-toolbar-help-content-showreferences-result' => "<ol class='references'><li id='cite_note-test-0'><b><a title='' href='#'>^</a></b> <a rel='nofollow' title='http://www.example.org' class='external text' href='#'>Хьажориган йоза</a>, кхин тlе дузуш йоза.</li></ol>",
@@ -5739,7 +5744,7 @@ $messages['co'] = array(
'wikieditor-toolbar-tool-heading-5' => 'Livellu 5',
);
-/** Czech (česky)
+/** Czech (čeština)
* @author Jkjk
* @author Kuvaly
* @author Littledogboy
@@ -5777,7 +5782,7 @@ $messages['cs'] = array(
'wikieditor-toolbar' => 'Editační panel nástrojů',
'wikieditor-toolbar-desc' => 'Editační panel nástrojů s vylepšenou použitelností',
'wikieditor-toolbar-preference' => 'Zapnout vylepšený panel nástrojů',
- 'wikieditor-toolbar-dialogs-preference' => 'Používat dialogy pro vkládání odkazů, tabulek atd.', # Fuzzy
+ 'wikieditor-toolbar-dialogs-preference' => 'Používat průvodce pro vkládání odkazů a tabulek i pro funkci hledání a nahrazování.',
'wikieditor-toolbar-hidesig' => 'Skrýt tlačítko podpisu na stránkách v hlavním jmenném prostoru',
'wikieditor-toolbar-loading' => 'Načítá se…',
'wikieditor-toolbar-tool-bold' => 'Tučně',
@@ -6048,7 +6053,7 @@ $messages['csb'] = array(
'wikieditor-toolbar-help-content-xlink-description' => 'Bùtnowé lënczi',
);
-/** Church Slavic (словѣ́ньскъ / ⰔⰎⰑⰂⰡⰐⰠⰔⰍⰟ)
+/** Church Slavic (словѣньскъ / ⰔⰎⰑⰂⰡⰐⰠⰔⰍⰟ)
* @author ОйЛ
*/
$messages['cu'] = array(
@@ -6131,7 +6136,7 @@ $messages['cy'] = array(
'wikieditor-toolbar' => 'Bar offer golygu',
'wikieditor-toolbar-desc' => 'Bar offer y dudalen olygu gyda gwelliannau defnyddioldeb',
'wikieditor-toolbar-preference' => "Defnyddio'r bar offer golygu estynedig",
- 'wikieditor-toolbar-dialogs-preference' => "Galluoger y dewin sy'n mewnosod cysylltau a thablau, ac sy'n gallu chwilio a disodli",
+ 'wikieditor-toolbar-dialogs-preference' => "Galluogi'r dewin sy'n mewnosod cysylltau a thablau, ac sy'n gallu chwilio a disodli",
'wikieditor-toolbar-hidesig' => "Cuddio'r botwm llofnodi rhag y tudalennau yn y prif barth",
'wikieditor-toolbar-loading' => "Wrthi'n llwytho...",
'wikieditor-toolbar-tool-bold' => 'Praff',
@@ -6861,9 +6866,11 @@ $1:Beispiel.jpg|Beschreibung2',
);
/** Swiss High German (Schweizer Hochdeutsch)
+ * @author Filzstift
* @author Geitost
*/
$messages['de-ch'] = array(
+ 'wikieditor-toolbar-dialogs-preference' => 'Assistenten zum Einfügen von Links und Tabellen sowie die Funktion «Suchen und Ersetzen» aktivieren',
'wikieditor-toolbar-tool-reference-example' => 'Fussnotentext hier einfügen',
'wikieditor-toolbar-tool-big' => 'Gross',
'wikieditor-toolbar-tool-big-example' => 'Grosser Text',
@@ -6892,6 +6899,7 @@ Möchten Sie daraus einen internen Link machen?',
/** Zazaki (Zazaki)
* @author Erdemaslancan
* @author Gorizon
+ * @author Marmase
* @author Mirzali
* @author Xoser
*/
@@ -6909,7 +6917,7 @@ $messages['diq'] = array(
'wikieditor-previewDialog-loading' => 'Ho bar keno...',
'wikieditor-publish-preference' => 'Game be game çap kerdişi a bike',
'wikieditor-publish-button-publish' => 'Vıla ke',
- 'wikieditor-publish-button-cancel' => 'Bıterkne',
+ 'wikieditor-publish-button-cancel' => 'Bıtexelne',
'wikieditor-publish-dialog-title' => '{{SITENAME}} rê çap ke',
'wikieditor-publish-dialog-summary' => 'Xulasayê vurnayişi (ser vurnayişê xo xulasa binuse):',
'wikieditor-publish-dialog-minor' => 'Vurnayişo qickek',
@@ -6943,13 +6951,13 @@ $messages['diq'] = array(
'wikieditor-toolbar-tool-link-int' => 'yew pelê wiki re',
'wikieditor-toolbar-tool-link-int-target' => 'sernameyê peli',
'wikieditor-toolbar-tool-link-int-target-tooltip' => 'Sernamey ya zi URL',
- 'wikieditor-toolbar-tool-link-int-text' => 'metnê gıreyi',
+ 'wikieditor-toolbar-tool-link-int-text' => 'Metnê asnayışi:',
'wikieditor-toolbar-tool-link-int-text-tooltip' => 'Nuştewo ke gani bımocniyo ey bınuse',
'wikieditor-toolbar-tool-link-ext' => 'yew keyepelê teberi re',
'wikieditor-toolbar-tool-link-ext-target' => "Greyê URL'i:",
'wikieditor-toolbar-tool-link-ext-text' => 'Metnê gri:',
'wikieditor-toolbar-tool-link-insert' => 'Gıre bıerz',
- 'wikieditor-toolbar-tool-link-cancel' => 'Bıterkne',
+ 'wikieditor-toolbar-tool-link-cancel' => 'Bıtexelne',
'wikieditor-toolbar-tool-link-int-target-status-exists' => 'pel esto',
'wikieditor-toolbar-tool-link-int-target-status-notexists' => 'pel çino',
'wikieditor-toolbar-tool-link-int-target-status-invalid' => 'Sernameyo xırab.',
@@ -6974,10 +6982,10 @@ $messages['diq'] = array(
'wikieditor-toolbar-file-format-none' => 'çıniyo',
'wikieditor-toolbar-tool-file-insert' => 'Têare ker',
'wikieditor-toolbar-tool-file-cancel' => 'Bıterkne',
- 'wikieditor-toolbar-tool-reference' => 'çıme',
+ 'wikieditor-toolbar-tool-reference' => 'Referans',
'wikieditor-toolbar-tool-reference-example' => 'metnê notê bınini tiya kerê',
'wikieditor-toolbar-tool-reference-cancel' => 'Bıtexelne',
- 'wikieditor-toolbar-tool-reference-title' => 'Referance de bike',
+ 'wikieditor-toolbar-tool-reference-title' => 'Referans dek',
'wikieditor-toolbar-tool-reference-insert' => 'de bike',
'wikieditor-toolbar-tool-reference-text' => 'Nusteyê Referansi',
'wikieditor-toolbar-tool-signature' => 'tamğayê imza ve zamani',
@@ -6992,13 +7000,13 @@ $messages['diq'] = array(
'wikieditor-toolbar-group-format' => 'Format',
'wikieditor-toolbar-tool-ulist' => 'listeya maddeya işaretıni',
'wikieditor-toolbar-tool-ulist-example' => 'unsuro listeya maddeya işaretıni',
- 'wikieditor-toolbar-tool-olist' => 'listeya numreyıni',
+ 'wikieditor-toolbar-tool-olist' => 'Listeya nımreyın',
'wikieditor-toolbar-tool-olist-example' => 'unsuro listeya numreyıni',
'wikieditor-toolbar-tool-indent' => 'Paragraf',
'wikieditor-toolbar-tool-indent-example' => 'Rêza paragrafi',
'wikieditor-toolbar-tool-nowiki' => 'Formetê wiki çıniyo',
'wikieditor-toolbar-tool-nowiki-example' => 'Ne-format nuşte itiya ra bıerz',
- 'wikieditor-toolbar-tool-redirect' => 'Hetenayış',
+ 'wikieditor-toolbar-tool-redirect' => 'Serçarnayış',
'wikieditor-toolbar-tool-redirect-example' => 'Nameyê pele ke hedef biyo',
'wikieditor-toolbar-tool-big' => 'gırd',
'wikieditor-toolbar-tool-big-example' => 'metno gırd',
@@ -7037,7 +7045,7 @@ $1:misal.jpg|nuşteyê resmi2',
'wikieditor-toolbar-tool-table-example' => 'metnê hucreyi',
'wikieditor-toolbar-tool-table-preview' => 'Verqayt',
'wikieditor-toolbar-tool-table-insert' => 'têare ker',
- 'wikieditor-toolbar-tool-table-cancel' => 'Bıterkne',
+ 'wikieditor-toolbar-tool-table-cancel' => 'Bıtexelne',
'wikieditor-toolbar-tool-table-toomany' => '1000 hucrara ziyed tablo eştış pê no mesaj mumkın niyo',
'wikieditor-toolbar-tool-table-invalidnumber' => 'şıma pê yew amaro meqbul o satır u estun cı nêkewti',
'wikieditor-toolbar-tool-table-zero' => 'tablo ya ke tede satır u estun çinibo şıma nêşkeni têare bıkeri',
@@ -7055,7 +7063,7 @@ $1:misal.jpg|nuşteyê resmi2',
'wikieditor-toolbar-tool-replace-success' => '$1 {{PLURAL:$1|yedeg|yedegi}} vıraziya.',
'wikieditor-toolbar-tool-replace-emptysearch' => 'şıma qey cıgêrayiş taway/çiyek nênuşt',
'wikieditor-toolbar-tool-replace-invalidregex' => 'ifadeya normal a ke şıma kwene cı meqbul niya: $1',
- 'wikieditor-toolbar-section-characters' => 'karakterê xususiyî',
+ 'wikieditor-toolbar-section-characters' => 'Karakterê xısusiy',
'wikieditor-toolbar-characters-page-latin' => 'Latin',
'wikieditor-toolbar-characters-page-latinextended' => 'latinkiya hêrabiyaye',
'wikieditor-toolbar-characters-page-ipa' => 'IPA',
@@ -7083,12 +7091,12 @@ $1:misal.jpg|nuşteyê resmi2',
'wikieditor-toolbar-help-heading-syntax' => 'o yo ke şıma nuşt',
'wikieditor-toolbar-help-heading-result' => 'o yo ke şıma gırewt',
'wikieditor-toolbar-help-page-format' => 'fesal dayiş/format',
- 'wikieditor-toolbar-help-page-link' => 'gıreyi',
+ 'wikieditor-toolbar-help-page-link' => 'Gırey',
'wikieditor-toolbar-help-page-heading' => 'sernameyi',
'wikieditor-toolbar-help-page-list' => 'Listey',
'wikieditor-toolbar-help-page-file' => 'dosyayi',
'wikieditor-toolbar-help-page-reference' => 'Çımey',
- 'wikieditor-toolbar-help-page-discussion' => 'werê-ameyiş/munaqeşa',
+ 'wikieditor-toolbar-help-page-discussion' => 'Werênayış',
'wikieditor-toolbar-help-content-italic-description' => 'italik',
'wikieditor-toolbar-help-content-italic-syntax' => "''metno italik''",
'wikieditor-toolbar-help-content-italic-result' => '<em>metno italik</em>',
@@ -7119,19 +7127,19 @@ $1:misal.jpg|nuşteyê resmi2',
'wikieditor-toolbar-help-content-ulist-description' => 'listeya işareti ya maddeyın',
'wikieditor-toolbar-help-content-ulist-syntax' => '* unsurê listeyi<br />* unsurê listeyi',
'wikieditor-toolbar-help-content-ulist-result' => '<ul><li>unsurê listeyi</li><li>unsurê listeyi</li></ul>',
- 'wikieditor-toolbar-help-content-olist-description' => 'listeya numreyın',
+ 'wikieditor-toolbar-help-content-olist-description' => 'Listeya nımreyın',
'wikieditor-toolbar-help-content-olist-syntax' => '# unsurê listeyi<br /># unsurê listeyi',
'wikieditor-toolbar-help-content-olist-result' => '<ol><li>unsurê listeyi</li><li>unsurê listeyi</li></ol>',
'wikieditor-toolbar-help-content-file-description' => 'dosyaya weradaye/nımıte',
'wikieditor-toolbar-help-content-file-syntax' => '[[$1:Example.png|thumb|Nuşteyê resîmî]]',
'wikieditor-toolbar-help-content-file-result' => "<div style='width:104px;' class='thumbinner'><a title='Caption text' class='image' href='#'><img height='50' width='100' border='0' class='thumbimage' src='$2/WikiEditor/modules/images/toolbar/example-image.png' alt=''/></a><div class='thumbcaption'><div class='magnify'><a title='Enlarge' class='internal' href='#'><img height='11' width='15' alt='' src='$1/common/images/magnify-clip.png'/></a></div>metnê resmi</div></div>",
- 'wikieditor-toolbar-help-content-reference-description' => 'çıme/referans',
+ 'wikieditor-toolbar-help-content-reference-description' => 'Referans',
'wikieditor-toolbar-help-content-reference-syntax' => 'metnê peli.&lt;ref name="tesel kerdış/cerebnayiş"&gt;[http://www.misal.org metnê gıreyi], zeylê metni.&lt;/ref&gt;',
'wikieditor-toolbar-help-content-reference-result' => "metnê peli.<sup><a href='#'>[1]</a></sup>",
'wikieditor-toolbar-help-content-rereference-description' => 'şuxulnayişê zeylê o çımeyi',
'wikieditor-toolbar-help-content-rereference-result' => "metnê peli.<sup><a href='#'>[1]</a></sup>",
'wikieditor-toolbar-help-content-showreferences-description' => 'çımeyi ramocın',
- 'wikieditor-toolbar-help-content-showreferences-result' => "<ol class='references'><li id='cite_note-test-0'><b><a title='' href='#'>^</a></b> <a rel='nofollow' title='http://www.misal.org' class='external text' href='#'>metnê gıreyi</a>, zeylê metni.</li></ol>",
+ 'wikieditor-toolbar-help-content-showreferences-result' => "<ol class='references'><li id='cite_note-test-0'><b><a title='' href='#'>^</a></b> <a rel='nofollow' title='http://www.misal.org' class='external text' href='#'>metnê gırey</a>, metno ilawe.</li></ol>",
'wikieditor-toolbar-help-content-signaturetimestamp-description' => 'pê tamğayê zemani imza eştış',
'wikieditor-toolbar-help-content-signaturetimestamp-result' => "<a href='#' title='{{#special:mypage}}'>nameyê karberi</a> (<a href='#' title='{{#special:mytalk}}'>mesaj</a>) 15:54, 10 Heziran 2009 (UTC)",
'wikieditor-toolbar-help-content-signature-description' => 'imza',
@@ -7176,7 +7184,7 @@ $messages['dsb'] = array(
'wikieditor-toolbar' => 'Wobźěłowańska rědowa kšoma',
'wikieditor-toolbar-desc' => 'Rědowa kšoma za wobźěłowanje bokow z pólěpšoneju wužywajobnosću',
'wikieditor-toolbar-preference' => 'Pólěpšonu wobźěłowańsku rědowu kšomu aktiwěrowaś',
- 'wikieditor-toolbar-dialogs-preference' => 'Dialogi za zasajźenje wótkazow, tabelow a hynakšego zmóžniś', # Fuzzy
+ 'wikieditor-toolbar-dialogs-preference' => 'Asistenty za zasajźenje wótkazow, tabelow a funkciju pytanja a wuměnjenja zmóžniś',
'wikieditor-toolbar-hidesig' => 'Pódpisowy tłočašk w bokach w głownem mjenjowem rumje schowaś',
'wikieditor-toolbar-loading' => 'Zacytujo se...',
'wikieditor-toolbar-tool-bold' => 'Tucny',
@@ -7204,6 +7212,7 @@ $messages['dsb'] = array(
'wikieditor-toolbar-tool-link-int-target-status-invalid' => 'Njepłaśiwy titel',
'wikieditor-toolbar-tool-link-int-target-status-external' => 'Eksterny wótkaz',
'wikieditor-toolbar-tool-link-int-target-status-loading' => 'Eksistenca boka se pśekontrolěrujo...',
+ 'wikieditor-toolbar-tool-link-int-target-status-disambig' => 'Bok wěcejzmysłowosći',
'wikieditor-toolbar-tool-link-int-invalid' => 'Titel, kótaryž sy pódał, jo njepłaśiwy.',
'wikieditor-toolbar-tool-link-lookslikeinternal' => 'URL, kótaryž sy pódał, wuglěda, ako by był za wótkaz k drugemu wikibokoju.
Coš jen do internego wótkaza psétwóriś?',
@@ -8463,7 +8472,7 @@ $messages['eu'] = array(
'wikieditor-toolbar-tool-xlink-example' => 'http://www.adibidea.com loturaren izenburua',
'wikieditor-toolbar-tool-link' => 'Lotura',
'wikieditor-toolbar-tool-link-title' => 'Sartu lotura',
- 'wikieditor-toolbar-tool-link-int' => 'Wiki orrialde batera',
+ 'wikieditor-toolbar-tool-link-int' => 'Wiki orri batera',
'wikieditor-toolbar-tool-link-int-target' => 'Orrialdearen izenburua:',
'wikieditor-toolbar-tool-link-int-target-tooltip' => 'Orriaren izenburua edo URL',
'wikieditor-toolbar-tool-link-int-text' => 'Lotutako testua:',
@@ -8665,7 +8674,7 @@ $messages['fa'] = array(
'wikieditor' => 'رابط ویرایش پیشرفته ویکی‌متن',
'wikieditor-desc' => 'یک رابط ویرایش پیشرفته ویکی‌متن و چندین پودمان دارای قابلیت فراهم می‌کند',
'wikieditor-wikitext-tab' => 'ویکی‌متن',
- 'wikieditor-loading' => 'در حال بارگیری',
+ 'wikieditor-loading' => 'در حال بارگیری...',
'wikieditor-preview-preference' => 'فعال‌سازی پیش‌نمایش کنار یک دیگر',
'wikieditor-preview-tab' => 'پیش‌نمایش',
'wikieditor-preview-changes-tab' => 'تغییرها',
@@ -8721,7 +8730,7 @@ $messages['fa'] = array(
'wikieditor-toolbar-tool-link-int-target-status-invalid' => 'عنوان نادرست',
'wikieditor-toolbar-tool-link-int-target-status-external' => 'پیوند به بیرون',
'wikieditor-toolbar-tool-link-int-target-status-loading' => 'بررسی وجود داشتن صفحه...',
- 'wikieditor-toolbar-tool-link-int-target-status-disambig' => 'صفحهٔ ابهام‌زدائی',
+ 'wikieditor-toolbar-tool-link-int-target-status-disambig' => 'صفحهٔ ابهام‌زدایی',
'wikieditor-toolbar-tool-link-int-invalid' => 'عنوان تعیین‌شده نامعتبر است.',
'wikieditor-toolbar-tool-link-lookslikeinternal' => 'نشانی اینترنتی که وارد کردید به شکلی است که نمایانگر یک پیوند به صفحه‌ای داخل ویکی است. آیا می‌خواهید آن را به یک پیوند داخلی تبدیل کنید؟',
'wikieditor-toolbar-tool-link-lookslikeinternal-int' => 'پیوند داخلی',
@@ -8914,6 +8923,7 @@ $1:مثال.jpg|عنوان ۲',
* @author Nedergard
* @author Nike
* @author Olli
+ * @author Pxos
* @author Silvonen
* @author Str4nd
* @author Stryn
@@ -8980,6 +8990,7 @@ $messages['fi'] = array(
'wikieditor-toolbar-tool-link-int-target-status-invalid' => 'Virheellinen otsikko',
'wikieditor-toolbar-tool-link-int-target-status-external' => 'Ulkoinen linkki',
'wikieditor-toolbar-tool-link-int-target-status-loading' => 'Tarkastetaan sivun olemassaolo…',
+ 'wikieditor-toolbar-tool-link-int-target-status-disambig' => 'Täsmennyssivu',
'wikieditor-toolbar-tool-link-int-invalid' => 'Antamasi otsikko on virheellinen.',
'wikieditor-toolbar-tool-link-lookslikeinternal' => 'URL-osoite, jonka annoit näyttää siltä kuin se olisi linkki toiselle wikisivulle.
Haluatko tehdä siitä sisäisen linkin?',
@@ -9698,9 +9709,75 @@ $messages['fur'] = array(
);
/** Western Frisian (Frysk)
+ * @author Kening Aldgilles
*/
$messages['fy'] = array(
+ 'wikieditor-publish-button-cancel' => 'Ofbrekke',
+ 'wikieditor-template-editor-dialog-cancel' => 'Ofbrekke',
+ 'wikieditor-toc-show' => 'Ynhâld sjen litte',
+ 'wikieditor-toc-hide' => 'Ynhâld ferbergje',
+ 'wikieditor-toolbar' => 'Bewurkingsbalke',
+ 'wikieditor-toolbar-tool-link-title' => 'Keppeling ynfoegje',
+ 'wikieditor-toolbar-tool-link-insert' => 'Keppeling ynfoegje',
'wikieditor-toolbar-tool-link-cancel' => 'Ofbrekke',
+ 'wikieditor-toolbar-tool-file-example' => 'Eksimpel.jpg',
+ 'wikieditor-toolbar-tool-file-title' => 'Bestân ynfoegje',
+ 'wikieditor-toolbar-file-size' => 'Grutte:',
+ 'wikieditor-toolbar-file-default' => '(standert)',
+ 'wikieditor-toolbar-file-format-none' => 'gjin',
+ 'wikieditor-toolbar-tool-file-insert' => 'Ynfoegje',
+ 'wikieditor-toolbar-tool-file-cancel' => 'Ofbrekke',
+ 'wikieditor-toolbar-tool-reference' => 'Referinsje',
+ 'wikieditor-toolbar-tool-reference-example' => 'Foettekst hjir ynfoegje',
+ 'wikieditor-toolbar-tool-reference-cancel' => 'Ofbrekke',
+ 'wikieditor-toolbar-tool-reference-title' => 'Referinsje ynfoegje',
+ 'wikieditor-toolbar-tool-reference-insert' => 'Ynfoegje',
+ 'wikieditor-toolbar-tool-reference-text' => 'Referinsjetekst',
+ 'wikieditor-toolbar-tool-heading-1' => 'Nivo 1',
+ 'wikieditor-toolbar-tool-heading-2' => 'Nivo 2',
+ 'wikieditor-toolbar-tool-heading-3' => 'Nivo 3',
+ 'wikieditor-toolbar-tool-heading-4' => 'Nivo 4',
+ 'wikieditor-toolbar-tool-heading-5' => 'Nivo 5',
+ 'wikieditor-toolbar-tool-heading-example' => 'Koptekst',
+ 'wikieditor-toolbar-tool-ulist' => 'List sûnder nûmers',
+ 'wikieditor-toolbar-tool-olist' => 'List mei nûmers',
+ 'wikieditor-toolbar-group-insert' => 'Ynfoegje',
+ 'wikieditor-toolbar-tool-table-title' => 'Tabel ynfoegje',
+ 'wikieditor-toolbar-tool-table-dimensions-rows' => 'Rigen',
+ 'wikieditor-toolbar-tool-table-dimensions-columns' => 'Kolommen',
+ 'wikieditor-toolbar-tool-table-dimensions-header' => 'Koprigel ynfoegje',
+ 'wikieditor-toolbar-tool-table-example' => 'Eksimpel',
+ 'wikieditor-toolbar-tool-table-insert' => 'Ynfoegje',
+ 'wikieditor-toolbar-tool-table-cancel' => 'Ofbrekke',
+ 'wikieditor-toolbar-tool-replace-search' => 'Sykje op:',
+ 'wikieditor-toolbar-tool-replace-replace' => 'Ferfange mei:',
+ 'wikieditor-toolbar-section-characters' => 'Spesjale tekens',
+ 'wikieditor-toolbar-characters-page-latin' => 'Latyn',
+ 'wikieditor-toolbar-help-page-reference' => 'Referinsjes',
+ 'wikieditor-toolbar-help-page-discussion' => 'Oerlis',
+ 'wikieditor-toolbar-help-content-italic-description' => 'Kursyf',
+ 'wikieditor-toolbar-help-content-italic-syntax' => "''Kursive tekst''",
+ 'wikieditor-toolbar-help-content-italic-result' => '<em>Kursive tekst</em>',
+ 'wikieditor-toolbar-help-content-bold-description' => 'Fet',
+ 'wikieditor-toolbar-help-content-bold-syntax' => "'''Fette tekst'''",
+ 'wikieditor-toolbar-help-content-bold-result' => '<strong>Fette tekst</strong>',
+ 'wikieditor-toolbar-help-content-bolditalic-description' => 'Fet &amp; kursyf',
+ 'wikieditor-toolbar-help-content-bolditalic-syntax' => "'''''Fette &amp; kursive tekst'''''",
+ 'wikieditor-toolbar-help-content-bolditalic-result' => '<strong><em>Fette &amp; kursive tekst</em></strong>',
+ 'wikieditor-toolbar-help-content-ilink-description' => 'Ynterne ferwizing',
+ 'wikieditor-toolbar-help-content-xlink-description' => 'Eksterne ferwizing',
+ 'wikieditor-toolbar-help-content-heading2-syntax' => '== Koptekst ==',
+ 'wikieditor-toolbar-help-content-heading2-result' => '<h2>Koptekst</h2>',
+ 'wikieditor-toolbar-help-content-heading3-description' => 'Lytse kop tredde nivo',
+ 'wikieditor-toolbar-help-content-heading3-syntax' => '== Koptekst ==',
+ 'wikieditor-toolbar-help-content-heading3-result' => '<h3>Koptekst</h3>',
+ 'wikieditor-toolbar-help-content-heading4-description' => 'Lytse kop fjirde nivo',
+ 'wikieditor-toolbar-help-content-heading4-syntax' => '== Koptekst ==',
+ 'wikieditor-toolbar-help-content-heading4-result' => '<h4>Koptekst</h4>',
+ 'wikieditor-toolbar-help-content-heading5-description' => 'Lytse kop fyfte nivo',
+ 'wikieditor-toolbar-help-content-heading5-syntax' => '== Koptekst ==',
+ 'wikieditor-toolbar-help-content-heading5-result' => '<h5>Koptekst</h5>',
+ 'wikieditor-toolbar-help-content-ulist-description' => 'List sûnder nûmers',
);
/** Irish (Gaeilge)
@@ -9731,6 +9808,7 @@ $messages['ga'] = array(
/** Scottish Gaelic (Gàidhlig)
* @author Akerbeltz
+ * @author Shirayuki
*/
$messages['gd'] = array(
'wikieditor' => 'Eadar-aghaidh deasachadh wikitext adhartach',
@@ -9764,7 +9842,7 @@ $messages['gd'] = array(
'wikieditor-toolbar' => 'Am bàr-inneil deasachaidh',
'wikieditor-toolbar-desc' => 'Am bàr-inneil deasachaidh le comasan a bharrachd',
'wikieditor-toolbar-preference' => 'Cuir am bàr-inneil le comasan a bharrachd an comas',
- 'wikieditor-toolbar-dialogs-preference' => 'Cuir an comas na còmhraidhean airson ceanglaichean, clàir is rudan eile a chur a-steach', # Fuzzy
+ 'wikieditor-toolbar-dialogs-preference' => 'Cuir an comas na draoidhean airson ceanglaichean, clàran agus am foincsean airson lorg a dhèanamh no rudan a chur an àite rudan eile',
'wikieditor-toolbar-loading' => "'Ga luchdadh...",
'wikieditor-toolbar-tool-bold' => 'Trom',
'wikieditor-toolbar-tool-bold-example' => 'Teacs trom',
@@ -11424,7 +11502,7 @@ $1:उदाहरण.jpg|चित्रशीर्षक२',
'wikieditor-toolbar-tool-replace-close' => 'बंद करें',
'wikieditor-toolbar-tool-replace-nomatch' => 'आपके खोज कुछ मिला नहीं',
'wikieditor-toolbar-tool-replace-success' => '$1 प्रतिस्थापन बनें ।', # Fuzzy
- 'wikieditor-toolbar-section-characters' => 'विशेष वर्ण',
+ 'wikieditor-toolbar-section-characters' => 'विशेष अक्षर',
'wikieditor-toolbar-characters-page-latin' => 'लाटिन',
'wikieditor-toolbar-characters-page-latinextended' => 'लाटिन विस्तारित',
'wikieditor-toolbar-characters-page-ipa' => 'आइपीए',
@@ -11517,6 +11595,7 @@ $messages['hif-latn'] = array(
/** Croatian (hrvatski)
* @author Bugoslav
+ * @author Eleassar
* @author Ex13
* @author Excaliboor
* @author MaGa
@@ -11538,7 +11617,7 @@ $messages['hr'] = array(
'wikieditor-publish-preference' => 'Omogućiti korak-po-korak izdavanje',
'wikieditor-publish-button-publish' => 'Objaviti',
'wikieditor-publish-button-cancel' => 'Odustani',
- 'wikieditor-publish-dialog-title' => 'Objavi na {{SITENAME}}',
+ 'wikieditor-publish-dialog-title' => 'Objavi na {{GRAMMAR:dajalnik|{{SITENAME}}}}',
'wikieditor-publish-dialog-summary' => 'Uredi sažetak (kratko opišite promjene koje ste učinili):',
'wikieditor-publish-dialog-minor' => 'Manja promjena',
'wikieditor-publish-dialog-watch' => 'Prati ovu stranicu',
@@ -11786,7 +11865,7 @@ $messages['hsb'] = array(
'wikieditor-toolbar' => 'Gratowa lajsta za wobdźěłowanje',
'wikieditor-toolbar-desc' => 'Gratowa lajsta za wobdźěłowanje stronow z polěpšenej wužiwajomnosću',
'wikieditor-toolbar-preference' => 'Polěpšenu gratowu lajstu za wobdźěłowanje aktiwizować',
- 'wikieditor-toolbar-dialogs-preference' => 'Dialogi za zasunjenje wotkazow, tabelow a hinašeho zmóžnić', # Fuzzy
+ 'wikieditor-toolbar-dialogs-preference' => 'Asistenty za zasadźenje wotkazow, tabelow a funkciju pytanja a wuměnjenja zmóžnić',
'wikieditor-toolbar-hidesig' => 'Podpisowe tłóčatko w stronach we hłownym mjenowym rumje schować',
'wikieditor-toolbar-loading' => 'Čita so...',
'wikieditor-toolbar-tool-bold' => 'Tučny',
@@ -11814,6 +11893,7 @@ $messages['hsb'] = array(
'wikieditor-toolbar-tool-link-int-target-status-invalid' => 'Njepłaćiwy titul',
'wikieditor-toolbar-tool-link-int-target-status-external' => 'Eksterny wotkaz',
'wikieditor-toolbar-tool-link-int-target-status-loading' => 'Eksistenca strony so přepruwuje...',
+ 'wikieditor-toolbar-tool-link-int-target-status-disambig' => 'Strona wjacewoznamowosće',
'wikieditor-toolbar-tool-link-int-invalid' => 'Titul, kotryž sy podał, je njepłaćiwy.',
'wikieditor-toolbar-tool-link-lookslikeinternal' => 'URL, kotryž sy podał, wupada kaž by jako wotkaz k druhej wikistronje měrjeny był.
Chceš jón do interneho wotkaza přetworić?',
@@ -12527,7 +12607,7 @@ $messages['ia'] = array(
'wikieditor-toolbar' => 'Instrumentario de modification',
'wikieditor-toolbar-desc' => 'Barra con instrumentos de modification con augmento de usabilitate',
'wikieditor-toolbar-preference' => 'Activar le instrumentario de modification meliorate',
- 'wikieditor-toolbar-dialogs-preference' => 'Activar dialogos pro inserer ligamines, tabulas e plus', # Fuzzy
+ 'wikieditor-toolbar-dialogs-preference' => 'Activar dialogos pro inserer ligamines, tabellas e le function de cercar e reimplaciar',
'wikieditor-toolbar-hidesig' => 'Celar le button de signatura in paginas in le spatio de nomines principal',
'wikieditor-toolbar-loading' => 'Cargamento in curso…',
'wikieditor-toolbar-tool-bold' => 'Grasse',
@@ -12555,6 +12635,7 @@ $messages['ia'] = array(
'wikieditor-toolbar-tool-link-int-target-status-invalid' => 'Titulo invalide',
'wikieditor-toolbar-tool-link-int-target-status-external' => 'Ligamine externe',
'wikieditor-toolbar-tool-link-int-target-status-loading' => 'Verifica existentia del pagina...',
+ 'wikieditor-toolbar-tool-link-int-target-status-disambig' => 'Pagina de disambiguation',
'wikieditor-toolbar-tool-link-int-invalid' => 'Le titulo que tu specificava es invalide.',
'wikieditor-toolbar-tool-link-lookslikeinternal' => 'Le URL que tu specificava pare esser intendite como ligamine a un altere pagina wiki.
Vole tu facer lo un ligamine interne?',
@@ -12570,6 +12651,7 @@ Vole tu facer lo un ligamine interne?',
'wikieditor-toolbar-file-float' => 'Alineamento:',
'wikieditor-toolbar-file-default' => '(predefinition)',
'wikieditor-toolbar-file-format' => 'Formato:',
+ 'wikieditor-toolbar-file-format-none' => 'nulle',
'wikieditor-toolbar-tool-file-insert' => 'Inserer',
'wikieditor-toolbar-tool-file-cancel' => 'Cancellar',
'wikieditor-toolbar-tool-reference' => 'Referentia',
@@ -12636,9 +12718,9 @@ $1:Exemplo.jpg|Legenda2',
'wikieditor-toolbar-tool-table-preview' => 'Previsualisation',
'wikieditor-toolbar-tool-table-insert' => 'Inserer',
'wikieditor-toolbar-tool-table-cancel' => 'Cancellar',
- 'wikieditor-toolbar-tool-table-toomany' => 'Inserer un tabula con plus de $1 cellulas non es possibile con iste dialogo.', # Fuzzy
+ 'wikieditor-toolbar-tool-table-toomany' => 'Inserer un tabella con plus de 1000 cellulas non es possibile con iste dialogo.',
'wikieditor-toolbar-tool-table-invalidnumber' => 'Tu non ha entrate un numero valide de lineas o columnas.',
- 'wikieditor-toolbar-tool-table-zero' => 'Tu non pote inserer un tabula con zero lineas o columnas.',
+ 'wikieditor-toolbar-tool-table-zero' => 'Tu non pote inserer un tabella con zero lineas o columnas.',
'wikieditor-toolbar-tool-replace' => 'Cercar e reimplaciar',
'wikieditor-toolbar-tool-replace-title' => 'Cercar e reimplaciar',
'wikieditor-toolbar-tool-replace-search' => 'Cercar:',
@@ -12650,7 +12732,7 @@ $1:Exemplo.jpg|Legenda2',
'wikieditor-toolbar-tool-replace-button-replaceall' => 'Reimplaciar toto',
'wikieditor-toolbar-tool-replace-close' => 'Clauder',
'wikieditor-toolbar-tool-replace-nomatch' => 'Tu recerca non ha producite resultatos.',
- 'wikieditor-toolbar-tool-replace-success' => '$1 reimplaciamentos facite.', # Fuzzy
+ 'wikieditor-toolbar-tool-replace-success' => '$1 {{PLURAL:$1|reimplaciamento|reimplaciamentos}} facite.',
'wikieditor-toolbar-tool-replace-emptysearch' => 'Tu non entrava texto a cercar.',
'wikieditor-toolbar-tool-replace-invalidregex' => 'Le expression regular que tu entrava es invalide: $1',
'wikieditor-toolbar-section-characters' => 'Characteres special',
@@ -12673,6 +12755,7 @@ $1:Exemplo.jpg|Legenda2',
'wikieditor-toolbar-characters-page-thai' => 'Thailandese',
'wikieditor-toolbar-characters-page-lao' => 'Laotiano',
'wikieditor-toolbar-characters-page-khmer' => 'Cambodgiano',
+ 'wikieditor-toolbar-characters-minus' => 'signo minus',
'wikieditor-toolbar-section-help' => 'Adjuta',
'wikieditor-toolbar-help-heading-description' => 'Description',
'wikieditor-toolbar-help-heading-syntax' => 'Entrata',
@@ -13655,6 +13738,7 @@ $1:Example.jpg|Myndlýsing2',
* @author Beta16
* @author Darth Kule
* @author F. Cosoleto
+ * @author FRacco
* @author Gianfranco
* @author Gliu
* @author McDutchie
@@ -13694,7 +13778,7 @@ $messages['it'] = array(
'wikieditor-toc-hide' => 'Nascondi i contenuti',
'wikieditor-toolbar' => 'Barra degli strumenti di modifica',
'wikieditor-toolbar-desc' => 'Barra degli strumenti di modifica della pagina con migliorata usabilità',
- 'wikieditor-toolbar-preference' => 'Abilita barra degli strumenti di modifica avanzata',
+ 'wikieditor-toolbar-preference' => 'Abilita la barra degli strumenti di modifica avanzata',
'wikieditor-toolbar-dialogs-preference' => "Abilita le finestre per l'inserimento di collegamenti, tabelle e la funzione di cerca e sostituisci",
'wikieditor-toolbar-hidesig' => 'Nasconde il pulsante della firma dalle pagine nel namespace principale',
'wikieditor-toolbar-loading' => 'Caricamento in corso...',
@@ -15162,6 +15246,7 @@ $messages['kn'] = array(
* @author Kwj2772
* @author LFM
* @author Mintz0223
+ * @author Priviet
* @author 관인생략
* @author 아라
*/
@@ -15213,8 +15298,8 @@ $messages['ko'] = array(
'wikieditor-toolbar-tool-link-int' => '위키 문서로 연결',
'wikieditor-toolbar-tool-link-int-target' => '대상 문서 또는 URL:',
'wikieditor-toolbar-tool-link-int-target-tooltip' => '문서 제목 또는 URL',
- 'wikieditor-toolbar-tool-link-int-text' => '링크에 보여지는 글:',
- 'wikieditor-toolbar-tool-link-int-text-tooltip' => '문서에 보여지는 글',
+ 'wikieditor-toolbar-tool-link-int-text' => '링크에 보이는 글:',
+ 'wikieditor-toolbar-tool-link-int-text-tooltip' => '문서에 보이는 글',
'wikieditor-toolbar-tool-link-ext' => '바깥 웹 페이지로 연결',
'wikieditor-toolbar-tool-link-ext-target' => '링크 URL:',
'wikieditor-toolbar-tool-link-ext-text' => '링크 텍스트:',
@@ -15239,7 +15324,7 @@ $messages['ko'] = array(
'wikieditor-toolbar-file-caption' => '설명:',
'wikieditor-toolbar-file-size' => '크기:',
'wikieditor-toolbar-file-float' => '정렬:',
- 'wikieditor-toolbar-file-default' => '(기본값)',
+ 'wikieditor-toolbar-file-default' => '(기본 값)',
'wikieditor-toolbar-file-format' => '형식:',
'wikieditor-toolbar-file-format-none' => '없음',
'wikieditor-toolbar-tool-file-insert' => '넣기',
@@ -15313,7 +15398,7 @@ $1:Example.jpg|설명2',
'wikieditor-toolbar-tool-table-zero' => '행이나 열의 개수가 0인 표를 넣을 수 없습니다.',
'wikieditor-toolbar-tool-replace' => '찾아 바꾸기',
'wikieditor-toolbar-tool-replace-title' => '찾아 바꾸기',
- 'wikieditor-toolbar-tool-replace-search' => '찾기:',
+ 'wikieditor-toolbar-tool-replace-search' => '찾을 대상:',
'wikieditor-toolbar-tool-replace-replace' => '바꾸기:',
'wikieditor-toolbar-tool-replace-case' => '대소문자를 구별',
'wikieditor-toolbar-tool-replace-regex' => '찾을 문자열에 정규 표현식을 적용',
@@ -16468,6 +16553,8 @@ $1:Exemplum.jpg|Descriptio 2',
'wikieditor-toolbar-characters-page-telugu' => 'Telugu',
'wikieditor-toolbar-section-help' => 'Adiutatum',
'wikieditor-toolbar-help-heading-description' => 'Descriptio',
+ 'wikieditor-toolbar-help-heading-syntax' => 'Quod scribis',
+ 'wikieditor-toolbar-help-heading-result' => 'Quod accipies',
'wikieditor-toolbar-help-page-format' => 'Formatio',
'wikieditor-toolbar-help-page-link' => 'Nexus',
'wikieditor-toolbar-help-page-heading' => 'Tituli',
@@ -16490,17 +16577,47 @@ $1:Exemplum.jpg|Descriptio 2',
'wikieditor-toolbar-help-content-xlink-description' => 'Nexus externus',
'wikieditor-toolbar-help-content-xlink-syntax' => '[http://www.example.org Titulus nexus]<br />[http://www.example.org]<br />http://www.example.org',
'wikieditor-toolbar-help-content-xlink-result' => "<a href='#' class='external'>Titulus nexus</a><br /><a href='#' class='external autonumber'>[1]</a><br /><a href='#' class='external'>http://www.example.org</a>",
+ 'wikieditor-toolbar-help-content-heading2-description' => 'Secundi ordinis titulus',
+ 'wikieditor-toolbar-help-content-heading2-syntax' => '== Textus tituli ==',
+ 'wikieditor-toolbar-help-content-heading2-result' => '<h2>Textus tituli</h2>',
+ 'wikieditor-toolbar-help-content-heading3-description' => 'Tertii ordinis titulus',
+ 'wikieditor-toolbar-help-content-heading3-syntax' => '=== Textus tituli ===',
+ 'wikieditor-toolbar-help-content-heading3-result' => '<h3>Textus tituli</h3>',
+ 'wikieditor-toolbar-help-content-heading4-description' => 'Quarti ordinis titulus',
+ 'wikieditor-toolbar-help-content-heading4-syntax' => '==== Textus tituli ====',
+ 'wikieditor-toolbar-help-content-heading4-result' => '<h4>Textus tituli</h4>',
+ 'wikieditor-toolbar-help-content-heading5-description' => 'Quinti ordinis titulus',
+ 'wikieditor-toolbar-help-content-heading5-syntax' => '===== Textus tituli =====',
+ 'wikieditor-toolbar-help-content-heading5-result' => '<h5>Textus tituli</h5>',
+ 'wikieditor-toolbar-help-content-ulist-description' => 'Index globosus',
+ 'wikieditor-toolbar-help-content-ulist-syntax' => '* Res indicata<br />* Res indicata',
+ 'wikieditor-toolbar-help-content-ulist-result' => '<ul><li>Res indicata</li><li>Res indicata</li></ul>',
'wikieditor-toolbar-help-content-file-description' => 'Fasciculus in pagina impositus',
'wikieditor-toolbar-help-content-file-syntax' => '[[$1:Exemplum.png|thumb|Descriptio fasciculi]]', # Fuzzy
'wikieditor-toolbar-help-content-file-result' => "<div style='width:104px;' class='thumbinner'><a title='Descriptio fasciculi' class='image' href='#'><img height='50' width='100' border='0' class='thumbimage' src='$2/WikiEditor/modules/images/toolbar/example-image.png' alt=''/></a><div class='thumbcaption'><div class='magnify'><a title='Augere' class='internal' href='#'><img height='11' width='15' alt='' src='$1/common/images/magnify-clip.png'/></a></div>Descriptio fasciculi</div></div>",
'wikieditor-toolbar-help-content-reference-description' => 'Referentia bibliographica',
+ 'wikieditor-toolbar-help-content-reference-syntax' => 'Textus paginae.&lt;ref name="test"&gt;[http://www.example.org Textus nexus], textus additus.&lt;/ref&gt;',
+ 'wikieditor-toolbar-help-content-reference-result' => "Textus paginae.<sup><a href='#'>[1]</a></sup>",
+ 'wikieditor-toolbar-help-content-rereference-description' => 'Eiusdem referentiae usus additus',
+ 'wikieditor-toolbar-help-content-rereference-result' => "Textus paginae.<sup><a href='#'>[1]</a></sup>",
'wikieditor-toolbar-help-content-showreferences-description' => 'Referentias bibliographicas monstrare',
+ 'wikieditor-toolbar-help-content-showreferences-result' => "<ol class='references'><li id='cite_note-test-0'><b><a title='' href='#'>^</a></b> <a rel='nofollow' title='http://www.example.org' class='external text' href='#'>Textus nexus</a>, textus additus.</li></ol>",
'wikieditor-toolbar-help-content-signaturetimestamp-description' => 'Subscriptio tua cum indicatione temporis',
'wikieditor-toolbar-help-content-signaturetimestamp-result' => "<a href='#' title='{{#special:mypage}}'>Nomen usoris</a> (<a href='#' title='{{#special:mytalk}}'>disputatio</a>) 15:54, 10 Iunii 2009 (UTC)",
'wikieditor-toolbar-help-content-signature-description' => 'Subscriptio',
'wikieditor-toolbar-help-content-signature-result' => "<a href='#' title='{{#special:mypage}}'>Nomen usoris</a> (<a href='#' title='{{#special:mytalk}}'>disputatio</a>)",
);
+/** Ladino (Ladino)
+ * @author Menachem.Moreira
+ */
+$messages['lad'] = array(
+ 'wikieditor-wikitext-tab' => 'Vikiteksto',
+ 'wikieditor-publish-button-publish' => 'Publikar',
+ 'wikieditor-publish-dialog-title' => 'Publikar a {{SITENAME}}',
+ 'wikieditor-publish-dialog-publish' => 'Publikar',
+);
+
/** Luxembourgish (Lëtzebuergesch)
* @author Robby
* @author Soued031
@@ -16537,7 +16654,7 @@ $messages['lb'] = array(
'wikieditor-toolbar' => 'Toolbar änneren',
'wikieditor-toolbar-desc' => 'Toolbar vun de Säitenännerunge mat erweiderter Benotzerfrëndlechkeet',
'wikieditor-toolbar-preference' => 'Déi erweidert Ännerungs-Toolbar aktivéieren',
- 'wikieditor-toolbar-dialogs-preference' => "Assistene fir d'Drasetze vu Linken, Tabellen genee esou wéi d'Funktioun 'sichen an ersetzen' aschalten",
+ 'wikieditor-toolbar-dialogs-preference' => "Assistente fir d'Drasetze vu Linken, Tabellen genee sou wéi d'Funktioun 'sichen an ersetzen' aschalten",
'wikieditor-toolbar-hidesig' => 'Den Ënnerschrëftsknäppchen op Säiten am Haaptnummraum verstoppen',
'wikieditor-toolbar-loading' => 'Lueden...',
'wikieditor-toolbar-tool-bold' => 'Fettgedréckt',
@@ -17004,6 +17121,7 @@ $1:Veurbeildj2|Biesjrif2',
);
/** لوری (لوری)
+ * @author Bonevarluri
* @author Mogoeilor
*/
$messages['lrc'] = array(
@@ -17040,6 +17158,8 @@ $messages['lrc'] = array(
'wikieditor-toolbar-tool-link' => 'ديس ون',
'wikieditor-toolbar-tool-link-int' => 'سی ويكی بلگه',
'wikieditor-toolbar-tool-link-cancel' => 'رد كردن',
+ 'wikieditor-toolbar-tool-link-int-target-status-notexists' => 'بلگه نیئش',
+ 'wikieditor-toolbar-tool-file-title' => 'نیائن جانیا',
'wikieditor-toolbar-file-size' => 'انازه',
'wikieditor-toolbar-file-float' => 'د راست چيين',
'wikieditor-toolbar-file-default' => 'پيش فرض',
@@ -17051,14 +17171,27 @@ $messages['lrc'] = array(
'wikieditor-toolbar-tool-reference-cancel' => 'رد كردن',
'wikieditor-toolbar-tool-reference-title' => 'دائن سرچشمه',
'wikieditor-toolbar-tool-reference-insert' => 'دائن',
+ 'wikieditor-toolbar-tool-signature' => 'امضا و دیسمن وخت',
'wikieditor-toolbar-section-advanced' => 'پيشرفته',
'wikieditor-toolbar-tool-heading' => 'سربلگه',
+ 'wikieditor-toolbar-tool-heading-1' => 'ریتراز1',
+ 'wikieditor-toolbar-tool-heading-3' => 'ریتراز3',
+ 'wikieditor-toolbar-tool-heading-5' => 'ریتراز5',
+ 'wikieditor-toolbar-tool-ulist' => 'نوم گه توپر بیه',
+ 'wikieditor-toolbar-tool-olist' => 'نوم گه شماره دار',
+ 'wikieditor-toolbar-tool-redirect-example' => 'نوم بلگه حاستنی',
'wikieditor-toolbar-tool-small' => 'كؤچك',
'wikieditor-toolbar-tool-small-example' => 'متن كؤچك',
'wikieditor-toolbar-group-insert' => 'دائن',
+ 'wikieditor-toolbar-tool-gallery' => 'عسگدونی',
'wikieditor-toolbar-tool-newline' => 'خط تازه',
'wikieditor-toolbar-tool-table' => 'جعوه',
+ 'wikieditor-toolbar-tool-replace' => 'بگرد و جاگزین کو',
+ 'wikieditor-toolbar-tool-replace-title' => 'بگرد و جاگزین کو',
+ 'wikieditor-toolbar-tool-replace-search' => 'پی جوری سی',
+ 'wikieditor-toolbar-tool-replace-button-findnext' => 'نهایی نه پیدا کو',
'wikieditor-toolbar-tool-replace-close' => 'بسن',
+ 'wikieditor-toolbar-tool-replace-emptysearch' => 'شما سی پی جوری هیچی وارد نکردیته.',
'wikieditor-toolbar-characters-page-latin' => 'لاتين',
'wikieditor-toolbar-characters-page-symbols' => 'نماديا',
'wikieditor-toolbar-characters-page-greek' => 'هلنی',
@@ -17076,7 +17209,20 @@ $messages['lrc'] = array(
'wikieditor-toolbar-characters-page-lao' => 'لائو',
'wikieditor-toolbar-characters-page-khmer' => 'خمر',
'wikieditor-toolbar-section-help' => 'هومياری',
+ 'wikieditor-toolbar-help-page-list' => 'نوم گه یا',
+ 'wikieditor-toolbar-help-page-file' => 'جانیایا',
'wikieditor-toolbar-help-page-discussion' => 'گپ',
+ 'wikieditor-toolbar-help-content-heading2-description' => 'دوئمی ریتراز سرون',
+ 'wikieditor-toolbar-help-content-heading3-description' => 'سئمین ریتراز سرون',
+ 'wikieditor-toolbar-help-content-heading4-description' => 'چئارمی ریتراز سرون',
+ 'wikieditor-toolbar-help-content-heading5-description' => 'پنجمین ریتراز سرون',
+ 'wikieditor-toolbar-help-content-ulist-description' => 'نوم گه توپر بیه',
+ 'wikieditor-toolbar-help-content-ulist-syntax' => '* قلم نوم گه<br />* قلم نوم گه',
+ 'wikieditor-toolbar-help-content-ulist-result' => '<ul><li>قلم نوم گه</li><li>قلم نوم گه</li></ul>',
+ 'wikieditor-toolbar-help-content-olist-syntax' => '# قلم نوم گه<br />* قلم نوم گه',
+ 'wikieditor-toolbar-help-content-olist-result' => '<ul><li>قلم نوم گه</li><li>قلم نوم گه</li></ul>',
+ 'wikieditor-toolbar-help-content-signaturetimestamp-description' => 'امضا و دیسمن وخت',
+ 'wikieditor-toolbar-help-content-signature-description' => 'امضا',
'wikieditor-toolbar-help-content-indent-description' => 'مئن رئته',
);
@@ -18603,22 +18749,22 @@ $messages['mr'] = array(
'wikieditor' => 'विकिमजकूर संपादनाची विकसित सुविधा',
'wikieditor-desc' => 'विस्तारणीय विकिमजकुर संपादन आंतरपृष्ठ (इंटरफेस) आणि बर्‍याच वैशिष्ट्यपूर्ण निश्चयिका (मॊड्यूल्स) पुरवते',
'wikieditor-wikitext-tab' => 'विकिमजकूर',
- 'wikieditor-loading' => 'चढवत आहे…',
+ 'wikieditor-loading' => 'प्रभारण करीत आहे',
'wikieditor-preview-preference' => 'सोबतच आजु-बाजूस दिसणारी झलक शक्य करा.',
'wikieditor-preview-tab' => 'झलक',
'wikieditor-preview-changes-tab' => 'बदल',
- 'wikieditor-preview-loading' => 'चढवत आहे…',
+ 'wikieditor-preview-loading' => 'प्रभारण करीत आहे',
'wikieditor-previewDialog-preference' => '"झलक पहा" चौकट सक्षम करा',
'wikieditor-previewDialog-tab' => 'झलक पहा',
- 'wikieditor-previewDialog-loading' => 'चढवत आहे…',
+ 'wikieditor-previewDialog-loading' => 'प्रभारण करीत आहे',
'wikieditor-publish-preference' => 'टप्प्या-टप्प्याने प्रकाशन शक्य करा',
'wikieditor-publish-button-publish' => 'प्रकाशित करा
दाखवा',
'wikieditor-publish-button-cancel' => 'रद्द करा',
'wikieditor-publish-dialog-title' => '{{संकेतस्थळनाव}} येथे प्रदर्शित करा',
- 'wikieditor-publish-dialog-summary' => 'बदलांचा आढावा :(आपण केलेल्या बदलांचे थोडक्यात वर्णन करा.)',
+ 'wikieditor-publish-dialog-summary' => 'बदलांचा सारांश :(आपण केलेल्या बदलांचे थोडक्यात वर्णन करा):',
'wikieditor-publish-dialog-minor' => 'छोटा बदल',
- 'wikieditor-publish-dialog-watch' => 'या पानावर बदलांसाठी लक्ष ठेवा',
+ 'wikieditor-publish-dialog-watch' => 'पान निरीक्षणांतर्गत ठेवा',
'wikieditor-publish-dialog-publish' => 'प्रकाशित करा',
'wikieditor-publish-dialog-goback' => 'मागे जा',
'wikieditor-template-editor-preference' => 'विकि साच्यांची नमुना संपादन सक्षम करा',
@@ -18635,11 +18781,11 @@ $messages['mr'] = array(
'wikieditor-toolbar-preference' => 'वर्धित संपादन साधनपट्टी सक्षम करा',
'wikieditor-toolbar-dialogs-preference' => 'दुवे, सारण्या (टेबल) आणि इतर भरण्याकरिता dialogs सक्षम करा', # Fuzzy
'wikieditor-toolbar-hidesig' => 'मुख्य नामविश्वातील पानांपासून स्वाक्षरीची कळ लपवा',
- 'wikieditor-toolbar-loading' => 'चढवत आहे…',
+ 'wikieditor-toolbar-loading' => 'प्रभारण करीत आहे',
'wikieditor-toolbar-tool-bold' => 'ठळक',
'wikieditor-toolbar-tool-bold-example' => 'ठळक मजकूर',
'wikieditor-toolbar-tool-italic' => 'तिरपी मुद्राक्षरे',
- 'wikieditor-toolbar-tool-italic-example' => 'तिरपी मुद्राक्षरे',
+ 'wikieditor-toolbar-tool-italic-example' => 'तिरप्या मुद्राक्षरातील मजकूर',
'wikieditor-toolbar-tool-ilink' => 'अंतर्गत दुवा',
'wikieditor-toolbar-tool-ilink-example' => 'शीर्षकास दुवा द्या',
'wikieditor-toolbar-tool-xlink' => 'बाह्य दुव्यात (http:// हा उपसर्ग विसरू नका)',
@@ -18660,7 +18806,8 @@ $messages['mr'] = array(
'wikieditor-toolbar-tool-link-int-target-status-notexists' => 'पान अस्तित्वात नाही',
'wikieditor-toolbar-tool-link-int-target-status-invalid' => 'अग्राह्य शीर्षक',
'wikieditor-toolbar-tool-link-int-target-status-external' => 'बाह्य दुवा',
- 'wikieditor-toolbar-tool-link-int-target-status-loading' => 'पानाचे अस्तित्व तपासत आहे...',
+ 'wikieditor-toolbar-tool-link-int-target-status-loading' => 'पान अस्तित्व आहे काय ते तपासत आहे...',
+ 'wikieditor-toolbar-tool-link-int-target-status-disambig' => 'निःसंदिग्धिकरण पान',
'wikieditor-toolbar-tool-link-int-invalid' => 'तुम्ही नमूद केलेले शीर्षक अग्राह्य आहे.',
'wikieditor-toolbar-tool-link-lookslikeinternal' => 'तुम्ही नमूद केलेली यूआरएल इतर विकिपानास जोडावयाची आहे असे दिसते. तुम्हाला अंतर्गत दुवा बनवायचा आहे काय ?',
'wikieditor-toolbar-tool-link-lookslikeinternal-int' => 'अंतर्गत दुवा',
@@ -18670,13 +18817,14 @@ $messages['mr'] = array(
'wikieditor-toolbar-tool-file-example' => 'उदाहरण.jpg',
'wikieditor-toolbar-tool-file-title' => 'चित्र टाका',
'wikieditor-toolbar-file-target' => 'संचिकेचे नाव:',
- 'wikieditor-toolbar-file-caption' => 'वर्णन:',
+ 'wikieditor-toolbar-file-caption' => 'मथळा:',
'wikieditor-toolbar-file-size' => 'आकार:',
'wikieditor-toolbar-file-float' => 'समास:',
- 'wikieditor-toolbar-file-format' => 'प्रकार',
+ 'wikieditor-toolbar-file-default' => '(अविचल)',
+ 'wikieditor-toolbar-file-format' => 'प्रारुप:',
'wikieditor-toolbar-file-format-none' => 'काहीही नाही',
'wikieditor-toolbar-tool-file-insert' => 'समाविष्ट करा',
- 'wikieditor-toolbar-tool-file-cancel' => 'रद्द',
+ 'wikieditor-toolbar-tool-file-cancel' => 'रद्द करा',
'wikieditor-toolbar-tool-reference' => 'संदर्भ',
'wikieditor-toolbar-tool-reference-example' => 'तळटीप मजकूर येथे भरा',
'wikieditor-toolbar-tool-reference-cancel' => 'रद्द करा',
@@ -18692,10 +18840,10 @@ $messages['mr'] = array(
'wikieditor-toolbar-tool-heading-4' => 'स्तर ४',
'wikieditor-toolbar-tool-heading-5' => 'स्तर ५',
'wikieditor-toolbar-tool-heading-example' => 'अग्रशीर्ष मजकूर',
- 'wikieditor-toolbar-group-format' => 'आराखडा',
+ 'wikieditor-toolbar-group-format' => 'प्रारुप',
'wikieditor-toolbar-tool-ulist' => 'बिंदी क्रमांकन',
'wikieditor-toolbar-tool-ulist-example' => 'बिंदी क्रमांकन घटक',
- 'wikieditor-toolbar-tool-olist' => 'अनुक्रम यादी',
+ 'wikieditor-toolbar-tool-olist' => 'अनुक्रमित यादी',
'wikieditor-toolbar-tool-olist-example' => 'अनुक्रम यादी घटक',
'wikieditor-toolbar-tool-indent' => 'समासांतर',
'wikieditor-toolbar-tool-indent-example' => 'समासांतर ओळ',
@@ -18733,7 +18881,7 @@ $1:Example.jpg|चित्रपरिचय २',
'wikieditor-toolbar-tool-table-title' => 'सारणी समाविष्ट करा',
'wikieditor-toolbar-tool-table-dimensions-rows' => 'ओळी',
'wikieditor-toolbar-tool-table-dimensions-columns' => 'रकाना',
- 'wikieditor-toolbar-tool-table-dimensions-header' => 'मथळा ओळ जोडा',
+ 'wikieditor-toolbar-tool-table-dimensions-header' => 'शीर्ष ओळ जोडा',
'wikieditor-toolbar-tool-table-wikitable' => 'काठासहीत शैली',
'wikieditor-toolbar-tool-table-sortable' => 'सारणी क्रमानुसारी करण्याजोगी करा',
'wikieditor-toolbar-tool-table-example' => 'उदाहरण',
@@ -18776,7 +18924,7 @@ $1:Example.jpg|चित्रपरिचय २',
'wikieditor-toolbar-characters-page-devanagari' => 'देवनागरी',
'wikieditor-toolbar-characters-page-thai' => 'थाई भाषा',
'wikieditor-toolbar-characters-page-lao' => 'लाऒ भाषा',
- 'wikieditor-toolbar-characters-page-khmer' => 'खमेर',
+ 'wikieditor-toolbar-characters-page-khmer' => 'ख्मेर',
'wikieditor-toolbar-characters-minus' => 'ॠण चिन्ह',
'wikieditor-toolbar-section-help' => 'साहाय्य',
'wikieditor-toolbar-help-heading-description' => 'वर्णन',
@@ -18819,7 +18967,7 @@ $1:Example.jpg|चित्रपरिचय २',
'wikieditor-toolbar-help-content-ulist-description' => 'बिंदीक्रमांकीत यादी',
'wikieditor-toolbar-help-content-ulist-syntax' => '* यादी कलम<br />* यादी कलम',
'wikieditor-toolbar-help-content-ulist-result' => '<ul><li>यादी घटक</li><li>यादी घटक</li></ul>',
- 'wikieditor-toolbar-help-content-olist-description' => 'अनुक्रम यादी',
+ 'wikieditor-toolbar-help-content-olist-description' => 'अनुक्रमित यादी',
'wikieditor-toolbar-help-content-olist-syntax' => '# यादी घटक<br /># यादी घटक',
'wikieditor-toolbar-help-content-olist-result' => '<ol><li>यादी घटक</li><li>यादी घटक</li></ol>',
'wikieditor-toolbar-help-content-file-description' => 'संलग्न संचिका',
@@ -18833,8 +18981,7 @@ $1:Example.jpg|चित्रपरिचय २',
'wikieditor-toolbar-help-content-rereference-result' => "पान मजकूर.<sup><a href='#'>[1]</a></sup>",
'wikieditor-toolbar-help-content-showreferences-description' => 'संदर्भ दर्शवा',
'wikieditor-toolbar-help-content-showreferences-result' => "<ol class='references'><li id='cite_note-test-0'><b><a title='' href='#'>^</a></b> <a rel='nofollow' title='http://www.example.org' class='external text' href='#'>Link text</a>, additional text.</li></ol>",
- 'wikieditor-toolbar-help-content-signaturetimestamp-description' => 'वेळेसह तुमची सही
-तुमची सही व वेळ',
+ 'wikieditor-toolbar-help-content-signaturetimestamp-description' => 'सही आणि वेळठसा',
'wikieditor-toolbar-help-content-signaturetimestamp-result' => "<a href='#' title='{{#special:mypage}}'>सदस्यनाव</a> (<a href='#' title='{{#special:mytalk}}'>चर्चा</a>) 15:54, 10 June 2009 (UTC)",
'wikieditor-toolbar-help-content-signature-description' => 'सही',
'wikieditor-toolbar-help-content-signature-result' => "<a href='#' title='{{#विशेष:माझेसदस्यपान}}'>सदस्यनाव</a> (<a href='#' title='{{#विशेष:माझ्याचर्चा}}'>चर्चा</a>)",
@@ -20377,7 +20524,7 @@ $messages['nn'] = array(
'wikieditor-toolbar' => 'Verktøyline for redigering',
'wikieditor-toolbar-desc' => 'Ei meir brukarvenleg verktøylinje for redigering',
'wikieditor-toolbar-preference' => 'Ta i bruk utvida verktøylinje for redigering',
- 'wikieditor-toolbar-dialogs-preference' => 'Aktiver dialogar for insetjing av lenkjer, tabellar og meir', # Fuzzy
+ 'wikieditor-toolbar-dialogs-preference' => 'Aktiver dialogar for insetjing av lenkjer, tabellar og søk og byt ut-funksjonen',
'wikieditor-toolbar-loading' => 'Lastar …',
'wikieditor-toolbar-tool-bold' => 'Feit',
'wikieditor-toolbar-tool-bold-example' => 'Feit tekst',
@@ -20612,6 +20759,7 @@ $messages['nso'] = array(
);
/** Occitan (occitan)
+ * @author Beta16
* @author Boulaur
* @author Cedric31
* @author Jfblanc
@@ -20646,7 +20794,7 @@ $messages['oc'] = array(
'wikieditor-toc-preference' => "Activar l'ensenhador navigable",
'wikieditor-toc-show' => 'Afichar lo contengut',
'wikieditor-toc-hide' => 'Amagar lo contengut',
- 'wikieditor-toolbar' => 'Modificacion de la barra d’espleches',
+ 'wikieditor-toolbar' => 'Barra d’aisinas de modificacion',
'wikieditor-toolbar-desc' => "Modificacion de la barra d'aisinas amb l'utilizabilitat melhorada",
'wikieditor-toolbar-preference' => "Activar la barra d'aisinas melhorada",
'wikieditor-toolbar-dialogs-preference' => 'Activar las bóstias de dialòg per apondre de ligams, de tablèus e mai encara', # Fuzzy
@@ -20686,7 +20834,7 @@ $messages['oc'] = array(
'wikieditor-toolbar-tool-file-example' => 'Exemple.jpg',
'wikieditor-toolbar-tool-file-title' => 'Importar un fichièr',
'wikieditor-toolbar-file-target' => 'Nom de fichièr :',
- 'wikieditor-toolbar-file-caption' => 'Legenda :',
+ 'wikieditor-toolbar-file-caption' => 'Legenda:',
'wikieditor-toolbar-file-size' => 'Talha :',
'wikieditor-toolbar-file-float' => 'Alinhament :',
'wikieditor-toolbar-file-default' => '(per defaut)',
@@ -21957,7 +22105,7 @@ $messages['pms'] = array(
'wikieditor-toolbar' => "Bara d'utiss ëd modìfica",
'wikieditor-toolbar-desc' => "Bara d'utiss ëd modìfica con dovrabilità ameliorà",
'wikieditor-toolbar-preference' => "Ativé la bara d'utiss ameliorà",
- 'wikieditor-toolbar-dialogs-preference' => "Ativé ij quàder ëd diàlogh për anserì anliure, tàule e d'àutr", # Fuzzy
+ 'wikieditor-toolbar-dialogs-preference' => "Ativé j'assistent për gionté dle anliure, dle tàule e ëdcò la fonsion d'arserca e rampiass",
'wikieditor-toolbar-hidesig' => 'Stërmé ël boton ëd firma ant le pàgine ëd lë spassi nominal prinsipal',
'wikieditor-toolbar-loading' => 'Cariament...',
'wikieditor-toolbar-tool-bold' => 'Grassèt',
@@ -21985,6 +22133,7 @@ $messages['pms'] = array(
'wikieditor-toolbar-tool-link-int-target-status-invalid' => 'Tìtol nen vàlid',
'wikieditor-toolbar-tool-link-int-target-status-external' => 'Anliura esterna',
'wikieditor-toolbar-tool-link-int-target-status-loading' => "Verìfica ëd l'esistensa dla pàgina...",
+ 'wikieditor-toolbar-tool-link-int-target-status-disambig' => "Pàgina d'omonimìa",
'wikieditor-toolbar-tool-link-int-invalid' => "Ël tìtol ch'a l'ha spessificà a va pa bin.",
'wikieditor-toolbar-tool-link-lookslikeinternal' => "L'URL ch'a l'ha spessificà a smijërìa n'anliura a n'àutra pàgina wiki. Veul-lo fene n'anliura anterna?",
'wikieditor-toolbar-tool-link-lookslikeinternal-int' => 'Anliura anterna',
@@ -22526,8 +22675,8 @@ $messages['ps'] = array(
'wikieditor-toolbar-tool-table-dimensions-rows' => 'ليکې',
'wikieditor-toolbar-tool-table-dimensions-columns' => 'ستنې',
'wikieditor-toolbar-tool-table-wikitable' => 'ډول او پولې',
- 'wikieditor-toolbar-tool-table-sortable' => 'لښتيال د اوډون وړ گرځول',
- 'wikieditor-toolbar-tool-table-example' => 'بېلګه',
+ 'wikieditor-toolbar-tool-table-sortable' => 'لښتيال اوډون وړ گرځول',
+ 'wikieditor-toolbar-tool-table-example' => 'بېلگه',
'wikieditor-toolbar-tool-table-preview' => 'مخليدنه',
'wikieditor-toolbar-tool-table-insert' => 'ورټومبل',
'wikieditor-toolbar-tool-table-cancel' => 'ناگارل',
@@ -23401,7 +23550,7 @@ $messages['ro'] = array(
'wikieditor-publish-dialog-title' => 'Publică pe {{SITENAME}}',
'wikieditor-publish-dialog-summary' => 'Descrierea modificărilor (descrieți pe scurt modificările făcute):',
'wikieditor-publish-dialog-minor' => 'Modificare minoră',
- 'wikieditor-publish-dialog-watch' => 'Monitorizează această pagină',
+ 'wikieditor-publish-dialog-watch' => 'Urmărește această pagină',
'wikieditor-publish-dialog-publish' => 'Salvează pagina',
'wikieditor-publish-dialog-goback' => 'Înapoi',
'wikieditor-template-editor-preference' => 'Activează modificarea formatelor wiki prin formulare',
@@ -23415,7 +23564,7 @@ $messages['ro'] = array(
'wikieditor-toolbar' => 'Modificarea barei de instrumente',
'wikieditor-toolbar-desc' => 'Modificarea barei de instrumente cu utilizare ridicată',
'wikieditor-toolbar-preference' => 'Activează varianta îmbunătățită a barei de unelte',
- 'wikieditor-toolbar-dialogs-preference' => 'Activează casetele de dialog pentru inserarea legăturilor, tabelelor și a altor funcționalități', # Fuzzy
+ 'wikieditor-toolbar-dialogs-preference' => 'Activează asistență pentru inserarea legăturilor, tabelelor, precum și pentru funcțiile de căutare și înlocuire',
'wikieditor-toolbar-hidesig' => 'Ascunde butonul de semnătură în cazul paginilor din spațiul de nume principal',
'wikieditor-toolbar-loading' => 'Se încarcă...',
'wikieditor-toolbar-tool-bold' => 'Aldin',
@@ -23443,6 +23592,7 @@ $messages['ro'] = array(
'wikieditor-toolbar-tool-link-int-target-status-invalid' => 'Titlu incorect',
'wikieditor-toolbar-tool-link-int-target-status-external' => 'Legătură externă',
'wikieditor-toolbar-tool-link-int-target-status-loading' => 'Verific existența paginii...',
+ 'wikieditor-toolbar-tool-link-int-target-status-disambig' => 'Pagină de dezambiguizare',
'wikieditor-toolbar-tool-link-int-invalid' => 'Titlul specificat nu este corect.',
'wikieditor-toolbar-tool-link-lookslikeinternal' => 'URL-ul specificat pare a fi o legătură către o altă pagină wiki. Doriți să o transformați într-o legătură internă?',
'wikieditor-toolbar-tool-link-lookslikeinternal-int' => 'Legătură internă',
@@ -23884,6 +24034,7 @@ $1:Example.jpg|Titele2',
* @author Dim Grits
* @author Eleferen
* @author G0rn
+ * @author Iluvatar
* @author KPu3uC B Poccuu
* @author Kaganer
* @author Lockal
@@ -23906,7 +24057,7 @@ $messages['ru'] = array(
'wikieditor-publish-preference' => 'Включить пошаговую публикацию',
'wikieditor-publish-button-publish' => 'Опубликовать',
'wikieditor-publish-button-cancel' => 'Отмена',
- 'wikieditor-publish-dialog-title' => 'Опубликование в проекте {{SITENAME}}',
+ 'wikieditor-publish-dialog-title' => 'Публикация в проекте {{SITENAME}}',
'wikieditor-publish-dialog-summary' => 'Описание изменений (кратко укажите какие изменения были произведены):',
'wikieditor-publish-dialog-minor' => 'Малое изменение',
'wikieditor-publish-dialog-watch' => 'Наблюдать за этой страницей',
@@ -23951,6 +24102,7 @@ $messages['ru'] = array(
'wikieditor-toolbar-tool-link-int-target-status-invalid' => 'Недопустимое название',
'wikieditor-toolbar-tool-link-int-target-status-external' => 'Внешняя ссылка',
'wikieditor-toolbar-tool-link-int-target-status-loading' => 'Проверка существования страницы…',
+ 'wikieditor-toolbar-tool-link-int-target-status-disambig' => 'Страницы разрешения неоднозначностей',
'wikieditor-toolbar-tool-link-int-invalid' => 'Указанное название недопустимо.',
'wikieditor-toolbar-tool-link-lookslikeinternal' => 'Указанный вами URL похож на ссылку на другую вики-страницу. Вы хотите сделать данную ссылку внутренней?',
'wikieditor-toolbar-tool-link-lookslikeinternal-int' => 'Внутренняя ссылка',
@@ -24047,7 +24199,7 @@ $1:Example.jpg|Описание2',
'wikieditor-toolbar-tool-replace-button-replaceall' => 'Заменить все',
'wikieditor-toolbar-tool-replace-close' => 'Закрыть',
'wikieditor-toolbar-tool-replace-nomatch' => 'По вашему запросу ничего не найдено.',
- 'wikieditor-toolbar-tool-replace-success' => '$1 {{PLURAL:$1|замена произведена|замены произведены|замен произведено}}.',
+ 'wikieditor-toolbar-tool-replace-success' => '$1 {{PLURAL:$1|замена произведена|замен произведено|замены произведены}}.',
'wikieditor-toolbar-tool-replace-emptysearch' => 'Вы не указали что следует искать.',
'wikieditor-toolbar-tool-replace-invalidregex' => 'Введённое вами регулярное выражение ошибочно: $1',
'wikieditor-toolbar-section-characters' => 'Спецсимволы',
@@ -24070,6 +24222,7 @@ $1:Example.jpg|Описание2',
'wikieditor-toolbar-characters-page-thai' => 'Тайские',
'wikieditor-toolbar-characters-page-lao' => 'Лаосские',
'wikieditor-toolbar-characters-page-khmer' => 'Кхмерские',
+ 'wikieditor-toolbar-characters-endash' => 'среднее тире',
'wikieditor-toolbar-characters-emdash' => 'длинное тире',
'wikieditor-toolbar-characters-minus' => 'знак минус',
'wikieditor-toolbar-section-help' => 'Справка',
@@ -25817,7 +25970,7 @@ $messages['sl'] = array(
'wikieditor-publish-preference' => 'Omogoči objavljanje korak-po-koraku',
'wikieditor-publish-button-publish' => 'Objavi',
'wikieditor-publish-button-cancel' => 'Prekliči',
- 'wikieditor-publish-dialog-title' => 'Objavi na {{SITENAME}}',
+ 'wikieditor-publish-dialog-title' => 'Objavi na {{GRAMMAR:dajalnik|{{SITENAME}}}}',
'wikieditor-publish-dialog-summary' => 'Povzetek urejanja (na kratko opišite narejene spremembe):',
'wikieditor-publish-dialog-minor' => 'Manjše urejanje',
'wikieditor-publish-dialog-watch' => 'Opazuj stran',
@@ -27012,7 +27165,7 @@ $messages['sv'] = array(
'wikieditor-previewDialog-preference' => 'Aktivera förhandsgranska',
'wikieditor-previewDialog-tab' => 'Förhandsgranska',
'wikieditor-previewDialog-loading' => 'Laddar...',
- 'wikieditor-publish-preference' => 'Aktivera steg-efter-steg-publicering',
+ 'wikieditor-publish-preference' => 'Aktivera steg-för-steg-publicering',
'wikieditor-publish-button-publish' => 'Publicera',
'wikieditor-publish-button-cancel' => 'Avbryt',
'wikieditor-publish-dialog-title' => 'Publicera i {{SITENAME}}',
@@ -27313,15 +27466,15 @@ $messages['sw'] = array(
'wikieditor-toolbar-tool-link-lookslikeinternal-int' => 'Kiungo cha ndani',
'wikieditor-toolbar-tool-link-lookslikeinternal-ext' => 'Kiungo cha nje',
'wikieditor-toolbar-tool-link-empty' => 'Hukuandika kitu cha kuunganisha naye.',
- 'wikieditor-toolbar-tool-file' => 'Faili futike',
+ 'wikieditor-toolbar-tool-file' => 'Ingiza faili',
'wikieditor-toolbar-tool-file-example' => 'Mfano.jpg',
'wikieditor-toolbar-tool-file-title' => 'Ingiza faili',
'wikieditor-toolbar-file-target' => 'Jina la faili:',
'wikieditor-toolbar-file-size' => 'Ukubwa:',
'wikieditor-toolbar-tool-file-insert' => 'Ingiza',
'wikieditor-toolbar-tool-file-cancel' => 'Ghairi',
- 'wikieditor-toolbar-tool-reference' => 'Tiniwayo',
- 'wikieditor-toolbar-tool-reference-example' => 'Weka maneno ya tiniwayo hapa',
+ 'wikieditor-toolbar-tool-reference' => 'Marejeo',
+ 'wikieditor-toolbar-tool-reference-example' => 'Weka maneno ya marejeo hapa',
'wikieditor-toolbar-tool-reference-cancel' => 'Batilisha',
'wikieditor-toolbar-tool-reference-title' => 'Ingiza marejeo',
'wikieditor-toolbar-tool-reference-insert' => 'Ingiza',
@@ -27429,7 +27582,7 @@ Idadi ya mistari au ya safu si halali.',
'wikieditor-toolbar-help-page-heading' => 'Vichwa',
'wikieditor-toolbar-help-page-list' => 'Orodha',
'wikieditor-toolbar-help-page-file' => 'Mafaili',
- 'wikieditor-toolbar-help-page-reference' => 'Tiniwayo',
+ 'wikieditor-toolbar-help-page-reference' => 'Marejeo',
'wikieditor-toolbar-help-page-discussion' => 'Majadiliano',
'wikieditor-toolbar-help-content-italic-description' => 'Italiki',
'wikieditor-toolbar-help-content-italic-syntax' => "''Maandishi ya italiki''",
@@ -27464,15 +27617,15 @@ Idadi ya mistari au ya safu si halali.',
'wikieditor-toolbar-help-content-olist-description' => 'Orodha zenye namba',
'wikieditor-toolbar-help-content-olist-syntax' => '# Aya<br /># Aya',
'wikieditor-toolbar-help-content-olist-result' => '<ol><li>Aya</li><li>Aya</li></ol>',
- 'wikieditor-toolbar-help-content-file-description' => 'Faili futike',
+ 'wikieditor-toolbar-help-content-file-description' => 'Ingiza faili',
'wikieditor-toolbar-help-content-file-syntax' => '[[$1:Example.png|thumb|Maelezo mafupi]]',
'wikieditor-toolbar-help-content-file-result' => "<div style='width:104px;' class='thumbinner'><a title='Maelezo mafupi' class='image' href='#'><img height='50' width='100' border='0' class='thumbimage' src='$2/WikiEditor/modules/images/toolbar/example-image.png' alt=''/></a><div class='thumbcaption'><div class='magnify'><a title='Kuza' class='internal' href='#'><img height='11' width='15' alt='' src='$1/common/images/magnify-clip.png'/></a></div>Maelezo mafupi</div></div>",
- 'wikieditor-toolbar-help-content-reference-description' => 'Tiniwayo',
+ 'wikieditor-toolbar-help-content-reference-description' => 'Marejeo',
'wikieditor-toolbar-help-content-reference-syntax' => 'Maandishi ya ukurasa.&lt;ref name="mfano"&gt;[http://www.example.org Maandishi ya kiungo], maandishi mengine.&lt;/ref&gt;',
'wikieditor-toolbar-help-content-reference-result' => "Maandiko.<sup><a href='#'>[1]</a></sup>",
- 'wikieditor-toolbar-help-content-rereference-description' => 'Kutumia tiniwayo fulani kwa mara nyingine',
+ 'wikieditor-toolbar-help-content-rereference-description' => 'Kutumia marejeo fulani kwa mara nyingine',
'wikieditor-toolbar-help-content-rereference-result' => "Maandiko.<sup><a href='#'>[1]</a></sup>",
- 'wikieditor-toolbar-help-content-showreferences-description' => 'Onyesha tiniwayo',
+ 'wikieditor-toolbar-help-content-showreferences-description' => 'Onyesha marejeo',
'wikieditor-toolbar-help-content-showreferences-result' => "<ol class='references'><li id='cite_note-test-0'><b><a title='' href='#'>^</a></b> <a rel='nofollow' title='http://www.example.org' class='external text' href='#'>Maandishi ya kiungo</a>, maandishi mengine.</li></ol>",
'wikieditor-toolbar-help-content-signaturetimestamp-description' => 'Sahihi pamoja na stempu ya saa',
'wikieditor-toolbar-help-content-signaturetimestamp-result' => "<a href='#' title='{{#special:mypage}}'>Jina la mtumiaji</a> (<a href='#' title='{{#special:mytalk}}'>majadiliano</a>) 15:54, 10 June 2009 (UTC)",
@@ -27483,6 +27636,16 @@ Idadi ya mistari au ya safu si halali.',
'wikieditor-toolbar-help-content-indent-result' => 'Maandiko ya kawaida<dl><dd>Yaliyojongezwa ndani<dl><dd>Yaliyojongezwa ndani</dd></dl></dd></dl>',
);
+/** Silesian (ślůnski)
+ * @author Krol111
+ */
+$messages['szl'] = array(
+ 'wikieditor' => 'Zaawansowano tajla edycyji wikitekstu',
+ 'wikieditor-desc' => 'Dowo poszyrzalno tajla edycyji wikitekstu a wjela funkcyji uofyrowane bez moduły',
+ 'wikieditor-wikitext-tab' => 'Wikitext',
+ 'wikieditor-loading' => 'Trwo ładowańy…',
+);
+
/** Tamil (தமிழ்)
* @author Balajijagadesh
* @author Karthi.dr
@@ -28681,6 +28844,7 @@ $messages['tpi'] = array(
* @author Joseph
* @author Koc61
* @author Manco Capac
+ * @author Meelo
* @author Rapsar
* @author Sadrettin
* @author Srhat
@@ -28755,6 +28919,7 @@ $messages['tr'] = array(
'wikieditor-toolbar-tool-file' => 'Gömülü dosya',
'wikieditor-toolbar-tool-file-example' => 'Örnek.jpg',
'wikieditor-toolbar-file-float' => 'Hizalama:',
+ 'wikieditor-toolbar-tool-file-insert' => 'Ekle',
'wikieditor-toolbar-tool-reference' => 'Kaynakça',
'wikieditor-toolbar-tool-reference-example' => 'Dipnot metnini buraya ekleyin',
'wikieditor-toolbar-tool-reference-cancel' => 'İptal',
@@ -29465,7 +29630,7 @@ $1:Example.jpg|Опис2',
'wikieditor-toolbar-tool-replace-button-replaceall' => 'Замінити всі',
'wikieditor-toolbar-tool-replace-close' => 'Закрити',
'wikieditor-toolbar-tool-replace-nomatch' => 'За Вашим запитом нічого не знайдено.',
- 'wikieditor-toolbar-tool-replace-success' => '$1 {{PLURAL:$1|заміну|замін}} зроблено.',
+ 'wikieditor-toolbar-tool-replace-success' => '$1 {{PLURAL:$1|1=заміну|заміни|замін}} зроблено.',
'wikieditor-toolbar-tool-replace-emptysearch' => 'Ви не зазначили, що треба шукати.',
'wikieditor-toolbar-tool-replace-invalidregex' => 'Введений вами регулярний вираз помилковий: $1',
'wikieditor-toolbar-section-characters' => 'Спеціальні символи',
@@ -29848,7 +30013,7 @@ $messages['uz'] = array(
'wikieditor-toolbar-tool-link-lookslikeinternal-int' => 'Ichki havola',
'wikieditor-toolbar-tool-link-lookslikeinternal-ext' => 'Tashqi havola',
'wikieditor-toolbar-tool-link-empty' => 'Nimaga ishorat qilishni koʻrsatmadingiz',
- 'wikieditor-toolbar-tool-file' => 'Oʻrnatilgan fayl',
+ 'wikieditor-toolbar-tool-file' => 'Fayl oʻrnatish',
'wikieditor-toolbar-tool-file-example' => 'Example.jpg',
'wikieditor-toolbar-tool-file-title' => 'Fayl qoʻyish',
'wikieditor-toolbar-file-target' => 'Fayl nomi:',
@@ -30007,7 +30172,7 @@ $1:Example.jpg|Izoh2',
'wikieditor-toolbar-help-content-olist-description' => 'Raqamlangan roʻyxat',
'wikieditor-toolbar-help-content-olist-syntax' => '# Roʻyxat qismi<br /># Roʻyxat qismi',
'wikieditor-toolbar-help-content-olist-result' => '<ol><li>Roʻyxat qismi</li><li>Roʻyxat qismi</li></ol>',
- 'wikieditor-toolbar-help-content-file-description' => 'Oʻrnatilgan fayl',
+ 'wikieditor-toolbar-help-content-file-description' => 'Fayl oʻrnatish',
'wikieditor-toolbar-help-content-file-syntax' => '[[$1:Example.png|thumb|Izohlovchi matn]]',
'wikieditor-toolbar-help-content-file-result' => "<div style='width:104px;' class='thumbinner'><a title='
Izohlovchi matn' class='image' href='#'><img height='50' width='100' border='0' class='thumbimage' src='$2/WikiEditor/modules/images/toolbar/example-image.png' alt=''/></a><div class='thumbcaption'><div class='magnify'><a title='Kattalashtirish' class='internal' href='#'><img height='11' width='15' alt='' src='$1/common/images/magnify-clip.png'/></a></div>
@@ -30289,17 +30454,51 @@ $messages['vep'] = array(
'wikieditor-publish-dialog-minor' => 'Penikaine redakcii',
'wikieditor-publish-dialog-publish' => 'Publikuida',
'wikieditor-publish-dialog-goback' => 'Tagaze',
+ 'wikieditor-template-editor-dialog-submit' => 'Udištada',
+ 'wikieditor-template-editor-dialog-cancel' => 'Tühjitada tego',
'wikieditor-toc-show' => 'Ozutada südäiolend',
+ 'wikieditor-toc-hide' => 'Peitta südäiolend',
+ 'wikieditor-toolbar' => "Redaktiruindan panel'",
+ 'wikieditor-toolbar-loading' => 'Ozutase…',
'wikieditor-toolbar-tool-bold' => 'Lihavoitud',
'wikieditor-toolbar-tool-bold-example' => 'Lihavoitud tekst',
+ 'wikieditor-toolbar-tool-italic' => 'Kursiv',
+ 'wikieditor-toolbar-tool-italic-example' => 'Kursivtekst',
+ 'wikieditor-toolbar-tool-ilink' => 'Südäikosketuz',
+ 'wikieditor-toolbar-tool-ilink-example' => 'Kosketusen pälkirjutez',
+ 'wikieditor-toolbar-tool-xlink' => 'Irdkosketuz (muštkat prefiksas http://)',
+ 'wikieditor-toolbar-tool-xlink-example' => 'http://www.example.com kosketusen pälkirjutez',
'wikieditor-toolbar-tool-link' => 'Kosketuz',
'wikieditor-toolbar-tool-link-title' => 'Ližada kosketuz',
+ 'wikieditor-toolbar-tool-link-int' => 'Wiki-lehtpolele',
+ 'wikieditor-toolbar-tool-link-int-target' => "Metlehtpol' vai URL:",
+ 'wikieditor-toolbar-tool-link-int-target-tooltip' => 'Lehtpolen nimi vai URL:',
+ 'wikieditor-toolbar-tool-link-int-text' => 'Ozutadud tekst:',
+ 'wikieditor-toolbar-tool-link-int-text-tooltip' => 'Ozutadud tekst:',
+ 'wikieditor-toolbar-tool-link-ext' => 'Irdaližele saitale',
'wikieditor-toolbar-tool-link-ext-target' => 'Kosketusen URL:',
'wikieditor-toolbar-tool-link-ext-text' => 'Kosketusen tekst:',
+ 'wikieditor-toolbar-tool-link-insert' => 'Ližada kosketuz',
'wikieditor-toolbar-tool-link-cancel' => 'Heitta',
+ 'wikieditor-toolbar-tool-link-int-target-status-exists' => "Lehtpol' om jo olmas",
+ 'wikieditor-toolbar-tool-link-int-target-status-notexists' => "Ei ole mugošt lehtpol't",
'wikieditor-toolbar-tool-link-int-target-status-invalid' => 'Vär nimi',
+ 'wikieditor-toolbar-tool-link-int-target-status-external' => 'Irdkosketuz',
+ 'wikieditor-toolbar-tool-link-int-invalid' => 'Nece pälkirjutez om vär.',
+ 'wikieditor-toolbar-tool-link-lookslikeinternal-int' => 'Südäikosketuz',
+ 'wikieditor-toolbar-tool-link-lookslikeinternal-ext' => 'Irdkosketuz',
'wikieditor-toolbar-tool-file' => 'Mülütadud fail',
'wikieditor-toolbar-tool-file-example' => 'Ozutez.jpg',
+ 'wikieditor-toolbar-tool-file-title' => 'Ližada fail',
+ 'wikieditor-toolbar-file-target' => 'Failannimi:',
+ 'wikieditor-toolbar-file-caption' => 'Allekirjutez:',
+ 'wikieditor-toolbar-file-size' => 'Suruz',
+ 'wikieditor-toolbar-file-float' => 'Tazostamine:',
+ 'wikieditor-toolbar-file-default' => '(augotižjärgendusen mödhe)',
+ 'wikieditor-toolbar-file-format' => 'Format:',
+ 'wikieditor-toolbar-file-format-none' => 'Ei ole',
+ 'wikieditor-toolbar-tool-file-insert' => 'Ližata',
+ 'wikieditor-toolbar-tool-file-cancel' => 'Tühjištada',
'wikieditor-toolbar-tool-reference-insert' => 'Ližata',
'wikieditor-toolbar-tool-heading' => 'Pälkirjutez',
'wikieditor-toolbar-tool-heading-1' => 'Tazopind 1',
@@ -30481,7 +30680,7 @@ $messages['vi'] = array(
'wikieditor-toolbar-tool-subscript' => 'Viết xuống dưới',
'wikieditor-toolbar-tool-subscript-example' => 'Chữ được viết xuống dưới',
'wikieditor-toolbar-group-insert' => 'Chèn',
- 'wikieditor-toolbar-tool-gallery' => 'Album hình ảnh',
+ 'wikieditor-toolbar-tool-gallery' => 'Tập ảnh',
'wikieditor-toolbar-tool-gallery-example' => '$1:Ví dụ.jpg|Chú thích 1
$1:Ví dụ.jpg|Chú thích 2',
'wikieditor-toolbar-tool-newline' => 'Dòng mới',
@@ -30625,7 +30824,7 @@ $messages['vo'] = array(
'wikieditor-toolbar-tool-link-int-target' => 'Tiäd pada:',
'wikieditor-toolbar-tool-link-int-text' => 'Vödem yüma',
'wikieditor-toolbar-tool-link-cancel' => 'Nosükön',
- 'wikieditor-toolbar-group-format' => 'Lised', # Fuzzy
+ 'wikieditor-toolbar-group-format' => 'Fomät',
'wikieditor-toolbar-tool-big' => 'Gretik',
'wikieditor-toolbar-tool-big-example' => 'Vödem gretik',
'wikieditor-toolbar-tool-table' => 'Taib',
@@ -31236,6 +31435,7 @@ $1:Example.jpg|Àkọlé2',
* @author Horacewai2
* @author Simon Shek
* @author Waihorace
+ * @author Xiaomingyan
*/
$messages['yue'] = array(
'wikieditor' => '進階維基文字編輯界面',
@@ -31368,8 +31568,8 @@ $1:Example.jpg|標題2',
| 行 2, 格 3',
'wikieditor-toolbar-tool-table-example-header' => '標題',
'wikieditor-toolbar-tool-table-title' => '插入表格',
- 'wikieditor-toolbar-tool-table-dimensions-rows' => '行',
- 'wikieditor-toolbar-tool-table-dimensions-columns' => '行',
+ 'wikieditor-toolbar-tool-table-dimensions-rows' => '行数',
+ 'wikieditor-toolbar-tool-table-dimensions-columns' => '列數',
'wikieditor-toolbar-tool-table-dimensions-header' => '新增標題行',
'wikieditor-toolbar-tool-table-wikitable' => '連埋外框同格式',
'wikieditor-toolbar-tool-table-sortable' => '整一個可以排序嘅表格',
@@ -31526,9 +31726,9 @@ $messages['zh-hans'] = array(
'wikieditor-toc-show' => '显示内容',
'wikieditor-toc-hide' => '隐藏内容',
'wikieditor-toolbar' => '编辑工具栏',
- 'wikieditor-toolbar-desc' => '具有增强可用性的页面编辑工具',
- 'wikieditor-toolbar-preference' => '启用增强编辑工具栏',
- 'wikieditor-toolbar-dialogs-preference' => '启用对话框插入链接、表格以及搜索和替换功能',
+ 'wikieditor-toolbar-desc' => '有增强的使用性能的页面编辑工具栏',
+ 'wikieditor-toolbar-preference' => '启用增强的编辑工具栏',
+ 'wikieditor-toolbar-dialogs-preference' => '启用插入链接表格向导及查找和替换功能',
'wikieditor-toolbar-hidesig' => '在主名字空间中隐藏签名按钮',
'wikieditor-toolbar-loading' => '正在载入',
'wikieditor-toolbar-tool-bold' => '粗体',
@@ -31567,7 +31767,7 @@ $messages['zh-hans'] = array(
'wikieditor-toolbar-tool-file-title' => '插入文件',
'wikieditor-toolbar-file-target' => '文件名:',
'wikieditor-toolbar-file-caption' => '标题:',
- 'wikieditor-toolbar-file-size' => '大小:',
+ 'wikieditor-toolbar-file-size' => '尺寸:',
'wikieditor-toolbar-file-float' => '对齐:',
'wikieditor-toolbar-file-default' => '(默认)',
'wikieditor-toolbar-file-format' => '格式:',
@@ -31575,7 +31775,7 @@ $messages['zh-hans'] = array(
'wikieditor-toolbar-tool-file-insert' => '插入',
'wikieditor-toolbar-tool-file-cancel' => '取消',
'wikieditor-toolbar-tool-reference' => '参考',
- 'wikieditor-toolbar-tool-reference-example' => '在此处插入注释文字',
+ 'wikieditor-toolbar-tool-reference-example' => '请在这里插入注释文字',
'wikieditor-toolbar-tool-reference-cancel' => '取消',
'wikieditor-toolbar-tool-reference-title' => '插入注释内容',
'wikieditor-toolbar-tool-reference-insert' => '插入',
@@ -31597,7 +31797,7 @@ $messages['zh-hans'] = array(
'wikieditor-toolbar-tool-indent' => '缩进',
'wikieditor-toolbar-tool-indent-example' => '已缩进行',
'wikieditor-toolbar-tool-nowiki' => '非维基格式文字',
- 'wikieditor-toolbar-tool-nowiki-example' => '在此处插入非维基格式文字',
+ 'wikieditor-toolbar-tool-nowiki-example' => '请在这里插入非格式化文字',
'wikieditor-toolbar-tool-redirect' => '重定向',
'wikieditor-toolbar-tool-redirect-example' => '目标页名称',
'wikieditor-toolbar-tool-big' => '大号',
@@ -31629,8 +31829,8 @@ $1:Example.jpg|标题2',
'wikieditor-toolbar-tool-table-example-cell-text' => '单元格文字',
'wikieditor-toolbar-tool-table-example-header' => '标题文字',
'wikieditor-toolbar-tool-table-title' => '插入表格',
- 'wikieditor-toolbar-tool-table-dimensions-rows' => '行',
- 'wikieditor-toolbar-tool-table-dimensions-columns' => '列',
+ 'wikieditor-toolbar-tool-table-dimensions-rows' => '行数',
+ 'wikieditor-toolbar-tool-table-dimensions-columns' => '列数',
'wikieditor-toolbar-tool-table-dimensions-header' => '添加标题行',
'wikieditor-toolbar-tool-table-wikitable' => '显示边框',
'wikieditor-toolbar-tool-table-sortable' => '使表格内容可排序',
@@ -31759,6 +31959,7 @@ $1:Example.jpg|标题2',
* @author Waihorace
* @author Wong128hk
* @author Wrightbus
+ * @author Xiaomingyan
*/
$messages['zh-hant'] = array(
'wikieditor' => '進階維基文字編輯介面',
@@ -31904,8 +32105,8 @@ $1:Example.jpg|標題2',
| 行 2, 格 3',
'wikieditor-toolbar-tool-table-example-header' => '標題',
'wikieditor-toolbar-tool-table-title' => '插入表格',
- 'wikieditor-toolbar-tool-table-dimensions-rows' => '行',
- 'wikieditor-toolbar-tool-table-dimensions-columns' => '列',
+ 'wikieditor-toolbar-tool-table-dimensions-rows' => '行數',
+ 'wikieditor-toolbar-tool-table-dimensions-columns' => '列數',
'wikieditor-toolbar-tool-table-dimensions-header' => '新增標題行',
'wikieditor-toolbar-tool-table-wikitable' => '設定邊框格式',
'wikieditor-toolbar-tool-table-sortable' => '使表格內容可排序',
diff --git a/extensions/WikiEditor/modules/ext.wikiEditor.dialogs.js b/extensions/WikiEditor/modules/ext.wikiEditor.dialogs.js
index 0e0dd090..c6d327f8 100644
--- a/extensions/WikiEditor/modules/ext.wikiEditor.dialogs.js
+++ b/extensions/WikiEditor/modules/ext.wikiEditor.dialogs.js
@@ -1,15 +1,14 @@
/*
* JavaScript for WikiEditor Dialogs
*/
-
-$( document ).ready( function() {
+jQuery( document ).ready( function ( $ ) {
if ( !$.wikiEditor.isSupported( $.wikiEditor.modules.dialogs ) ) {
return;
}
-
+
// Replace icons
$.wikiEditor.modules.dialogs.config.replaceIcons( $( '#wpTextbox1' ) );
-
+
// Add dialogs module
$( '#wpTextbox1' ).wikiEditor( 'addModule', $.wikiEditor.modules.dialogs.config.getDefaultConfig() );
} );
diff --git a/extensions/WikiEditor/modules/ext.wikiEditor.highlight.js b/extensions/WikiEditor/modules/ext.wikiEditor.highlight.js
index a6b43851..92515cfd 100644
--- a/extensions/WikiEditor/modules/ext.wikiEditor.highlight.js
+++ b/extensions/WikiEditor/modules/ext.wikiEditor.highlight.js
@@ -1,8 +1,7 @@
/*
* JavaScript for WikiEditor Highlighting
*/
-
-$( document ).ready( function() {
+jQuery( document ).ready( function ( $ ) {
// Add highlight module
$( '#wpTextbox1' ).wikiEditor( 'addModule', 'highlight' );
} );
diff --git a/extensions/WikiEditor/modules/ext.wikiEditor.js b/extensions/WikiEditor/modules/ext.wikiEditor.js
index 6056e63b..46087989 100644
--- a/extensions/WikiEditor/modules/ext.wikiEditor.js
+++ b/extensions/WikiEditor/modules/ext.wikiEditor.js
@@ -1,8 +1,7 @@
/*
* JavaScript for WikiEditor
*/
-
-$( document ).ready( function() {
+jQuery( document ).ready( function ( $ ) {
// Initialize wikiEditor
$( '#wpTextbox1' ).wikiEditor();
} );
diff --git a/extensions/WikiEditor/modules/ext.wikiEditor.preview.js b/extensions/WikiEditor/modules/ext.wikiEditor.preview.js
index 3fbca82d..cdc00f7b 100644
--- a/extensions/WikiEditor/modules/ext.wikiEditor.preview.js
+++ b/extensions/WikiEditor/modules/ext.wikiEditor.preview.js
@@ -1,8 +1,7 @@
/*
* JavaScript for WikiEditor Preview module
*/
-
-$( document ).ready( function() {
+jQuery( document ).ready( function ( $ ) {
// Add preview module
$( 'textarea#wpTextbox1' ).wikiEditor( 'addModule', 'preview' );
} );
diff --git a/extensions/WikiEditor/modules/ext.wikiEditor.previewDialog.js b/extensions/WikiEditor/modules/ext.wikiEditor.previewDialog.js
index 67f97e00..3b1acd7c 100644
--- a/extensions/WikiEditor/modules/ext.wikiEditor.previewDialog.js
+++ b/extensions/WikiEditor/modules/ext.wikiEditor.previewDialog.js
@@ -1,8 +1,7 @@
/*
* JavaScript for WikiEditor Preview Dialog
*/
-
-$( document ).ready( function() {
+jQuery( document ).ready( function ( $ ) {
// Add preview module
$( 'textarea#wpTextbox1' ).wikiEditor( 'addModule', 'previewDialog' );
} );
diff --git a/extensions/WikiEditor/modules/ext.wikiEditor.publish.js b/extensions/WikiEditor/modules/ext.wikiEditor.publish.js
index d874478c..423766d2 100644
--- a/extensions/WikiEditor/modules/ext.wikiEditor.publish.js
+++ b/extensions/WikiEditor/modules/ext.wikiEditor.publish.js
@@ -1,8 +1,7 @@
/*
* JavaScript for WikiEditor Publish module
*/
-
-$( document ).ready( function() {
+jQuery( document ).ready( function ( $ ) {
// Add publish module
$( '#wpTextbox1' ).wikiEditor( 'addModule', 'publish' );
} );
diff --git a/extensions/WikiEditor/modules/ext.wikiEditor.templateEditor.js b/extensions/WikiEditor/modules/ext.wikiEditor.templateEditor.js
index 8879d10d..660a14fb 100644
--- a/extensions/WikiEditor/modules/ext.wikiEditor.templateEditor.js
+++ b/extensions/WikiEditor/modules/ext.wikiEditor.templateEditor.js
@@ -1,12 +1,13 @@
/*
* JavaScript for WikiEditor Template Editor
*/
-
-$( document ).ready( function () {
- // Disable in template namespace
- if ( mw.config.get( 'wgNamespaceNumber' ) === 10 ) {
- return true;
- }
- // Add template editor module
- $( 'textarea#wpTextbox1' ).wikiEditor( 'addModule', 'templateEditor' );
-});
+( function ( mw, $ ) {
+ $( document ).ready( function () {
+ // Disable in template namespace
+ if ( mw.config.get( 'wgNamespaceNumber' ) === 10 ) {
+ return true;
+ }
+ // Add template editor module
+ $( 'textarea#wpTextbox1' ).wikiEditor( 'addModule', 'templateEditor' );
+ } );
+}( mediaWiki, jQuery ) );
diff --git a/extensions/WikiEditor/modules/ext.wikiEditor.templates.js b/extensions/WikiEditor/modules/ext.wikiEditor.templates.js
index 6eae6de5..fec51866 100644
--- a/extensions/WikiEditor/modules/ext.wikiEditor.templates.js
+++ b/extensions/WikiEditor/modules/ext.wikiEditor.templates.js
@@ -1,12 +1,13 @@
/*
* JavaScript for WikiEditor Templates
*/
-
-$( document ).ready( function () {
- // Disable for template namespace
- if ( mw.config.get( 'wgNamespaceNumber' ) === 10 ) {
- return true;
- }
- // Add templates module
- $( '#wpTextbox1' ).wikiEditor( 'addModule', 'templates' );
-} );
+( function ( mw, $ ) {
+ $( document ).ready( function () {
+ // Disable for template namespace
+ if ( mw.config.get( 'wgNamespaceNumber' ) === 10 ) {
+ return true;
+ }
+ // Add templates module
+ $( '#wpTextbox1' ).wikiEditor( 'addModule', 'templates' );
+ } );
+}( mediaWiki, jQuery ) );
diff --git a/extensions/WikiEditor/modules/ext.wikiEditor.tests.toolbar.js b/extensions/WikiEditor/modules/ext.wikiEditor.tests.toolbar.js
index d4ffe5ae..7ed765e9 100644
--- a/extensions/WikiEditor/modules/ext.wikiEditor.tests.toolbar.js
+++ b/extensions/WikiEditor/modules/ext.wikiEditor.tests.toolbar.js
@@ -4,7 +4,7 @@
var textareaId = '#wpTextbox1';
var wikiEditorTests = {
// Add emoticons section
- add_sections_toolbar: {
+ 'add_sections_toolbar': {
call: 'addToToolbar',
data: {
'sections': {
@@ -159,8 +159,8 @@ var wikiEditorTests = {
data: {
section: 'info',
page: 'removeme'
- },
- test: '*[rel=info].section *[rel=removeme].page',
+ },
+ test: '*[rel=info].section *[rel=removeme].page',
pre: 1,
post: 0
},
@@ -171,8 +171,8 @@ var wikiEditorTests = {
section: 'info',
page: 'emoticons',
'character': ':))'
- },
- test: '*[rel=info].section *[rel=emoticons].page *[rel=":))"]',
+ },
+ test: '*[rel=info].section *[rel=emoticons].page *[rel=":))"]',
pre: 1,
post: 0
},
@@ -211,7 +211,7 @@ jQuery(document).ready( function ( $ ) {
return false;
}
- var test, pre, post,
+ var test, pre, post, i,
messages = [ 'Running tests for wikiEditor API' ],
$target = $( textareaId ),
$ui = $target.data( 'wikiEditor-context' ).$ui,
@@ -234,13 +234,13 @@ jQuery(document).ready( function ( $ ) {
}
if ( window.console ) {
- for ( var i = 0; i < messages.length; i++ ) {
+ for ( i = 0; i < messages.length; i++ ) {
window.console.log( messages[i] );
}
}
$(this)
- .attr( 'title', messages.join( " | " ) )
+ .attr( 'title', messages.join( ' | ' ) )
.text( passes + ' / ' + tests + ' were successful' )
.css( 'backgroundColor', passes < tests ? 'red' : 'green' )
.data( 'testDone', 'true' )
diff --git a/extensions/WikiEditor/modules/ext.wikiEditor.toc.js b/extensions/WikiEditor/modules/ext.wikiEditor.toc.js
index 264e9f86..1fc542c5 100644
--- a/extensions/WikiEditor/modules/ext.wikiEditor.toc.js
+++ b/extensions/WikiEditor/modules/ext.wikiEditor.toc.js
@@ -1,8 +1,7 @@
/*
* JavaScript for WikiEditor Table of Contents
*/
-
-$( document ).ready( function() {
+jQuery( document ).ready( function ( $ ) {
// Add table of contents module
$( '#wpTextbox1' ).wikiEditor( 'addModule', 'toc' );
} );
diff --git a/extensions/WikiEditor/modules/ext.wikiEditor.toolbar.hideSig.js b/extensions/WikiEditor/modules/ext.wikiEditor.toolbar.hideSig.js
index 3bc0f0b4..48d30274 100644
--- a/extensions/WikiEditor/modules/ext.wikiEditor.toolbar.hideSig.js
+++ b/extensions/WikiEditor/modules/ext.wikiEditor.toolbar.hideSig.js
@@ -1,7 +1,7 @@
/*
* Remove the signature button if the main namespace is edited.
*/
-$( document ).ready( function() {
+jQuery( document ).ready( function ( $ ) {
// This module is designed not to depend on ext.wikiEditor or jquery.wikiEditor.
// Removing this dependency fixed various bugs, but it does mean that we have to
// account for the situation where $.wikiEditor is not present
@@ -11,4 +11,4 @@ $( document ).ready( function() {
if ( $( 'body' ).hasClass( 'ns-0' ) ) {
$( '#wpTextbox1' ).wikiEditor( 'removeFromToolbar', { 'section': 'main', 'group': 'insert', 'tool': 'signature' } );
}
-});
+} );
diff --git a/extensions/WikiEditor/modules/ext.wikiEditor.toolbar.js b/extensions/WikiEditor/modules/ext.wikiEditor.toolbar.js
index 5cdeae57..3f30c0c4 100644
--- a/extensions/WikiEditor/modules/ext.wikiEditor.toolbar.js
+++ b/extensions/WikiEditor/modules/ext.wikiEditor.toolbar.js
@@ -1,8 +1,7 @@
/*
* JavaScript for WikiEditor Toolbar
*/
-
-$( document ).ready( function() {
+jQuery( document ).ready( function ( $ ) {
if ( !$.wikiEditor.isSupported( $.wikiEditor.modules.toolbar ) ) {
$( '.wikiEditor-oldToolbar' ).show();
return;
diff --git a/extensions/WikiEditor/modules/images/toolbar/format-bold-hy.png b/extensions/WikiEditor/modules/images/toolbar/format-bold-hy.png
new file mode 100644
index 00000000..453a9580
--- /dev/null
+++ b/extensions/WikiEditor/modules/images/toolbar/format-bold-hy.png
Binary files differ
diff --git a/extensions/WikiEditor/modules/images/toolbar/format-italic-hy.png b/extensions/WikiEditor/modules/images/toolbar/format-italic-hy.png
new file mode 100644
index 00000000..108bae64
--- /dev/null
+++ b/extensions/WikiEditor/modules/images/toolbar/format-italic-hy.png
Binary files differ
diff --git a/extensions/WikiEditor/modules/jquery.wikiEditor.css b/extensions/WikiEditor/modules/jquery.wikiEditor.css
index d8e331cc..6e05ff03 100644
--- a/extensions/WikiEditor/modules/jquery.wikiEditor.css
+++ b/extensions/WikiEditor/modules/jquery.wikiEditor.css
@@ -19,9 +19,6 @@
.wikiEditor-ui textarea:focus {
outline: none;
}
-.wikiEditor-ui .wikiEditor-ui-bottom {
-
-}
.wikiEditor-ui .wikiEditor-ui-text {
line-height: 0;
}
diff --git a/extensions/WikiEditor/modules/jquery.wikiEditor.dialogs.config.js b/extensions/WikiEditor/modules/jquery.wikiEditor.dialogs.config.js
index 0d769164..f37d004e 100644
--- a/extensions/WikiEditor/modules/jquery.wikiEditor.dialogs.config.js
+++ b/extensions/WikiEditor/modules/jquery.wikiEditor.dialogs.config.js
@@ -1,6 +1,8 @@
/**
* Configuration of Dialog module for wikiEditor
*/
+/*jshint curly:false, noarg:false, quotmark:false, onevar:false */
+/*global alert */
( function ( $, mw ) {
$.wikiEditor.modules.dialogs.config = {
@@ -226,7 +228,7 @@ $.wikiEditor.modules.dialogs.config = {
);
}
$( '#wikieditor-toolbar-link-type-int, #wikieditor-toolbar-link-type-ext' ).click( function () {
- if ( $( '#wikieditor-toolbar-link-type-ext' ).is( ':checked' ) ) {
+ if ( $( '#wikieditor-toolbar-link-type-ext' ).prop( 'checked' ) ) {
// Abort previous request
var request = $( '#wikieditor-toolbar-link-int-target-status' ).data( 'request' );
if ( request ) {
@@ -234,8 +236,9 @@ $.wikiEditor.modules.dialogs.config = {
}
updateWidget( 'external' );
}
- if ( $( '#wikieditor-toolbar-link-type-int' ).is( ':checked' ) )
+ if ( $( '#wikieditor-toolbar-link-type-int' ).prop( 'checked' ) ) {
updateExistence( true );
+ }
});
// Set labels of tabs based on rel values
$(this).find( '[rel]' ).each( function () {
@@ -250,12 +253,12 @@ $.wikiEditor.modules.dialogs.config = {
.data( 'tooltip', mw.msg( 'wikieditor-toolbar-tool-link-int-text-tooltip' ) );
$( '#wikieditor-toolbar-link-int-target, #wikieditor-toolbar-link-int-text' )
.each( function () {
- var tooltip = mw.msg( $( this ).attr( 'id' ) + '-tooltip' );
- if ( $( this ).val() === '' )
+ if ( $( this ).val() === '' ) {
$( this )
.addClass( 'wikieditor-toolbar-dialog-hint' )
.val( $( this ).data( 'tooltip' ) )
.data( 'tooltip-mode', true );
+ }
} )
.focus( function () {
if ( $( this ).val() === $( this ).data( 'tooltip' ) ) {
@@ -295,26 +298,30 @@ $.wikiEditor.modules.dialogs.config = {
$( '#wikieditor-toolbar-link-type-int' ).prop( 'checked', true );
updateExistence();
}
- if ( $( '#wikieditor-toolbar-link-int-text' ).data( 'untouched' ) )
+ /*jshint eqeqeq:false */
+ if ( $( '#wikieditor-toolbar-link-int-text' ).data( 'untouched' ) ) {
if ( $( '#wikieditor-toolbar-link-int-target' ).val() ==
- $( '#wikieditor-toolbar-link-int-target' ).data( 'tooltip' ) ) {
- $( '#wikieditor-toolbar-link-int-text' )
- .addClass( 'wikieditor-toolbar-dialog-hint' )
- .val( $( '#wikieditor-toolbar-link-int-text' ).data( 'tooltip' ) )
- .change();
- } else {
- $( '#wikieditor-toolbar-link-int-text' )
- .val( $( '#wikieditor-toolbar-link-int-target' ).val() )
- .change();
- }
+ $( '#wikieditor-toolbar-link-int-target' ).data( 'tooltip' )
+ ) {
+ $( '#wikieditor-toolbar-link-int-text' )
+ .addClass( 'wikieditor-toolbar-dialog-hint' )
+ .val( $( '#wikieditor-toolbar-link-int-text' ).data( 'tooltip' ) )
+ .change();
+ } else {
+ $( '#wikieditor-toolbar-link-int-text' )
+ .val( $( '#wikieditor-toolbar-link-int-target' ).val() )
+ .change();
+ }
+ }
}, 0 );
});
$( '#wikieditor-toolbar-link-int-text' ).bind( 'change keydown paste cut', function () {
var oldVal = $(this).val();
var that = this;
setTimeout( function () {
- if ( $(that).val() !== oldVal )
+ if ( $(that).val() !== oldVal ) {
$(that).data( 'untouched', false );
+ }
}, 0 );
});
// Add images to the page existence widget, which will be shown mutually exclusively to communicate if
@@ -379,7 +386,7 @@ $.wikiEditor.modules.dialogs.config = {
// Title suggestions
$( '#wikieditor-toolbar-link-int-target' ).data( 'suggcache', {} ).suggestions( {
- fetch: function ( query ) {
+ fetch: function () {
var that = this;
var title = $(this).val();
@@ -608,7 +615,7 @@ $.wikiEditor.modules.dialogs.config = {
// Execute the action associated with the first button
// when the user presses Enter
$(this).closest( '.ui-dialog' ).keypress( function ( e ) {
- if ( ( e.keyCode || e.which ) == 13 ) {
+ if ( ( e.keyCode || e.which ) === 13 ) {
var button = $(this).data( 'dialogaction' ) || $(this).find( 'button:first' );
button.click();
e.preventDefault();
@@ -706,7 +713,7 @@ $.wikiEditor.modules.dialogs.config = {
// Execute the action associated with the first button
// when the user presses Enter
$( this ).closest( '.ui-dialog' ).keypress( function ( e ) {
- if ( ( e.keyCode || e.which ) == 13 ) {
+ if ( ( e.keyCode || e.which ) === 13 ) {
var button = $( this ).data( 'dialogaction' ) || $( this ).find( 'button:first' );
button.click();
e.preventDefault();
@@ -978,7 +985,7 @@ $.wikiEditor.modules.dialogs.config = {
var hiddenHTML = $( '.wikieditor-toolbar-table-preview-hidden' ).html();
$( '.wikieditor-toolbar-table-preview-header' ).html( hiddenHTML );
$( '.wikieditor-toolbar-table-preview-hidden' ).html( headerHTML );
- if ( typeof jQuery.fn.tablesorter == 'function' ) {
+ if ( typeof jQuery.fn.tablesorter === 'function' ) {
$( '#wikieditor-toolbar-table-preview, #wikieditor-toolbar-table-preview2' )
.filter( '.sortable' )
.tablesorter();
@@ -1070,7 +1077,7 @@ $.wikiEditor.modules.dialogs.config = {
// Execute the action associated with the first button
// when the user presses Enter
$(this).closest( '.ui-dialog' ).keypress( function ( e ) {
- if ( ( e.keyCode || e.which ) == 13 ) {
+ if ( ( e.keyCode || e.which ) === 13 ) {
var button = $(this).data( 'dialogaction' ) || $(this).find( 'button:first' );
button.click();
e.preventDefault();
@@ -1202,7 +1209,7 @@ $.wikiEditor.modules.dialogs.config = {
if ( !match ) {
$( '#wikieditor-toolbar-replace-nomatch' ).show();
- } else if ( mode == 'replaceAll' ) {
+ } else if ( mode === 'replaceAll' ) {
// Instead of using repetitive .match() calls, we use one .match() call with /g
// and indexOf() followed by substr() to find the offsets. This is actually
// faster because our indexOf+substr loop is faster than a match loop, and the
@@ -1237,7 +1244,7 @@ $.wikiEditor.modules.dialogs.config = {
$(this).data( 'offset', 0 );
} else {
- if ( mode == 'replace' ) {
+ if ( mode === 'replace' ) {
var actualReplacement;
if (isRegex) {
@@ -1330,7 +1337,7 @@ $.wikiEditor.modules.dialogs.config = {
// Execute the action associated with the first button
// when the user presses Enter
$(this).closest( '.ui-dialog' ).keypress( function ( e ) {
- if ( ( e.keyCode || e.which ) == 13 ) {
+ if ( ( e.keyCode || e.which ) === 13 ) {
var button = $(this).data( 'dialogaction' ) || $(this).find( 'button:first' );
button.click();
e.preventDefault();
@@ -1350,12 +1357,12 @@ $.wikiEditor.modules.dialogs.config = {
$( textbox )
.bind( 'keypress.srdialog', function ( e ) {
- if ( e.which == 13 ) {
+ if ( e.which === 13 ) {
// Enter
var button = dialog.data( 'dialogaction' ) || dialog.find( 'button:first' );
button.click();
e.preventDefault();
- } else if ( e.which == 27 ) {
+ } else if ( e.which === 27 ) {
// Escape
$(that).dialog( 'close' );
}
diff --git a/extensions/WikiEditor/modules/jquery.wikiEditor.dialogs.js b/extensions/WikiEditor/modules/jquery.wikiEditor.dialogs.js
index f6d86d78..6d92966f 100644
--- a/extensions/WikiEditor/modules/jquery.wikiEditor.dialogs.js
+++ b/extensions/WikiEditor/modules/jquery.wikiEditor.dialogs.js
@@ -42,8 +42,8 @@ $.wikiEditor.modules.dialogs = {
},
openDialog: function ( context, module ) {
if ( module in $.wikiEditor.modules.dialogs.modules ) {
- var mod = $.wikiEditor.modules.dialogs.modules[module];
- var $dialog = $( '#' + mod.id );
+ var mod = $.wikiEditor.modules.dialogs.modules[module],
+ $dialog = $( '#' + mod.id );
if ( $dialog.length === 0 ) {
$.wikiEditor.modules.dialogs.fn.reallyCreate( context, mod, module );
$dialog = $( '#' + mod.id );
@@ -82,7 +82,7 @@ $.wikiEditor.modules.dialogs = {
module = config[mod];
// Only create the dialog if it's supported, isn't filtered and doesn't exist yet
filtered = false;
- if ( typeof module.filters != 'undefined' ) {
+ if ( typeof module.filters !== 'undefined' ) {
for ( i = 0; i < module.filters.length; i++ ) {
if ( $( module.filters[i] ).length === 0 ) {
filtered = true;
@@ -92,7 +92,7 @@ $.wikiEditor.modules.dialogs = {
}
// If the dialog already exists, but for another textarea, simply remove it
$existingDialog = $( '#' + module.id );
- if ( $existingDialog.length > 0 && $existingDialog.data( 'context' ).$textarea != context.$textarea ) {
+ if ( $existingDialog.length > 0 && $existingDialog.data( 'context' ).$textarea !== context.$textarea ) {
$existingDialog.remove();
}
// Re-select from the DOM, we might have removed the dialog just now
@@ -119,13 +119,13 @@ $.wikiEditor.modules.dialogs = {
* @param {String} name Dialog name (key in $.wikiEditor.modules.dialogs.modules)
*/
reallyCreate: function ( context, module, name ) {
- var msg,
+ var msg, dialogDiv,
configuration = module.dialog;
// Add some stuff to configuration
configuration.bgiframe = true;
configuration.autoOpen = false;
// By default our dialogs are modal, unless explicitely defined in their specific configuration.
- if( typeof configuration.modal == "undefined" ) {
+ if( typeof configuration.modal === 'undefined' ) {
configuration.modal = true;
}
configuration.title = $.wikiEditor.autoMsg( module, 'title' );
@@ -138,7 +138,7 @@ $.wikiEditor.modules.dialogs = {
}
configuration.buttons = configuration.newButtons;
// Create the dialog <div>
- var dialogDiv = $( '<div>' )
+ dialogDiv = $( '<div>' )
.attr( 'id', module.id )
.html( module.html )
.data( 'context', context )
@@ -171,26 +171,28 @@ $.wikiEditor.modules.dialogs = {
* NOTE: This function assumes $.ui.dialog has already been loaded
*/
resize: function () {
- var wrapper = $(this).closest( '.ui-dialog' );
- var oldWidth = wrapper.width();
- // Make sure elements don't wrapped so we get an accurate idea of whether they really fit. Also temporarily show
- // hidden elements. Work around jQuery bug where <div style="display: inline;"/> inside a dialog is both
- // :visible and :hidden
- var oldHidden = $(this).find( '*' ).not( ':visible' );
+ var oldWS, thisWidth, wrapperWidth,
+ wrapper = $(this).closest( '.ui-dialog' ),
+ oldWidth = wrapper.width(),
+ // Make sure elements don't wrapped so we get an accurate idea of whether they really fit. Also temporarily show
+ // hidden elements. Work around jQuery bug where <div style="display: inline;"/> inside a dialog is both
+ // :visible and :hidden
+ oldHidden = $(this).find( '*' ).not( ':visible' );
+
// Save the style attributes of the hidden elements to restore them later. Calling hide() after show() messes up
// for elements hidden with a class
oldHidden.each( function () {
$(this).data( 'oldstyle', $(this).attr( 'style' ) );
});
oldHidden.show();
- var oldWS = $(this).css( 'white-space' );
+ oldWS = $(this).css( 'white-space' );
$(this).css( 'white-space', 'nowrap' );
if ( wrapper.width() <= $(this).get(0).scrollWidth ) {
- var thisWidth = $(this).data( 'thisWidth' ) ? $(this).data( 'thisWidth' ) : 0;
+ thisWidth = $(this).data( 'thisWidth' ) ? $(this).data( 'thisWidth' ) : 0;
thisWidth = Math.max( $(this).get(0).width, thisWidth );
$(this).width( thisWidth );
$(this).data( 'thisWidth', thisWidth );
- var wrapperWidth = $(this).data( 'wrapperWidth' ) ? $(this).data( 'wrapperWidth' ) : 0;
+ wrapperWidth = $(this).data( 'wrapperWidth' ) ? $(this).data( 'wrapperWidth' ) : 0;
wrapperWidth = Math.max( wrapper.get(0).scrollWidth, wrapperWidth );
wrapper.width( wrapperWidth );
$(this).data( 'wrapperWidth', wrapperWidth );
diff --git a/extensions/WikiEditor/modules/jquery.wikiEditor.highlight.js b/extensions/WikiEditor/modules/jquery.wikiEditor.highlight.js
index 9d964fa7..f646e456 100644
--- a/extensions/WikiEditor/modules/jquery.wikiEditor.highlight.js
+++ b/extensions/WikiEditor/modules/jquery.wikiEditor.highlight.js
@@ -20,13 +20,21 @@ $.wikiEditor.modules.highlight = {
* Internally used event handlers
*/
evt: {
+ /**
+ * @param context
+ * @param event
+ */
delayedChange: function ( context, event ) {
- if ( event.data.scope == 'realchange' ) {
+ if ( event.data.scope === 'realchange' ) {
$.wikiEditor.modules.highlight.fn.scan( context );
$.wikiEditor.modules.highlight.fn.mark( context, event.data.scope );
}
},
- ready: function ( context, event ) {
+ /**
+ * @param context
+ * @param event
+ */
+ ready: function ( context ) {
$.wikiEditor.modules.highlight.fn.scan( context );
$.wikiEditor.modules.highlight.fn.mark( context, 'ready' );
}
@@ -39,19 +47,22 @@ $.wikiEditor.modules.highlight = {
/**
* Creates a highlight module within a wikiEditor
*
+ * @param context
* @param config Configuration object to create module from
*/
- create: function ( context, config ) {
+ create: function ( context ) {
context.modules.highlight.markersStr = '';
},
/**
* Scans text division for tokens
*
+ * @param context
* @param division
*/
- scan: function ( context, division ) {
+ scan: function ( context ) {
var tokenArray, text, module, exp,
- left, right, match;
+ left, right, match,
+ regex, label, markAfter, offset;
/*jshint eqnull: true */
// Remove all existing tokens
@@ -65,11 +76,11 @@ $.wikiEditor.modules.highlight = {
if ( module in $.wikiEditor.modules && 'exp' in $.wikiEditor.modules[module] ) {
for ( exp in $.wikiEditor.modules[module].exp ) {
// Prepare configuration
- var regex = $.wikiEditor.modules[module].exp[exp].regex;
- var label = $.wikiEditor.modules[module].exp[exp].label;
- var markAfter = $.wikiEditor.modules[module].exp[exp].markAfter || false;
+ regex = $.wikiEditor.modules[module].exp[exp].regex;
+ label = $.wikiEditor.modules[module].exp[exp].label;
+ markAfter = $.wikiEditor.modules[module].exp[exp].markAfter || false;
// Search for tokens
- var offset = 0;
+ offset = 0;
while ( ( match = text.substr( offset ).match( regex ) ) != null ) {
right = ( left = offset + match.index ) + match[0].length;
tokenArray[tokenArray.length] = {
@@ -95,16 +106,19 @@ $.wikiEditor.modules.highlight = {
/**
* Marks up text with HTML
*
+ * @param context
* @param division
* @param tokens
*/
// FIXME: What do division and tokens do?
// TODO: Document the scan() and mark() APIs somewhere
- mark: function ( context, division, tokens ) {
- var i, subtracted, oldLength, j, o;
+ mark: function ( context, division ) {
+ /*jshint eqeqeq:false, onevar:false */
+ var i, subtracted, oldLength, j, o,
+ markers;
// Reset markers
- var markers = [];
+ markers = [];
// Recycle markers that will be skipped in this run
if ( context.modules.highlight.markers && division !== '' ) {
@@ -353,8 +367,9 @@ $.wikiEditor.modules.highlight = {
// Don't remove these either
return true;
}
- if ( marker && typeof marker.beforeUnwrap === 'function' )
+ if ( marker && typeof marker.beforeUnwrap === 'function' ) {
marker.beforeUnwrap( this );
+ }
if ( ( marker && marker.anchor === 'tag' ) || $(this).is( 'p' ) ) {
// Remove all classes
$(this).removeAttr( 'class' );
diff --git a/extensions/WikiEditor/modules/jquery.wikiEditor.iframe.js b/extensions/WikiEditor/modules/jquery.wikiEditor.iframe.js
index 4d425012..538fcb18 100644
--- a/extensions/WikiEditor/modules/jquery.wikiEditor.iframe.js
+++ b/extensions/WikiEditor/modules/jquery.wikiEditor.iframe.js
@@ -1,6 +1,6 @@
/* IFrame extension for wikiEditor */
-
-( function( $ ) { $.wikiEditor.extensions.iframe = function( context ) {
+/*jshint onevar:false, boss:true */
+( function ( $ ) { $.wikiEditor.extensions.iframe = function ( context ) {
/*
* Event Handlers
@@ -14,18 +14,18 @@ context.evt = $.extend( context.evt, {
* function is to both classify the scope of changes as 'division' or 'character' and to prevent further
* processing of events which did not actually change the content of the iframe.
*/
- 'keydown': function( event ) {
+ keydown: function ( event ) {
switch ( event.which ) {
case 90: // z
case 89: // y
- if ( event.which == 89 && !$.browser.msie ) {
+ if ( event.which === 89 && !$.browser.msie ) {
// only handle y events for IE
return true;
} else if ( ( event.ctrlKey || event.metaKey ) && context.history.length ) {
// HistoryPosition is a negative number between -1 and -context.history.length, in other words
// it's the number of steps backwards from the latest state.
var newPosition;
- if ( event.shiftKey || event.which == 89 ) {
+ if ( event.shiftKey || event.which === 89 ) {
// Redo
newPosition = context.historyPosition + 1;
} else {
@@ -35,7 +35,7 @@ context.evt = $.extend( context.evt, {
// Only act if we are switching to a valid state
if ( newPosition >= ( context.history.length * -1 ) && newPosition < 0 ) {
// Make sure we run the history storing code before we make this change
- context.fn.updateHistory( context.oldDelayedHTML != context.$content.html() );
+ context.fn.updateHistory( context.oldDelayedHTML !== context.$content.html() );
context.oldDelayedHistoryPosition = context.historyPosition;
context.historyPosition = newPosition;
// Change state
@@ -65,8 +65,8 @@ context.evt = $.extend( context.evt, {
var $tabindexList = $( '[tabindex]:visible' ).sort( function( a, b ) {
return a.tabIndex - b.tabIndex;
} );
- for( var i=0; i < $tabindexList.length; i++ ) {
- if( $tabindexList.eq( i ).attr( 'id' ) == context.$iframe.attr( 'id' ) ) {
+ for ( var i=0; i < $tabindexList.length; i++ ) {
+ if ( $tabindexList.eq( i ).attr( 'id' ) === context.$iframe.attr( 'id' ) ) {
$tabindexList.get( i + 1 ).focus();
break;
}
@@ -74,48 +74,48 @@ context.evt = $.extend( context.evt, {
return false;
}
break;
- case 86: //v
- if ( event.ctrlKey && $.browser.msie && 'paste' in context.evt ) {
- //paste, intercepted for IE
- context.evt.paste( event );
- }
- break;
+ case 86: //v
+ if ( event.ctrlKey && $.browser.msie && 'paste' in context.evt ) {
+ //paste, intercepted for IE
+ context.evt.paste( event );
+ }
+ break;
}
return true;
},
- 'change': function( event ) {
+ change: function ( event ) {
event.data.scope = 'division';
var newHTML = context.$content.html();
- if ( context.oldHTML != newHTML ) {
+ if ( context.oldHTML !== newHTML ) {
context.fn.purgeOffsets();
context.oldHTML = newHTML;
event.data.scope = 'realchange';
}
// Never let the body be totally empty
- if ( context.$content.children().length == 0 ) {
+ if ( context.$content.children().length === 0 ) {
context.$content.append( '<p></p>' );
}
return true;
},
- 'delayedChange': function( event ) {
+ delayedChange: function ( event ) {
event.data.scope = 'division';
var newHTML = context.$content.html();
- if ( context.oldDelayedHTML != newHTML ) {
+ if ( context.oldDelayedHTML !== newHTML ) {
context.oldDelayedHTML = newHTML;
event.data.scope = 'realchange';
// Surround by <p> if it does not already have it
var cursorPos = context.fn.getCaretPosition();
var t = context.fn.getOffset( cursorPos[0] );
- if ( ! $.browser.msie && t && t.node.nodeName == '#text' && t.node.parentNode.nodeName.toLowerCase() == 'body' ) {
- $( t.node ).wrap( "<p></p>" );
+ if ( ! $.browser.msie && t && t.node.nodeName === '#text' && t.node.parentNode.nodeName.toLowerCase() === 'body' ) {
+ $( t.node ).wrap( '<p></p>' );
context.fn.purgeOffsets();
context.fn.setSelection( { start: cursorPos[0], end: cursorPos[1] } );
}
}
- context.fn.updateHistory( event.data.scope == 'realchange' );
+ context.fn.updateHistory( event.data.scope === 'realchange' );
return true;
},
- 'cut': function( event ) {
+ cut: function ( event ) {
setTimeout( function() {
context.$content.find( 'br' ).each( function() {
if ( $(this).parent().is( 'body' ) ) {
@@ -125,7 +125,7 @@ context.evt = $.extend( context.evt, {
}, 100 );
return true;
},
- 'paste': function( event ) {
+ paste: function ( event ) {
// Save the cursor position to restore it after all this voodoo
var cursorPos = context.fn.getCaretPosition();
var oldLength = context.fn.getContents().length;
@@ -138,6 +138,7 @@ context.evt = $.extend( context.evt, {
}
setTimeout( function() {
+ /*jshint eqnull:true */
// Kill stuff we know we don't want
context.$content.find( 'script,style,img,input,select,textarea,hr,button,link,meta' ).remove();
var nodeToDelete = [];
@@ -152,30 +153,31 @@ context.evt = $.extend( context.evt, {
}
if ( elementAtCursor == null || elementAtCursor.node == null ) {
context.$content.prepend( '<p class = wikiEditor></p>' );
- firstDirtyNode = context.$content.children()[0];
+ firstDirtyNode = context.$content.children()[0];
} else {
firstDirtyNode = elementAtCursor.node;
}
- //this is ugly but seems like the best way to handle the case where we select and replace all editor contents
+ // This is ugly but seems like the best way to handle the case where we select and replace all editor contents
try {
+ /*jshint expr:true */
firstDirtyNode.parentNode;
} catch ( err ) {
context.$content.prepend( '<p class = wikiEditor></p>' );
- firstDirtyNode = context.$content.children()[0];
+ firstDirtyNode = context.$content.children()[0];
}
while ( firstDirtyNode != null ) {
//we're going to replace the contents of the entire parent node.
- while ( firstDirtyNode.parentNode && firstDirtyNode.parentNode.nodeName != 'BODY'
- && ! $( firstDirtyNode ).hasClass( 'wikiEditor' )
- ) {
+ while ( firstDirtyNode.parentNode && firstDirtyNode.parentNode.nodeName !== 'BODY' &&
+ !$( firstDirtyNode ).hasClass( 'wikiEditor' )
+ ) {
firstDirtyNode = firstDirtyNode.parentNode;
}
//go back till we find the first pasted node
- while ( firstDirtyNode.previousSibling != null
- && ! $( firstDirtyNode.previousSibling ).hasClass( 'wikiEditor' )
- ) {
+ while ( firstDirtyNode.previousSibling != null &&
+ !$( firstDirtyNode.previousSibling ).hasClass( 'wikiEditor' )
+ ) {
if ( $( firstDirtyNode.previousSibling ).hasClass( '#comment' ) ) {
$( firstDirtyNode ).remove();
@@ -185,9 +187,9 @@ context.evt = $.extend( context.evt, {
}
if ( firstDirtyNode.previousSibling != null ) {
- $lastDirtyNode = $( firstDirtyNode.previousSibling );
+ $lastDirtyNode = $( firstDirtyNode.previousSibling );
} else {
- $lastDirtyNode = $( firstDirtyNode );
+ $lastDirtyNode = $( firstDirtyNode );
}
var cc = makeContentCollector( $.browser, null );
@@ -218,7 +220,7 @@ context.evt = $.extend( context.evt, {
}
- if( !pastedPretty && $.browser.msie && i == 0 ) {
+ if ( !pastedPretty && $.browser.msie && i === 0 ) {
continue;
}
$newElement = $( '<p class="wikiEditor pasted" ></p>' );
@@ -241,7 +243,7 @@ context.evt = $.extend( context.evt, {
//anything without wikiEditor class was pasted.
$selection = context.$content.find( ':not(.wikiEditor)' );
- if ( $selection.length == 0 ) {
+ if ( $selection.length === 0 ) {
break;
} else {
firstDirtyNode = $selection.eq( 0 )[0];
@@ -260,7 +262,7 @@ context.evt = $.extend( context.evt, {
}, 0 );
return true;
},
- 'ready': function( event ) {
+ ready: function ( event ) {
// Initialize our history queue
if ( context.$content ) {
context.history.push( { 'html': context.$content.html(), 'sel': context.fn.getCaretPosition() } );
@@ -275,7 +277,11 @@ context.evt = $.extend( context.evt, {
* Internally used functions
*/
context.fn = $.extend( context.fn, {
- 'highlightLine': function( $element, mode ) {
+ /**
+ * @param {jQuery} $element
+ * @param mode
+ */
+ highlightLine: function ( $element ) {
if ( !$element.is( 'p' ) ) {
$element = $element.closest( 'p' );
}
@@ -283,7 +289,7 @@ context.fn = $.extend( context.fn, {
setTimeout( function() { $element.animate( { 'backgroundColor': 'white' }, 'slow' ); }, 100 );
setTimeout( function() { $element.css( 'backgroundColor', 'white' ); }, 1000 );
},
- 'htmlToText': function( html ) {
+ htmlToText: function ( html ) {
// This function is slow for large inputs, so aggressively cache input/output pairs
if ( html in context.htmlToTextMap ) {
return context.htmlToTextMap[html];
@@ -294,15 +300,15 @@ context.fn = $.extend( context.fn, {
// IE does overzealous whitespace collapsing for $( '<pre />' ).html( html );
// We also do <br> and easy cases for <p> conversion here, complicated cases are handled later
html = html
- .replace( /\r?\n/g, "" ) // IE7 inserts newlines before block elements
- .replace( /&nbsp;/g, " " ) // We inserted these to prevent IE from collapsing spaces
- .replace( /\<br[^\>]*\>\<\/p\>/gi, '</p>' ) // Remove trailing <br> from <p>
- .replace( /\<\/p\>\s*\<p[^\>]*\>/gi, "\n" ) // Easy case for <p> conversion
- .replace( /\<br[^\>]*\>/gi, "\n" ) // <br> conversion
- .replace( /\<\/p\>(\n*)\<p[^\>]*\>/gi, "$1\n" )
+ .replace( /\r?\n/g, '' ) // IE7 inserts newlines before block elements
+ .replace( /&nbsp;/g, ' ' ) // We inserted these to prevent IE from collapsing spaces
+ .replace( /<br[^\>]*\><\/p\>/gi, '</p>' ) // Remove trailing <br> from <p>
+ .replace( /<\/p\>\s*<p[^\>]*\>/gi, '\n' ) // Easy case for <p> conversion
+ .replace( /<br[^\>]*\>/gi, '\n' ) // <br> conversion
+ .replace( /<\/p\>(\n*)<p[^\>]*\>/gi, '$1\n' )
// Un-nest <p> tags
- .replace( /\<p[^\>]*\><p[^\>]*\>/gi, '<p>' )
- .replace( /\<\/p\><\/p\>/gi, '</p>' );
+ .replace( /<p[^\>]*\><p[^\>]*\>/gi, '<p>' )
+ .replace( /<\/p\><\/p\>/gi, '</p>' );
// Save leading and trailing whitespace now and restore it later. IE eats it all, and even Firefox
// won't leave everything alone
var leading = html.match( /^\s*/ )[0];
@@ -311,8 +317,8 @@ context.fn = $.extend( context.fn, {
var $pre = $( '<pre>' + html + '</pre>' );
$pre.find( '.wikiEditor-noinclude' ).each( function() { $( this ).remove(); } );
// Convert tabs, <p>s and <br>s back
- $pre.find( '.wikiEditor-tab' ).each( function() { $( this ).text( "\t" ); } );
- $pre.find( 'br' ).each( function() { $( this ).replaceWith( "\n" ); } );
+ $pre.find( '.wikiEditor-tab' ).each( function() { $( this ).text( '\t' ); } );
+ $pre.find( 'br' ).each( function() { $( this ).replaceWith( '\n' ); } );
// Converting <p>s is wrong if there's nothing before them, so check that.
// .find( '* + p' ) isn't good enough because textnodes aren't considered
$pre.find( 'p' ).each( function() {
@@ -323,21 +329,21 @@ context.fn = $.extend( context.fn, {
// Check for preceding text
var t = new context.fn.rawTraverser( this.firstChild, this, $pre.get( 0 ), true ).prev();
- while ( t && t.node.nodeName != '#text' && t.node.nodeName != 'BR' && t.node.nodeName != 'P' ) {
+ while ( t && t.node.nodeName !== '#text' && t.node.nodeName !== 'BR' && t.node.nodeName !== 'P' ) {
t = t.prev();
}
if ( t ) {
- text = "\n" + text;
+ text = '\n' + text;
}
// Check for following text
t = new context.fn.rawTraverser( this.lastChild, this, $pre.get( 0 ), true ).next();
- while ( t && t.node.nodeName != '#text' && t.node.nodeName != 'BR' && t.node.nodeName != 'P' ) {
+ while ( t && t.node.nodeName !== '#text' && t.node.nodeName !== 'BR' && t.node.nodeName !== 'P' ) {
t = t.next();
}
- if ( t && !t.inP && t.node.nodeName == '#text' && t.node.nodeValue.charAt( 0 ) != '\n'
- && t.node.nodeValue.charAt( 0 ) != '\r' ) {
- text += "\n";
+ if ( t && !t.inP && t.node.nodeName === '#text' && t.node.nodeValue.charAt( 0 ) !== '\n' &&
+ t.node.nodeValue.charAt( 0 ) !== '\r' ) {
+ text += '\n';
}
$( this ).text( text );
} );
@@ -357,8 +363,8 @@ context.fn = $.extend( context.fn, {
* @param strict If true, the element the selection starts in cannot match (default: false)
* @return jQuery object or null if unknown
*/
- 'beforeSelection': function( classname, strict ) {
- if ( typeof classname == 'undefined' ) {
+ beforeSelection: function ( classname, strict ) {
+ if ( typeof classname === 'undefined' ) {
classname = '';
}
var e = null, offset = null;
@@ -381,7 +387,7 @@ context.fn = $.extend( context.fn, {
// When the cursor is on an empty line, Opera gives us a bogus range object with
// startContainer=endContainer=body and startOffset=endOffset=1
var body = context.$iframe[0].contentWindow.document.body;
- if ( $.browser.opera && e == body && offset == 1 ) {
+ if ( $.browser.opera && e === body && offset === 1 ) {
return null;
}
}
@@ -400,14 +406,14 @@ context.fn = $.extend( context.fn, {
return null;
}
var seekPos = context.fn.htmlToText( range2.htmlText ).length;
- var offset = context.fn.getOffset( seekPos );
+ offset = context.fn.getOffset( seekPos );
e = offset ? offset.node : null;
offset = offset ? offset.offset : null;
if ( !e ) {
return null;
}
}
- if ( e.nodeName != '#text' ) {
+ if ( e.nodeName !== '#text' ) {
// The selection is not in a textnode, but between two non-text nodes
// (usually inside the <body> between two <br>s). Go to the rightmost
// child of the node just before the selection
@@ -425,7 +431,7 @@ context.fn = $.extend( context.fn, {
// constructor thousands of times is very inefficient
var classStr = ' ' + classname + ' ';
while ( e ) {
- if ( !strict && ( !classname || ( ' ' + e.className + ' ' ).indexOf( classStr ) != -1 ) ) {
+ if ( !strict && ( !classname || ( ' ' + e.className + ' ' ).indexOf( classStr ) !== -1 ) ) {
return $( e );
}
var next = e.previousSibling;
@@ -440,7 +446,7 @@ context.fn = $.extend( context.fn, {
/**
* Object used by traverser(). Don't use this unless you know what you're doing
*/
- 'rawTraverser': function( node, inP, ancestor, skipNoinclude ) {
+ rawTraverser: function ( node, inP, ancestor, skipNoinclude ) {
this.node = node;
this.inP = inP;
this.ancestor = ancestor;
@@ -450,16 +456,16 @@ context.fn = $.extend( context.fn, {
var nextInP = this.inP;
while ( p && !p.nextSibling ) {
p = p.parentNode;
- if ( p == this.ancestor ) {
+ if ( p === this.ancestor ) {
// We're back at the ancestor, stop here
p = null;
}
- if ( p && p.nodeName == "P" ) {
+ if ( p && p.nodeName === 'P' ) {
nextInP = null;
}
}
p = p ? p.nextSibling : null;
- if ( p && p.nodeName == "P" ) {
+ if ( p && p.nodeName === 'P' ) {
nextInP = p;
}
do {
@@ -467,13 +473,13 @@ context.fn = $.extend( context.fn, {
// Don't use $( p ).hasClass( 'wikiEditor-noinclude' ) because
// $() is slow in a tight loop
if ( this.skipNoinclude ) {
- while ( p && ( ' ' + p.className + ' ' ).indexOf( ' wikiEditor-noinclude ' ) != -1 ) {
+ while ( p && ( ' ' + p.className + ' ' ).indexOf( ' wikiEditor-noinclude ' ) !== -1 ) {
p = p.nextSibling;
}
}
if ( p && p.firstChild ) {
p = p.firstChild;
- if ( p.nodeName == "P" ) {
+ if ( p.nodeName === 'P' ) {
nextInP = p;
}
}
@@ -487,16 +493,16 @@ context.fn = $.extend( context.fn, {
var prevInP = this.inP;
while ( p && !p.previousSibling ) {
p = p.parentNode;
- if ( p == this.ancestor ) {
+ if ( p === this.ancestor ) {
// We're back at the ancestor, stop here
p = null;
}
- if ( p && p.nodeName == "P" ) {
+ if ( p && p.nodeName === 'P' ) {
prevInP = null;
}
}
p = p ? p.previousSibling : null;
- if ( p && p.nodeName == "P" ) {
+ if ( p && p.nodeName === 'P' ) {
prevInP = p;
}
do {
@@ -510,7 +516,7 @@ context.fn = $.extend( context.fn, {
}
if ( p && p.lastChild ) {
p = p.lastChild;
- if ( p.nodeName == "P" ) {
+ if ( p.nodeName == 'P' ) {
prevInP = p;
}
}
@@ -528,28 +534,28 @@ context.fn = $.extend( context.fn, {
* @return Traverser object, use .next() or .prev() to get a traverser object referring to the
* previous/next node
*/
- 'traverser': function( start ) {
+ traverser: function ( start ) {
// Find the leftmost leaf node in the tree
var startNode = start.jquery ? start.get( 0 ) : start;
var node = startNode;
- var inP = node.nodeName == "P" ? node : null;
+ var inP = node.nodeName === 'P' ? node : null;
do {
// Filter nodes with the wikiEditor-noinclude class
// Don't use $( p ).hasClass( 'wikiEditor-noinclude' ) because
// $() is slow in a tight loop
- while ( node && ( ' ' + node.className + ' ' ).indexOf( ' wikiEditor-noinclude ' ) != -1 ) {
+ while ( node && ( ' ' + node.className + ' ' ).indexOf( ' wikiEditor-noinclude ' ) !== -1 ) {
node = node.nextSibling;
}
if ( node && node.firstChild ) {
node = node.firstChild;
- if ( node.nodeName == "P" ) {
+ if ( node.nodeName === 'P' ) {
inP = node;
}
}
} while ( node && node.firstChild );
return new context.fn.rawTraverser( node, inP, startNode, true );
},
- 'getOffset': function( offset ) {
+ getOffset: function ( offset ) {
if ( !context.offsets ) {
context.fn.refreshOffsets();
}
@@ -578,21 +584,21 @@ context.fn = $.extend( context.fn, {
'lastTextNode': base.lastTextNode
};
},
- 'purgeOffsets': function() {
+ purgeOffsets: function () {
context.offsets = null;
},
- 'refreshOffsets': function() {
+ refreshOffsets: function () {
context.offsets = [ ];
var t = context.fn.traverser( context.$content );
var pos = 0, lastTextNode = null;
while ( t ) {
- if ( t.node.nodeName != '#text' && t.node.nodeName != 'BR' ) {
+ if ( t.node.nodeName !== '#text' && t.node.nodeName !== 'BR' ) {
t = t.next();
continue;
}
- var nextPos = t.node.nodeName == '#text' ? pos + t.node.nodeValue.length : pos + 1;
+ var nextPos = t.node.nodeName === '#text' ? pos + t.node.nodeValue.length : pos + 1;
var nextT = t.next();
- var leavingP = t.node.nodeName == '#text' && t.inP && nextT && ( !nextT.inP || nextT.inP != t.inP );
+ var leavingP = t.node.nodeName === '#text' && t.inP && nextT && ( !nextT.inP || nextT.inP !== t.inP );
context.offsets[pos] = {
'node': t.node,
'offset': 0,
@@ -610,27 +616,27 @@ context.fn = $.extend( context.fn, {
};
}
pos = nextPos + ( leavingP ? 1 : 0 );
- if ( t.node.nodeName == '#text' ) {
+ if ( t.node.nodeName === '#text' ) {
lastTextNode = t.node;
}
t = nextT;
}
},
- 'saveCursorAndScrollTop': function() {
+ saveCursorAndScrollTop: function () {
// Stub out textarea behavior
return;
},
- 'restoreCursorAndScrollTop': function() {
+ restoreCursorAndScrollTop: function () {
// Stub out textarea behavior
return;
},
- 'saveSelection': function() {
+ saveSelection: function () {
if ( $.client.profile().name === 'msie' ) {
context.$iframe[0].contentWindow.focus();
context.savedSelection = context.$iframe[0].contentWindow.document.selection.createRange();
}
},
- 'restoreSelection': function() {
+ restoreSelection: function () {
if ( $.client.profile().name === 'msie' && context.savedSelection !== null ) {
context.$iframe[0].contentWindow.focus();
context.savedSelection.select();
@@ -640,10 +646,10 @@ context.fn = $.extend( context.fn, {
/**
* Update the history queue
*
- * @param htmlChange pass true or false to inidicate if there was a text change that should potentially
+ * @param htmlChange Pass true or false to inidicate if there was a text change that should potentially
* be given a new history state.
*/
- 'updateHistory': function( htmlChange ) {
+ updateHistory: function ( htmlChange ) {
var newHTML = context.$content.html();
var newSel = context.fn.getCaretPosition();
// Was text changed? Was it because of a REDO or UNDO action?
@@ -675,7 +681,7 @@ context.fn = $.extend( context.fn, {
/**
* Sets up the iframe in place of the textarea to allow more advanced operations
*/
- 'setupIframe': function() {
+ setupIframe: function () {
context.$iframe = $( '<iframe></iframe>' )
.attr( {
'frameBorder': 0,
@@ -834,7 +840,7 @@ context.fn = $.extend( context.fn, {
* equivilant functionality to the otherwise textarea-based functionality.
*/
- 'getElementAtCursor': function() {
+ getElementAtCursor: function () {
if ( context.$iframe[0].contentWindow.getSelection ) {
// Firefox and Opera
var selection = context.$iframe[0].contentWindow.getSelection();
@@ -855,7 +861,7 @@ context.fn = $.extend( context.fn, {
/**
* Gets the complete contents of the iframe (in plain text, not HTML)
*/
- 'getContents': function() {
+ getContents: function () {
// For <p></p>, .html() returns <p>&nbsp;</p> in IE
// This seems to convince IE while not affecting display
if ( !context.$content ) {
@@ -880,7 +886,7 @@ context.fn = $.extend( context.fn, {
* Gets the currently selected text in the content
* DO NOT CALL THIS DIRECTLY, use $.textSelection( 'functionname', options ) instead
*/
- 'getSelection': function() {
+ getSelection: function () {
var retval;
if ( context.$iframe[0].contentWindow.getSelection ) {
// Firefox and Opera
@@ -915,7 +921,7 @@ context.fn = $.extend( context.fn, {
* selection is empty.
* DO NOT CALL THIS DIRECTLY, use $.textSelection( 'functionname', options ) instead
*/
- 'encapsulateSelection': function( options ) {
+ encapsulateSelection: function ( options ) {
var selText = $(this).textSelection( 'getSelection' );
var selTextArr;
var collapseToEnd = false;
@@ -1127,7 +1133,7 @@ context.fn = $.extend( context.fn, {
* Gets the position (in resolution of bytes not nessecarily characters) in a textarea
* DO NOT CALL THIS DIRECTLY, use $.textSelection( 'functionname', options ) instead
*/
- 'getCaretPosition': function( options ) {
+ getCaretPosition: function ( options ) {
var startPos = null, endPos = null;
if ( context.$iframe[0].contentWindow.getSelection ) {
var selection = context.$iframe[0].contentWindow.getSelection();
@@ -1264,7 +1270,7 @@ context.fn = $.extend( context.fn, {
* @param startContainer Element in iframe to start selection in. If not set, start is a character offset
* @param endContainer Element in iframe to end selection in. If not set, end is a character offset
*/
- 'setSelection': function( options ) {
+ setSelection: function ( options ) {
var sc = options.startContainer, ec = options.endContainer;
sc = sc && sc.jquery ? sc[0] : sc;
ec = ec && ec.jquery ? ec[0] : ec;
@@ -1351,7 +1357,7 @@ context.fn = $.extend( context.fn, {
* Scroll a textarea to the current cursor position. You can set the cursor position with setSelection()
* DO NOT CALL THIS DIRECTLY, use $.textSelection( 'functionname', options ) instead
*/
- 'scrollToCaretPosition': function( options ) {
+ scrollToCaretPosition: function ( options ) {
context.fn.scrollToTop( context.fn.getElementAtCursor(), true );
},
/**
@@ -1361,7 +1367,7 @@ context.fn = $.extend( context.fn, {
* @param $element jQuery object containing an element in the iframe
* @param force If true, scroll the element even if it's already visible
*/
- 'scrollToTop': function( $element, force ) {
+ scrollToTop: function ( $element, force ) {
var html = context.$content.closest( 'html' ),
body = context.$content.closest( 'body' ),
parentHtml = $( 'html' ),
diff --git a/extensions/WikiEditor/modules/jquery.wikiEditor.js b/extensions/WikiEditor/modules/jquery.wikiEditor.js
index def8b69e..85030b66 100644
--- a/extensions/WikiEditor/modules/jquery.wikiEditor.js
+++ b/extensions/WikiEditor/modules/jquery.wikiEditor.js
@@ -8,7 +8,8 @@
* $( 'textarea#wpTextbox1' ).wikiEditor( 'addModule', 'toolbar', { ... config ... } );
*
*/
-( function ( $ ) {
+/*jshint onevar:false, boss:true */
+( function ( $, mw ) {
/**
* Global static object for wikiEditor that provides generally useful functionality to all modules and contexts.
@@ -113,7 +114,7 @@ $.wikiEditor = {
isRequired: function ( module, requirement ) {
if ( typeof module.req !== 'undefined' ) {
for ( var req in module.req ) {
- if ( module.req[req] == requirement ) {
+ if ( module.req[req] === requirement ) {
return true;
}
}
@@ -132,9 +133,10 @@ $.wikiEditor = {
* with the key 'bar'.
*/
autoMsg: function ( object, property ) {
+ var i, p;
// Accept array of possible properties, of which the first one found will be used
- if ( typeof property == 'object' ) {
- for ( var i in property ) {
+ if ( typeof property === 'object' ) {
+ for ( i in property ) {
if ( property[i] in object || property[i] + 'Msg' in object ) {
property = property[i];
break;
@@ -144,11 +146,11 @@ $.wikiEditor = {
if ( property in object ) {
return object[property];
} else if ( property + 'Msg' in object ) {
- var p = object[property + 'Msg'];
+ p = object[property + 'Msg'];
if ( $.isArray( p ) && p.length >= 2 ) {
- return mediaWiki.message.apply( mediaWiki.message, p ).plain();
+ return mw.message.apply( mw.message, p ).plain();
} else {
- return mediaWiki.message( p ).plain();
+ return mw.message( p ).plain();
}
} else {
return '';
@@ -181,10 +183,10 @@ $.wikiEditor = {
var src = $.wikiEditor.autoLang( icon, lang );
path = path || $.wikiEditor.imgPath;
// Prepend path if src is not absolute
- if ( src.substr( 0, 7 ) != 'http://' && src.substr( 0, 8 ) != 'https://' && src[0] != '/' ) {
+ if ( src.substr( 0, 7 ) !== 'http://' && src.substr( 0, 8 ) !== 'https://' && src[0] !== '/' ) {
src = path + src;
}
- return src + '?' + mw.loader.version( 'jquery.wikiEditor' );
+ return src + '?' + mw.loader.getVersion( 'jquery.wikiEditor' );
},
/**
@@ -197,9 +199,9 @@ $.wikiEditor = {
*/
autoIconOrOffset: function ( icon, offset, path, lang ) {
lang = lang || mw.config.get( 'wgUserLanguage' );
- if ( typeof offset == 'object' && lang in offset ) {
+ if ( typeof offset === 'object' && lang in offset ) {
return offset[lang];
- } else if ( typeof icon == 'object' && lang in icon ) {
+ } else if ( typeof icon === 'object' && lang in icon ) {
return $.wikiEditor.autoIcon( icon, undefined, lang );
} else {
return $.wikiEditor.autoLang( offset, lang );
@@ -223,7 +225,7 @@ if ( !$.wikiEditor.isSupported() ) {
// where we left off
var context = $(this).data( 'wikiEditor-context' );
// On first call, we need to set things up, but on all following calls we can skip right to the API handling
-if ( !context || typeof context == 'undefined' ) {
+if ( !context || typeof context === 'undefined' ) {
// Star filling the context with useful data - any jQuery selections, as usual should be named with a preceding $
context = {
@@ -247,7 +249,7 @@ if ( !context || typeof context == 'undefined' ) {
'oldDelayedHTML': null,
// The previous selection of the iframe, stored to detect whether the selection has changed
'oldDelayedSel': null,
- // Saved selection state for IE
+ // Saved selection state for old IE (<=10)
'savedSelection': null,
// Stack of states in { html: [string] } form
'history': [],
@@ -276,14 +278,14 @@ if ( !context || typeof context == 'undefined' ) {
'addModule': function ( context, data ) {
var module, call,
modules = {};
- if ( typeof data == 'string' ) {
+ if ( typeof data === 'string' ) {
modules[data] = {};
- } else if ( typeof data == 'object' ) {
+ } else if ( typeof data === 'object' ) {
modules = data;
}
for ( module in modules ) {
// Check for the existance of an available / supported module with a matching name and a create function
- if ( typeof module == 'string' && typeof $.wikiEditor.modules[module] !== 'undefined' &&
+ if ( typeof module === 'string' && typeof $.wikiEditor.modules[module] !== 'undefined' &&
$.wikiEditor.isSupported( $.wikiEditor.modules[module] ) )
{
// Extend the context's core API with this module's own API calls
@@ -326,11 +328,11 @@ if ( !context || typeof context == 'undefined' ) {
*/
trigger: function ( name, event ) {
// Event is an optional argument, but from here on out, at least the type field should be dependable
- if ( typeof event == 'undefined' ) {
+ if ( typeof event === 'undefined' ) {
event = { 'type': 'custom' };
}
// Ensure there's a place for extra information to live
- if ( typeof event.data == 'undefined' ) {
+ if ( typeof event.data === 'undefined' ) {
event.data = {};
}
@@ -393,7 +395,7 @@ if ( !context || typeof context == 'undefined' ) {
// Return the newly appended tab
return $( '<div>' )
.attr( 'rel', 'wikiEditor-ui-view-' + options.name )
- .addClass( context.view == options.name ? 'current' : null )
+ .addClass( context.view === options.name ? 'current' : null )
.append( $( '<a>' )
.attr( 'href', '#' )
.mousedown( function () {
@@ -406,7 +408,7 @@ if ( !context || typeof context == 'undefined' ) {
context.$tabs.find( 'div' ).removeClass( 'current' );
$(this).parent().addClass( 'current' );
$(this).blur();
- if ( 'init' in options && typeof options.init == 'function' ) {
+ if ( 'init' in options && typeof options.init === 'function' ) {
options.init( context );
}
event.preventDefault();
@@ -457,17 +459,17 @@ if ( !context || typeof context == 'undefined' ) {
},
/**
- * Save text selection for IE
+ * Save text selection for old IE (<=10)
*/
saveSelection: function () {
- if ( $.client.profile().name === 'msie' ) {
+ if ( $.client.profile().name === 'msie' && document.selection && document.selection.createRange ) {
context.$textarea.focus();
context.savedSelection = document.selection.createRange();
}
},
/**
- * Restore text selection for IE
+ * Restore text selection for old IE (<=10)
*/
restoreSelection: function () {
if ( $.client.profile().name === 'msie' && context.savedSelection !== null ) {
@@ -479,6 +481,13 @@ if ( !context || typeof context == 'undefined' ) {
};
/**
+ * Workaround for a scrolling bug in IE8 (bug 61908)
+ */
+ if ( $.client.profile().name === 'msie' ) {
+ context.$textarea.css( 'height', context.$textarea.height() );
+ }
+
+ /**
* Base UI Construction
*
* The UI is built from several containers, the outer-most being a div classed as "wikiEditor-ui". These containers
@@ -539,9 +548,9 @@ if ( !context || typeof context == 'undefined' ) {
var args = $.makeArray( arguments );
// Dynamically setup core extensions for modules that are required
-if ( args[0] == 'addModule' && typeof args[1] !== 'undefined' ) {
+if ( args[0] === 'addModule' && typeof args[1] !== 'undefined' ) {
var modules = args[1];
- if ( typeof modules !== "object" ) {
+ if ( typeof modules !== 'object' ) {
modules = {};
modules[args[1]] = '';
}
@@ -577,4 +586,4 @@ return $(this).data( 'wikiEditor-context', context );
};
-}( jQuery ) );
+}( jQuery, mediaWiki ) );
diff --git a/extensions/WikiEditor/modules/jquery.wikiEditor.preview.js b/extensions/WikiEditor/modules/jquery.wikiEditor.preview.js
index 39907364..372d2e8e 100644
--- a/extensions/WikiEditor/modules/jquery.wikiEditor.preview.js
+++ b/extensions/WikiEditor/modules/jquery.wikiEditor.preview.js
@@ -1,6 +1,6 @@
/* Preview module for wikiEditor */
( function ( $, mw ) {
-
+/*jshint onevar:false */
$.wikiEditor.modules.preview = {
/**
@@ -32,7 +32,7 @@ fn: {
* @param context Context object of editor to create module in
* @param config Configuration object to create module from
*/
- create: function ( context, config ) {
+ create: function ( context ) {
if ( 'initialized' in context.modules.preview ) {
return;
}
@@ -65,9 +65,9 @@ fn: {
},
function ( data ) {
if (
- typeof data.parse == 'undefined' ||
- typeof data.parse.text == 'undefined' ||
- typeof data.parse.text['*'] == 'undefined'
+ typeof data.parse === 'undefined' ||
+ typeof data.parse.text === 'undefined' ||
+ typeof data.parse.text['*'] === 'undefined'
) {
return;
}
@@ -89,7 +89,7 @@ fn: {
// Gets the latest copy of the wikitext
var wikitext = context.$textarea.textSelection( 'getContents' );
// Aborts when nothing has changed since the last time
- if ( context.modules.preview.changesText == wikitext ) {
+ if ( context.modules.preview.changesText === wikitext ) {
return;
}
context.$changesTab.find( 'table.diff tbody' ).empty();
@@ -115,8 +115,9 @@ fn: {
rvprop: ''
};
var section = $( '[name="wpSection"]' ).val();
- if ( section !== '' )
+ if ( section !== '' ) {
postdata2.rvsection = section;
+ }
$.post( mw.util.wikiScript( 'api' ), postdata2, function ( data ) {
// Add diff CSS
diff --git a/extensions/WikiEditor/modules/jquery.wikiEditor.previewDialog.js b/extensions/WikiEditor/modules/jquery.wikiEditor.previewDialog.js
index ca88c79a..5381e605 100644
--- a/extensions/WikiEditor/modules/jquery.wikiEditor.previewDialog.js
+++ b/extensions/WikiEditor/modules/jquery.wikiEditor.previewDialog.js
@@ -1,5 +1,6 @@
/* Publish module for wikiEditor */
-( function( $ ) { $.wikiEditor.modules.previewDialog = {
+/*jshint onevar:false */
+( function ( $, mw ) { $.wikiEditor.modules.previewDialog = {
/**
* Compatability map
@@ -29,7 +30,7 @@ fn: {
* @param context Context object of editor to create module in
* @param config Configuration object to create module from
*/
- create: function( context, config ) {
+ create: function( context ) {
// Build the dialog behind the Publish button
var dialogID = 'wikiEditor-' + context.instance + '-preview-dialog';
$.wikiEditor.modules.dialogs.fn.create(
@@ -78,7 +79,7 @@ fn: {
.css( 'top', '25px' );
// $dialog.dialog( 'option', 'width', $( 'body' ).width() - 300 );
// Aborts when nothing has changed since the last preview
- if ( context.modules.preview.previewText == wikitext ) {
+ if ( context.modules.preview.previewText === wikitext ) {
return;
}
@@ -96,9 +97,9 @@ fn: {
},
function( data ) {
if (
- typeof data.parse == 'undefined' ||
- typeof data.parse.text == 'undefined' ||
- typeof data.parse.text['*'] == 'undefined'
+ typeof data.parse === 'undefined' ||
+ typeof data.parse.text === 'undefined' ||
+ typeof data.parse.text['*'] === 'undefined'
) {
return;
}
@@ -128,4 +129,4 @@ fn: {
}
}
-}; } )( jQuery );
+}; } )( jQuery, mediaWiki );
diff --git a/extensions/WikiEditor/modules/jquery.wikiEditor.publish.js b/extensions/WikiEditor/modules/jquery.wikiEditor.publish.js
index b61140dc..058fa1b3 100644
--- a/extensions/WikiEditor/modules/jquery.wikiEditor.publish.js
+++ b/extensions/WikiEditor/modules/jquery.wikiEditor.publish.js
@@ -1,4 +1,5 @@
/* Publish module for wikiEditor */
+/*jshint onevar:false */
( function ( $ ) {
$.wikiEditor.modules.publish = {
@@ -31,7 +32,7 @@ fn: {
* @param context Context object of editor to create module in
* @param config Configuration object to create module from
*/
- create: function ( context, config ) {
+ create: function ( context ) {
// Build the dialog behind the Publish button
var dialogID = 'wikiEditor-' + context.instance + '-dialog';
$.wikiEditor.modules.dialogs.fn.create(
@@ -89,16 +90,18 @@ fn: {
);
/* END OF REALLY DIRTY HACK */
- if ( $( '#wpMinoredit' ).length === 0 )
+ if ( $( '#wpMinoredit' ).length === 0 ) {
$( '#wikiEditor-' + context.instance + '-dialog-minor' ).hide();
- else if ( $( '#wpMinoredit' ).is( ':checked' ) )
+ } else if ( $( '#wpMinoredit' ).prop( 'checked' ) ) {
$( '#wikiEditor-' + context.instance + '-dialog-minor' )
.prop( 'checked', true );
- if ( $( '#wpWatchthis' ).length === 0 )
+ }
+ if ( $( '#wpWatchthis' ).length === 0 ) {
$( '#wikiEditor-' + context.instance + '-dialog-watch' ).hide();
- else if ( $( '#wpWatchthis' ).is( ':checked' ) )
+ } else if ( $( '#wpWatchthis' ).prop( 'checked' ) ) {
$( '#wikiEditor-' + context.instance + '-dialog-watch' )
.prop( 'checked', true );
+ }
$(this).find( 'form' ).submit( function ( e ) {
$(this).closest( '.ui-dialog' ).find( 'button:first' ).click();
diff --git a/extensions/WikiEditor/modules/jquery.wikiEditor.templateEditor.js b/extensions/WikiEditor/modules/jquery.wikiEditor.templateEditor.js
index bd00325f..3cbd5ba5 100644
--- a/extensions/WikiEditor/modules/jquery.wikiEditor.templateEditor.js
+++ b/extensions/WikiEditor/modules/jquery.wikiEditor.templateEditor.js
@@ -1,5 +1,6 @@
/* TemplateEditor module for wikiEditor */
-( function( $ ) { $.wikiEditor.modules.templateEditor = {
+/*jshint quotmark:false, onevar:false */
+( function ( $ ) { $.wikiEditor.modules.templateEditor = {
/**
* Name mappings, dirty hack which will be removed once "TemplateInfo" extension is more fully supported
*/
@@ -37,9 +38,13 @@
*/
evt: {
- mark: function( context, event ) {
+ /**
+ * @param context
+ * @param event
+ */
+ mark: function( context ) {
// The markers returned by this function are skipped on realchange, so don't regenerate them in that case
- if ( context.modules.highlight.currentScope == 'realchange' ) {
+ if ( context.modules.highlight.currentScope === 'realchange' ) {
return;
}
@@ -47,10 +52,9 @@ evt: {
var markers = context.modules.highlight.markers;
var tokenArray = context.modules.highlight.tokenArray;
// Collect matching level 0 template call boundaries from the tokenArray
- var level = 0;
var tokenIndex = 0;
while ( tokenIndex < tokenArray.length ){
- while ( tokenIndex < tokenArray.length && tokenArray[tokenIndex].label != 'TEMPLATE_BEGIN' ) {
+ while ( tokenIndex < tokenArray.length && tokenArray[tokenIndex].label !== 'TEMPLATE_BEGIN' ) {
tokenIndex++;
}
//open template
@@ -58,19 +62,18 @@ evt: {
var beginIndex = tokenIndex;
var endIndex = -1; //no match found
var openTemplates = 1;
- var templatesMatched = false;
- while ( tokenIndex < tokenArray.length - 1 && endIndex == -1 ) {
+ while ( tokenIndex < tokenArray.length - 1 && endIndex === -1 ) {
tokenIndex++;
- if ( tokenArray[tokenIndex].label == 'TEMPLATE_BEGIN' ) {
+ if ( tokenArray[tokenIndex].label === 'TEMPLATE_BEGIN' ) {
openTemplates++;
- } else if ( tokenArray[tokenIndex].label == 'TEMPLATE_END' ) {
+ } else if ( tokenArray[tokenIndex].label === 'TEMPLATE_END' ) {
openTemplates--;
- if ( openTemplates == 0 ) {
+ if ( openTemplates === 0 ) {
endIndex = tokenIndex;
} //we can stop looping
}
}//while finding template ending
- if ( endIndex != -1 ) {
+ if ( endIndex !== -1 ) {
markers.push( {
start: tokenArray[beginIndex].offset,
end: tokenArray[endIndex].offset,
@@ -92,7 +95,7 @@ evt: {
}
},
onSkip: function( node ) {
- if ( $( node ).html() == $( node ).data( 'oldHTML' ) ) {
+ if ( $( node ).html() === $( node ).data( 'oldHTML' ) ) {
// No change
return;
}
@@ -104,7 +107,7 @@ evt: {
if ( $( node ).parent().hasClass( 'wikiEditor-template' ) ) {
var $label = $( node ).parent().find( '.wikiEditor-template-label' );
var displayName = $.wikiEditor.modules.templateEditor.fn.getTemplateDisplayName( model );
- if ( $label.text() != displayName ) {
+ if ( $label.text() !== displayName ) {
$label.text( displayName );
}
}
@@ -119,7 +122,7 @@ evt: {
$.wikiEditor.modules.templateEditor.fn.bindTemplateEvents( $( node ) );
}
},
- getAnchor: function( ca1, ca2 ) {
+ getAnchor: function( ca1 ) {
return $( ca1.parentNode ).is( 'span.wikiEditor-template-text' ) ?
ca1.parentNode : null;
},
@@ -142,7 +145,9 @@ evt: {
var $evtElem = event.jQueryNode;
if ( $evtElem.hasClass( 'wikiEditor-template-label' ) ) {
// Allow anything if the command or control key are depressed
- if ( event.ctrlKey || event.metaKey ) return true;
+ if ( event.ctrlKey || event.metaKey ) {
+ return true;
+ }
switch ( event.which ) {
case 13: // Enter
$evtElem.click();
@@ -177,14 +182,22 @@ evt: {
}
}
},
- keyup: function( context, event ) {
+ /**
+ * @param context
+ * @param event
+ */
+ keyup: function( context ) {
// Rest our ignoreKeypress variable if it's set to true
if ( context.$iframe.data( 'ignoreKeypress' ) ) {
context.$iframe.data( 'ignoreKeypress', false );
}
return true;
},
- keypress: function( context, event ) {
+ /**
+ * @param context
+ * @param event
+ */
+ keypress: function( context ) {
// If this event is from a keydown event which we want to block, ignore it
return ( context.$iframe.data( 'ignoreKeypress' ) ? false : true );
}
@@ -210,7 +223,7 @@ fn: {
* @param context Context object of editor to create module in
* @param config Configuration object to create module from
*/
- create: function( context, config ) {
+ create: function( context ) {
// Initialize module within the context
context.modules.templateEditor = {};
},
@@ -220,8 +233,7 @@ fn: {
*/
wrapTemplate: function( $wrapper ) {
var model = $wrapper.data( 'model' );
- var context = $wrapper.data( 'marker' ).context;
- var $template = $wrapper
+ $wrapper
.wrap( '<span class="wikiEditor-template"></span>' )
.addClass( 'wikiEditor-template-text wikiEditor-template-text-shrunken' )
.parent()
@@ -249,7 +261,7 @@ fn: {
bindTemplateEvents: function( $wrapper ) {
var $template = $wrapper.parent( '.wikiEditor-template' );
- if ( typeof ( opera ) == "undefined" ) {
+ if ( typeof opera === 'undefined' ) {
$template.parent().attr('contentEditable', 'false');
}
@@ -274,7 +286,7 @@ fn: {
* Toggle the visisbilty of the wikitext for a given template
* @param $wrapper The origianl wrapper we want expand/collapse
*/
- toggleWikiTextEditor: function( $wrapper ) {
+ toggleWikiTextEditor: function( $wrapper ) {
var context = $wrapper.data( 'marker' ).context;
var $template = $wrapper.parent( '.wikiEditor-template' );
context.fn.purgeOffsets();
@@ -285,11 +297,11 @@ fn: {
var $templateText = $template.find( '.wikiEditor-template-text' );
$templateText.toggleClass( 'wikiEditor-template-text-shrunken' );
$templateText.toggleClass( 'wikiEditor-template-text-visible' );
- if( $templateText.hasClass('wikiEditor-template-text-shrunken') ){
+ if ( $templateText.hasClass('wikiEditor-template-text-shrunken') ){
//we just closed the template
// Update the model if we need to
- if ( $templateText.html() != $templateText.data( 'oldHTML' ) ) {
+ if ( $templateText.html() !== $templateText.data( 'oldHTML' ) ) {
var templateModel = $.wikiEditor.modules.templateEditor.fn.updateModel( $templateText );
//this is the only place the template name can be changed; keep the template name in sync
@@ -350,7 +362,7 @@ fn: {
var $templateText = $templateDiv.children( '.wikiEditor-template-text' );
var templateModel = $templateText.data( 'model' );
// Update the model if we need to
- if ( $templateText.html() != $templateText.data( 'oldHTML' ) ) {
+ if ( $templateText.html() !== $templateText.data( 'oldHTML' ) ) {
templateModel = $.wikiEditor.modules.templateEditor.fn.updateModel( $templateText );
}
@@ -362,11 +374,11 @@ fn: {
var $rows = $fields.find( '.wikiEditor-template-dialog-field-wrapper' );
for ( var paramIndex in params ) {
var param = params[paramIndex];
- if ( typeof param.name == 'undefined' ) {
+ if ( typeof param.name === 'undefined' ) {
// param is the template name, skip it
continue;
}
- var paramText = typeof param == 'string' ?
+ var paramText = typeof param === 'string' ?
param.name.replace( /[\_\-]/g, ' ' ) :
param.name;
var paramVal = templateModel.getValue( param.name );
@@ -397,11 +409,13 @@ fn: {
.data( 'expanded', false )
.bind( 'cut paste keypress click change', function( e ) {
// If this was fired by a tab keypress, let it go
- if ( e.keyCode == '9' ) return true;
+ if ( e.keyCode === 9 || e.keyCode === '9' ) {
+ return true;
+ }
var $this = $( this );
setTimeout( function() {
var expanded = $this.data( 'expanded' );
- if ( $this.val().indexOf( '\n' ) != -1 || $this.val().length > 24 ) {
+ if ( $this.val().indexOf( '\n' ) !== -1 || $this.val().length > 24 ) {
if ( !expanded ) {
$this.animate( { 'height': '4.5em' }, 'fast' );
$this.data( 'expanded', true );
@@ -455,7 +469,7 @@ fn: {
updateModel: function( $templateText, model ) {
var context = $templateText.data( 'marker' ).context;
var text;
- if ( typeof model == 'undefined' ) {
+ if ( typeof model === 'undefined' ) {
text = context.fn.htmlToText( $templateText.html() );
} else {
text = model.getText();
@@ -464,7 +478,7 @@ fn: {
$templateText.text( text );
$templateText.html( $templateText.html().replace( /\n/g, '<br />' ) );
$templateText.data( 'oldHTML', $templateText.html() );
- if ( typeof model == 'undefined' ) {
+ if ( typeof model === 'undefined' ) {
model = new $.wikiEditor.modules.templateEditor.fn.model( text );
$templateText.data( 'model', model );
}
@@ -476,9 +490,9 @@ fn: {
*/
getTemplateDisplayName: function ( model ) {
var tName = model.getName();
- if( model.getValue( 'name' ) != '' ) {
+ if( model.getValue( 'name' ) !== '' ) {
return tName + ': ' + model.getValue( 'name' );
- } else if( model.getValue( 'Name' ) != '' ) {
+ } else if( model.getValue( 'Name' ) !== '' ) {
return tName + ': ' + model.getValue( 'Name' );
} else if( tName.toLowerCase() in $.wikiEditor.modules.templateEditor.nameMappings ) {
return tName + ': ' + model.getValue( $.wikiEditor.modules.templateEditor.nameMappings[tName.toLowerCase()] );
@@ -541,27 +555,28 @@ fn: {
var retVal;
if ( isNaN( name ) ) {
// It's a string!
- if ( typeof paramsByName[name] == 'undefined' ) {
+ if ( typeof paramsByName[name] === 'undefined' ) {
// Does not exist
- return "";
+ return '';
}
rangeIndex = paramsByName[name];
} else {
// It's a number!
- rangeIndex = parseInt( name );
+ rangeIndex = parseInt( name, 10 );
}
- if ( typeof params[rangeIndex] == 'undefined' ) {
+ if ( typeof params[rangeIndex] === 'undefined' ) {
// Does not exist
- return "";
+ return '';
}
valueRange = ranges[params[rangeIndex].valueIndex];
- if ( typeof valueRange.newVal == 'undefined' || original ) {
+ if ( typeof valueRange.newVal === 'undefined' || original ) {
// Value unchanged, return original wikitext
retVal = wikitext.substring( valueRange.begin, valueRange.end );
} else {
// New value exists, return new value
retVal = valueRange.newVal;
}
+ /*jshint eqnull:true */
if ( value != null ) {
ranges[params[rangeIndex].valueIndex].newVal = value;
}
@@ -574,7 +589,7 @@ fn: {
* Get template name
*/
this.getName = function() {
- if( typeof ranges[templateNameIndex].newVal == 'undefined' ) {
+ if( typeof ranges[templateNameIndex].newVal === 'undefined' ) {
return wikitext.substring( ranges[templateNameIndex].begin, ranges[templateNameIndex].end );
} else {
return ranges[templateNameIndex].newVal;
@@ -635,9 +650,9 @@ fn: {
* Get modified template text
*/
this.getText = function() {
- newText = "";
- for ( i = 0 ; i < ranges.length; i++ ) {
- if( typeof ranges[i].newVal == 'undefined' ) {
+ var newText = "";
+ for ( var i = 0 ; i < ranges.length; i++ ) {
+ if( typeof ranges[i].newVal === 'undefined' ) {
newText += wikitext.substring( ranges[i].begin, ranges[i].end );
} else {
newText += ranges[i].newVal;
@@ -659,7 +674,7 @@ fn: {
var adjustment = 0;
for (var i = 0 ; i < ranges.length; i++ ) {
ranges[i].begin += adjustment;
- if( typeof ranges[i].adjust != 'undefined' ) {
+ if ( typeof ranges[i].adjust !== 'undefined' ) {
adjustment += ranges[i].adjust();
// NOTE: adjust should be a function that has the information necessary to calculate the length of
// this 'segment'
@@ -680,15 +695,16 @@ fn: {
// Get rid of first {{ with whitespace
var sanatizedStr = wikitext.replace( /{{/, " " );
// Replace end
- endBraces = sanatizedStr.match( /}}\s*$/ );
+ var endBraces = sanatizedStr.match( /}}\s*$/ );
if ( endBraces ) {
sanatizedStr = sanatizedStr.substring( 0, endBraces.index ) + " " +
sanatizedStr.substring( endBraces.index + 2 );
}
+ var startIndex, endIndex, sanatizedSegment, openBraces, brace;
//treat HTML comments like whitespace
- while ( sanatizedStr.indexOf( '<!' ) != -1 ) {
+ while ( sanatizedStr.indexOf( '<!' ) !== -1 ) {
startIndex = sanatizedStr.indexOf( '<!' );
endIndex = sanatizedStr.indexOf('-->') + 3;
if( endIndex < 3 ){
@@ -700,26 +716,26 @@ fn: {
}
// Match the open braces we just found with equivalent closing braces note, works for any level of braces
- while ( sanatizedStr.indexOf( '{{' ) != -1 ) {
+ while ( sanatizedStr.indexOf( '{{' ) !== -1 ) {
startIndex = sanatizedStr.indexOf( '{{' ) + 1;
openBraces = 2;
endIndex = startIndex;
while ( (openBraces > 0) && (endIndex < sanatizedStr.length) ) {
- var brace = sanatizedStr[++endIndex];
- openBraces += brace == '}' ? -1 : brace == '{' ? 1 : 0;
+ brace = sanatizedStr[++endIndex];
+ openBraces += brace === '}' ? -1 : brace === '{' ? 1 : 0;
}
sanatizedSegment = sanatizedStr.substring( startIndex,endIndex ).replace( /[{}|=]/g , 'X' );
sanatizedStr =
sanatizedStr.substring( 0, startIndex ) + sanatizedSegment + sanatizedStr.substring( endIndex );
}
//links, images, etc, which also can nest
- while ( sanatizedStr.indexOf( '[[' ) != -1 ) {
+ while ( sanatizedStr.indexOf( '[[' ) !== -1 ) {
startIndex = sanatizedStr.indexOf( '[[' ) + 1;
openBraces = 2;
endIndex = startIndex;
while ( (openBraces > 0) && (endIndex < sanatizedStr.length) ) {
- var brace = sanatizedStr[++endIndex];
- openBraces += brace == ']' ? -1 : brace == '[' ? 1 : 0;
+ brace = sanatizedStr[++endIndex];
+ openBraces += brace === ']' ? -1 : brace === '[' ? 1 : 0;
}
sanatizedSegment = sanatizedStr.substring( startIndex,endIndex ).replace( /[\[\]|=]/g , 'X' );
sanatizedStr =
@@ -733,14 +749,16 @@ fn: {
var params = [];
var templateNameIndex = 0;
var doneParsing = false;
- oldDivider = 0;
- divider = sanatizedStr.indexOf( '|', oldDivider );
- if ( divider == -1 ) {
+ var oldDivider = 0;
+ var divider = sanatizedStr.indexOf( '|', oldDivider );
+ if ( divider === -1 ) {
divider = sanatizedStr.length;
doneParsing = true;
collapsible = false; //zero params
}
- nameMatch = sanatizedStr.substring( 0, divider ).match( /[^\s]/ );
+ var nameMatch = sanatizedStr.substring( 0, divider ).match( /[^\s]/ );
+ var nameEndMatch;
+ /*jshint eqnull:true */
if ( nameMatch != null ) {
ranges.push( new Range( 0 ,nameMatch.index ) ); //whitespace and squiggles upto the name
nameEndMatch = sanatizedStr.substring( 0 , divider ).match( /[^\s]\s*$/ ); //last nonwhitespace character
@@ -758,18 +776,21 @@ fn: {
* Start looping over params
*/
var currentParamNumber = 0;
+ var currentField, currentValue, valueBeginIndex, valueBegin, valueEnd;
+ var nameIndex, equalsIndex, valueIndex;
+ var currentName, nameBegin, nameBeginIndex, nameEnd, nameEndIndex;
var valueEndIndex = ranges[templateNameIndex].end;
var paramsByName = [];
while ( !doneParsing ) {
currentParamNumber++;
oldDivider = divider;
divider = sanatizedStr.indexOf( '|', oldDivider + 1 );
- if ( divider == -1 ) {
+ if ( divider === -1 ) {
divider = sanatizedStr.length;
doneParsing = true;
}
currentField = sanatizedStr.substring( oldDivider+1, divider );
- if ( currentField.indexOf( '=' ) == -1 ) {
+ if ( currentField.indexOf( '=' ) === -1 ) {
// anonymous field, gets a number
//default values, since we'll allow empty values
diff --git a/extensions/WikiEditor/modules/jquery.wikiEditor.templates.js b/extensions/WikiEditor/modules/jquery.wikiEditor.templates.js
index b303e3fa..b0462563 100644
--- a/extensions/WikiEditor/modules/jquery.wikiEditor.templates.js
+++ b/extensions/WikiEditor/modules/jquery.wikiEditor.templates.js
@@ -1,22 +1,23 @@
/* Templates Module for wikiEditor */
-( function( $ ) { $.wikiEditor.modules.templates = {
+/*jshint onevar:false */
+( function ( $ ) { $.wikiEditor.modules.templates = {
/**
* Core Requirements
*/
-'req': [ 'iframe' ],
+req: [ 'iframe' ],
/**
* Object Templates
*/
-'tpl': {
- 'marker': {
- 'type': 'template',
- 'anchor': 'wrap',
- 'skipDivision': 'realchange',
- 'afterWrap': function( node ) {
+tpl: {
+ marker: {
+ type: 'template',
+ anchor: 'wrap',
+ skipDivision: 'realchange',
+ afterWrap: function ( node ) {
$( node ).addClass( 'wikiEditor-template' );
},
- 'getAnchor': function( ca1, ca2 ) {
+ getAnchor: function ( ca1 ) {
return $( ca1.parentNode ).is( '.wikiEditor-template' ) ? ca1.parentNode : null;
}
}
@@ -24,10 +25,14 @@
/**
* Event handlers
*/
-'evt': {
- 'mark': function( context, event ) {
+evt: {
+ /**
+ * @param context
+ * @param event
+ */
+ mark: function ( context ) {
// The markers returned by this function are skipped on realchange, so don't regenerate them in that case
- if ( context.modules.highlight.currentScope == 'realchange' ) {
+ if ( context.modules.highlight.currentScope === 'realchange' ) {
return;
}
// Get references to the markers and tokens from the current context
@@ -36,14 +41,14 @@
// Use depth-tracking to extract top-level templates from tokens
var depth = 0, bias, start;
for ( var i in tokens ) {
- depth += ( bias = tokens[i].label == 'TEMPLATE_BEGIN' ? 1 : ( tokens[i].label == 'TEMPLATE_END' ? -1 : 0 ) );
- if ( bias > 0 && depth == 1 ) {
+ depth += ( bias = tokens[i].label === 'TEMPLATE_BEGIN' ? 1 : ( tokens[i].label === 'TEMPLATE_END' ? -1 : 0 ) );
+ if ( bias > 0 && depth === 1 ) {
// Top-level opening - use offset as start
start = tokens[i].offset;
- } else if ( bias < 0 && depth == 0 ) {
+ } else if ( bias < 0 && depth === 0 ) {
// Top-level closing - use offset as end
markers[markers.length] = $.extend(
- { 'context': context, 'start': start, 'end': tokens[i].offset },
+ { context: context, start: start, end: tokens[i].offset },
$.wikiEditor.modules.templates.tpl.marker
);
}
@@ -53,15 +58,19 @@
}
}
},
-'exp': [
- { 'regex': /{{/, 'label': "TEMPLATE_BEGIN" },
- { 'regex': /}}/, 'label': "TEMPLATE_END", 'markAfter': true }
+exp: [
+ { regex: /{{/, label: 'TEMPLATE_BEGIN' },
+ { regex: /}}/, label: 'TEMPLATE_END', markAfter: true }
],
/**
* Internally used functions
*/
-'fn': {
- 'create': function( context, config ) {
+fn: {
+ /**
+ * @param context
+ * @param config
+ */
+ create: function () {
// Do some stuff here...
}
}
diff --git a/extensions/WikiEditor/modules/jquery.wikiEditor.toc.js b/extensions/WikiEditor/modules/jquery.wikiEditor.toc.js
index 54b8a863..3f186db6 100644
--- a/extensions/WikiEditor/modules/jquery.wikiEditor.toc.js
+++ b/extensions/WikiEditor/modules/jquery.wikiEditor.toc.js
@@ -1,31 +1,32 @@
/* TOC Module for wikiEditor */
-( function( $ ) { $.wikiEditor.modules.toc = {
+/*jshint onevar:false */
+( function ( $, mw ) { $.wikiEditor.modules.toc = {
/**
* Compatability map
*/
-'browsers': {
+browsers: {
// Left-to-right languages
- 'ltr': {
- 'msie': [['>=', 7]],
- 'firefox': [['>=', 3]],
- 'opera': [['>=', 10]],
- 'safari': [['>=', 4]],
- 'chrome': [['>=', 4]]
+ ltr: {
+ msie: [['>=', 7]],
+ firefox: [['>=', 3]],
+ opera: [['>=', 10]],
+ safari: [['>=', 4]],
+ chrome: [['>=', 4]]
},
// Right-to-left languages
- 'rtl': {
- 'msie': [['>=', 8]],
- 'firefox': [['>=', 3]],
- 'opera': [['>=', 10]],
- 'safari': [['>=', 4]],
- 'chrome': [['>=', 4]]
+ rtl: {
+ msie: [['>=', 8]],
+ firefox: [['>=', 3]],
+ opera: [['>=', 10]],
+ safari: [['>=', 4]],
+ chrome: [['>=', 4]]
}
},
/**
* Core Requirements
*/
-'req': [ 'iframe' ],
+req: [ 'iframe' ],
/**
* Configuration
*/
@@ -51,10 +52,18 @@ api: {
* Event handlers
*/
evt: {
- change: function( context, event ) {
+ /**
+ * @param context
+ * @param event
+ */
+ change: function( context ) {
$.wikiEditor.modules.toc.fn.update( context );
},
- ready: function( context, event ) {
+ /**
+ * @param context
+ * @param event
+ */
+ ready: function( context ) {
// Add the TOC to the document
$.wikiEditor.modules.toc.fn.build( context );
if ( !context.$content ) {
@@ -68,28 +77,32 @@ evt: {
$.wikiEditor.modules.toc.fn.improveUI();
$.wikiEditor.modules.toc.evt.resize( context );
},
- resize: function( context, event ) {
+ /**
+ * @param context
+ * @param event
+ */
+ resize: function( context ) {
var availableWidth = context.$wikitext.width() - parseFloat( $.wikiEditor.modules.toc.cfg.textMinimumWidth ),
totalMinWidth = parseFloat( $.wikiEditor.modules.toc.cfg.minimumWidth ) +
parseFloat( $.wikiEditor.modules.toc.cfg.textMinimumWidth );
context.$ui.find( '.wikiEditor-ui-right' )
.resizable( 'option', 'maxWidth', availableWidth );
- if ( context.modules.toc.$toc.data( 'positionMode' ) != 'disabled' &&
+ if ( context.modules.toc.$toc.data( 'positionMode' ) !== 'disabled' &&
context.$wikitext.width() < totalMinWidth ) {
$.wikiEditor.modules.toc.fn.disable( context );
- } else if ( context.modules.toc.$toc.data( 'positionMode' ) == 'disabled' &&
+ } else if ( context.modules.toc.$toc.data( 'positionMode' ) === 'disabled' &&
context.$wikitext.width() > totalMinWidth ) {
$.wikiEditor.modules.toc.fn.enable( context );
- } else if ( context.modules.toc.$toc.data( 'positionMode' ) == 'regular' &&
+ } else if ( context.modules.toc.$toc.data( 'positionMode' ) === 'regular' &&
context.$ui.find( '.wikiEditor-ui-right' ).width() > availableWidth ) {
//switch mode
$.wikiEditor.modules.toc.fn.switchLayout( context );
- } else if ( context.modules.toc.$toc.data( 'positionMode' ) == 'goofy' &&
+ } else if ( context.modules.toc.$toc.data( 'positionMode' ) === 'goofy' &&
context.modules.toc.$toc.data( 'previousWidth' ) < context.$wikitext.width() ) {
//switch mode
$.wikiEditor.modules.toc.fn.switchLayout( context );
}
- if ( context.modules.toc.$toc.data( 'positionMode' ) == 'goofy' ) {
+ if ( context.modules.toc.$toc.data( 'positionMode' ) === 'goofy' ) {
context.modules.toc.$toc.find( 'div' ).autoEllipsis(
{ 'position': 'right', 'tooltip': true, 'restoreText': true }
);
@@ -105,14 +118,18 @@ evt: {
// store the width of the view for comparison on next resize
context.modules.toc.$toc.data( 'previousWidth', context.$wikitext.width() );
},
- mark: function( context, event ) {
+ /**
+ * @param context
+ * @param event
+ */
+ mark: function( context ) {
var hash = '';
var markers = context.modules.highlight.markers;
var tokenArray = context.modules.highlight.tokenArray;
var outline = context.data.outline = [];
var h = 0;
for ( var i = 0; i < tokenArray.length; i++ ) {
- if ( tokenArray[i].label != 'TOC_HEADER' ) {
+ if ( tokenArray[i].label !== 'TOC_HEADER' ) {
continue;
}
h++;
@@ -134,14 +151,14 @@ evt: {
},
onSkip: function( node ) {
var marker = $( node ).data( 'marker' );
- if ( $( node ).data( 'section' ) != marker.index ) {
+ if ( $( node ).data( 'section' ) !== marker.index ) {
$( node )
.removeClass( 'wikiEditor-toc-section-' + $( node ).data( 'section' ) )
.addClass( 'wikiEditor-toc-section-' + marker.index )
.data( 'section', marker.index );
}
},
- getAnchor: function( ca1, ca2 ) {
+ getAnchor: function( ca1 ) {
return $( ca1.parentNode ).is( '.wikiEditor-toc-header' ) ?
ca1.parentNode : null;
}
@@ -154,7 +171,7 @@ evt: {
} );
}
// Only update the TOC if it's been changed - we do this by comparing a hash of the headings this time to last
- if ( typeof context.modules.toc.lastHash == 'undefined' || context.modules.toc.lastHash !== hash ) {
+ if ( typeof context.modules.toc.lastHash === 'undefined' || context.modules.toc.lastHash !== hash ) {
$.wikiEditor.modules.toc.fn.build( context );
$.wikiEditor.modules.toc.fn.update( context );
// Remember the changed version
@@ -175,13 +192,13 @@ fn: {
* @param {Object} context Context object of editor to create module in
* @param {Object} config Configuration object to create module from
*/
- create: function( context, config ) {
+ create: function( context ) {
if ( '$toc' in context.modules.toc ) {
return;
}
$.wikiEditor.modules.toc.cfg.rtl = $( 'body' ).is( '.rtl' );
$.wikiEditor.modules.toc.cfg.flexProperty = $.wikiEditor.modules.toc.cfg.rtl ? 'marginLeft' : 'marginRight';
- var height = context.$ui.find( '.wikiEditor-ui-left' ).height();
+ context.$ui.find( '.wikiEditor-ui-left' ).height();
context.modules.toc.$toc = $( '<div>' )
.addClass( 'wikiEditor-ui-toc' )
.data( 'context', context )
@@ -196,14 +213,14 @@ fn: {
},
redraw: function( context, fixedWidth ) {
fixedWidth = parseFloat( fixedWidth );
- if( context.modules.toc.$toc.data( 'positionMode' ) == 'regular' ) {
+ if ( context.modules.toc.$toc.data( 'positionMode' ) === 'regular' ) {
context.$ui.find( '.wikiEditor-ui-right' )
.css( 'width', fixedWidth + 'px' );
context.$ui.find( '.wikiEditor-ui-left' )
.css( $.wikiEditor.modules.toc.cfg.flexProperty, ( -1 * fixedWidth ) + 'px' )
.children()
.css( $.wikiEditor.modules.toc.cfg.flexProperty, fixedWidth + 'px' );
- } else if( context.modules.toc.$toc.data( 'positionMode' ) == 'goofy' ) {
+ } else if( context.modules.toc.$toc.data( 'positionMode' ) === 'goofy' ) {
context.$ui.find( '.wikiEditor-ui-left' )
.css( 'width', fixedWidth );
context.$ui.find( '.wikiEditor-ui-right' )
@@ -212,10 +229,10 @@ fn: {
}
},
switchLayout: function( context ) {
- var width,
- height = context.$ui.find( '.wikiEditor-ui-right' ).height();
- if ( context.modules.toc.$toc.data( 'positionMode' ) == 'regular'
- && !context.modules.toc.$toc.data( 'collapsed' )
+ var width;
+ context.$ui.find( '.wikiEditor-ui-right' ).height();
+ if ( context.modules.toc.$toc.data( 'positionMode' ) === 'regular' &&
+ !context.modules.toc.$toc.data( 'collapsed' )
) {
// store position mode
context.modules.toc.$toc.data( 'positionMode', 'goofy' );
@@ -237,7 +254,7 @@ fn: {
'left' : $.wikiEditor.modules.toc.cfg.rtl ? 0 : 'auto' } );
context.$wikitext
.css( 'position', 'relative' );
- } else if ( context.modules.toc.$toc.data( 'positionMode' ) == 'goofy' ) {
+ } else if ( context.modules.toc.$toc.data( 'positionMode' ) === 'goofy' ) {
// store position mode
context.modules.toc.$toc.data( 'positionMode', 'regular' );
// set width
@@ -260,7 +277,7 @@ fn: {
if ( context.modules.toc.$toc.data( 'collapsed' ) ) {
context.$ui.find( '.wikiEditor-ui-toc-expandControl' ).hide();
} else {
- if( context.modules.toc.$toc.data( 'positionMode' ) == 'goofy' ) {
+ if( context.modules.toc.$toc.data( 'positionMode' ) === 'goofy' ) {
$.wikiEditor.modules.toc.fn.switchLayout( context );
}
context.$ui.find( '.wikiEditor-ui-right' ).hide();
@@ -296,7 +313,7 @@ fn: {
*
* @param {Object} context
*/
- update: function( context ) {
+ update: function () {
//temporarily commenting this out because it is causing all kinds of cursor
//and text jumping issues in IE. WIll get back to this --pdhanda
/*
@@ -333,10 +350,10 @@ fn: {
*
* @param {Object} event Event object with context as data
*/
- collapse: function( event ) {
+ collapse: function () {
var $this = $( this ),
context = $this.data( 'context' );
- if( context.modules.toc.$toc.data( 'positionMode' ) == 'goofy' ) {
+ if ( context.modules.toc.$toc.data( 'positionMode' ) === 'goofy' ) {
$.wikiEditor.modules.toc.fn.switchLayout( context );
}
var pT = $this.parent().position().top - 1;
@@ -366,7 +383,7 @@ fn: {
// Let the UI know things have moved around
context.fn.trigger( 'tocCollapse' );
context.fn.trigger( 'resize' );
- } );
+ } );
$.cookie( 'wikiEditor-' + context.instance + '-toc-width', 0 );
return false;
@@ -377,15 +394,19 @@ fn: {
*
* @param {Object} event Event object with context as data
*/
- expand: function( event ) {
+ expand: function () {
var $this = $( this ),
context = $this.data( 'context' ),
openWidth = parseFloat( context.modules.toc.$toc.data( 'openWidth' ) ),
availableSpace = context.$wikitext.width() - parseFloat( $.wikiEditor.modules.toc.cfg.textMinimumWidth );
- if ( availableSpace < $.wikiEditor.modules.toc.cfg.textMinmumWidth ) return false;
+ if ( availableSpace < $.wikiEditor.modules.toc.cfg.textMinmumWidth ) {
+ return false;
+ }
context.modules.toc.$toc.data( 'collapsed', false );
// check if we've got enough room to open to our stored width
- if ( availableSpace < openWidth ) openWidth = availableSpace;
+ if ( availableSpace < openWidth ) {
+ openWidth = availableSpace;
+ }
context.$ui.find( '.wikiEditor-ui-toc-expandControl' ).hide();
var leftParam = {}, leftChildParam = {};
leftParam[ $.wikiEditor.modules.toc.cfg.flexProperty ] = parseFloat( openWidth ) * -1;
@@ -407,7 +428,7 @@ fn: {
'top': 'auto' } );
context.fn.trigger( 'tocExpand' );
context.fn.trigger( 'resize' );
- } );
+ } );
$.cookie( 'wikiEditor-' + context.instance + '-toc-width',
context.modules.toc.$toc.data( 'openWidth' ) );
return false;
@@ -432,7 +453,7 @@ fn: {
}
var sections = [];
for ( var i = offset; i < outline.length; i++ ) {
- if ( outline[i].nLevel == level ) {
+ if ( outline[i].nLevel === level ) {
var sub = buildStructure( outline, i + 1, level + 1 );
if ( sub.length ) {
outline[i].sections = sub;
@@ -462,8 +483,9 @@ fn: {
.click( function( event ) {
var wrapper = context.$content.find(
'.wikiEditor-toc-section-' + $( this ).data( 'index' ) );
- if ( wrapper.length === 0 )
+ if ( wrapper.length === 0 ) {
wrapper = context.$content;
+ }
context.fn.scrollToTop( wrapper, true );
context.$textarea.textSelection( 'setSelection', {
'start': 0,
@@ -481,8 +503,9 @@ fn: {
event.preventDefault();
} )
.text( structure[i].text );
- if ( structure[i].text === '' )
+ if ( structure[i].text === '' ) {
div.html( '&nbsp;' );
+ }
var item = $( '<li>' ).append( div );
if ( structure[i].sections !== undefined ) {
item.append( buildList( structure[i].sections ) );
@@ -546,7 +569,7 @@ fn: {
.data( 'wikiEditor-ui-left', context.$ui.find( '.wikiEditor-ui-left' ) )
.resizable( { handles: 'w,e', preventPositionLeftChange: true,
minWidth: parseFloat( $.wikiEditor.modules.toc.cfg.minimumWidth ),
- start: function( e, ui ) {
+ start: function () {
var $this = $( this );
// Toss a transparent cover over our iframe
$( '<div>' )
@@ -562,7 +585,7 @@ fn: {
.appendTo( context.$ui.find( '.wikiEditor-ui-left' ) );
$this.resizable( 'option', 'maxWidth', $this.parent().width() -
parseFloat( $.wikiEditor.modules.toc.cfg.textMinimumWidth ) );
- if(context.modules.toc.$toc.data( 'positionMode' ) == 'goofy' ) {
+ if ( context.modules.toc.$toc.data( 'positionMode' ) === 'goofy' ) {
$.wikiEditor.modules.toc.fn.switchLayout( context );
}
},
@@ -596,7 +619,7 @@ fn: {
var handle = $.wikiEditor.modules.toc.cfg.rtl ? 'w' : 'e';
context.$ui.find( '.ui-resizable-' + handle )
.removeClass( 'ui-resizable-' + handle )
- .addClass( 'ui-resizable-' + ( handle == 'w' ? 'e' : 'w' ) )
+ .addClass( 'ui-resizable-' + ( handle === 'w' ? 'e' : 'w' ) )
.addClass( 'wikiEditor-ui-toc-resize-grip' );
// Bind collapse and expand event handlers to the TOC
context.modules.toc.$toc
@@ -604,12 +627,13 @@ fn: {
.bind( 'expand.wikiEditor-toc', $.wikiEditor.modules.toc.fn.expand );
context.modules.toc.$toc.data( 'openWidth', $.wikiEditor.modules.toc.cfg.defaultWidth );
// If the toc-width cookie is set, reset the widths based upon that
- if ( $.cookie( 'wikiEditor-' + context.instance + '-toc-width' ) == 0 ) {
+ if ( $.cookie( 'wikiEditor-' + context.instance + '-toc-width' ) === 0 ) {
context.modules.toc.$toc.trigger( 'collapse.wikiEditor-toc', { data: context } );
} else if ( $.cookie( 'wikiEditor-' + context.instance + '-toc-width' ) > 0 ) {
var initialWidth = $.cookie( 'wikiEditor-' + context.instance + '-toc-width' );
- if( initialWidth < parseFloat( $.wikiEditor.modules.toc.cfg.minimumWidth ) )
+ if ( initialWidth < parseFloat( $.wikiEditor.modules.toc.cfg.minimumWidth ) ) {
initialWidth = parseFloat( $.wikiEditor.modules.toc.cfg.minimumWidth ) + 1;
+ }
context.modules.toc.$toc.data( 'openWidth', initialWidth + 'px' );
$.wikiEditor.modules.toc.fn.redraw( context, initialWidth );
}
@@ -664,7 +688,7 @@ fn: {
* Extending resizable to allow west resizing without altering the left position attribute
*/
$.ui.plugin.add( 'resizable', 'preventPositionLeftChange', {
- resize: function( event, ui ) {
+ resize: function () {
$( this ).data( 'resizable' ).position.left = 0;
}
} );
@@ -673,4 +697,4 @@ fn: {
};
-} ) ( jQuery );
+} )( jQuery, mediaWiki );
diff --git a/extensions/WikiEditor/modules/jquery.wikiEditor.toolbar.config.js b/extensions/WikiEditor/modules/jquery.wikiEditor.toolbar.config.js
index d3f7a9d5..cb24bfd5 100644
--- a/extensions/WikiEditor/modules/jquery.wikiEditor.toolbar.config.js
+++ b/extensions/WikiEditor/modules/jquery.wikiEditor.toolbar.config.js
@@ -1,7 +1,8 @@
/**
* Configuration of Toolbar module for wikiEditor
*/
-( function( $ ) { $.wikiEditor.modules.toolbar.config = {
+/*jshint camelcase:false, quotmark:false */
+( function ( $, mw ) { $.wikiEditor.modules.toolbar.config = {
getDefaultConfig: function() {
var fileNamespace = mw.config.get( 'wgFormattedNamespaces' )[6];
@@ -43,6 +44,7 @@ getDefaultConfig: function() {
'eu': 'format-bold-L.png',
'he': 'format-bold-B.png',
'hu': 'format-bold-F.png',
+ 'hy': 'format-bold-hy.png',
'it': 'format-bold-G.png',
'ka': 'format-bold-ka.png',
'ky': 'format-bold-ru.png',
@@ -98,6 +100,7 @@ getDefaultConfig: function() {
'eu': 'format-italic-E.png',
'he': 'format-italic-I.png',
'hu': 'format-italic-D.png',
+ 'hy': 'format-italic-hy.png',
'it': 'format-italic-C.png',
'ka': 'format-italic-ka.png',
'ky': 'format-italic-K.png',
@@ -1452,4 +1455,4 @@ getDefaultConfig: function() {
} };
}
-}; } ) ( jQuery );
+}; } ) ( jQuery, mediaWiki );
diff --git a/extensions/WikiEditor/modules/jquery.wikiEditor.toolbar.js b/extensions/WikiEditor/modules/jquery.wikiEditor.toolbar.js
index e1bc6f15..71592b53 100644
--- a/extensions/WikiEditor/modules/jquery.wikiEditor.toolbar.js
+++ b/extensions/WikiEditor/modules/jquery.wikiEditor.toolbar.js
@@ -1,6 +1,7 @@
/**
* Toolbar module for wikiEditor
*/
+/*jshint onevar:false */
( function ( mw, $ ) { $.wikiEditor.modules.toolbar = {
/**
@@ -17,7 +18,7 @@ api : {
var $sections = context.modules.toolbar.$toolbar.find( 'div.sections' ),
$tabs = context.modules.toolbar.$toolbar.find( 'div.tabs' );
for ( var section in data[type] ) {
- if ( section == 'main' ) {
+ if ( section === 'main' ) {
// Section
context.modules.toolbar.$toolbar.prepend(
$.wikiEditor.modules.toolbar.fn.buildSection(
@@ -145,28 +146,28 @@ api : {
}
},
removeFromToolbar : function( context, data ) {
- if ( typeof data.section == 'string' ) {
+ if ( typeof data.section === 'string' ) {
// Section
var tab = 'div.tabs span[rel="' + data.section + '"].tab';
var target = 'div[rel="' + data.section + '"].section';
var group = null;
- if ( typeof data.group == 'string' ) {
+ if ( typeof data.group === 'string' ) {
// Toolbar group
target += ' div[rel="' + data.group + '"].group';
- if ( typeof data.tool == 'string' ) {
+ if ( typeof data.tool === 'string' ) {
// Save for later checking if empty
group = target;
// Tool
target += ' a[rel="' + data.tool + '"].tool';
}
- } else if ( typeof data.page == 'string' ) {
+ } else if ( typeof data.page === 'string' ) {
// Booklet page
var index = target + ' div.index div[rel="' + data.page + '"]';
target += ' div.pages div[rel="' + data.page + '"].page';
- if ( typeof data.character == 'string' ) {
+ if ( typeof data.character === 'string' ) {
// Character
target += ' span[rel="' + data.character + '"]';
- } else if ( typeof data.row == 'number' ) {
+ } else if ( typeof data.row === 'number' ) {
// Table row
target += ' table tr:not(:has(th)):eq(' + data.row + ')';
} else {
@@ -198,7 +199,11 @@ api : {
* Event handlers
*/
evt: {
- resize: function( context, event ) {
+ /**
+ * @param context
+ * @param event
+ */
+ resize: function( context ) {
context.$ui.find( '.sections' ).height( context.$ui.find( '.sections .section-visible' ).outerHeight() );
},
tocCollapse: function( context, event ) {
@@ -235,7 +240,7 @@ fn: {
* @param {Object} action
* @param {Object} source
*/
- doAction : function( context, action, source ) {
+ doAction : function( context, action ) {
switch ( action.type ) {
case 'replace':
case 'encapsulate':
@@ -244,7 +249,7 @@ fn: {
'peri' : $.wikiEditor.autoMsg( action.options, 'peri' ),
'post' : $.wikiEditor.autoMsg( action.options, 'post' )
};
- var replace = action.type == 'replace';
+ var replace = action.type === 'replace';
if ( 'regex' in action.options && 'regexReplace' in action.options ) {
var selection = context.$textarea.textSelection( 'getSelection' );
if ( selection !== '' && selection.match( action.options.regex ) ) {
@@ -263,7 +268,7 @@ fn: {
}
break;
case 'callback':
- if ( typeof action.execute == 'function' ) {
+ if ( typeof action.execute === 'function' ) {
action.execute( context );
}
break;
@@ -287,7 +292,7 @@ fn: {
if ( tool ) {
// Consider a group with only hidden tools empty as well
// .is( ':visible' ) always returns false because tool is not attached to the DOM yet
- empty = empty && tool.css( 'display' ) == 'none';
+ empty = empty && tool.css( 'display' ) === 'none';
$group.append( tool );
}
}
@@ -447,7 +452,7 @@ fn: {
} );
},
buildPage : function( context, id, page ) {
- var html;
+ var html, i;
var $page = $( '<div/>' ).attr( {
'class' : 'page page-' + id,
'rel' : id
@@ -461,7 +466,7 @@ fn: {
html += $.wikiEditor.modules.toolbar.fn.buildHeading( context, page.headings );
}
if ( 'rows' in page ) {
- for ( var i = 0; i < page.rows.length; i++ ) {
+ for ( i = 0; i < page.rows.length; i++ ) {
html += $.wikiEditor.modules.toolbar.fn.buildRow( context, page.rows[i] );
}
}
@@ -484,7 +489,7 @@ fn: {
}
if ( 'characters' in page ) {
html = '';
- for ( var i = 0; i < page.characters.length; i++ ) {
+ for ( i = 0; i < page.characters.length; i++ ) {
html += $.wikiEditor.modules.toolbar.fn.buildCharacter( page.characters[i], actions );
}
$characters
@@ -527,7 +532,7 @@ fn: {
return html + '</tr>';
},
buildCharacter : function( character, actions ) {
- if ( typeof character == 'string' ) {
+ if ( typeof character === 'string' ) {
character = {
'label' : character,
'action' : {
@@ -564,8 +569,9 @@ fn: {
return mw.html.element( 'span', { 'rel': character.label }, character.label );
}
}
- mw.log( "A character for the toolbar was undefined. This is not supposed to happen. Double check the config." );
- return ""; // bug 31673; also an additional fix for bug 24208...
+ mw.log( 'A character for the toolbar was undefined. This is not supposed to happen. Double check the config.' );
+ // bug 31673; also an additional fix for bug 24208...
+ return '';
},
buildTab : function( context, id, section ) {
var selected = $.cookie( 'wikiEditor-' + context.instance + '-toolbar-section' );
@@ -575,7 +581,7 @@ fn: {
}
var $link =
$( '<a/>' )
- .addClass( selected == id ? 'current' : null )
+ .addClass( selected === id ? 'current' : null )
.attr( {
href: '#',
role: 'button',
@@ -584,7 +590,7 @@ fn: {
} )
.text( $.wikiEditor.autoMsg( section, 'label' ) )
.data( 'context', context )
- .mouseup( function( e ) {
+ .mouseup( function () {
$(this).blur();
} )
.mousedown( function( e ) {
@@ -604,7 +610,7 @@ fn: {
var $sections = $(this).data( 'context' ).$ui.find( '.sections' );
var $section =
$(this).data( 'context' ).$ui.find( '.section-' + $(this).parent().attr( 'rel' ) );
- var show = $section.css( 'display' ) == 'none';
+ var show = $section.css( 'display' ) === 'none';
$section.parent().find( '.section-visible' )
.css( 'position', 'absolute' )
.attr( 'aria-expanded', 'false' )
@@ -668,7 +674,7 @@ fn: {
id: 'wikiEditor-section-' + id
} );
var selected = $.cookie( 'wikiEditor-' + context.instance + '-toolbar-section' );
- var show = selected == id;
+ var show = selected === id;
if ( section.deferLoad !== undefined && section.deferLoad && id !== 'main' && !show ) {
// This class shows the spinner and serves as a marker for the click handler in buildTab()
@@ -724,6 +730,7 @@ fn: {
}
},
updateBookletSelection : function( context, id, $pages, $index ) {
+ /*jshint eqnull:true */
var cookie = 'wikiEditor-' + context.instance + '-booklet-' + id + '-page';
var selected = $.cookie( cookie );
// Re-save cookie
@@ -747,7 +754,7 @@ fn: {
context.modules.toolbar.$toolbar.append( $( '<div/>' ).css( 'clear', 'both' ) );
var sectionQueue = [];
for ( var section in config ) {
- if ( section == 'main' ) {
+ if ( section === 'main' ) {
context.modules.toolbar.$toolbar.prepend(
$.wikiEditor.modules.toolbar.fn.buildSection( context, section, config[section] )
);