mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/CategoryTree
synced 2024-11-27 17:51:00 +00:00
Merge "Split apihelp messages to a separate file"
This commit is contained in:
commit
09816f3c9f
|
@ -6,14 +6,14 @@
|
|||
|
||||
/* eslint-env node */
|
||||
module.exports = function ( grunt ) {
|
||||
var conf = grunt.file.readJSON( 'extension.json' );
|
||||
|
||||
grunt.loadNpmTasks( 'grunt-eslint' );
|
||||
grunt.loadNpmTasks( 'grunt-banana-checker' );
|
||||
grunt.loadNpmTasks( 'grunt-stylelint' );
|
||||
|
||||
grunt.initConfig( {
|
||||
banana: {
|
||||
all: [ 'i18n/' ]
|
||||
},
|
||||
banana: conf.MessagesDirs,
|
||||
eslint: {
|
||||
options: {
|
||||
reportUnusedDisableDirectives: true,
|
||||
|
|
|
@ -22,7 +22,8 @@
|
|||
},
|
||||
"MessagesDirs": {
|
||||
"CategoryTree": [
|
||||
"i18n"
|
||||
"i18n",
|
||||
"i18n/api"
|
||||
]
|
||||
},
|
||||
"ExtensionMessagesFiles": {
|
||||
|
|
12
i18n/api/en.json
Normal file
12
i18n/api/en.json
Normal file
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
"@metadata": {
|
||||
"authors": [
|
||||
"Daniel Kinzler, brightbyte.de"
|
||||
]
|
||||
},
|
||||
"apihelp-categorytree-description": "Internal module for the CategoryTree extension.",
|
||||
"apihelp-categorytree-summary": "Internal module for the CategoryTree extension.",
|
||||
"apihelp-categorytree-param-category": "Title in the category namespace, prefix will be ignored if given.",
|
||||
"apihelp-categorytree-param-options": "Options for the CategoryTree constructor as a JSON object. The <var>depth</var> option defaults to <kbd>1</kbd>.",
|
||||
"apierror-categorytree-invalidjson": "Options must be a valid JSON object."
|
||||
}
|
30
i18n/api/qqq.json
Normal file
30
i18n/api/qqq.json
Normal file
|
@ -0,0 +1,30 @@
|
|||
{
|
||||
"@metadata": {
|
||||
"authors": [
|
||||
"Amire80",
|
||||
"Aotake",
|
||||
"EugeneZelenko",
|
||||
"Jon Harald Søby",
|
||||
"Lloffiwr",
|
||||
"Malafaya",
|
||||
"McDutchie",
|
||||
"Meno25",
|
||||
"Raimond Spekking",
|
||||
"Raymond",
|
||||
"Shirayuki",
|
||||
"Siebrand",
|
||||
"The Evil IP address",
|
||||
"Umherirrender",
|
||||
"Yekrats",
|
||||
"Александр Сигачёв",
|
||||
"פוילישער",
|
||||
"Purodha",
|
||||
"Nemo bis"
|
||||
]
|
||||
},
|
||||
"apihelp-categorytree-description": "{{doc-apihelp-description|categorytree}}",
|
||||
"apihelp-categorytree-summary": "{{doc-apihelp-summary|categorytree}}",
|
||||
"apihelp-categorytree-param-category": "{{doc-apihelp-param|categorytree|category}}",
|
||||
"apihelp-categorytree-param-options": "{{doc-apihelp-param|categorytree|options}}",
|
||||
"apierror-categorytree-invalidjson": "{{doc-apierror}}"
|
||||
}
|
|
@ -36,10 +36,5 @@
|
|||
"categorytree-no-pages": "no pages or subcategories",
|
||||
"categorytree-not-found": "Category <i>$1</i> not found",
|
||||
"categorytree-error": "Problem loading data.",
|
||||
"categorytree-retry": "Please wait a moment and try again.",
|
||||
"apihelp-categorytree-description": "Internal module for the CategoryTree extension.",
|
||||
"apihelp-categorytree-summary": "Internal module for the CategoryTree extension.",
|
||||
"apihelp-categorytree-param-category": "Title in the category namespace, prefix will be ignored if given.",
|
||||
"apihelp-categorytree-param-options": "Options for the CategoryTree constructor as a JSON object. The <var>depth</var> option defaults to <kbd>1</kbd>.",
|
||||
"apierror-categorytree-invalidjson": "Options must be a valid JSON object."
|
||||
"categorytree-retry": "Please wait a moment and try again."
|
||||
}
|
||||
|
|
|
@ -54,10 +54,5 @@
|
|||
"categorytree-no-pages": "Indicates that there are no pages or subcategories to be shown",
|
||||
"categorytree-not-found": "Indicates that the given category ($1) was not found. Parameters:\n* $1 - category name",
|
||||
"categorytree-error": "Indicates that an error has occurred while loading the node's content",
|
||||
"categorytree-retry": "Instruction to try again later",
|
||||
"apihelp-categorytree-description": "{{doc-apihelp-description|categorytree}}",
|
||||
"apihelp-categorytree-summary": "{{doc-apihelp-summary|categorytree}}",
|
||||
"apihelp-categorytree-param-category": "{{doc-apihelp-param|categorytree|category}}",
|
||||
"apihelp-categorytree-param-options": "{{doc-apihelp-param|categorytree|options}}",
|
||||
"apierror-categorytree-invalidjson": "{{doc-apierror}}"
|
||||
"categorytree-retry": "Instruction to try again later"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue