7 require_once( "LanguageUtf8.php" );
9 /* private */ $wgNamespaceNamesFy = array(
14 NS_USER
=> "Meidogger",
15 NS_USER_TALK
=> "Meidogger_oerlis",
16 NS_PROJECT
=> $wgMetaNamespace,
17 NS_PROJECT_TALK
=> $wgMetaNamespace . "_oerlis",
19 NS_IMAGE_TALK
=> "Ofbyld_oerlis",
20 NS_MEDIAWIKI
=> "MediaWiki",
21 NS_MEDIAWIKI_TALK
=> "MediaWiki_oerlis",
22 NS_TEMPLATE
=> "Berjocht",
23 NS_TEMPLATE_TALK
=> "Berjocht_oerlis",
25 NS_HELP_TALK
=> "Hulp_oerlis",
26 NS_CATEGORY
=> "Kategory",
27 NS_CATEGORY_TALK
=> "Kategory_oerlis"
28 ) +
$wgNamespaceNamesEn;
30 /* private */ $wgQuickbarSettingsFy = array(
31 "Ut", "Lofts fêst", "Rjochts fêst", "Lofts sweevjend"
34 /* private */ $wgSkinNamesFy = array(
35 'standard' => "Standert",
36 'nostalgia' => "Nostalgy",
40 /* private */ $wgDateFormatsFy = array(
42 '16.12, jan 15, 2001',
45 'ISO 8601' => '2001-01-15 16:12:34'
48 /* private */ $wgBookstoreListFy = array(
51 if (!$wgCachedMessageArrays) {
52 require_once('MessagesFy.php');
55 class LanguageFy
extends LanguageUtf8
{
57 function getBookstoreList () {
58 global $wgBookstoreListFy ;
59 return $wgBookstoreListFy ;
62 function getNamespaces() {
63 global $wgNamespaceNamesFy;
64 return $wgNamespaceNamesFy;
68 function getNsIndex( $text ) {
69 global $wgNamespaceNamesFy;
71 foreach ( $wgNamespaceNamesFy as $i => $n ) {
72 if ( 0 == strcasecmp( $n, $text ) ) { return $i; }
74 if ( 0 == strcasecmp( "Brûker", $text ) ) return 2;
75 if ( 0 == strcasecmp( "Brûker_oerlis", $text ) ) return 3;
80 function getQuickbarSettings() {
81 global $wgQuickbarSettingsFy;
82 return $wgQuickbarSettingsFy;
85 function getSkinNames() {
86 global $wgSkinNamesFy;
87 return $wgSkinNamesFy;
90 function separatorTransformTable() {
91 return array(',' => '.', '.' => ',' );
94 function getDateFormats() {
95 global $wgDateFormatsFy;
96 return $wgDateFormatsFy;
101 * @param mixed $ts the time format which needs to be turned into a
102 * date('YmdHis') format with wfTimestamp(TS_MW,$ts)
103 * @param bool $adj whether to adjust the time output according to the
104 * user configured offset ($timecorrection)
105 * @param bool $format true to use user's date format preference
106 * @param string $timecorrection the time offset as returned by
107 * validateTimeZone() in Special:Preferences
110 function date( $ts, $adj = false, $format = true, $timecorrection = false ) {
112 if ( $adj ) { $ts = $this->userAdjust( $ts, $timecorrection ); }
114 $datePreference = $this->dateFormat( $format );
116 $month = $this->getMonthAbbreviation( substr( $ts, 4, 2 ) );
117 $day = 0 +
substr( $ts, 6, 2 );
118 $year = substr( $ts, 0, 4 );
120 switch( $datePreference ) {
121 case MW_DATE_DMY
: return "$day $month $year";
122 case MW_DATE_YMD
: return "$year $month $day";
123 case MW_DATE_ISO
: return substr($ts, 0, 4). '-' . substr($ts, 4, 2). '-' .substr($ts, 6, 2);
124 default: return "$month $day, $year";
130 * @param mixed $ts the time format which needs to be turned into a
131 * date('YmdHis') format with wfTimestamp(TS_MW,$ts)
132 * @param bool $adj whether to adjust the time output according to the
133 * user configured offset ($timecorrection)
134 * @param bool $format true to use user's date format preference
135 * @param string $timecorrection the time offset as returned by
136 * validateTimeZone() in Special:Preferences
139 function time( $ts, $adj = false, $format = true, $timecorrection = false ) {
142 if ( $adj ) { $ts = $this->userAdjust( $ts, $timecorrection ); }
143 $datePreference = $this->dateFormat( $format );
145 if ( $datePreference == MW_DATE_ISO
) {
151 $t = substr( $ts, 8, 2 ) . $sep . substr( $ts, 10, 2 );
153 if ( $datePreference == MW_DATE_ISO
) {
154 $t .= $sep . substr( $ts, 12, 2 );
159 function getMessage( $key ) {
160 global $wgAllMessagesFy;
161 if( isset( $wgAllMessagesFy[$key] ) ) {
162 return $wgAllMessagesFy[$key];
164 return parent
::getMessage( $key );