(bug 2099) Deleted files can now be archived and undeleted, if you set up an appropri...
[lhc/web/wiklou.git] / languages / LanguageId.php
1 <?php
2
3 require_once( "LanguageUtf8.php" );
4
5 /* private */ $wgNamespaceNamesId = array(
6 NS_MEDIA => "Media",
7 NS_SPECIAL => "Istimewa",
8 NS_MAIN => "",
9 NS_TALK => "Bicara",
10 NS_USER => "Pengguna",
11 NS_USER_TALK => "Bicara_Pengguna",
12 NS_PROJECT => $wgMetaNamespace,
13 NS_PROJECT_TALK => "Pembicaraan_" . $wgMetaNamespace,
14 NS_IMAGE => "Gambar",
15 NS_IMAGE_TALK => "Pembicaraan_Gambar",
16 NS_MEDIAWIKI => "MediaWiki",
17 NS_MEDIAWIKI_TALK => "Pembicaraan_MediaWiki",
18 NS_TEMPLATE => "Templat",
19 NS_TEMPLATE_TALK => "Pembicaraan_Templat",
20 NS_HELP => "Bantuan",
21 NS_HELP_TALK => "Pembicaraan_Bantuan",
22 NS_CATEGORY => "Kategori",
23 NS_CATEGORY_TALK => "Pembicaraan_Kategori"
24 ) + $wgNamespaceNamesEn;
25
26 # For backwards compatibility: some talk namespaces were
27 # changed in 1.4.4 from their previous values, here:
28 $wgNamespaceAlternatesId = array(
29 NS_IMAGE_TALK => "Gambar_Pembicaraan",
30 NS_MEDIAWIKI_TALK => "MediaWiki_Pembicaraan",
31 NS_TEMPLATE_TALK => "Templat_Pembicaraan",
32 NS_HELP_TALK => "Bantuan_Pembicaraan",
33 NS_CATEGORY_TALK => "Kategori_Pembicaraan"
34 );
35
36 /* private */ $wgQuickbarSettingsId = array(
37 "Tidak ada", "Tetap sebelah kiri", "Tetap sebelah kanan", "Mengambang sebelah kiri"
38 );
39
40 /* private */ $wgSkinNamesId = array(
41 'standard' => "Standar",
42 ) + $wgSkinNamesEn;
43
44 /* private */ $wgDateFormatsId = array();
45
46 /* private */ $wgBookstoreListId = array(
47 # Local bookstores
48 "Gramedia Cyberstore (via Google)" => 'http://www.google.com/search?q=%22ISBN+:+$1%22+%22product_detail%22+site:www.gramediacyberstore.com+OR+site:www.gramediaonline.com+OR+site:www.kompas.com&hl=id',
49 "Bhinneka.com bookstore" => 'http://www.bhinneka.com/Buku/Engine/search.asp?fisbn=$1',
50
51 //# Default (EN) Bookstores
52 //"AddALL" => "http://www.addall.com/New/Partner.cgi?query=$1&type=ISBN",
53 //"PriceSCAN" => "http://www.pricescan.com/books/bookDetail.asp?isbn=$1",
54 //"Barnes & Noble" => "http://search.barnesandnoble.com/bookSearch/isbnInquiry.asp?isbn=$1",
55 //"Amazon.com" => "http://www.amazon.com/exec/obidos/ISBN=$1"
56 ) + $wgBookstoreListEn;
57
58 if (!$wgCachedMessageArrays) {
59 require_once('MessagesId.php');
60 }
61
62 class LanguageId extends LanguageUtf8 {
63
64 function getBookstoreList () {
65 global $wgBookstoreListId;
66 return $wgBookstoreListId;
67 }
68
69 function getNamespaces() {
70 global $wgNamespaceNamesId;
71 return $wgNamespaceNamesId;
72 }
73
74 function getNsIndex( $text ) {
75 global $wgNamespaceNamesId, $wgNamespaceAlternatesId;
76
77 foreach ( $wgNamespaceNamesId as $i => $n ) {
78 if ( 0 == strcasecmp( $n, $text ) ) { return $i; }
79 }
80 foreach ( $wgNamespaceAlternatesId as $i => $n ) {
81 if ( 0 == strcasecmp( $n, $text ) ) { return $i; }
82 }
83
84 # For backwards compatibility
85 global $wgNamespaceNamesEn;
86 foreach ( $wgNamespaceNamesEn as $i => $n ) {
87 if ( 0 == strcasecmp( $n, $text ) ) { return $i; }
88 }
89 return false;
90 }
91
92 function getQuickbarSettings() {
93 global $wgQuickbarSettingsId;
94 return $wgQuickbarSettingsId;
95 }
96
97 function getSkinNames() {
98 global $wgSkinNamesId;
99 return $wgSkinNamesId;
100 }
101
102 function getDateFormats() {
103 global $wgDateFormatsId;
104 return $wgDateFormatsId;
105 }
106
107 function getMessage( $key ) {
108 global $wgAllMessagesId;
109 if( isset( $wgAllMessagesId[$key] ) ) {
110 return $wgAllMessagesId[$key];
111 } else {
112 return parent::getMessage( $key );
113 }
114 }
115
116 function separatorTransformTable() {
117 return array(',' => '.', '.' => ',' );
118 }
119
120 }
121
122 ?>