proga:LMW. How to add the interface for a new language: Difference between revisions

From Lojban
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
''To be written:''
''To be written:''
Consider you have a language with ISO-code qqx (replace these code with the one you need in the instruction below).


If you want to add a new language to the wiki so that it appears on the main page and in the sidebar you need the following:
If you want to add a new language to the wiki so that it appears on the main page and in the sidebar you need the following:
#create an svg language flag
#create an svg language flag 60 pixels wide. Name it "selsku_lanci_qqx.svg". Upload it to the wiki using [[Special:Upload]] page.
#fill in corresponding pages with names of items in the sidebar and their urls
#Translate the following strings to the language qqx:
#*"Learning" will be "Blabla-learning" in the language qqx. Open the page "Mediawiki:tadni/qqx" and add the text "Blabla-learning" there. Open the page "Mediawiki:tadni-url/qqx" and add the text "Blabla-learning (qqx)" there. Open the page "Blabla-learning (qqx)" in the wiki and write down information on learning Lojban in the language qqx there.
#*"Questions" will be "Blabla-questions" in the language qqx. Open the page "Mediawiki:questioning/qqx" and add the text "Blabla-questions" there. Open the page "Mediawiki:tadni-questioning/qqx" and add the text "Blabla-questions (qqx)" there. Open the page "Blabla-questions (qqx)" in the wiki and write down information on answers to frequently asked questions on Lojban in the language qqx there.
#*"Contacts" will be "Blabla-contacts" in the language qqx. Open the page "Mediawiki:contacting/qqx" and add the text "Blabla-contacts" there. Open the page "Mediawiki:tadni-contacting/qqx" and add the text "Blabla-contacts (qqx)" there. Open the page "Blabla-contacts (qqx)" in the wiki and write down there e-mails, links to social network profiles or links to the pages in the wiki of those people who can help you with Lojban in the language qqx.
#*"Recent changes" will be "Blabla-Recent changes" in the language qqx. Open the page "MediaWiki:Recentchanges/qqx" and add the text "Blabla-Recent changes" there.
#*"Web chat" will be "Blabla-Web Chat" in the language qqx. Open the page "MediaWiki:Webchat/qqx" and add the text "Blabla-Web Chat" there.
#Translate the following text to language "qqx" and put it into the content of MediaWiki:Webchat-header/qqx page.
#:{{quotation|{{:MediaWiki:Webchat-header/en}}
#add a new string to Widget:Image page
#add a new string to Widget:Image page
 
#Open MediaWiki:Mlana2 page, edit it and add the following line before the last line with <nowiki><div></nowiki>:
<!--
#:<code><nowiki>{{remoi|selsku_lanci_qqx.svg|ralju_papri&setlang{{=}}qqx|NAMEOFYOURLANGUAGE}}</nowiki></code>
 
#:where NAMEOFYOURLANGUAGE is the name of your language with qqx code.
** {{int:tadni-url}}|tadni
** {{int:questioning-url}}|questioning
** {{int:contacting-url}}|contacting
 
==Editing Widget:ralju papri==
Replace t
<div class="ralju"><a href="http://mw.lojban.org/index.php?title=Salutation!_(bau_la_lengua_akuatikas)&setlang=es" class="image"><div class="remoi"><img alt="" src="http://mw.lojban.org/images/3/37/selsku_lanci_glb.svg" class="thumbimage"><div class="cimoi">Lengua Aquatica: Entre en la website de la lengua Lojban</div></div></a></div>
 
</div></includeonly>
 
Open [http://mw.lojban.org/index.php?title=Widget:ralju_papri&action=edit Widget:ralju papri].
 
Replace the last string <nowiki></div></includeonly></nowiki> with the following one:
 
-->

Revision as of 08:22, 25 June 2014

To be written:

Consider you have a language with ISO-code qqx (replace these code with the one you need in the instruction below).

If you want to add a new language to the wiki so that it appears on the main page and in the sidebar you need the following:

  1. create an svg language flag 60 pixels wide. Name it "selsku_lanci_qqx.svg". Upload it to the wiki using Special:Upload page.
  2. Translate the following strings to the language qqx:
    • "Learning" will be "Blabla-learning" in the language qqx. Open the page "Mediawiki:tadni/qqx" and add the text "Blabla-learning" there. Open the page "Mediawiki:tadni-url/qqx" and add the text "Blabla-learning (qqx)" there. Open the page "Blabla-learning (qqx)" in the wiki and write down information on learning Lojban in the language qqx there.
    • "Questions" will be "Blabla-questions" in the language qqx. Open the page "Mediawiki:questioning/qqx" and add the text "Blabla-questions" there. Open the page "Mediawiki:tadni-questioning/qqx" and add the text "Blabla-questions (qqx)" there. Open the page "Blabla-questions (qqx)" in the wiki and write down information on answers to frequently asked questions on Lojban in the language qqx there.
    • "Contacts" will be "Blabla-contacts" in the language qqx. Open the page "Mediawiki:contacting/qqx" and add the text "Blabla-contacts" there. Open the page "Mediawiki:tadni-contacting/qqx" and add the text "Blabla-contacts (qqx)" there. Open the page "Blabla-contacts (qqx)" in the wiki and write down there e-mails, links to social network profiles or links to the pages in the wiki of those people who can help you with Lojban in the language qqx.
    • "Recent changes" will be "Blabla-Recent changes" in the language qqx. Open the page "MediaWiki:Recentchanges/qqx" and add the text "Blabla-Recent changes" there.
    • "Web chat" will be "Blabla-Web Chat" in the language qqx. Open the page "MediaWiki:Webchat/qqx" and add the text "Blabla-Web Chat" there.
  3. Translate the following text to language "qqx" and put it into the content of MediaWiki:Webchat-header/qqx page.
    {{quotation|MediaWiki:Webchat-header/en
  4. add a new string to Widget:Image page
  5. Open MediaWiki:Mlana2 page, edit it and add the following line before the last line with <div>:
    {{remoi|selsku_lanci_qqx.svg|ralju_papri&setlang{{=}}qqx|NAMEOFYOURLANGUAGE}}
    where NAMEOFYOURLANGUAGE is the name of your language with qqx code.