08d90ea7857bb54a1e07bda2e96dbaeee85c7e78
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 ) {
113 if ( $adj ) { $ts = $this->userAdjust( $ts, $timecorrection ); }
115 $datePreference = $this->dateFormat( $format );
117 $month = $this->getMonthAbbreviation( substr( $ts, 4, 2 ) );
118 $day = 0 +
substr( $ts, 6, 2 );
119 $year = substr( $ts, 0, 4 );
121 switch( $datePreference ) {
122 case MW_DATE_DMY
: return "$day $month $year";
123 case MW_DATE_YMD
: return "$year $month $day";
124 case MW_DATE_ISO
: return substr($ts, 0, 4). '-' . substr($ts, 4, 2). '-' .substr($ts, 6, 2);
125 default: return "$month $day, $year";
131 * @param mixed $ts the time format which needs to be turned into a
132 * date('YmdHis') format with wfTimestamp(TS_MW,$ts)
133 * @param bool $adj whether to adjust the time output according to the
134 * user configured offset ($timecorrection)
135 * @param bool $format true to use user's date format preference
136 * @param string $timecorrection the time offset as returned by
137 * validateTimeZone() in Special:Preferences
140 function time( $ts, $adj = false, $format = true, $timecorrection = false ) {
143 if ( $adj ) { $ts = $this->userAdjust( $ts, $timecorrection ); }
144 $datePreference = $this->dateFormat( $format );
146 if ( $datePreference == MW_DATE_ISO
) {
152 $t = substr( $ts, 8, 2 ) . $sep . substr( $ts, 10, 2 );
154 if ( $datePreference == MW_DATE_ISO
) {
155 $t .= $sep . substr( $ts, 12, 2 );
160 function getMessage( $key ) {
161 global $wgAllMessagesFy;
162 if( isset( $wgAllMessagesFy[$key] ) ) {
163 return $wgAllMessagesFy[$key];
165 return parent
::getMessage( $key );