Index: trunk/phase3/languages/Language.php |
— | — | @@ -2478,7 +2478,7 @@ |
2479 | 2479 | return $string; |
2480 | 2480 | } |
2481 | 2481 | |
2482 | | - /* |
| 2482 | + /** |
2483 | 2483 | * Truncate a string of valid HTML to a specified length in bytes, |
2484 | 2484 | * appending an optional string (e.g. for ellipses), and return valid HTML |
2485 | 2485 | * |
— | — | @@ -2610,7 +2610,7 @@ |
2611 | 2611 | return $skipCount; |
2612 | 2612 | } |
2613 | 2613 | |
2614 | | - /* |
| 2614 | + /** |
2615 | 2615 | * truncateHtml() helper function |
2616 | 2616 | * (a) push or pop $tag from $openTags as needed |
2617 | 2617 | * (b) clear $tag value |
Index: trunk/phase3/languages/classes/LanguageHy.php |
— | — | @@ -55,10 +55,9 @@ |
56 | 56 | return ( abs( $count ) <= 1 ) ? $forms[0] : $forms[1]; |
57 | 57 | } |
58 | 58 | |
59 | | - /* |
| 59 | + /** |
60 | 60 | * Armenian numeric format is "12 345,67" but "1234,56" |
61 | 61 | */ |
62 | | - |
63 | 62 | function commafy( $_ ) { |
64 | 63 | if ( !preg_match( '/^\d{1,4}$/', $_ ) ) { |
65 | 64 | return strrev( (string)preg_replace( '/(\d{3})(?=\d)(?!\d*\.)/', '$1,', strrev( $_ ) ) ); |
Index: trunk/phase3/languages/classes/LanguageIu.php |
— | — | @@ -105,7 +105,7 @@ |
106 | 106 | return parent::parserConvert( $text, $parser ); |
107 | 107 | } |
108 | 108 | |
109 | | - /* |
| 109 | + /** |
110 | 110 | * A function wrapper: |
111 | 111 | * - if there is no selected variant, leave the link |
112 | 112 | * names as they were |
— | — | @@ -125,7 +125,7 @@ |
126 | 126 | $link = $oldlink; |
127 | 127 | } |
128 | 128 | |
129 | | - /* |
| 129 | + /** |
130 | 130 | * We want our external link captions to be converted in variants, |
131 | 131 | * so we return the original text instead -{$text}-, except for URLs |
132 | 132 | */ |
— | — | @@ -135,7 +135,7 @@ |
136 | 136 | return $text; |
137 | 137 | } |
138 | 138 | |
139 | | - /* |
| 139 | + /** |
140 | 140 | * An ugly function wrapper for parsing Image titles |
141 | 141 | * (to prevent image name conversion) |
142 | 142 | */ |
Index: trunk/phase3/languages/classes/LanguageUk.php |
— | — | @@ -79,7 +79,7 @@ |
80 | 80 | } |
81 | 81 | } |
82 | 82 | |
83 | | - /* |
| 83 | + /** |
84 | 84 | * Ukrainian numeric format is "12 345,67" but "1234,56" |
85 | 85 | */ |
86 | 86 | function commafy( $_ ) { |
Index: trunk/phase3/languages/classes/LanguageKaa.php |
— | — | @@ -19,9 +19,9 @@ |
20 | 20 | /* Full code of function convertGrammar() is in development. Updates coming soon. */ |
21 | 21 | return $word; |
22 | 22 | } |
23 | | - /* |
| 23 | + |
| 24 | + /** |
24 | 25 | * It fixes issue with ucfirst for transforming 'i' to 'İ' |
25 | | - * |
26 | 26 | */ |
27 | 27 | function ucfirst ( $string ) { |
28 | 28 | if ( substr( $string, 0, 1 ) === 'i' ) { |
— | — | @@ -31,9 +31,8 @@ |
32 | 32 | } |
33 | 33 | } |
34 | 34 | |
35 | | - /* |
| 35 | + /** |
36 | 36 | * It fixes issue with lcfirst for transforming 'I' to 'ı' |
37 | | - * |
38 | 37 | */ |
39 | 38 | function lcfirst ( $string ) { |
40 | 39 | if ( substr( $string, 0, 1 ) === 'I' ) { |
Index: trunk/phase3/languages/classes/LanguageRu.php |
— | — | @@ -93,7 +93,7 @@ |
94 | 94 | } |
95 | 95 | } |
96 | 96 | |
97 | | - /* |
| 97 | + /** |
98 | 98 | * Four-digit number should be without group commas (spaces) |
99 | 99 | * See manual of style at http://ru.wikipedia.org/wiki/Википедия:Оформление_статей |
100 | 100 | * So "1 234 567", "12 345" but "1234" |
Index: trunk/phase3/languages/classes/LanguageBe_tarask.php |
— | — | @@ -11,12 +11,12 @@ |
12 | 12 | |
13 | 13 | class LanguageBe_tarask extends Language { |
14 | 14 | /** |
15 | | - * Plural form transformations |
16 | | - * |
17 | | - * $wordform1 - singular form (for 1, 21, 31, 41...) |
18 | | - * $wordform2 - plural form (for 2, 3, 4, 22, 23, 24, 32, 33, 34...) |
19 | | - * $wordform3 - plural form (for 0, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 25, 26...) |
20 | | - */ |
| 15 | + * Plural form transformations |
| 16 | + * |
| 17 | + * $wordform1 - singular form (for 1, 21, 31, 41...) |
| 18 | + * $wordform2 - plural form (for 2, 3, 4, 22, 23, 24, 32, 33, 34...) |
| 19 | + * $wordform3 - plural form (for 0, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 25, 26...) |
| 20 | + */ |
21 | 21 | |
22 | 22 | function convertPlural( $count, $forms ) { |
23 | 23 | if ( !count( $forms ) ) { return ''; } |
— | — | @@ -41,7 +41,7 @@ |
42 | 42 | } |
43 | 43 | } |
44 | 44 | |
45 | | - /* |
| 45 | + /** |
46 | 46 | * The Belarusian language uses apostrophe sign, |
47 | 47 | * but the characters used for this could be both U+0027 and U+2019. |
48 | 48 | * This function unifies apostrophe sign in search index values |
— | — | @@ -62,7 +62,7 @@ |
63 | 63 | return $s; |
64 | 64 | } |
65 | 65 | |
66 | | - /* |
| 66 | + /** |
67 | 67 | * Four-digit number should be without group commas (spaces) |
68 | 68 | * So "1 234 567", "12 345" but "1234" |
69 | 69 | */ |
Index: trunk/phase3/languages/classes/LanguageKk.php |
— | — | @@ -211,7 +211,7 @@ |
212 | 212 | return $carray; |
213 | 213 | } |
214 | 214 | |
215 | | - /* |
| 215 | + /** |
216 | 216 | * A function wrapper: |
217 | 217 | * - if there is no selected variant, leave the link |
218 | 218 | * names as they were |
— | — | @@ -231,7 +231,7 @@ |
232 | 232 | $link = $oldlink; |
233 | 233 | } |
234 | 234 | |
235 | | - /* |
| 235 | + /** |
236 | 236 | * An ugly function wrapper for parsing Image titles |
237 | 237 | * (to prevent image name conversion) |
238 | 238 | */ |
— | — | @@ -337,7 +337,7 @@ |
338 | 338 | } |
339 | 339 | } |
340 | 340 | |
341 | | - /* |
| 341 | + /** |
342 | 342 | * We want our external link captions to be converted in variants, |
343 | 343 | * so we return the original text instead -{$text}-, except for URLs |
344 | 344 | */ |
— | — | @@ -395,9 +395,8 @@ |
396 | 396 | } |
397 | 397 | } |
398 | 398 | |
399 | | - /* |
| 399 | + /** |
400 | 400 | * It fixes issue with ucfirst for transforming 'i' to 'İ' |
401 | | - * |
402 | 401 | */ |
403 | 402 | function ucfirst ( $string ) { |
404 | 403 | $variant = $this->getPreferredVariant(); |
— | — | @@ -409,9 +408,8 @@ |
410 | 409 | return $string; |
411 | 410 | } |
412 | 411 | |
413 | | - /* |
| 412 | + /** |
414 | 413 | * It fixes issue with lcfirst for transforming 'I' to 'ı' |
415 | | - * |
416 | 414 | */ |
417 | 415 | function lcfirst ( $string ) { |
418 | 416 | $variant = $this->getPreferredVariant(); |
Index: trunk/phase3/languages/classes/LanguageKu.php |
— | — | @@ -132,7 +132,7 @@ |
133 | 133 | ); |
134 | 134 | } |
135 | 135 | |
136 | | - /* |
| 136 | + /** |
137 | 137 | * A function wrapper: |
138 | 138 | * - if there is no selected variant, leave the link |
139 | 139 | * names as they were |
— | — | @@ -152,7 +152,7 @@ |
153 | 153 | $link = $oldlink; |
154 | 154 | } |
155 | 155 | |
156 | | - /* |
| 156 | + /** |
157 | 157 | * We want our external link captions to be converted in variants, |
158 | 158 | * so we return the original text instead -{$text}-, except for URLs |
159 | 159 | */ |
— | — | @@ -162,7 +162,7 @@ |
163 | 163 | return $text; |
164 | 164 | } |
165 | 165 | |
166 | | - /* |
| 166 | + /** |
167 | 167 | * An ugly function wrapper for parsing Image titles |
168 | 168 | * (to prevent image name conversion) |
169 | 169 | */ |
Index: trunk/phase3/languages/classes/LanguageSr.php |
— | — | @@ -77,7 +77,7 @@ |
78 | 78 | return $carray; |
79 | 79 | } |
80 | 80 | |
81 | | - /* |
| 81 | + /** |
82 | 82 | * A function wrapper: |
83 | 83 | * - if there is no selected variant, leave the link |
84 | 84 | * names as they were |
— | — | @@ -97,7 +97,7 @@ |
98 | 98 | $link = $oldlink; |
99 | 99 | } |
100 | 100 | |
101 | | - /* |
| 101 | + /** |
102 | 102 | * We want our external link captions to be converted in variants, |
103 | 103 | * so we return the original text instead -{$text}-, except for URLs |
104 | 104 | */ |
— | — | @@ -107,7 +107,7 @@ |
108 | 108 | return $text; |
109 | 109 | } |
110 | 110 | |
111 | | - /* |
| 111 | + /** |
112 | 112 | * An ugly function wrapper for parsing Image titles |
113 | 113 | * (to prevent image name conversion) |
114 | 114 | */ |