Index: trunk/extensions/Translate/PageTranslation.i18n.php |
— | — | @@ -97,9 +97,13 @@ |
98 | 98 | 'tpt-unknown-page' => 'This namespace is reserved for content page translations. |
99 | 99 | The page you are trying to edit does not seem to correspond any page marked for translation.', |
100 | 100 | 'tpt-translation-restricted' => 'Translation of this message group to this language has been prevented by translation administrator.', |
101 | | - 'tpt-discouraged-language-force' => 'Translation administrator has limited the languages this message group can be translated to. This languages is not among those languegs.', |
102 | | - 'tpt-discouraged-language' => 'This language is not among the priority languages set by translation administrator for this message group.', |
| 101 | + 'tpt-discouraged-language-force' => 'Translation administrator has limited the languages this message group can be translated to. This languages is not among those languages. |
103 | 102 | |
| 103 | +Reason for limiting: $1', |
| 104 | + 'tpt-discouraged-language' => 'This language is not among the priority languages set by translation administrator for this message group |
| 105 | + |
| 106 | +Reason for prioritization: $1', |
| 107 | + |
104 | 108 | 'tpt-render-summary' => 'Updating to match new version of source page', |
105 | 109 | |
106 | 110 | 'tpt-download-page' => 'Export page with translations', |
Index: trunk/extensions/Translate/specials/SpecialTranslate.php |
— | — | @@ -142,13 +142,14 @@ |
143 | 143 | } |
144 | 144 | $priorityLangs = array_flip( explode( ',', TranslateMetadata::get( $this->group->getId(), 'prioritylangs' ) ) ); |
145 | 145 | $priorityForce = TranslateMetadata::get( $this->group->getId(), 'priorityforce' ); |
146 | | - if ( count( $priorityLangs ) > 0 && !isset( $priorityLangs[$this->options['language']] ) ) { |
| 146 | + if ( !isset( $priorityLangs[$this->options['language']] ) ) { |
147 | 147 | $priorityReason = TranslateMetadata::get( $this->group->getId(), 'priorityreason' ); |
148 | | - if ( $priorityForce == 'on' ) { |
| 148 | + if ( $priorityForce === 'on' ) { |
| 149 | + // Hide table |
149 | 150 | $this->paging['count'] = 0; |
150 | | - $description .= '<p>' . wfMsg( 'tpt-discouraged-language-force' ) . '</p>' . $priorityReason ; |
| 151 | + $description .= wfMessage( 'tpt-discouraged-language-force', $priorityReason )->parseAsBlock(); |
151 | 152 | } else { |
152 | | - $description .= '<p>' . wfMsg( 'tpt-discouraged-language' ) . '</p>' . $priorityReason; |
| 153 | + $description .= wfMessage( 'tpt-discouraged-language', $priorityReason )->parseAsBlock(); |
153 | 154 | } |
154 | 155 | } |
155 | 156 | if ( $description ) { |