r28776 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r28775‎ | r28776 | r28777 >
Date:14:07, 22 December 2007
Author:shinjiman
Status:old
Tags:
Comment:
Revert part of r28770, per AlefZet's request.
Modified paths:
  • /trunk/phase3/languages/messages/MessagesKu.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesKu_arab.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesKu_latn.php (modified) (history)

Diff [purge]

Index: trunk/phase3/languages/messages/MessagesKu_latn.php
@@ -9,17 +9,6 @@
1010 * @author Siebrand
1111 */
1212
13 -$separatorTransformTable = array(
14 - ',' => '.',
15 - '.' => ','
16 -);
17 -
18 -$extraUserToggles = array(
19 - 'nolangconversion'
20 -);
21 -
22 -$linkPrefixExtension = true;
23 -
2413 $namespaceNames = array(
2514 NS_MEDIA => 'Medya',
2615 NS_SPECIAL => 'Taybet',
@@ -1152,6 +1141,62 @@
11531142 'tooltip-ca-nstab-special' => 'This is a special page, you can',
11541143 'tooltip-compareselectedversions' => 'Cudatiyên guhartoyên hilbijartî yên vê rûpelê bibîne.',
11551144
 1145+# Stylesheets
 1146+'monobook.css' => '*.rtl
 1147+ {
 1148+ dir:rtl;
 1149+ text-align:right;
 1150+ font-family: "Tahoma", "Unikurd Web", "Arial Unicode MS", "DejaVu Sans", "Lateef", "Scheherazade", "ae_Rasheeq", sans-serif, sans;
 1151+ }
 1152+
 1153+ /*Make the site more suitable for Soranî users */
 1154+ h1 {font-family: "Tahoma", "Arial Unicode MS", sans-serif, sans, "Unikurd Web", "Scheherazade";}
 1155+ h2 {font-family: "Tahoma", "Arial Unicode MS", sans-serif, sans, "Unikurd Web", "Scheherazade";}
 1156+ h3 {font-family: "Tahoma", "Arial Unicode MS", sans-serif, sans, "Unikurd Web", "Scheherazade";}
 1157+ body {font-family: "Tahoma", "Arial Unicode MS", sans-serif, sans, "Unikurd Web", "Scheherazade";}
 1158+ textarea {font-family: Lucida Console, Tahoma;}
 1159+ pre {font-family: Lucida Console, Tahoma;}',
 1160+
 1161+# Scripts
 1162+'common.js' => '/* JavaScript */
 1163+
 1164+/* Workaround for language variants */
 1165+
 1166+// Set user-defined "lang" attributes for the document element (from zh)
 1167+var htmlE=document.documentElement;
 1168+if (wgUserLanguage == "ku"){ variant = "ku"; }
 1169+if (wgUserLanguage == "ku-latn"){ variant = "ku-Latn"; }
 1170+if (wgUserLanguage == "ku-arab"){ variant = "ku-Arab"; htmlE.setAttribute("dir","rtl"); }
 1171+htmlE.setAttribute("lang",variant);
 1172+htmlE.setAttribute("xml:lang",variant);
 1173+
 1174+// Switch language variants of messages (from zh)
 1175+function wgULS(latn,arab){
 1176+ //
 1177+ ku=latn||arab;
 1178+ ku=ku;
 1179+ latn=latn;
 1180+ arab=arab;
 1181+ switch(wgUserLanguage){
 1182+ case "ku": return ku;
 1183+ case "ku-arab": return arab;
 1184+ case "ku-latn": return latn;
 1185+ default: return "";
 1186+ }
 1187+}
 1188+
 1189+// workaround for RTL ([[bugzilla:6756]]) and for [[bugzilla:02020]] & [[bugzilla:04295]]
 1190+if (wgUserLanguage == "ku-arab")
 1191+{
 1192+ document.direction="rtl";
 1193+ document.write(\'<link rel="stylesheet" type="text/css" href="\'+stylepath+\'/common/common_rtl.css">\');
 1194+ document.write(\'<style type="text/css">html {direction:rtl;} body {direction:rtl; unicode-bidi:embed; lang:ku-Arab; font-family:"Arial Unicode MS",Arial,Tahoma; font-size: 75%; letter-spacing: 0.001em;} html > body div#content ol {clear: left;} ol {margin-left:2.4em; margin-right:2.4em;} ul {margin-left:1.5em; margin-right:1.5em;} h1.firstHeading {background-position: bottom right; background-repeat: no-repeat;} h3 {font-size:110%;} h4 {font-size:100%;} h5 {font-size:90%;} #catlinks {width:100%;} #userloginForm {float: right !important;}</style>\');
 1195+
 1196+ if (skin == "monobook"){
 1197+ document.write(\'<link rel="stylesheet" type="text/css" href="\'+stylepath+\'/monobook/rtl.css">\');
 1198+ }
 1199+}',
 1200+
11561201 # Attribution
11571202 'anonymous' => 'Bikarhênera/ê nediyarkirî ya/yê {{SITENAME}}',
11581203 'siteuser' => 'Bikarhênera/ê $1 a/ê {{SITENAME}}',
@@ -1186,6 +1231,11 @@
11871232 # Special:Newimages
11881233 'newimages' => 'Pêşangeha wêneyên nû',
11891234
 1235+# Variants for Kurdish language
 1236+'variantname-ku-arab' => 'tîpên erebî',
 1237+'variantname-ku-latn' => 'tîpên latînî',
 1238+'variantname-ku' => 'disable',
 1239+
11901240 # EXIF tags
11911241 'exif-imagedescription' => 'Navî wêneyê',
11921242
Index: trunk/phase3/languages/messages/MessagesKu_arab.php
@@ -9,59 +9,6 @@
1010
1111 $fallback = 'ku-latn';
1212
13 -$rtl = true;
14 -
15 -$digitTransformTable = array(
16 - '0' => '۰', # &#x06f0;
17 - '1' => '۱', # &#x06f1;
18 - '2' => '۲', # &#x06f2;
19 - '3' => '۳', # &#x06f3;
20 - '4' => '۴', # &#x06f4;
21 - '5' => '۵', # &#x06f5;
22 - '6' => '۶', # &#x06f6;
23 - '7' => '۷', # &#x06f7;
24 - '8' => '۸', # &#x06f8;
25 - '9' => '۹', # &#x06f9;
26 -);
27 -
28 -$separatorTransformTable = array(
29 - ',' => '٬', # &#x066c;
30 - '.' => '٫', # &#x066b;
31 -);
32 -
33 -$defaultUserOptionOverrides = array(
34 - # Swap sidebar to right side by default
35 - 'quickbar' => 2,
36 - # Underlines seriously harm legibility. Force off:
37 - 'underline' => 0,
38 -);
39 -
40 -$extraUserToggles = array(
41 - 'nolangconversion'
42 -);
43 -
44 -$fallback8bitEncoding = 'windows-1256';
45 -
46 -$namespaceAliases = array(
47 - # Aliases to ku-latn namespaces
48 - 'Medya' => NS_MEDIA,
49 - 'Taybet' => NS_SPECIAL,
50 - 'Nîqaş' => NS_TALK,
51 - 'Bikarhêner' => NS_USER,
52 - 'Bikarhêner_nîqaş' => NS_USER_TALK,
53 - '$1_nîqaş' => NS_PROJECT_TALK,
54 - 'Wêne' => NS_IMAGE,
55 - 'Wêne_nîqaş' => NS_IMAGE_TALK,
56 - 'MediaWiki' => NS_MEDIAWIKI,
57 - 'MediaWiki_nîqaş' => NS_MEDIAWIKI_TALK,
58 - 'Şablon' => NS_TEMPLATE,
59 - 'Şablon_nîqaş' => NS_TEMPLATE_TALK,
60 - 'Alîkarî' => NS_HELP,
61 - 'Alîkarî_nîqaş' => NS_HELP_TALK,
62 - 'Kategorî' => NS_CATEGORY,
63 - 'Kategorî_nîqaş' => NS_CATEGORY_TALK,
64 -);
65 -
6613 $skinNames = array(
6714 'standard' => 'كلاسیك',
6815 'nostalgia' => 'قاوه‌یی',
@@ -388,8 +335,7 @@
389336 'tooltip-pt-userpage' => 'په‌ڕه‌ی تایبه‌تی خۆم',
390337
391338 # Separators for various lists
392 -'semicolon-separator' => '؛',
393 -'filetype-separator' => ' ،',
 339+'semicolon-separator' => '؛',
394340 'comma-separator' => '،',
395341
396342 # Live preview
Index: trunk/phase3/languages/messages/MessagesKu.php
@@ -1,39 +1,8 @@
22 <?php
33 /**
4 - * Kurdish (Kurdi)
 4+ * Kurdish (latin)
55 *
66 * @addtogroup Language
77 */
88
9 - # Stub message file for converter code "ku"
10 -
119 $fallback = 'ku-latn';
12 -
13 -$linkTrail = '/^([a-zcei?u?????????????????????????????????????????�g��\']+)(.*)$/sDu';
14 -
15 -$messages = array(
16 -'linkprefix' => '/^(.*?)([a-zcei?uA-ZCEI?U?????????????????????????????????????????��?]+)$/sDu',
17 -
18 -# Stylesheets
19 -'monobook.css' => '*.rtl
20 - {
21 - dir:rtl;
22 - text-align:right;
23 - font-family: "Tahoma", "Unikurd Web", "Arial Unicode MS", "DejaVu Sans", "Lateef", "Scheherazade", "ae_Rasheeq", sans-serif, sans;
24 - }
25 -
26 - /*Make the site more suitable for Sorani users */
27 - h1 {font-family: "Tahoma", "Arial Unicode MS", sans-serif, sans, "Unikurd Web", "Scheherazade";}
28 - h2 {font-family: "Tahoma", "Arial Unicode MS", sans-serif, sans, "Unikurd Web", "Scheherazade";}
29 - h3 {font-family: "Tahoma", "Arial Unicode MS", sans-serif, sans, "Unikurd Web", "Scheherazade";}
30 - body {font-family: "Tahoma", "Arial Unicode MS", sans-serif, sans, "Unikurd Web", "Scheherazade";}
31 - textarea {font-family: Lucida Console, Tahoma;}
32 - pre {font-family: Lucida Console, Tahoma;}',
33 -
34 -# Variants for Kurdish language
35 -'variantname-ku-latn' => 'tipen latini',
36 -'variantname-ku-arab' => 'tipen erebi',
37 -'variantname-ku' => 'disable',
38 -
39 -);
40 -

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r28770* (bug 12145) Update Kazakh translations...shinjiman08:20, 22 December 2007

Status & tagging log