9 /* private */ $wgNamespaceNamesCy = array(
11 NS_SPECIAL
=> "Arbennig",
14 NS_USER
=> "Defnyddiwr",
15 NS_USER_TALK
=> "Sgwrs_Defnyddiwr",
16 NS_PROJECT
=> $wgMetaNamespace,
17 NS_PROJECT_TALK
=> "Sgwrs_".$wgMetaNamespace,
18 NS_IMAGE
=> "Delwedd",
19 NS_IMAGE_TALK
=> "Sgwrs_Delwedd",
20 NS_MEDIAWIKI
=> "MediaWiki",
21 NS_MEDIAWIKI_TALK
=> "Sgwrs_MediaWiki",
22 NS_TEMPLATE
=> "Nodyn",
23 NS_TEMPLATE_TALK
=> "Sgwrs_Nodyn"
24 ) +
$wgNamespaceNamesEn;
26 /* private */ $wgQuickbarSettingsCy = array(
27 "Dim", "Sefydlog chwith", "Sefydlog de", "Arnawf de"
30 /* private */ $wgSkinNamesCy = array(
31 'standard' => "Safonol",
32 'nostalgia' => "Hiraeth",
33 'cologneblue' => "Glas Cwlen",
36 /* private */ $wgDateFormatsCy = array(
40 /* private */ $wgBookstoreListCy = array(
41 "AddALL" => "http://www.addall.com/New/Partner.cgi?query=$1&type=ISBN",
42 "PriceSCAN" => "http://www.pricescan.com/books/bookDetail.asp?isbn=$1",
43 "Barnes & Noble" => "http://search.barnesandnoble.com/bookSearch/isbnInquiry.asp?isbn=$1",
44 "Amazon.com" => "http://www.amazon.com/exec/obidos/ISBN=$1",
45 "Amazon.co.uk" => "http://www.amazon.co.uk/exec/obidos/ISBN=$1"
49 /* private */ $wgMagicWordsCy = array(
51 MAG_REDIRECT
=> array( 0, "#redirect", "#ail-cyfeirio" ),
52 MAG_NOTOC
=> array( 0, "__NOTOC__", "__DIMTAFLENCYNNWYS__" ),
53 MAG_NOEDITSECTION
=> array( 0, "__NOEDITSECTION__", "__DIMADRANGOLYGU__" ),
54 MAG_START
=> array( 0, "__START__", "__DECHRAU__" ),
55 MAG_CURRENTMONTH
=> array( 1, "CURRENTMONTH", "MISCYFOES" ),
56 MAG_CURRENTMONTHNAME
=> array( 1, "CURRENTMONTHNAME", "ENWMISCYFOES" ),
57 MAG_CURRENTDAY
=> array( 1, "CURRENTDAY", "DYDDIADCYFOES" ),
58 MAG_CURRENTDAYNAME
=> array( 1, "CURRENTDAYNAME", "ENWDYDDCYFOES" ),
59 MAG_CURRENTYEAR
=> array( 1, "CURRENTYEAR", "FLWYDDYNCYFOES" ),
60 MAG_CURRENTTIME
=> array( 1, "CURRENTTIME", "AMSERCYFOES" ),
61 MAG_NUMBEROFARTICLES
=> array( 1, "NUMBEROFARTICLES","NIFEROERTHYGLAU" ),
62 MAG_CURRENTMONTHNAMEGEN
=> array( 1, "CURRENTMONTHNAMEGEN", "GENENWMISCYFOES" ),
63 MAG_SUBST
=> array( 1, "SUBST:" ),
64 MAG_MSGNW
=> array( 0, "MSGNW:" ),
65 MAG_END
=> array( 0, "__DIWEDD__" ),
66 MAG_IMG_THUMBNAIL
=> array( 1, "ewin bawd", "bawd", "thumb", "thumbnail" ),
67 MAG_IMG_RIGHT
=> array( 1, "de", "right" ),
68 MAG_IMG_LEFT
=> array( 1, "chwith", "left" ),
69 MAG_IMG_NONE
=> array( 1, "dim", "none" ),
70 MAG_IMG_WIDTH
=> array( 1, "$1px" ),
71 MAG_IMG_CENTER
=> array( 1, "canol", "centre", "center" ),
72 MAG_INT
=> array( 0, "INT:" )
76 if (!$wgCachedMessageArrays) {
77 require_once('MessagesCy.php');
82 require_once( 'LanguageUtf8.php' );
84 /** @package MediaWiki */
85 class LanguageCy
extends LanguageUtf8
{
87 function getBookstoreList () {
88 global $wgBookstoreListCy;
89 return $wgBookstoreListCy;
92 function getNamespaces() {
93 global $wgNamespaceNamesCy;
94 return $wgNamespaceNamesCy;
97 function getQuickbarSettings() {
98 global $wgQuickbarSettingsCy;
99 return $wgQuickbarSettingsCy;
102 function getSkinNames() {
103 global $wgSkinNamesCy;
104 return $wgSkinNamesCy;
107 function getDateFormats() {
108 global $wgDateFormatsCy;
109 return $wgDateFormatsCy;
112 function getMessage( $key ) {
113 global $wgAllMessagesCy;
114 if( isset( $wgAllMessagesCy[$key] ) ) {
115 return $wgAllMessagesCy[$key];
117 return parent
::getMessage( $key );
121 function getAllMessages() {
122 global $wgAllMessagesCy;
123 return $wgAllMessagesCy;
126 function getMagicWords() {
127 global $wgMagicWordsCy, $wgMagicWordsEn;
128 return $wgMagicWordsCy +
$wgMagicWordsEn;