r100421 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r100420‎ | r100421 | r100422 >
Date:14:38, 21 October 2011
Author:platonides
Status:ok
Tags:
Comment:
Modified paths:
  • /trunk/tools/ToolserverI18N/language/Domains.php (modified) (history)
  • /trunk/tools/ToolserverI18N/language/messages/Catdown.i18n.php (added) (history)
  • /trunk/translatewiki/Toolserver/toolserver-textdomains.txt (modified) (history)

Diff [purge]

Index: trunk/translatewiki/Toolserver/toolserver-textdomains.txt
@@ -1,3 +1,6 @@
 2+Catdown
 3+optional = scaling-none, script-filename, readme-filename
 4+
25 CommonsHelper 2
36 ignored = title, tusc
47 optional = commonshelper2, standard_project, checkusage
Index: trunk/tools/ToolserverI18N/language/Domains.php
@@ -1,5 +1,6 @@
22 <?php
33 $domains = array(
 4+ 'Catdown' => 'Catdown.i18n.php',
45 'Commonshelper2' => 'Commonshelper2.i18n.php',
56 'General' => 'General.i18n.php',
67 'Getwikiapi' => 'Getwikiapi.i18n.php',
Index: trunk/tools/ToolserverI18N/language/messages/Catdown.i18n.php
@@ -0,0 +1,107 @@
 2+<?php
 3+/**
 4+ * Interface messages for catdown tool.
 5+ *
 6+ * @toolowner platonides
 7+ */
 8+
 9+$url = '~platonides/catdown/';
 10+
 11+$messages = array();
 12+
 13+$messages['en'] = array(
 14+ 'title' => 'Download of images by category',
 15+ 'subtitle' => 'The easy way to download the images in a category',
 16+ /* Labels */
 17+ 'project' => 'Project:',
 18+ 'category' => 'Category:',
 19+ 'thumbnailing' => 'Thumbnailing',
 20+ 'max-width' => 'Maximum width:',
 21+ 'max-height' => 'Maximum height:',
 22+
 23+ /* Errors */
 24+ 'invalid-width' => 'Invalid width',
 25+ 'invalid-height' => 'Invalid height',
 26+ 'no-such-project' => "There's no such project",
 27+ 'no-images' => 'There are no images in that category',
 28+ 'category-is-url' => 'The given category name looks like a URL. You need to specify the category name, not its url.',
 29+ 'category-contains-namespace' => 'You seem to have included the namespace along the category name. With the given name, the page would be available as [[Category:$1]].',
 30+ 'zip-failed' => 'Zip creation failed',
 31+ 'image-area-too-big' => '$1 is too big to create a thumbnail. Using full size.',
 32+
 33+ 'download-info' => "There are $1 images with an estimated size of $2",
 34+ 'download' => 'Download',
 35+
 36+ 'readme-contents' => 'The enclosing file $4 lists
 37+the images at the $1 category ( $2 )$3.
 38+
 39+== Instructions for downloading all the listed images ==
 40+The download time may vary from a few minutes to several hours.
 41+
 42+Windows:
 43+ Extract all the files in the same folder and run $5
 44+ $6
 45+Linux/Mac OS
 46+ Extract all the files and open a terminal in that folder. Run sh $5
 47+',
 48+ 'non-bundled-wget' => "Note: This version doesn't include wget for Windows. You will need to decompress
 49+to a folder with wget.exe or otherwise have wget in the PATH",
 50+ 'wget-info' => 'This file bundles a copy of wget $1 (for Windows platform). Wget is Free Software,
 51+under the terms of the GNU GENERAL PUBLIC LICENSE version 3.
 52+There is a copy of the license below, and it is also available at http://www.gnu.org/licenses/gpl-3.0.txt
 53+
 54+In case you are interested in getting the source code for this program, you can download it from
 55+ http://toolserver.org/~platonides/catdown/wget-sources.php?version=$1
 56+ http://ftp.gnu.org/gnu/wget/wget-$1.tar.xz
 57+ ftp://ftp.gnu.org/gnu/wget/wget-$1.tar.xz
 58+or some other GNU Mirror, see
 59+ http://www.gnu.org/prep/ftp.html
 60+',
 61+
 62+ 'scaling-none' => '', // Optional
 63+ 'scaling-width' => ', scaled to a maximum width of $1 pixels',
 64+ 'scaling-height' => ', scaled to a maximum height of $1 pixels',
 65+ 'scaling-both' => ', scaled to a maximum size of $1x$2 pixels',
 66+
 67+ 'script-filename' => 'download.bat', // Optional
 68+ 'readme-filename' => 'README.txt', // Optional
 69+);
 70+
 71+$messages['qqq'] = array(
 72+ 'title' => 'Title for the tool',
 73+ 'subtitle' => 'Subtitle for the tool',
 74+ 'project' => 'Caption for choosing the project domain',
 75+ 'category' => 'Label for the input to choose the category to dump. It is recommended to make it the same as the local NS_CATEGORY, with trailing :',
 76+ 'thumbnailing' => 'Title for the inputs for max width and height',
 77+ 'max-width' => 'Label of the input to set the maximum width of the thumbnails.',
 78+ 'max-height' => 'Label of the input to set the maximum height of the thumbnails.',
 79+ 'invalid-width' => 'Shown when an invalid width is provided',
 80+ 'invalid-height' => 'Shown when an invalid height is provided',
 81+ 'no-such-project' => 'Error given for wrong project (eg. \'qwerty.wikipedia\')',
 82+ 'no-images' => 'Shown when the category doesn\'t have any files',
 83+ 'category-is-url' => 'Shown when a full url is given as category name',
 84+ 'category-contains-namespace' => 'Shown when a category with namespace is given as category. $1: Given category name.',
 85+ 'zip-failed' => 'Generic error for when the zip creation failed',
 86+ 'image-area-too-big' => "Shown when an image cannot be thumbnailed. See http://www.mediawiki.org/wiki/Manual:\$wgMaxImageArea\nParameters: $1: Name of the image",
 87+
 88+ 'download-info' => "Information shown previous to the download.\n$1: Number of images.\n$2: Estimated size of all the files in the system",
 89+ 'download' => 'Big link to download the zip',
 90+
 91+ 'readme-contents' => "Contents of the README file.\n* $1: Category name\n* $2: Category url\n* $3 Result of scaling restrictions (one of scaling-none, scaling-width, scaling-height, scaling-both messages)\n* $4: Filename of the list.\n* $5 Name of the .bat script to run (script-filename msg)\n* $6: Note if wget for Windows was not bundled (contents of non-bundled-wget message if \'Bundle wget\' was not checked)",
 92+ 'non-bundled-wget' => "Message added to the readme noting that the script won't work in Windows without a wget.exe (it is usually installed in other OS)",
 93+ 'wget-info' => 'Text appended to the readme explaining the rights you have on the wget binary.
 94+$1: Version of wget
 95+
 96+The content of the gpl-3.0 is appended below this text (untranslated, as it is required by the license).',
 97+
 98+ 'scaling-none' => "Added to readme-contents as $6 if there's no scaling",
 99+ 'scaling-width' => "Added to readme-contents as $6 if the images are scaled to a maximum width.\n$1: Maximum width in pixels",
 100+ 'scaling-height' => "Added to readme-contents as $6 if the images are scaled to a maximum height.\n$1: Maximum height in pixels",
 101+ 'scaling-both' => "Added to readme-contents as $6 if the images are scaled to a maximum width and.\n$1: Maximum width in pixels\n$2: Maximum height in pixels",
 102+
 103+ 'script-filename' => 'Name of the script which downloads the files.', // Optional
 104+ 'readme-filename' => 'Name of the readme file', // Optional
 105+);
 106+
 107+
 108+
Property changes on: trunk/tools/ToolserverI18N/language/messages/Catdown.i18n.php
___________________________________________________________________
Added: svn:eol-style
1109 + native

Status & tagging log