4 * To improve a translation please visit https://translatewiki.net
11 $namespaceNames = array(
13 NS_SPECIAL
=> 'Arbennig',
15 NS_USER
=> 'Defnyddiwr',
16 NS_USER_TALK
=> 'Sgwrs_Defnyddiwr',
17 NS_PROJECT_TALK
=> 'Sgwrs_$1',
19 NS_FILE_TALK
=> 'Sgwrs_Delwedd',
20 NS_MEDIAWIKI
=> 'MediaWici',
21 NS_MEDIAWIKI_TALK
=> 'Sgwrs_MediaWici',
22 NS_TEMPLATE
=> 'Nodyn',
23 NS_TEMPLATE_TALK
=> 'Sgwrs_Nodyn',
25 NS_HELP_TALK
=> 'Sgwrs_Cymorth',
26 NS_CATEGORY
=> 'Categori',
27 NS_CATEGORY_TALK
=> 'Sgwrs_Categori',
31 'redirect' => array( '0', '#ail-cyfeirio', '#ailgyfeirio', '#REDIRECT' ),
32 'notoc' => array( '0', '__DIMTAFLENCYNNWYS__', '__DIMRHESTRGYNNWYS__', '__DIMRHG__', '__NOTOC__' ),
33 'noeditsection' => array( '0', '__DIMADRANGOLYGU__', '__DIMGOLYGUADRAN__', '__NOEDITSECTION__' ),
34 'currentmonth' => array( '1', 'MISCYFOES', 'MISCYFREDOL', 'CURRENTMONTH', 'CURRENTMONTH2' ),
35 'currentmonthname' => array( '1', 'ENWMISCYFOES', 'ENWMISCYFREDOL', 'CURRENTMONTHNAME' ),
36 'currentmonthnamegen' => array( '1', 'GENENWMISCYFOES', 'CURRENTMONTHNAMEGEN' ),
37 'currentday' => array( '1', 'DYDDIADCYFOES', 'DYDDCYFREDOL', 'CURRENTDAY' ),
38 'currentdayname' => array( '1', 'ENWDYDDCYFOES', 'ENWDYDDCYFREDOL', 'CURRENTDAYNAME' ),
39 'currentyear' => array( '1', 'FLWYDDYNCYFOES', 'BLWYDDYNGYFREDOL', 'CURRENTYEAR' ),
40 'currenttime' => array( '1', 'AMSERCYFOES', 'AMSERCYFREDOL', 'CURRENTTIME' ),
41 'currenthour' => array( '1', 'AWRGYFREDOL', 'CURRENTHOUR' ),
42 'numberofarticles' => array( '1', 'NIFEROERTHYGLAU', 'NIFERYRERTHYGLAU', 'NUMBEROFARTICLES' ),
43 'numberoffiles' => array( '1', 'NIFERYFFEILIAU', 'NUMBEROFFILES' ),
44 'numberofusers' => array( '1', 'NIFERYDEFNYDDWYR', 'NUMBEROFUSERS' ),
45 'numberofedits' => array( '1', 'NIFERYGOLYGIADAU', 'NUMBEROFEDITS' ),
46 'pagename' => array( '1', 'ENWTUDALEN', 'PAGENAME' ),
47 'pagenamee' => array( '1', 'ENWTUDALENE', 'PAGENAMEE' ),
48 'namespace' => array( '1', 'PARTH', 'NAMESPACE' ),
49 'namespacee' => array( '1', 'NAMESPACE', 'PARTHE', 'NAMESPACEE' ),
50 'fullpagename' => array( '1', 'ENWLLAWNTUDALEN', 'FULLPAGENAME' ),
51 'fullpagenamee' => array( '1', 'ENWLLAWNTUDALENE', 'FULLPAGENAMEE' ),
52 'subpagename' => array( '1', 'ENWISDUDALEN', 'SUBPAGENAME' ),
53 'subpagenamee' => array( '1', 'ENWISDUDALENE', 'SUBPAGENAMEE' ),
54 'talkpagename' => array( '1', 'ENWTUDALENSGWRS', 'TALKPAGENAME' ),
55 'talkpagenamee' => array( '1', 'ENWTUDALENSGWRSE', 'TALKPAGENAMEE' ),
56 'img_thumbnail' => array( '1', 'ewin_bawd', 'bawd', 'mân-lun', 'thumbnail', 'thumb' ),
57 'img_manualthumb' => array( '1', 'mân-lun=$1', 'bawd=$1', 'thumbnail=$1', 'thumb=$1' ),
58 'img_right' => array( '1', 'de', 'right' ),
59 'img_left' => array( '1', 'chwith', 'left' ),
60 'img_none' => array( '1', 'dim', 'none' ),
61 'img_center' => array( '1', 'canol', 'center', 'centre' ),
62 'img_page' => array( '1', 'tudalen=$1', 'tudalen_$1', 'page=$1', 'page $1' ),
63 'img_upright' => array( '1', 'unionsyth', 'unionsyth=$1', 'unionsyth_$1', 'upright', 'upright=$1', 'upright $1' ),
64 'img_sub' => array( '1', 'is', 'sub' ),
65 'img_super' => array( '1', 'uwch', 'super', 'sup' ),
66 'img_top' => array( '1', 'brig', 'top' ),
67 'img_bottom' => array( '1', 'gwaelod', 'godre', 'bottom' ),
68 'server' => array( '0', 'GWEINYDD', 'SERVER' ),
69 'servername' => array( '0', 'ENW\'RGWEINYDD', 'SERVERNAME' ),
70 'grammar' => array( '0', 'GRAMMAR', 'GRAMADEG', 'GRAMMAR:' ),
71 'currentweek' => array( '1', 'WYTHNOSGYFREDOL', 'CURRENTWEEK' ),
72 'revisionid' => array( '1', 'IDYGOLYGIAD', 'REVISIONID' ),
73 'revisionday' => array( '1', 'DIWRNODYGOLYGIAD', 'REVISIONDAY' ),
74 'revisionday2' => array( '1', 'DIWRNODYGOLYGIAD2', 'REVISIONDAY2' ),
75 'revisionmonth' => array( '1', 'MISYGOLYGIAD', 'REVISIONMONTH' ),
76 'revisionyear' => array( '1', 'BLWYDDYNYGOLYGIAD', 'REVISIONYEAR' ),
77 'revisiontimestamp' => array( '1', 'STAMPAMSERYGOLYGIAD', 'REVISIONTIMESTAMP' ),
78 'plural' => array( '0', 'LLUOSOG:', 'PLURAL:' ),
79 'fullurl' => array( '0', 'URLLLAWN:', 'FULLURL:' ),
80 'fullurle' => array( '0', 'URLLLAWNE:', 'FULLURLE:' ),
81 'newsectionlink' => array( '1', '_NEWSECTIONLINK_', '_CYSWLLTADRANNEWYDD_', '__NEWSECTIONLINK__' ),
82 'currentversion' => array( '1', 'GOLYGIADCYFREDOL', 'CURRENTVERSION' ),
83 'currenttimestamp' => array( '1', 'STAMPAMSERCYFREDOL', 'CURRENTTIMESTAMP' ),
84 'localtimestamp' => array( '1', 'STAMPAMSERLLEOL', 'LOCALTIMESTAMP' ),
85 'language' => array( '0', '#IAITH:', '#LANGUAGE:' ),
86 'contentlanguage' => array( '1', 'IAITHYCYNNWYS', 'CONTENTLANGUAGE', 'CONTENTLANG' ),
87 'pagesinnamespace' => array( '1', 'TUDALENNAUYNYPARTH:', 'PAGESINNAMESPACE:', 'PAGESINNS:' ),
88 'numberofadmins' => array( '1', 'NIFERYGWEINYDDWYR', 'NUMBEROFADMINS' ),
89 'formatnum' => array( '0', 'FFORMATIORHIF', 'FORMATNUM' ),
90 'special' => array( '0', 'arbennig', 'special' ),
91 'hiddencat' => array( '1', '_HIDDENCAT_', '_CATCUDD_', '__HIDDENCAT__' ),
92 'pagesincategory' => array( '1', 'TUDALENNAUYNYCAT', 'PAGESINCATEGORY', 'PAGESINCAT' ),
93 'pagesize' => array( '1', 'MAINTTUD', 'PAGESIZE' ),
96 $defaultDateFormat = 'dmy';
98 $bookstoreList = array(
99 "AddALL" => "http://www.addall.com/New/Partner.cgi?query=$1&type=ISBN",
100 "Barnes & Noble" => "http://search.barnesandnoble.com/bookSearch/isbnInquiry.asp?isbn=$1",
101 "Amazon.com" => "http://www.amazon.com/exec/obidos/ISBN=$1",
102 "Amazon.co.uk" => "http://www.amazon.co.uk/exec/obidos/ISBN=$1"
105 $linkTrail = "/^([àáâèéêìíîïòóôûŵŷa-z]+)(.*)$/sDu";