Index: trunk/extensions/Translate/TranslateEditAddons.php |
— | — | @@ -188,6 +188,4 @@ |
189 | 189 | TranslateUtils::injectCSS(); |
190 | 190 | return Xml::tags( 'div', array( 'class' => 'mw-sp-translate-edit-fields' ), implode("\n\n", $boxes) ); |
191 | 191 | } |
192 | | - |
193 | | - |
194 | 192 | } |
Index: trunk/extensions/Translate/Translate.php |
— | — | @@ -88,6 +88,7 @@ |
89 | 89 | 'core-mostused' => 'CoreMostUsedMessageGroup', |
90 | 90 | 'ext-0-all' => 'AllMediawikiExtensionsGroup', |
91 | 91 | 'ext-0-wikimedia' => 'AllWikimediaExtensionsGroup', |
| 92 | +'ext-0-flaggedrevs' => 'AllFlaggedRevsExtensionsGroup', |
92 | 93 | 'out-freecol' => 'FreeColMessageGroup', |
93 | 94 | 'out-word2mediawikiplus' => 'Word2MediaWikiPlusMessageGroup', |
94 | 95 | ); |
Index: trunk/extensions/Translate/TranslateTasks.php |
— | — | @@ -325,7 +325,7 @@ |
326 | 326 | $writer = $this->messageGroup->getWriter(); |
327 | 327 | $writer->addAuthors( $this->getAuthorsArray(), $this->options->getLanguage() ); |
328 | 328 | $data = $writer->webExport( $this->messages ); |
329 | | - |
| 329 | + |
330 | 330 | return Xml::openElement( 'textarea', array( 'id' => 'wpTextbox1', 'rows' => '50' ) ) . |
331 | 331 | $data . |
332 | 332 | "</textarea>"; |
Index: trunk/extensions/Translate/poimport.php |
— | — | @@ -1,4 +1,5 @@ |
2 | 2 | <?php |
| 3 | +if (!defined('MEDIAWIKI')) die(); |
3 | 4 | /** |
4 | 5 | * Imports po files exported from Special:Translate back. |
5 | 6 | * |
— | — | @@ -251,6 +252,5 @@ |
252 | 253 | } else { |
253 | 254 | echo "Failed!\n"; |
254 | 255 | } |
255 | | - |
256 | 256 | } |
257 | 257 | } |
Index: trunk/extensions/Translate/utils/StringMatcher.php |
— | — | @@ -1,4 +1,5 @@ |
2 | 2 | <?php |
| 3 | +if (!defined('MEDIAWIKI')) die(); |
3 | 4 | |
4 | 5 | class StringMatcher extends StringMangler { |
5 | 6 | protected $sPrefix = ''; |
— | — | @@ -106,5 +107,4 @@ |
107 | 108 | |
108 | 109 | return $temp; |
109 | 110 | } |
110 | | - |
111 | | -} |
\ No newline at end of file |
| 111 | +} |
Index: trunk/extensions/Translate/utils/StringMangler.php |
— | — | @@ -1,4 +1,5 @@ |
2 | 2 | <?php |
| 3 | +if (!defined('MEDIAWIKI')) die(); |
3 | 4 | |
4 | 5 | class StringMangler { |
5 | 6 | protected $manglers; |
Index: trunk/extensions/Translate/utils/ResourceLoader.php |
— | — | @@ -1,4 +1,5 @@ |
2 | 2 | <?php |
| 3 | +if (!defined('MEDIAWIKI')) die(); |
3 | 4 | |
4 | 5 | class ResourceLoader { |
5 | 6 | |
— | — | @@ -10,5 +11,4 @@ |
11 | 12 | return isset( $$_variable ) ? $$_variable : null; |
12 | 13 | } |
13 | 14 | } |
14 | | - |
15 | 15 | } |
Index: trunk/extensions/Translate/utils/MemProfile.php |
— | — | @@ -10,7 +10,6 @@ |
11 | 11 | * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later |
12 | 12 | */ |
13 | 13 | |
14 | | - |
15 | 14 | $wgMemUse = array(); |
16 | 15 | $wgMemStack = 0; |
17 | 16 | function wfMemIn( $a ) { |
Index: trunk/extensions/Translate/Translate.i18n.php |
— | — | @@ -613,17 +613,17 @@ |
614 | 614 | 'translate-magic-pagename' => 'Troidigezh Mediawiki astennet', |
615 | 615 | 'translate-magic-help' => "Gallout a rit treiñ aliasoù ar pajennoù dibar, ar gerioù burzhudus, anvioù an etrefasoù hag anvioù an esaouennoù anv. |
616 | 616 | |
617 | | -Evit ar pezh a sell ouzh ar gerioù burzhudus e vo ret deoc'h ouzhpennañ an droidigezh saoznek pe ne'z aint ket en-dro ken. |
| 617 | +Evit ar pezh a sell ouzh ar gerioù burzhudus e vo ret deoc'h ouzhpennañ an droidigezh saoznek pe ne'z aint ket en-dro ken. |
618 | 618 | Dalc'hit ivez an elfenn gentañ (0 pe 1) evel m'emañ. |
619 | 619 | |
620 | | -Aliasoù ar pajennoù dibar hag ar gerioù burzhudus a c'hall kaout meur a droidigezh. |
621 | | -Dispartiet eo an troidigezhioù dre skejoù (,). |
| 620 | +Aliasoù ar pajennoù dibar hag ar gerioù burzhudus a c'hall kaout meur a droidigezh. |
| 621 | +Dispartiet eo an troidigezhioù dre skejoù (,). |
622 | 622 | N'hall anvioù an etrefasoù ha re an esaouennoù anv nemet kaout un droidigezh hepken. |
623 | 623 | |
624 | | -E troidigezhioù an esaouennoù anv eo dibar <tt>$1 talk</tt>. Erlec'hiet eo <tt>$1</tt> gant anv al lec'hienn (da skouer <tt>{{SITENAME}} talk</tt>). |
| 624 | +E troidigezhioù an esaouennoù anv eo dibar <tt>$1 talk</tt>. Erlec'hiet eo <tt>$1</tt> gant anv al lec'hienn (da skouer <tt>{{SITENAME}} talk</tt>). |
625 | 625 | Ma n'haller ket sevel lavarennoù reizh en ho yezh hep kemmañ anv al lec'hienn, kit e darempred gant un diorroer. |
626 | 626 | |
627 | | -Ret eo deoc'h bezañ ezel eus ur strollad troerien evit enrollañ ar c'hemmoù. |
| 627 | +Ret eo deoc'h bezañ ezel eus ur strollad troerien evit enrollañ ar c'hemmoù. |
628 | 628 | Ne vo ket enrollet ar c'hemmoù e-keit ha ne vo ket bet pouezet war ar bouton dindan.", |
629 | 629 | 'translate-magic-form' => 'Yezh $1 Modulenn : $2 $3', |
630 | 630 | 'translate-magic-submit' => 'Mont', |
— | — | @@ -4275,7 +4275,7 @@ |
4276 | 4276 | 'translate-ignored' => '(нодида гирифташуда)', |
4277 | 4277 | 'translate-edit-definition' => 'Таърифи пайғом', |
4278 | 4278 | 'translate-edit-contribute' => 'ҳиссагузорӣ', |
4279 | | - 'translate-edit-no-information' => "''Ин пайғом дорои тавзеҳот нест. |
| 4279 | + 'translate-edit-no-information' => "''Ин пайғом дорои тавзеҳот нест. |
4280 | 4280 | Агар шумо медонед ин пағом чигуна ё дар куҷо истифода мешавад, шумо метавонед бо изофа кардани тавзеҳот ба ин пайғом ба дигар тарҷумакунандагон кӯмак кунед.''", |
4281 | 4281 | 'translate-edit-information' => 'Иттилоот дар мавриди ин пайғом ($1)', |
4282 | 4282 | 'translate-edit-in-other-languages' => 'Ҳамин пайғом дар дигар забонҳо', |
— | — | @@ -4352,14 +4352,14 @@ |
4353 | 4353 | |
4354 | 4354 | ในตัวแปรพิเศษ กรุณาใส่คำแปลภาษาอังกฤษไปด้วยเช่นเดียวกัน มิฉะนั้นมันจะหยุดทำงาน กรุณาเว้นอันแรก (0 หรือ 1) อย่างที่มันเป็น |
4355 | 4355 | |
4356 | | -ชื่อหน้าพิเศษและตัวแปรพิเศษสามารถมีคำแปลได้หลายอย่าง |
4357 | | -คำแปลจะแยกโดยการใช้ จุลภาค (,) |
| 4356 | +ชื่อหน้าพิเศษและตัวแปรพิเศษสามารถมีคำแปลได้หลายอย่าง |
| 4357 | +คำแปลจะแยกโดยการใช้ จุลภาค (,) |
4358 | 4358 | ชื่อแบบหน้าตาและเนมสเปซสามารถมีคำแปลได้แค่คำเดียว |
4359 | 4359 | |
4360 | | -ในคำแปลชื่อเนมสเปซ <tt>คุยเรื่อง$1</tt> ต้องระวังเป็นพิเศษ <tt>$1</tt> จะถูกแทนที่โดยชื่อเว็บไซต์ (เช่น <tt>คุยเรื่อง{{SITENAME}}</tt>) |
| 4360 | +ในคำแปลชื่อเนมสเปซ <tt>คุยเรื่อง$1</tt> ต้องระวังเป็นพิเศษ <tt>$1</tt> จะถูกแทนที่โดยชื่อเว็บไซต์ (เช่น <tt>คุยเรื่อง{{SITENAME}}</tt>) |
4361 | 4361 | ถ้าไม่สามารถกระทำการดังกล่าวได้ในภาษาของคุณ, กรุณาติดต่อผู้ดูแลระบบขั้นสูง |
4362 | 4362 | |
4363 | | -คุณต้องอยู่ในกลุ่มคนแปลเพื่อที่จะบันทึกข้อมูลได้ |
| 4363 | +คุณต้องอยู่ในกลุ่มคนแปลเพื่อที่จะบันทึกข้อมูลได้ |
4364 | 4364 | ข้อมูลจะไม่ถูกบันทึกตราบใดที่คุณยังไม่กด "บันทึก"', |
4365 | 4365 | 'translate-magic-form' => 'ภาษา: $1 Module: $2 $3', |
4366 | 4366 | 'translate-magic-submit' => 'ดึงข้อมูล', |
— | — | @@ -4987,4 +4987,3 @@ |
4988 | 4988 | 'translate-checks-xhtml' => '請修正以下的標籤:<strong>$1</strong>', |
4989 | 4989 | 'translate-checks-plural' => '原始訊息使用於<nowiki>{{PLURAL:}}</nowiki>中,並沒有用於翻譯。', |
4990 | 4990 | ); |
4991 | | - |
Index: trunk/extensions/Translate/mwextensions/MediaWikiExtensions.php |
— | — | @@ -1,4 +1,5 @@ |
2 | 2 | <?php |
| 3 | +if (!defined('MEDIAWIKI')) die(); |
3 | 4 | |
4 | 5 | class PremadeMediawikiExtensionGroups { |
5 | 6 | protected $groups; |
— | — | @@ -52,8 +53,8 @@ |
53 | 54 | $groups[] = $newgroup; |
54 | 55 | } |
55 | 56 | } |
56 | | - |
57 | 57 | |
| 58 | + |
58 | 59 | foreach ( $groups as $g ) { |
59 | 60 | if ( !is_array($g) ) { |
60 | 61 | $g = array($g); |
— | — | @@ -110,4 +111,4 @@ |
111 | 112 | return $group; |
112 | 113 | } |
113 | 114 | |
114 | | -} |
\ No newline at end of file |
| 115 | +} |
Index: trunk/extensions/Translate/mwextensions/defines.txt |
— | — | @@ -136,6 +136,8 @@ |
137 | 137 | |
138 | 138 | Count Edits |
139 | 139 | |
| 140 | +Create Box |
| 141 | + |
140 | 142 | Cross Namespace Links |
141 | 143 | file = CrossNamespaceLinks/SpecialCrossNamespaceLinks.i18n.php |
142 | 144 | |
Index: trunk/extensions/Translate/SpecialMagic.php |
— | — | @@ -1,4 +1,5 @@ |
2 | 2 | <?php |
| 3 | +if (!defined('MEDIAWIKI')) die(); |
3 | 4 | |
4 | 5 | /** |
5 | 6 | * This special page helps with the translations of MediaWiki features that are |
Index: trunk/extensions/Translate/MessageGroups.php |
— | — | @@ -1,4 +1,5 @@ |
2 | 2 | <?php |
| 3 | +if (!defined('MEDIAWIKI')) die(); |
3 | 4 | |
4 | 5 | abstract class MessageGroup { |
5 | 6 | /** |
— | — | @@ -444,6 +445,38 @@ |
445 | 446 | } |
446 | 447 | } |
447 | 448 | |
| 449 | +class AllFlaggedRevsExtensionsGroup extends AllMediawikiExtensionsGroup { |
| 450 | + protected $fileExporter = null; |
| 451 | + protected $label = 'All FlaggedRevs messages'; |
| 452 | + protected $id = 'ext-0-flaggedrevs'; |
| 453 | + protected $meta = true; |
| 454 | + |
| 455 | + protected $classes = null; |
| 456 | + |
| 457 | + protected $flaggedrevsextensions = array( |
| 458 | + 'ext-fr-flaggedrevs', |
| 459 | + 'ext-fr-depreciationoversight', |
| 460 | + 'ext-fr-flaggedrevsaliases', |
| 461 | + 'ext-fr-oldreviewedpages', |
| 462 | + 'ext-fr-qualityoversight', |
| 463 | + 'ext-fr-reviewedpages', |
| 464 | + 'ext-fr-stabilization', |
| 465 | + 'ext-fr-stablepages', |
| 466 | + 'ext-fr-stableversions', |
| 467 | + 'ext-fr-unreviewedpages', |
| 468 | + ); |
| 469 | + |
| 470 | + protected function init() { |
| 471 | + if ( $this->classes === null ) { |
| 472 | + $this->classes = array(); |
| 473 | + $classes = MessageGroups::singleton()->getGroups(); |
| 474 | + foreach ( $this->flaggedrevsextensions as $key ) { |
| 475 | + $this->classes[$key] = $classes[$key]; |
| 476 | + } |
| 477 | + } |
| 478 | + } |
| 479 | +} |
| 480 | + |
448 | 481 | class Word2MediaWikiPlusMessageGroup extends ExtensionMessageGroup { |
449 | 482 | protected $label = 'Word2MediaWiki Plus'; |
450 | 483 | protected $id = 'out-word2mediawikiplus'; |
Index: trunk/extensions/Translate/Message.php |
— | — | @@ -292,5 +292,4 @@ |
293 | 293 | return false; |
294 | 294 | } |
295 | 295 | } |
296 | | - |
297 | 296 | } |
Index: trunk/extensions/Translate/ffs/WikiExtension.php |
— | — | @@ -9,7 +9,6 @@ |
10 | 10 | * @file |
11 | 11 | */ |
12 | 12 | |
13 | | - |
14 | 13 | class WikiExtensionFormatReader extends WikiFormatReader { |
15 | 14 | public function parseSections( $var ) { |
16 | 15 | if ( $this->filename === false ) { |
— | — | @@ -178,5 +177,4 @@ |
179 | 178 | |
180 | 179 | // Inherit |
181 | 180 | #protected function writeMessagesBlock( $handle, $messages ); |
182 | | - |
183 | 181 | } |
Index: trunk/extensions/Translate/ffs/Wiki.php |
— | — | @@ -15,7 +15,6 @@ |
16 | 16 | * @file |
17 | 17 | */ |
18 | 18 | |
19 | | - |
20 | 19 | class WikiFormatReader extends SimpleFormatReader { |
21 | 20 | // Set by creater |
22 | 21 | public $variableName = 'messages'; |
— | — | @@ -199,5 +198,4 @@ |
200 | 199 | fwrite( $handle, $quote . $value . $quote ); |
201 | 200 | fwrite( $handle, ",\n" ); |
202 | 201 | } |
203 | | - |
204 | 202 | } |
Index: trunk/extensions/Translate/ffs/Gettext.php |
— | — | @@ -1,9 +1,10 @@ |
2 | 2 | <?php |
3 | | - |
| 3 | +if (!defined('MEDIAWIKI')) die(); |
4 | 4 | /** |
5 | 5 | * Parses a po file that has been exported from Mediawiki. Other files are not |
6 | 6 | * supported. |
7 | 7 | */ |
| 8 | + |
8 | 9 | class GettextFormatHandler { |
9 | 10 | |
10 | 11 | public function __construct( $file ) { |
— | — | @@ -185,8 +186,5 @@ |
186 | 187 | $messages = array(); |
187 | 188 | require( $filename ); |
188 | 189 | return $messages; |
189 | | - |
190 | 190 | } |
191 | | - |
192 | | - |
193 | 191 | } |