Translation/Stock

From Wikimini Coordination Platform
Jump to: navigation, search

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.

Wikistock main page (2014-05-02)

Visual category indexes

Example of a visual category index: "Sciences and mathematics"

Things that need to be translated are marked yellow

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). →

[-sMiLeY-] For the exact category names in your language, please check: Translation/Categories

How to proceed? (example with the 1st template)

  1. Create a new page on the stock named Template:CAT index-Sciences and mathematics/xx (replace xx with your language code, nothing else)
  2. Copy paste the content from the original template (Template:CAT index-Sciences and mathematics)
  3. Translate the few things that need to be translated
  4. Save (publish) the new template [-sMiLeY-]
  5. Repeat the procedure with the 10 remaining templates.

List of templates:

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:

  1. Create the page "Main_Page/xx, replacing xx with your 2 letters language code.
  2. Paste the content of Main_Page/fr or Main_Page/en in this new page and translate it.
  3. 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).

That's it! [-sMiLeY-]

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).

Enhanced upload form
 

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.

  1. Create the page MediaWiki:Uploadfooter/xx, replacing xx with your 2 letters language
  2. Make sure it contains the following line:
    {{MediaWiki:UploadFormTexts|live=1|lang=xx}} (replace xx with your 2 letters language code)
  3. 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

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

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

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

License dropdown selector

The following system messages need to be translated. They correspond to the options presented in the "License dropdown selector" :

License menu selector preview

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:

Creative commons symbol.png
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:

CC-BY-SA-icon-80x15.pngCreative Commons: Attribution-ShareAlike (CC BY-SA)


Additional system messages

That's it! [-sMiLeY-]