Changeset View
Changeset View
Standalone View
Standalone View
src/internationalization/locales/PhutilCzechLocale.php
| Show All 13 Lines | final class PhutilCzechLocale extends PhutilLocale { | ||||
| } | } | ||||
| public function isTestLocale() { | public function isTestLocale() { | ||||
| // This doesn't have any translations yet so mark it as a test locale | // This doesn't have any translations yet so mark it as a test locale | ||||
| // for now. | // for now. | ||||
| return true; | return true; | ||||
| } | } | ||||
| public function selectPluralVariant($variant, array $translations) { | |||||
| list($singular, $paucal, $plural) = $translations; | |||||
| if ($variant == 1) { | |||||
| return $singular; | |||||
| } | |||||
| if ($variant >= 2 && $variant <= 4) { | |||||
| return $paucal; | |||||
| } | |||||
| return $plural; | |||||
| } | |||||
| } | } | ||||