Translation/Stock
Here are the few things that need to be translated on Wikimini Stock (Wikistock) if you want to make it available in a new language.
Contents
Visual category indexes
The visual category indexes are managed by templates (the 11 templates listed below). You'll have to create these templates in your own language and translate a few things, which are: the image captions, h3 title, subtitle and link titles. Check the visual guide on the right (click on the picture to enlarge). →
For the exact category names in your language, please check: Translation/Categories
How to proceed? (example with the 1st template)
- Create a new page on the stock named Template:CAT index-Sciences and mathematics/xx (replace xx with your language code, nothing else)
- Copy paste the content from the original template (Template:CAT index-Sciences and mathematics)
- Translate the few things that need to be translated
- Save (publish) the new template
- Repeat the procedure with the 10 remaining templates.
List of templates:
- Template:CAT index-Sciences and mathematics
- Template:CAT index-Life in society
- Template:CAT index-History and discovery of the past
- Template:CAT index-Geography and travel
- Template:CAT index-Arts, recreation and sports
- Template:CAT index-Technology and health
- Template:CAT index-Mind and spirit
- Template:CAT index-Beliefs and religions
- Template:CAT index-Languages and linguistics
- Template:CAT index-Literature and drama
- Template:CAT index-Information and documentation
Main page
The main page (Main_page) automatically detects the user's language preference and shows (includes) the appropriate language subpage, such as Main_page/en (default), Main_page/fr, etc.
To translate this page into your own language, simply follow these steps:
- Create the page "Main_Page/xx, replacing xx with your 2 letters language code.
- Paste the content of Main_Page/fr or Main_Page/en in this new page and translate it.
- Save (publish) the page
Once you've translated this page, you may have to reference your new language subpage into the Lang/Main_Page template. And to enable the automatic detection of your language, you'll have to edit the Main Page itself (the detection is based on the value of the "MediaWiki:About" system message - Ask for help (forum or Lorangeo) if you are not sure and don't want to break anything).
Galleries
Now, if you want to add some beauty to your main page, you may want to create some galleries in your own language. See the examples already available on the Stock in French or in English. To create a gallery in your own language, you could simply create a new page with a title in your language (do not use language suffixes (/xx) anymore) and copy-paste the content of an existing gallery in French or English.
Upload form
Wikimini uses an advanced script that enhances the standard upload form. It is based on a script developed for Wikimedia Commons (see documentation).
The new fields and elements added by the script can be translated in your own language following these steps:
Enabling the localization
First, you need to enable the localization for your language.
- Create the page MediaWiki:Uploadfooter/xx, replacing xx with your 2 letters language
- Make sure it contains the following line:
{{MediaWiki:UploadFormTexts|live=1|lang=xx}}
(replace xx with your 2 letters language code) - Save the page
Translate the elements
The following elements are used on Wikimini and can be translated. If you dot not translate one of these elements, the script will use the English variant instead.
Field labels
The following MediaWiki messages contain the field labels for the new fields (variants in English are shown in brackets):
Dot not forget to replace xx with your 2 letters language code
- MediaWiki:UploadFormDescLabel/xx (Description:)
- MediaWiki:UploadFormSourceLabel/xx (Source:)
- MediaWiki:UploadFormAuthorLabel/xx (Author(s):)
- MediaWiki:UploadFormPreviewLicenseLabel/xx (Preview the chosen license)
- MediaWiki:UploadFormUnknownLanguageLabel/xx (Unknown language)
Hints
The script displays short hints underneath some of the fields (variants in English are shown in brackets):
Dot not forget to replace xx with your 2 letters language code
- MediaWiki:UploadFormDestFileHint/xx (This is the name that the image will have at Wikimini — if possible a descriptive name.)
- MediaWiki:UploadFormSourceHint/xx (Where does this image come from?)
- MediaWiki:UploadFormAuthorHint/xx (Who made this photo or who painted/drew this picture?)
Error messages
If the input validation fails, the script displays some error messages to the user (variants in English are shown in brackets):
Dot not forget to replace xx with your 2 letters language code
- MediaWiki:UploadFormSourceAuthorLicenseError/xx (You must give the original source of the file, the author of the work, and a license.)
- MediaWiki:UploadFormNoFilenameError/xx (The target filename must not be empty.)
- MediaWiki:UploadFormHttpFilenameError/xx (The target file name appears to be a URL.)
- MediaWiki:UploadFormNoSlashError/xx (The target file name must not contain "/".)
- MediaWiki:UploadFormNondescriptFilenameError/xx (Please use a more descriptive target file name.)
- MediaWiki:UploadFormNoExtensionError/xx (The target file name must have a file type extension (like for example ".jpg").)
- MediaWiki:UploadFormIllegalExtensionError/xx (Files of this type cannot be uploaded.)
- MediaWiki:UploadFormDoubleExtensionError/xx (Please correct the double file type in the target file name.)
- MediaWiki:UploadFormNoDescriptionError/xx (Please give a description of the contents of the file you want to upload.)
- MediaWiki:UploadFormNoReuploadSummaryError/xx (You must give a description of the changes to the file you will overwrite.)
- MediaWiki:UploadFormPreviewOverwriteError/xx (You will upload over an already existing file. Please choose a different filename, unless you are uploading a technically improved version of the same file. Don't overwrite a file with a different image of the same topic. If you overwrite, the information in this form will not appear on the description page.)
Help texts
For each input field, there is at least one help text:
Dot not forget to replace xx with your 2 letters language code
- MediaWiki:UploadFormUploadFileHelp/xx: Help text for the "browse file" input field
- MediaWiki:UploadFormDestFileHelp/xx: Help text for the "destination filename" input field
- MediaWiki:UploadFormSourceHelp/xx: Standard help text for the "source" input field
License dropdown selector
The following system messages need to be translated. They correspond to the options presented in the "License dropdown selector" :
- MediaWiki:License choice-You are the author
- MediaWiki:License choice-Self-made-Wikimini
- MediaWiki:License choice-Self-made-CC BY-SA
- MediaWiki:License choice-You are not the author
- MediaWiki:License choice-Authorized by a license
- MediaWiki:License choice-CC BY
- MediaWiki:License choice-CC BY-ND
- MediaWiki:License choice-CC BY-SA
- MediaWiki:License choice-CC BY-NC
- MediaWiki:License choice-CC BY-NC-ND
- MediaWiki:License choice-CC BY-NC-SA
- MediaWiki:License choice-CC0
- MediaWiki:License choice-GNU
- MediaWiki:License choice-Free Art License
- MediaWiki:License choice-Authorized for another reason
- MediaWiki:License choice-Public domain
- MediaWiki:License choice-Special permission
- MediaWiki:License choice-Special cases
- MediaWiki:License choice-Fair use
- MediaWiki:License choice-Unauthorized
- MediaWiki:License choice-Missing copyright information
License templates
The following system messages need to be translated. They are used by the various licensing templates, such as, for example, this {{Self-made-CC BY-SA}}
template:
|
The person who uploaded this file (see below) warrants that he/she created this image/photo and that he/she has not copied any part of it from the work of another without permission.
As the author and copyright holder of this work, he/she hereby publishes it under the following license: • Creative Commons: Attribution-ShareAlike (CC BY-SA) |
- MediaWiki:Wikimini-Self-made-Wikimini
- MediaWiki:Wikimini-Self-made-CC BY-SA
- MediaWiki:Wikimini-CC BY
- MediaWiki:Wikimini-CC BY-SA
- MediaWiki:Wikimini-CC BY-ND
- MediaWiki:Wikimini-CC BY-NC
- MediaWiki:Wikimini-CC BY-NC-SA
- MediaWiki:Wikimini-CC BY-NC-ND
- MediaWiki:Wikimini-CC0
- MediaWiki:Wikimini-GNU
- MediaWiki:Wikimini-FAL
- MediaWiki:Wikimini-Public domain
- MediaWiki:Wikimini-Special permission
- Wikimini-Fair use
- Wikimini-Missing copyright
Additional system messages
- MediaWiki:Wm-license-own-work (should preferably match its equivalent system message on Wikimedia Commons, which can be found here)
- MediaWiki:Uploadtext
- MediaWiki:Blanknamespace
- MediaWiki:Edittools/en
- MediaWiki:Nolinkstoimage