r29746 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r29745‎ | r29746 | r29747 >
Date:14:22, 14 January 2008
Author:raymond
Status:old
Tags:
Comment:
Localisation updates Kazakh translations
(bug 12145) Patch by AlefZet
Modified paths:
  • /trunk/phase3/languages/classes/LanguageKk.php (modified) (history)
  • /trunk/phase3/languages/classes/LanguageKk_cyrl.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesKk.php (modified) (history)

Diff [purge]

Index: trunk/phase3/languages/messages/MessagesKk.php
@@ -9,10 +9,10 @@
1010
1111 $fallback = 'kk-kz';
1212
13 -$linkTrail = '/^([a-zäçéğıïñöşüýа-яёәғіқңөұүһاٵبۆگعدەجزيكقلمنڭوٶپرستۋۇٷفحھچشىٸʺʹ“»]+)(.*)$/sDu';
 13+$linkTrail = '/^([a-zäçéğıïñöşüýʺʹа-яёәғіқңөұүһٴابپتجحدرزسشعفقكلمنڭەوۇۋۆىيچھ“»]+)(.*)$/sDu';
1414
1515 $messages = array(
16 -'linkprefix' => '/^(.*?)([a-zäçéğıïñöşüýа-яёәіңғүұқөһA-ZÄÇÉĞİÏÑÖŞÜÝА-ЯЁӘІҢҒҮҰҚӨҺاٵبۆگعدەجزيكقلمنڭوٶپرستۋۇٷفحھچشىٸʺʹ«„]+)$/sDu',
 16+'linkprefix' => '/^(.*?)([a-zäçéğıïñöşüýA-ZÄÇÉĞİÏÑÖŞÜÝʺʹа-яёәіңғүұқөһА-ЯЁӘІҢҒҮҰҚӨҺٴابپتجحدرزسشعفقكلمنڭەوۇۋۆىيچھ«„]+)$/sDu',
1717
1818 # Stylesheets
1919 'common.css' => '/* Мындағы CSS барлық безендіру мәнеріндерде қолданылады */',
Index: trunk/phase3/languages/classes/LanguageKk_cyrl.php
@@ -13,15 +13,7 @@
1414 /**
1515 * Cases: genitive, dative, accusative, locative, ablative, comitative + possessive forms
1616 */
17 - function convertGrammar( $word, $case, $variant ) {
18 - global $wgGrammarForms;
1917
20 - if ($variant='kk-cyrl') { $word = self::convertGrammarKk_cyrl( $word, $case ); }
21 - if ($variant='kk-latn') { $word = self::convertGrammarKk_latn( $word, $case ); }
22 - if ($variant='kk-arab') { $word = self::convertGrammarKk_arab( $word, $case ); }
23 - return $word;
24 - }
25 -
2618 function convertGrammarKk_cyrl( $word, $case ) {
2719 global $wgGrammarForms;
2820 if ( isset( $wgGrammarForms['kk-kz'][$case][$word] ) ) {
Index: trunk/phase3/languages/classes/LanguageKk.php
@@ -12,9 +12,9 @@
1313 define( 'KK_C_LC', 'аәбвгғдеёжзийкқлмнңоөпрстуұүфхһцчшщъыіьэюя' ); # Kazakh Cyrillic lowercase
1414 define( 'KK_L_UC', 'AÄBCÇDEÉFGĞHIİÏJKLMNÑOÖPQRSŞTUÜVWXYÝZ' ); # Kazakh Latin uppercase
1515 define( 'KK_L_LC', 'aäbcçdeéfgğhıiïjklmnñoöpqrsştuüvwxyýz' ); # Kazakh Latin lowercase
16 -//define( 'KK_A', 'اٵبۆگعدەجزيكقلمنڭوٶپرستۋۇٷفحھچشىٸ' ); # Kazakh Arabic
 16+//define( 'KK_A', 'ٴابپتجحدرزسشعفقكلمنڭەوۇۋۆىيچھ' ); # Kazakh Arabic
1717 define( 'H_HAMZA', 'ٴ' ); # U+0674 ARABIC LETTER HIGH HAMZA
18 -define( 'ZWNJ', '‌' ); # U+200C ZERO WIDTH NON-JOINER
 18+//define( 'ZWNJ', '‌' ); # U+200C ZERO WIDTH NON-JOINER
1919
2020 class KkConverter extends LanguageConverter {
2121
@@ -431,27 +431,26 @@
432432 }
433433
434434 function convertGrammar( $word, $case ) {
435 - $fname="LanguageKk::convertGrammar";
436 - wfProfileIn( $fname );
 435+ wfProfileIn( __METHOD__ );
437436
438437 $variant = $this->getPreferredVariant();
439438 switch ( $variant ) {
440439 case 'kk-arab':
441440 case 'kk-cn':
442 - $word = parent::convertGrammar( $word, $case, $variant = 'kk-arab' );
 441+ $word = parent::convertGrammarKk_arab( $word, $case );
443442 break;
444443 case 'kk-latn':
445444 case 'kk-tr':
446 - $word = parent::convertGrammar( $word, $case, $variant = 'kk-latn' );
 445+ $word = parent::convertGrammarKk_latn( $word, $case );
447446 break;
448447 case 'kk-cyrl':
449448 case 'kk-kz':
450449 case 'kk':
451450 default:
452 - $word = parent::convertGrammar( $word, $case, $variant = 'kk-cyrl' );
 451+ $word = parent::convertGrammarKk_cyrl( $word, $case );
453452 }
454453
455 - wfProfileOut( $fname );
 454+ wfProfileOut( __METHOD__ );
456455 return $word;
457456 }
458457

Follow-up revisions

RevisionCommit summaryAuthorDate
r29965* (bug 12145) Update Kazakh translations...shinjiman05:56, 20 January 2008
r30271Localisation updates Kazakh translations...raymond20:57, 29 January 2008
r32889* (bug 12145) Update Kazakh translations...shinjiman04:41, 7 April 2008
r33288Localisation updates Kazakh...raymond16:02, 14 April 2008
r33543Localisation updates Kazakh...raymond10:15, 18 April 2008
r33868(bug 12145) Kazakh message updatesialex19:29, 24 April 2008
r33991Localisation updates Kazakh...raymond05:39, 29 April 2008
r34206(bug 12145) Kazakh localisation updates, patch 4875 by AlefZetleon14:57, 4 May 2008
r34589(bug 12145) Kazakh localisation updates, patch 4893 by AlefZetleon16:41, 10 May 2008
r34666(bug 12145) Kazakh localisation updates. Patch 4894 by AlefZetleon15:44, 12 May 2008
r34685(bug 12145) Kazakh message updatesialex20:30, 12 May 2008
r34693Partial revert of r12145. Bug 12145 Kazakh message updates did not mention/mo...siebrand21:13, 12 May 2008
r34820(bug 12145) Kazakh message updatesialex18:06, 14 May 2008
r34984(bug 12145) Kazakh localisation updates, patch 4905 by AlefZetleon17:07, 17 May 2008
r35131Localisation updates Kazahk (bug 12145)raymond04:57, 21 May 2008
r35207Bug 12145 Kazakh message updates...mfarag22:22, 22 May 2008
r35238(bug 12145) Kazakh message updatesialex18:14, 23 May 2008
r35260* Updating RELEASE-NOTES for last commit, which accidently had no commit mess...leon22:07, 23 May 2008
r35275(bug 12145) Kazakh localisation updates, modified patch 4921 by AlefZetleon08:32, 24 May 2008
r35327(bug 12145) Kazakh message updatesialex19:01, 25 May 2008
r35513Localisation updates Kazahk (bug 12145)raymond19:27, 28 May 2008
r35648* (bug 12145) Localisation updates Kazakh...shinjiman10:58, 31 May 2008
r35801(bug 12145) Kazakh message updatesialex16:35, 3 June 2008
r36096(bug 12145) Kazakh message updatesialex19:12, 9 June 2008
r36152(bug 12145) Kazakh localisation updates, patch 4971 by AlefZetleon15:06, 10 June 2008
r36443Localisation updates Kazakh...raymond06:50, 19 June 2008

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r28000* (bug 12145) Update Kazakh translations...shinjiman01:02, 1 December 2007
r28048* (bug 12145) Update Kazakh translations...shinjiman10:48, 2 December 2007
r28220* (bug 12145) Update Kazakh translations...raymond19:53, 6 December 2007
r28263* (bug 12145) Update Kazakh translations...shinjiman02:52, 8 December 2007
r28319* (bug 12145) Update Kazakh translations, adding kk-variants...shinjiman16:24, 9 December 2007
r28330* (bug 12145) Update Kazakh translations...shinjiman23:40, 9 December 2007
r28589* (bug 12145) Update Kazakh translations...raymond15:31, 17 December 2007
r28717* (bug 12145) Update Kazakh translations...raymond18:26, 20 December 2007
r28719* (bug 12145) Mark 'tog-nolangconversion', 'yourvariant' as optional. Message...raymond18:32, 20 December 2007
r28770* (bug 12145) Update Kazakh translations...shinjiman08:20, 22 December 2007
r29171* (bug 12145) Update Kazakh translations...raymond15:15, 2 January 2008
r29594* (bug 12145) Update Kazakh translations...shinjiman14:16, 11 January 2008

Status & tagging log