|
@@ 205-211 (lines=7) @@
|
| 202 |
|
|
| 203 |
|
// Select the parts that define nplurals and plural. |
| 204 |
|
$nplurals = strstr($pluralforms, "nplurals="); |
| 205 |
|
if (strpos($nplurals, ";")) { |
| 206 |
|
// We want the string from the 10th char, because "nplurals=" length is 9. |
| 207 |
|
$nplurals = substr($nplurals, 9, strpos($nplurals, ";") - 9); |
| 208 |
|
} |
| 209 |
|
else { |
| 210 |
|
return FALSE; |
| 211 |
|
} |
| 212 |
|
$plural = strstr($pluralforms, "plural="); |
| 213 |
|
if (strpos($plural, ";")) { |
| 214 |
|
// We want the string from the 8th char, because "plural=" length is 7. |
|
@@ 213-219 (lines=7) @@
|
| 210 |
|
return FALSE; |
| 211 |
|
} |
| 212 |
|
$plural = strstr($pluralforms, "plural="); |
| 213 |
|
if (strpos($plural, ";")) { |
| 214 |
|
// We want the string from the 8th char, because "plural=" length is 7. |
| 215 |
|
$plural = substr($plural, 7, strpos($plural, ";") - 7); |
| 216 |
|
} |
| 217 |
|
else { |
| 218 |
|
return FALSE; |
| 219 |
|
} |
| 220 |
|
|
| 221 |
|
// If the number of plurals is zero, we return a default result. |
| 222 |
|
if ($nplurals == 0) { |