Manual talk:Advice needed on LanguageXX.php files
I've just had LanguageCy.php implemented, and it works pretty well but I've a couple of problems I'd appreciate help with.
1) The namespaces have been changed OK, and
/* private */ $wgNamespaceNamesCy = array(
-2 => "Media",
-1 => "Arbennig",
0 => "",
1 => "Sgwrs",
2 => "Defnyddiwr",
3 => "Sgwrs_Defnyddiwr",
4 => $wgMetaNamespace,
5 => "Sgwrs_" . $wgMetaNamespace,
6 => "Delwedd",
7 => "Sgwrs_Delwedd",
8 => "MediaWiki",
9 => "Sgwrs_MediaWiki"
);
works except I would have expected there to be an entry somewhere allowing me to set $wgMetaNamespace to "Wicipedia" ... but there isn't. This is probably something dead easy to fix, so please forgive my ignorance! We also seem to have broken the ability to use {{msg:...}} too -- I've no idea what's happened here (see cy:Caerdydd, for example).
2) The Magic Words array has been edited, thus
/* private */ $wgMagicWordsCy = array(
# ID CASE SYNONYMS
MAG_REDIRECT => array( 0, "#redirect", "#ail-cyfeirio" ),
MAG_NOTOC => array( 0, "__NOTOC__", "__DIMTAFLENCYNNWYS__" ),
MAG_NOEDITSECTION => array( 0, "__NOEDITSECTION__", "__DIMADRANGOLYGU__" ),
MAG_START => array( 0, "__START__", "__DECHRAU__" ),
MAG_CURRENTMONTH => array( 1, "{{CURRENTMONTH}}", "{{MISCYFOES}}" ),
MAG_CURRENTMONTHNAME => array( 1, "{{CURRENTMONTHNAME}}", "{{ENWMISCYFOES}}" ),
MAG_CURRENTDAY => array( 1, "{{CURRENTDAY}}", "{{DYDDIADCYFOES}}" ),
MAG_CURRENTDAYNAME => array( 1, "{{CURRENTDAYNAME}}", "{{ENWDYDDCYFOES}}" ),
MAG_CURRENTYEAR => array( 1, "{{CURRENTYEAR}}", "{{FLWYDDYNCYFOES}}" ),
MAG_CURRENTTIME => array( 1, "{{CURRENTTIME}}", "{{AMSERCYFOES}}" ),
MAG_NUMBEROFARTICLES => array( 1, "{{NUMBEROFARTICLES}}", "{{NIFEROERTHYGLAU}}" ),
MAG_CURRENTMONTHNAMEGEN => array( 1, "{{CURRENTMONTHNAMEGEN}}", "{{GENENWMISCYFOES}}" ),
MAG_MSG => array( 0, "{{MSG:$1}}" ),
MAG_SUBST => array( 0, "{{SUBST:$1}}" ),
MAG_MSGNW => array( 0, "{{MSGNW:$1}}" ),
MAG_END => array( 0, "__END__", "DIWEDD_" ),
MAG_IMG_THUMBNAIL => array( 1, "ewin bawd", "bawd" ),
MAG_IMG_RIGHT => array( 1, "de" ),
MAG_IMG_LEFT => array( 1, "chwith" ),
MAG_IMG_NONE => array( 1, "dim" ),
MAG_IMG_WIDTH => array( 1, "$1px" ),
MAG_IMG_CENTER => array( 1, "canol", "canol" )
);
and it works well enough in Welsh. However I was under the (now obviously mistaken) impression that this would create synonyms, allowing the use of the English equivalents to continue -- this is important as we already have REDIRECTs which are now broken. Is it possible to have both languages working, and if so, how?
Thanks for any advice. -- Arwel 16:17, 29 Feb 2004 (UTC)
- Two problems: firstly MAG_MSG is set to be case-sensitive, that's why it's not working for you. Secondly if you want synonyms you have to list them. I've fixed both problems above. -- Tim Starling 02:58, 2 Mar 2004 (UTC)
- Thanks! Arwel 12:12, 2 Mar 2004 (UTC)