Commit bba14e1e authored by Michael Chaudhary's avatar Michael Chaudhary Committed by Robert Nix

Update Drafts for 1.33

parent 1bd5e0c7
<?php
return require __DIR__ . '/../vendor/mediawiki/mediawiki-phan-config/src/config.php';
......@@ -9,9 +9,7 @@
<exclude name="MediaWiki.Commenting.FunctionComment.MissingReturn" />
<exclude name="MediaWiki.Commenting.FunctionComment.ParamNameNoMatch" />
<exclude name="MediaWiki.Commenting.LicenseComment.InvalidLicenseTag" />
<exclude name="MediaWiki.Files.ClassMatchesFilename.NotMatch" />
<exclude name="MediaWiki.NamingConventions.ValidGlobalName.allowedPrefix" />
<exclude name="MediaWiki.VariableAnalysis.UnusedGlobalVariables.UnusedGlobal$egDraftsAutoSaveInputBased" />
</rule>
<file>.</file>
<arg name="extensions" value="php,php5,inc" />
......
The development of this software is covered by a [Code of Conduct](https://www.mediawiki.org/wiki/Special:MyLanguage/Code_of_Conduct).
......@@ -6,7 +6,8 @@
"jakub-onderka/php-parallel-lint": "1.0.0",
"jakub-onderka/php-console-highlighter": "0.3.2",
"mediawiki/minus-x": "0.3.1",
"mediawiki/mediawiki-codesniffer": "23.0.0"
"mediawiki/mediawiki-codesniffer": "26.0.0",
"mediawiki/mediawiki-phan-config": "0.6.1"
},
"scripts": {
"test": [
......
{
"name": "Drafts",
"version": "0.3.5",
"version": "0.3.6",
"author": [
"Trevor Parscal",
"Petr Bena"
......@@ -46,11 +46,11 @@
}
},
"AutoloadClasses": {
"ApiSaveDrafts": "ApiSaveDrafts.php",
"Drafts": "Drafts.class.php",
"Draft": "Draft.class.php",
"DraftHooks": "Drafts.hooks.php",
"SpecialDrafts": "SpecialDrafts.php"
"ApiSaveDrafts": "includes/api/ApiSaveDrafts.php",
"Drafts": "includes/Drafts.php",
"Draft": "includes/Draft.php",
"DraftHooks": "includes/DraftHooks.php",
"SpecialDrafts": "includes/specials/SpecialDrafts.php"
},
"APIModules": {
"savedrafts": "ApiSaveDrafts"
......@@ -72,7 +72,6 @@
"styles": "modules/ext.Drafts.css",
"dependencies": [
"mediawiki.jqueryMsg",
"mediawiki.legacy.wikibits",
"oojs-ui-core",
"oojs-ui-widgets"
],
......
......@@ -19,13 +19,14 @@
"drafts-view-notice-link": "$1 {{PLURAL:$1|مسودة|مسودة}}",
"drafts-view-warn": "هل تريد الاستمرار في التنقل بعيدًا عن هذه الصفحة؟ بذلك، ستفقد كافة التغييرات التي لم يتم حفظها في هذه الصفحة.",
"drafts-save": "يحفظ هذه كمسودة",
"drafts-save-save": "احفظ المسودة",
"drafts-save-save": "حفظ المسودة",
"drafts-save-saved": "محفوظة",
"drafts-save-saving": "حفظ",
"drafts-save-error": "خطأ أثناء حفظ المسودة",
"drafts-enable": "تمكين ميزة لحفظ مسودة في نموذج تحرير",
"prefs-extension-drafts": "مسودات",
"tooltip-drafts-save": "حفظ كمسودة",
"apierror-mustbeloggedin-save-drafts": "يجب تسجيل الدخول لحفظ المسودات.",
"apihelp-savedrafts-description": "حفظ مسودة.",
"apihelp-savedrafts-summary": "حفظ مسودة.",
"apihelp-savedrafts-param-id": "معرف المسودة.",
......
......@@ -24,6 +24,7 @@
"drafts-enable": "Activar la función pa guardar un borrador nel formulariu d'edición",
"prefs-extension-drafts": "Borradores",
"tooltip-drafts-save": "Guardar como borrador",
"apierror-mustbeloggedin-save-drafts": "Tienes d'aniciar sesión pa guardar borradores.",
"apihelp-savedrafts-description": "Guardar un borrador.",
"apihelp-savedrafts-summary": "Guardar un borrador.",
"apihelp-savedrafts-param-id": "La ID del borrador.",
......
{
"@metadata": {
"authors": [
"NoiX180"
]
},
"drafts-view-saved": "Maraksa",
"drafts-save-saved": "Maraksa"
}
......@@ -2,7 +2,8 @@
"@metadata": {
"authors": [
"DCLXVI",
"Turin"
"Turin",
"StanProg"
]
},
"drafts": "Чернови",
......@@ -17,8 +18,8 @@
"drafts-view-notice-link": "$1 {{PLURAL:$1|чернова|чернови}}",
"drafts-save": "Съхраняване на съдържанието като чернова",
"drafts-save-save": "Съхраняване като чернова",
"drafts-save-saved": "Запазено",
"drafts-save-saving": "Запазване",
"drafts-save-saved": "Съхранено",
"drafts-save-saving": "Съхраняване",
"drafts-save-error": "Възникна грешка при съхраняване на черновата",
"tooltip-drafts-save": "Съхраняване като чернова"
}
......@@ -4,7 +4,8 @@
"Chmee2",
"Danny B.",
"Matěj Grabovský",
"Mormegil"
"Mormegil",
"Patriccck"
]
},
"drafts": "Koncepty",
......@@ -26,5 +27,17 @@
"drafts-save-error": "Chyba při ukládání konceptu",
"drafts-enable": "Zapnout funkci pro ukládání konceptů z editačního okna",
"prefs-extension-drafts": "Návrhy",
"tooltip-drafts-save": "Uložit jako koncept"
"tooltip-drafts-save": "Uložit jako koncept",
"apihelp-savedrafts-description": "Uložit koncept.",
"apihelp-savedrafts-summary": "Uložit koncept.",
"apihelp-savedrafts-param-id": "ID konceptu.",
"apihelp-savedrafts-param-drafttoken": "Token konceptu.",
"apihelp-savedrafts-param-title": "Název konceptu.",
"apihelp-savedrafts-param-section": "Index části editované stránky.",
"apihelp-savedrafts-param-starttime": "Čas založení konceptu.",
"apihelp-savedrafts-param-edittime": "Editační čas konceptu.",
"apihelp-savedrafts-param-scrolltop": "ScrollTop textového pole.",
"apihelp-savedrafts-param-text": "Text konceptu.",
"apihelp-savedrafts-param-summary": "Shrnutí konceptu.",
"apihelp-savedrafts-param-minoredit": "Boolean rozhoduje, zda je koncept malá editace."
}
......@@ -30,6 +30,7 @@
"drafts-enable": "Funktion aktivieren, um einen Entwurf im Bearbeitungsformular speichern zu können",
"prefs-extension-drafts": "Entwürfe",
"tooltip-drafts-save": "Eine zwischengespeicherte Version erstellen",
"apierror-mustbeloggedin-save-drafts": "Du musst angemeldet sein, um Entwürfe zu speichern.",
"apihelp-savedrafts-description": "Speichert einen Entwurf.",
"apihelp-savedrafts-summary": "Speichert einen Entwurf.",
"apihelp-savedrafts-param-id": "Die Kennung des Entwurfs.",
......
......@@ -15,17 +15,17 @@
"drafts-view-summary": "no pelo xususi listeya numuneyi ya mewcudi ramocneno.\nnumuneyê ke nêşuxuliyeni badê $1 {{PLURAL:$1|roci|roci}} bı otomatik esteriyeni.",
"drafts-view-article": "Pele",
"drafts-view-existing": "Draftan ke esto",
"drafts-view-saved": "Stariya",
"drafts-view-saved": "Qeyd bi",
"drafts-view-discard": "Îptal biker",
"drafts-view-nonesaved": "Ti hama nika yew draft qeyd nikerd.",
"drafts-view-notice": "Ser ena pel de $1 teneyê tu esto.",
"drafts-view-notice-link": "$1 {{PLURAL:$1|draft|draftan}}",
"drafts-view-warn": "Eka ti ena pele qefinene, vurnayîşê tu ke ti qeyd nikerd înan pêran beno vin.Ti wazeno dewam bikero?",
"drafts-save": "Eney taslax deye qeyd bike",
"drafts-save-save": "Draft qeyd ke",
"drafts-save-saved": "Stariya",
"drafts-save-saving": "Starêno",
"drafts-save-error": "Qeyd kerdişî de yew ğelet biyo",
"drafts-save-save": "Teslaği qeyd ke",
"drafts-save-saved": "Qeyd bi",
"drafts-save-saving": "Qeyd beno",
"drafts-save-error": "Qeydkerdışê teslaği xeta",
"drafts-enable": "Zey timar kerden hunerê taslax qeyd kerdış aktiv ke",
"prefs-extension-drafts": "Taslaxi",
"tooltip-drafts-save": "Taslağ deyne nışanyayış",
......
......@@ -25,6 +25,7 @@
"prefs-extension-drafts": "Drafts",
"tooltip-drafts-save": "Save as a draft",
"accesskey-drafts-save": "g",
"apierror-mustbeloggedin-save-drafts": "You must be logged in to save drafts.",
"apihelp-savedrafts-description": "Save a draft.",
"apihelp-savedrafts-summary": "Save a draft.",
"apihelp-savedrafts-param-id": "The ID of the draft.",
......
......@@ -3,7 +3,8 @@
"authors": [
"An13sa",
"Kobazulo",
"Subi"
"Subi",
"Xabier Armendaritz"
]
},
"drafts": "Zirriborroak",
......@@ -14,12 +15,12 @@
"drafts-view-nonesaved": "Une honetan ez duzu gordetako zirriborrorik.",
"drafts-view-notice": "Orrialde honetarako $1 duzu.",
"drafts-view-notice-link": "{{PLURAL:$1|Zirriborro $1|$1 zirriborro}}",
"drafts-save": "Gorde hau zirriborro bezala",
"drafts-save": "Gorde hau zirriborrotzat",
"drafts-save-save": "Zirriborroa gorde",
"drafts-save-saved": "Gordeta",
"drafts-save-saving": "Gordetzen",
"drafts-save-error": "Akatsa zirriborroa gordetzean",
"prefs-extension-drafts": "Zirriborroak",
"tooltip-drafts-save": "Zirriborroa bezala gorde",
"tooltip-drafts-save": "Gorde zirriborrotzat",
"apihelp-savedrafts-description": "Gorde zirriborroa."
}
......@@ -7,7 +7,8 @@
"Nike",
"Str4nd",
"Vililikku",
"01miki10"
"01miki10",
"Silvonen"
]
},
"drafts": "Luonnokset",
......@@ -30,5 +31,6 @@
"drafts-enable": "Ota käyttöön luonnoksen tallentaminen muokkausmuodossa",
"prefs-extension-drafts": "Luonnokset",
"tooltip-drafts-save": "Tallenna luonnoksena",
"apihelp-savedrafts-description": "Tallenna luonnos."
"apihelp-savedrafts-description": "Tallenna luonnos.",
"apihelp-savedrafts-summary": "Tallenna luonnos."
}
......@@ -30,6 +30,7 @@
"drafts-enable": "Activer la fonctionnalité pour enregistrer un brouillon dans le formulaire de modification",
"prefs-extension-drafts": "Brouillons",
"tooltip-drafts-save": "Enregistrer comme brouillon",
"apierror-mustbeloggedin-save-drafts": "Vous devez être connecté pour enregistrer les brouillons.",
"apihelp-savedrafts-description": "Enregistrer un brouillon.",
"apihelp-savedrafts-summary": "Enregistrer un brouillon.",
"apihelp-savedrafts-param-id": "L’ID du brouillon.",
......
......@@ -26,6 +26,7 @@
"drafts-enable": "Activar a función para gardar un borrador no formulario de edición",
"prefs-extension-drafts": "Borradores",
"tooltip-drafts-save": "Gardar como un borrador",
"apierror-mustbeloggedin-save-drafts": "Debe acceder ó sistema para gardar borradores.",
"apihelp-savedrafts-description": "Gardar un borrador.",
"apihelp-savedrafts-summary": "Gardar un borrador.",
"apihelp-savedrafts-param-id": "O Identificador do borrador.",
......
......@@ -27,6 +27,7 @@
"drafts-enable": "Abilita la funzione per salvare una bozza nel modulo di modifica",
"prefs-extension-drafts": "Bozze",
"tooltip-drafts-save": "Salva come bozza",
"apierror-mustbeloggedin-save-drafts": "Devi aver effettuato l'accesso per salvare le bozze.",
"apihelp-savedrafts-description": "Salva una bozza.",
"apihelp-savedrafts-summary": "Salva una bozza.",
"apihelp-savedrafts-param-id": "L'ID della bozza.",
......
......@@ -8,7 +8,8 @@
"Rxy",
"Otokoume",
"2nd-player",
"Yusuke1109"
"Yusuke1109",
"Afaz"
]
},
"drafts": "下書き",
......@@ -31,6 +32,7 @@
"drafts-enable": "編集フォームで下書きを保存する機能を有効にする",
"prefs-extension-drafts": "下書き",
"tooltip-drafts-save": "下書きとして保存する",
"apierror-mustbeloggedin-save-drafts": "下書きを保存するにはログインしてください",
"apihelp-savedrafts-description": "下書きを保存します。",
"apihelp-savedrafts-summary": "下書きを保存します。",
"apihelp-savedrafts-param-id": "下書きの ID",
......
{
"@metadata": {
"authors": [
"Mirzali"
]
},
"drafts-view-article": "Pele"
}
......@@ -16,7 +16,7 @@
"drafts-view-nonesaved": "អ្នក​មិន​មាន​ពង្រាង​ណាមួយ​ត្រូវ​បាន​រក្សាទុក​នាពេលនេះ​ទេ​។",
"drafts-view-notice": "អ្នក​មាន $1 សម្រាប់​ទំព័រ​នេះ​។",
"drafts-view-notice-link": "$1 {{PLURAL:$1|ពង្រាង|ពង្រាង}}",
"drafts-view-warn": "តើអ្នកចង់ចាកចេញពីទំព័រនេះមែនទេ? បើចាកចេញពីទំព័រនេះ អ្នកនឹងបាត់បង់រាល់អ្វីដែលមិនទាន់បានរក្សាទុកនៅលើទំព័រនេះ។",
"drafts-view-warn": "តើអ្នកចង់ចាកចេញពីទំព័រនេះមែនទេ? បើចាកចេញពីទំព័រនេះ អ្នកនឹងបាត់បង់រាល់បន្លាស់ប្ដូរដែលមិនទាន់បានរក្សាទុកនៅលើទំព័រនេះ។",
"drafts-save": "រក្សាទុក​ជា​ពង្រាង",
"drafts-save-save": "រក្សាទុក​ពង្រាង",
"drafts-save-saved": "បាន​រក្សាទុក",
......
......@@ -30,6 +30,7 @@
"drafts-enable": "편집 화면에서 초안을 저장하는 기능을 활성화",
"prefs-extension-drafts": "초안 목록",
"tooltip-drafts-save": "초안으로 저장하기",
"apierror-mustbeloggedin-save-drafts": "초안을 저장하려면 로그인해야 합니다.",
"apihelp-savedrafts-description": "초안 저장.",
"apihelp-savedrafts-summary": "초안을 저장합니다.",
"apihelp-savedrafts-param-id": "초안의 ID",
......
{
"@metadata": {
"authors": [
"Bjankuloski06"
"Bjankuloski06",
"Vlad5250"
]
},
"drafts": "Недовршени",
......@@ -24,12 +25,13 @@
"drafts-enable": "Овозможете ја функцијата за да зачувате нацрт во образецот за уредување",
"prefs-extension-drafts": "Недовршени",
"tooltip-drafts-save": "Зачувај како нацрт",
"apierror-mustbeloggedin-save-drafts": "Мора да сте најавени за да зачувувате работни верзии.",
"apihelp-savedrafts-description": "Зачувај нацрт.",
"apihelp-savedrafts-summary": "Зачувај нацрт.",
"apihelp-savedrafts-param-id": "Назнака на нацртот.",
"apihelp-savedrafts-param-drafttoken": "Шифра на нацртот.",
"apihelp-savedrafts-param-title": "Наслов на нацртот.",
"apihelp-savedrafts-param-section": "Индекс на поднасловот на сраницата што се уредува.",
"apihelp-savedrafts-param-section": "Индекс на поднасловот на страницата што се уредува.",
"apihelp-savedrafts-param-starttime": "Време на почнувањето на нацртот.",
"apihelp-savedrafts-param-edittime": "Време на уредувањето на нацртот.",
"apihelp-savedrafts-param-scrolltop": "scrollTop на полето со текст.",
......
......@@ -6,7 +6,9 @@
"Holek",
"Leinad",
"Sp5uhe",
"Chrumps"
"Chrumps",
"Railfail536",
"Rail"
]
},
"drafts": "Brudnopisy stron",
......@@ -20,7 +22,7 @@
"drafts-view-nonesaved": "Nie masz obecnie zapisanych żadnych brudnopisów stron.",
"drafts-view-notice": "Masz obecnie $1 tej strony.",
"drafts-view-notice-link": "$1 {{PLURAL:$1|brudnopis|brudnopisy|brudnopisów}}",
"drafts-view-warn": "Opuszczenie tej strony spowoduje utratę wszystkich niezapisanych zmian w jej treści.\nCzy chcesz kontynuować?",
"drafts-view-warn": "Czy na pewno chcesz opuścić tę stronę? Robiąc to utracisz wszystkie niezapisane zmiany w jej treści.",
"drafts-save": "Zapisuje jako brudnopis strony",
"drafts-save-save": "Zapisz brudnopis",
"drafts-save-saved": "Zapisany",
......@@ -29,9 +31,15 @@
"drafts-enable": "Włącz funkcję zapisu brudnopisu na formularzu edycji",
"prefs-extension-drafts": "Brudnopisy stron",
"tooltip-drafts-save": "Zapisz jako brudnopis strony",
"apierror-mustbeloggedin-save-drafts": "Musisz być zalogowany, aby zapisywać szkice.",
"apihelp-savedrafts-description": "Zapisz wersję roboczą.",
"apihelp-savedrafts-summary": "Zapisz wersję roboczą.",
"apihelp-savedrafts-param-id": "Identyfikator szkicu.",
"apihelp-savedrafts-param-drafttoken": "Token szkicu.",
"apihelp-savedrafts-param-title": "Tytuł w wersji roboczej.",
"apihelp-savedrafts-param-section": "Indeks sekcji edytowanej strony.",
"apihelp-savedrafts-param-text": "Tekst w wersji roboczej."
"apihelp-savedrafts-param-starttime": "Czas początkowy szkicu.",
"apihelp-savedrafts-param-edittime": "Czas edycji szkicu.",
"apihelp-savedrafts-param-text": "Tekst w wersji roboczej.",
"apihelp-savedrafts-param-minoredit": "Wartość logiczna decydująca, czy szkic jest drobną edycją."
}
......@@ -28,6 +28,7 @@
"drafts-enable": "Ativar a funcionalidade que permite gravar um rascunho no formulário de edição",
"prefs-extension-drafts": "Rascunhos",
"tooltip-drafts-save": "Salvar como rascunho",
"apierror-mustbeloggedin-save-drafts": "Você precisa entrar para salvar rascunhos.",
"apihelp-savedrafts-description": "Salvar rascunho.",
"apihelp-savedrafts-summary": "Salvar rascunho.",
"apihelp-savedrafts-param-id": "O identificador do rascunho.",
......
......@@ -28,6 +28,7 @@
"drafts-enable": "Ativar a funcionalidade que permite gravar um rascunho no formulário de edição",
"prefs-extension-drafts": "Rascunhos",
"tooltip-drafts-save": "Gravar como rascunho",
"apierror-mustbeloggedin-save-drafts": "Para gravar rascunhos tem de ter uma sessão iniciada.",
"apihelp-savedrafts-description": "Gravar um rascunho.",
"apihelp-savedrafts-summary": "Gravar um rascunho.",
"apihelp-savedrafts-param-id": "O identificador do rascunho.",
......
......@@ -30,6 +30,7 @@
"prefs-extension-drafts": "{{Identical|Draft}}",
"tooltip-drafts-save": "Used as tooltip for the button {{msg-mw|Drafts-save-save}}.",
"accesskey-drafts-save": "{{doc-accesskey}}",
"apierror-mustbeloggedin-save-drafts": "{{doc-apierror}}",
"apihelp-savedrafts-description": "{{doc-apihelp-description|savedrafts}}",
"apihelp-savedrafts-summary": "{{doc-apihelp-summary|savedrafts}}",
"apihelp-savedrafts-param-id": "{{doc-apihelp-param|savedrafts|id}}",
......
......@@ -4,7 +4,8 @@
"Firilacroco",
"KlaudiuMihaila",
"Minisarm",
"Stelistcristi"
"Stelistcristi",
"Andrei Stroe"
]
},
"drafts": "Schițe",
......@@ -18,7 +19,7 @@
"drafts-view-nonesaved": "Nu aveți vreo schiță salvată în acest moment.",
"drafts-view-notice": "Aveți $1 pentru această pagină.",
"drafts-view-notice-link": "$1 {{PLURAL:$1|schiță|schițe}}",
"drafts-view-warn": "Dacă părăsiți această pagină veți pierde toate modificările nesalvate aduse paginii.\nDoriți să continuați?",
"drafts-view-warn": "Doriți să continuați navigarea spre altă pagină? Făcând aceasta, puteți pierde toate modificările nesalvate aduse paginii.",
"drafts-save": "Salvează aceasta ca o schiță",
"drafts-save-save": "Salvează schiță",
"drafts-save-saved": "Salvat",
......
......@@ -25,6 +25,7 @@
"drafts-enable": "Abbilite 'a funzionalità pe reggistrà 'na bozze jndr'à 'u module de cangiamende",
"prefs-extension-drafts": "Bozze",
"tooltip-drafts-save": "Salve cumme bozze",
"apierror-mustbeloggedin-save-drafts": "Tu a trasé pe reggistrà le bozze.",
"apihelp-savedrafts-description": "Reggistre 'na bozze.",
"apihelp-savedrafts-summary": "Reggistre 'na bozze.",
"apihelp-savedrafts-param-id": "L'ID d'a bozze.",
......
......@@ -6,7 +6,8 @@
"Lockal",
"Okras",
"Александр Сигачёв",
"Facenapalm"
"Facenapalm",
"Movses"
]
},
"drafts": "Черновики",
......@@ -29,6 +30,7 @@
"drafts-enable": "Включить функцию для сохранения черновика в форме редактирования",
"prefs-extension-drafts": "Черновики",
"tooltip-drafts-save": "Сохранить как черновик",
"apierror-mustbeloggedin-save-drafts": "Вы должны войти в систему, чтобы иметь возможность сохранять черновики.",
"apihelp-savedrafts-description": "Сохранить черновик.",
"apihelp-savedrafts-summary": "Сохранение черновика.",
"apihelp-savedrafts-param-id": "ID черновика.",
......
{
"@metadata": {
"authors": [
"Vlad5250"
]
},
"drafts": "Nacrti",
"drafts-desc": "Dodaje mogućnost spremanja [[Special:Drafts|radnih verzija]] stranice na server",
"drafts-view": "PregledRadneVerzije",
"drafts-view-summary": "Ova posebna stranica navodi sve postojeće radne verzije.\nNeuporabljene radne verzije će biti automatski odbačeni nakon {{PLURAL:$1|jednog dana|$1 dana}}.",
"drafts-view-article": "Stranica",
"drafts-view-existing": "Postojeće radne verzije",
"drafts-view-saved": "Snimljeno",
"drafts-view-discard": "Baci",
"drafts-view-nonesaved": "Trenutno nemate spremljenih radnih verzija.",
"drafts-view-notice": "Imate $1 za ovu stranicu.",
"drafts-view-notice-link": "$1 {{PLURAL:$1|radna verzija|radne verzije|radnih verzija}}",
"drafts-view-warn": "Ako se otrgnete s ove stranice izgubit ćete sve nesnimljene promjene.\nŽelite li nastaviti?",
"drafts-save": "Snimi ovo kao radnu verziju",
"drafts-save-save": "Snimi rad. verz.",
"drafts-save-saved": "Snimljeno",
"drafts-save-saving": "Snimanje",
"drafts-save-error": "Greška prilikom snimanja radne verzije",
"drafts-enable": "Omogućite funkciju spremanja nacrta u obrazac za uređivanje",
"prefs-extension-drafts": "Nacrti",
"tooltip-drafts-save": "Snimi kao nacrt",
"apierror-mustbeloggedin-save-drafts": "Morate biti prijavljeni da biste spremili radne verzije.",
"apihelp-savedrafts-description": "Snimi nacrt.",
"apihelp-savedrafts-summary": "Snimi nacrt.",
"apihelp-savedrafts-param-id": "Naznaka nacrta.",
"apihelp-savedrafts-param-drafttoken": "Token nacrta.",
"apihelp-savedrafts-param-title": "Naslov nacrta.",
"apihelp-savedrafts-param-section": "Indeks podnaslova stranice što se uređuje.",
"apihelp-savedrafts-param-starttime": "Vrijeme pokretanja nacrta.",
"apihelp-savedrafts-param-edittime": "Vrijeme uređivanja nacrta.",
"apihelp-savedrafts-param-scrolltop": "scrollTop okvira s tekstom.",
"apihelp-savedrafts-param-text": "Tekst nacrta.",
"apihelp-savedrafts-param-summary": "Opis nacrta.",
"apihelp-savedrafts-param-minoredit": "Boolean pokazatelj za to je li nacrt manja izmjena."
}
......@@ -4,7 +4,8 @@
"Boivie",
"Jopparn",
"Najami",
"WikiPhoenix"
"WikiPhoenix",
"Mjälten"
]
},
"drafts": "Utkast",
......@@ -27,5 +28,7 @@
"drafts-enable": "Aktivera funktionen för att spara ett utkast i form av en redigering",
"prefs-extension-drafts": "Utkast",
"tooltip-drafts-save": "Spara som ett utkast",
"apihelp-savedrafts-summary": "Spara ett utkast."
"apierror-mustbeloggedin-save-drafts": "Du måste vara inloggad för att spara skisser.",
"apihelp-savedrafts-summary": "Spara ett utkast.",
"apihelp-savedrafts-param-text": "Utkaststext"
}
......@@ -29,6 +29,7 @@
"drafts-enable": "Увімкнути функцію зберігання чернетки у формі редагування",
"prefs-extension-drafts": "Чернетки",
"tooltip-drafts-save": "Зберегти як чернетку",
"apierror-mustbeloggedin-save-drafts": "Ви маєте увійти в систему, щоб зберігати чернетки.",
"apihelp-savedrafts-description": "Зберегти чернетку.",
"apihelp-savedrafts-summary": "Зберегти чернетку.",
"apihelp-savedrafts-param-id": "ID чернетки.",
......
......@@ -14,15 +14,15 @@
]
},
"drafts": "草稿",
"drafts-desc": "新增要在伺服器上儲存頁面的 [[Special:Drafts|草案]] 版本的能力",
"drafts-desc": "添加可在伺服器上儲存頁面[[Special:Drafts|草案]]版本的功能",
"drafts-view": "檢視草稿",
"drafts-view-summary": "此特殊頁面顯示一個列表中的所有現有的草稿。\n未使用的草稿以後就會在{{PLURAL:$1|$1天|$1天}}自動被刪除。",
"drafts-view-summary": "此特殊頁面顯示一個列表中的所有現有的草稿。\n未使用的草稿以後就會在{{PLURAL:$1|$1天}}自動被刪除。",
"drafts-view-article": "頁面",
"drafts-view-existing": "現有草稿",
"drafts-view-saved": "已儲存",
"drafts-view-discard": "捨棄",
"drafts-view-nonesaved": "您還沒有任何已儲存的草稿。",
"drafts-view-notice": "您有$1供此頁。",
"drafts-view-notice": "您有用於此頁面的$1。",
"drafts-view-notice-link": "$1 份草稿",
"drafts-view-warn": "您真的要繼續離開此頁面?如果離開,您將失去所有未保存更改。",
"drafts-save": "把此頁面以草稿形式儲存",
......@@ -33,6 +33,7 @@
"drafts-enable": "於編輯表單中啟用保存草稿功能",
"prefs-extension-drafts": "草稿",
"tooltip-drafts-save": "以草稿形式儲存",
"apierror-mustbeloggedin-save-drafts": "您必須要先登入才能儲存草稿。",
"apihelp-savedrafts-description": "儲存草稿",
"apihelp-savedrafts-summary": "儲存草稿",
"apihelp-savedrafts-param-id": "草稿 ID",
......
......@@ -31,10 +31,10 @@ class DraftHooks {
* @param DatabaseUpdater $updater
*/
public static function schema( $updater ) {
$updater->addExtensionTable( 'drafts', __DIR__ . '/sql/Drafts.sql' );
$updater->addExtensionTable( 'drafts', dirname( __DIR__ ) . '/sql/Drafts.sql' );
if ( $updater->getDb()->getType() != 'sqlite' ) {
$updater->modifyExtensionField( 'drafts', 'draft_token',
__DIR__ . '/sql/patch-draft_token.sql' );
dirname( __DIR__ ) . '/sql/patch-draft_token.sql' );
}
}
......@@ -202,7 +202,7 @@ class DraftHooks {
$buttons['savedraft'] .= new OOUI\HiddenInputWidget(
[
'name' => 'wpDraftID',
'value' => $request->getInt( 'draft', '' )
'value' => $request->getInt( 'draft' )
]
);
$buttons['savedraft'] .= new OOUI\HiddenInputWidget(
......
......@@ -24,7 +24,7 @@ abstract class Drafts {
*
* @param Title|null $title [optional] Title of article, defaults to all articles
* @param int|null $userID [optional] ID of user, defaults to current user
* @return Number of drafts which match condition parameters
* @return int Number of drafts which match condition parameters
*/
public static function num( $title = null, $userID = null ) {
global $wgUser;
......
......@@ -9,7 +9,10 @@
class ApiSaveDrafts extends ApiBase {
public function execute() {
if ( $this->getUser()->isAnon() ) {
$this->dieUsage( 'You must be logged in to save drafts.', 'notloggedin' );
$this->dieWithError(
'apierror-mustbeloggedin-save-drafts',
'notloggedin'
);
}
$params = $this->extractRequestParams();
......
......@@ -37,7 +37,7 @@ function Draft() {
button.setLabel( mediaWiki.message( 'drafts-save-save' ).text() );
break;
case 'changed':
button.setDisabled( false);
button.setDisabled( false );
button.setLabel( mediaWiki.message( 'drafts-save-save' ).text() );
break;
case 'saved':
......
This diff is collapsed.
......@@ -4,7 +4,7 @@
"test": "grunt test"
},
"devDependencies": {
"grunt": "1.0.3",
"grunt": "1.0.4",
"grunt-banana-checker": "0.4.0",
"grunt-contrib-jshint": "1.0.0",
"grunt-jsonlint": "1.0.7"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment