r78794 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r78793‎ | r78794 | r78795 >
Date:15:13, 22 December 2010
Author:raymond
Status:ok
Tags:
Comment:
Follow-up r78781; Add PLURAL to 'livetranslate-dictionary-unallowed-langs'
Simplify 'livetranslate-dictionary-count' a bit
Modified paths:
  • /trunk/extensions/LiveTranslate/LiveTranslate.hooks.php (modified) (history)
  • /trunk/extensions/LiveTranslate/LiveTranslate.i18n.php (modified) (history)

Diff [purge]

Index: trunk/extensions/LiveTranslate/LiveTranslate.i18n.php
@@ -25,8 +25,8 @@
2626
2727 // Special words dictionary
2828 'livetranslate-dictionary-empty' => 'There are no words in the dictionary yet. Click the "edit" tab to add some.',
29 - 'livetranslate-dictionary-count' => 'There {{PLURAL:$1|is|are}} $1 {{PLURAL:$1|word|words}} in $2 {{PLURAL:$2|language|languages}}. Click the "edit" tab to add more.',
30 - 'livetranslate-dictionary-unallowed-langs' => 'These languages are not currently set as allowed translation target: $1. Modify the allowed languages in your wikis configuration, or remove these from the dictionary.'
 29+ 'livetranslate-dictionary-count' => 'There {{PLURAL:$1|is $1 word|are $1 words}} in $2 {{PLURAL:$2|language|languages}}. Click the "edit" tab to add more.',
 30+ 'livetranslate-dictionary-unallowed-langs' => '{{PLURAL:$2|This language is|These languages are}} not currently set as allowed translation target: $1. Modify the allowed languages in your wikis configuration, or remove these from the dictionary.'
3131 );
3232
3333 /** Belarusian (Taraškievica orthography) (Беларуская (тарашкевіца))
Index: trunk/extensions/LiveTranslate/LiveTranslate.hooks.php
@@ -64,7 +64,7 @@
6565 Html::element(
6666 'span',
6767 array( 'style' => 'color:darkred' ),
68 - wfMsgExt( 'livetranslate-dictionary-unallowed-langs', 'parsemag', $wgLang->listToText( $notAllowedLanguages ) )
 68+ wfMsgExt( 'livetranslate-dictionary-unallowed-langs', 'parsemag', $wgLang->listToText( $notAllowedLanguages ), count( $notAllowedLanguages ) )
6969 )
7070
7171 );

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r78781Added dictionary status message to it's article view and an error when there ...jeroendedauw12:43, 22 December 2010

Status & tagging log