Re: Translation needed

Andre Engels <[email protected]>
Newsgroups gmane.science.linguistics.wikipedia.international
Message-ID <[email protected]>
On Sat, 25 Oct 2003, Tim Starling wrote:

> There's a few cool new features in the development branch, but to get
> them working everywhere, we're going to need a few text messages
> translated.
>
> One new feature is the ability to localise "magic words" such as
> "#REDIRECT". Specifically, each language file needs to have a section
> like this:
>
>
> /* private */ $wgMagicWordsEn = array(
> #   ID                                 CASE SYNONYMS
>      MAG_REDIRECT           => array( 0,  "#redirect", "#redirección"),
>      MAG_NOTOC                => array( 0,  "__NOTOC__"              ),
>      MAG_NOEDITSECTION        => array( 0,  "__NOEDITSECTION__"      ),
>      MAG_START                => array( 0,  "__START__"              ),
>      MAG_CURRENTMONTH         => array( 1,  "{{CURRENTMONTH}}"       ),
>      MAG_CURRENTMONTHNAME     => array( 1,  "{{CURRENTMONTHNAME}}"   ),
>      MAG_CURRENTDAY           => array( 1,  "{{CURRENTDAY}}"         ),
>      MAG_CURRENTDAYNAME       => array( 1,  "{{CURRENTDAYNAME}}"     ),
>      MAG_CURRENTYEAR          => array( 1,  "{{CURRENTYEAR}}"        ),
>      MAG_CURRENTTIME          => array( 1,  "{{CURRENTTIME}}"        ),
>      MAG_NUMBEROFARTICLES     => array( 1,  "{{NUMBEROFARTICLES}}"   ),
>      MAG_CURRENTMONTHNAMEGEN  => array( 1,  "{{CURRENTMONTHNAMEGEN}}"),
>      MAG_MSG                  => array( 1,  "{{MSG:$1}}"             ),
>      MAG_SUBST                => array( 1,  "{{SUBST:$1}}"           ),
>      MAG_MSGNW                => array( 1,  "{{MSGNW:$1}}"           )
> );
>
> NOTOC is short for "no table of contents". MSG is short for "message".
> SUBST is short for "substitute" (the verb). MSGNW is short for "message
> with <nowiki> tags" (although that's not what it does anymore).

It's not clear to me what __NOTOC__, __START__ and the last three do.
From a short test it seems they do not do anything (in fact, do not even
seem to be valid), but maybe that's a namespace issue.

I had not implemented this before, because it was not clear to me how to
have two different texts possible, but your example seems to show that. Now
putting the thing before the Dutch Wikipedia community.

On another issue, I'd like to get informed when this gets changed on
some Wikipedia, this to keep Rob Hooft's robot working: It uses the wiki
source to check pages, and one of the things that most interests it, is
whether a page is a redirect page. Thus, I'd like to know it when that
changes for a language.

Andre Engels
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.