/dports/multimedia/zoneminder/zoneminder-1.36.5/web/api/lib/Cake/Test/Case/I18n/ |
H A D | I18nTest.php | 114 $plurals = $this->_plural(); 203 $plurals = $this->_plural(); 292 $plurals = $this->_plural(); 2079 $plurals = array(); 2083 return $plurals; 2102 $plurals = array(); 2106 return $plurals; 2136 $plurals = array(); 2140 return $plurals; 2160 $plurals = array(); [all …]
|
/dports/net-im/matterbridge/matterbridge-1.22.3/vendor/github.com/rickb777/plural/ |
H A D | plural.go | 32 return plurals.FormatInt(x), nil 34 return plurals.FormatInt(int(x)), nil 36 return plurals.FormatInt(int(x)), nil 50 return plurals.FormatFloat(x), nil 55 return plurals.FormatInt(*x), nil 75 return plurals.FormatFloat(*x), nil 88 for _, c := range plurals { 93 c := plurals[len(plurals)-1] 99 for _, c := range plurals { 104 c := plurals[len(plurals)-1] [all …]
|
/dports/devel/py-babel/Babel-2.9.1/tests/messages/ |
H A D | test_plurals.py | 16 from babel.messages import plurals 29 assert plurals.get_plural(locale) == (num_plurals, plural_expr) 33 …assert plurals.get_plural(locale='ga') == (5, '(n==1 ? 0 : n==2 ? 1 : n>=3 && n<=6 ? 2 : n>=7 && n… 37 assert plurals.get_plural('ii') == (2, '(n != 1)') 42 assert plurals.get_plural(locale='en') == (2, '(n != 1)') 43 …assert plurals.get_plural(locale='ga') == (5, '(n==1 ? 0 : n==2 ? 1 : n>=3 && n<=6 ? 2 : n>=7 && n… 45 plural_ja = plurals.get_plural("ja") 51 plural_en_US = plurals.get_plural('en_US') 56 plural_fr_FR = plurals.get_plural('fr_FR') 61 plural_pl_PL = plurals.get_plural('pl_PL')
|
/dports/devel/p5-Locale-PO/Locale-PO-0.27/t/ |
H A D | plurals.t | 1 # $Id: plurals.t,v 1.1 2005/10/17 22:14:52 evdb Exp $ 13 my $pos = Locale::PO->load_file_asarray("t/plurals.pot"); 14 ok $pos, "loaded plurals.pot file"; 19 ok Locale::PO->save_file_fromarray( "t/plurals.pot.out", $pos ), "save to file"; 20 ok -e "t/plurals.pot.out", "the file now exists"; 27 read_file('t/plurals.pot'), 28 read_file('t/plurals.pot.out'), 31 && unlink 't/plurals.pot.out'; 34 { # Check that the plurals can be created in code. 48 # try to edit the plurals in the code. [all …]
|
/dports/www/miniflux/v2-2.0.35/locale/ |
H A D | printer.go | 37 var plurals []string 42 plurals = append(plurals, fmt.Sprint(v)) 45 plurals = v 56 if len(plurals) > index { 57 return fmt.Sprintf(plurals[index], args...)
|
/dports/textproc/translate-toolkit/translate-toolkit-3.5.1/translate/convert/ |
H A D | prop2po.py | 205 plurals = {} 217 if key not in plurals: 220 plurals[key] = Variants(new_unit) 233 if variant in plurals[key].variants: 240 plurals[key].variants[variant] = unit 243 for key, plural in plurals.items(): 267 units = plurals[plural] 274 del plurals[plural] 277 plurals = {} 291 plurals[location] = [] [all …]
|
/dports/deskutils/egroupware/egroupware/vendor/gettext/gettext/src/ |
H A D | Translator.php | 11 protected $plurals = []; variable in Gettext\\Translator 169 $this->plurals[$domain] = [ 207 if (!isset($this->plurals[$domain]) || $fallback === true) { 211 if (!isset($this->plurals[$domain]['function'])) { 212 $code = static::fixTerseIfs($this->plurals[$domain]['code']); 213 $this->plurals[$domain]['function'] = eval("return function (\$n) { $code };"); 216 if ($this->plurals[$domain]['count'] <= 2) { 217 return call_user_func($this->plurals[$domain]['function'], $n) ? 1 : 0; 220 return call_user_func($this->plurals[$domain]['function'], $n);
|
/dports/audio/ampache/ampache-php74-5.0.0/vendor/gettext/gettext/src/ |
H A D | Translator.php | 11 protected $plurals = []; variable in Gettext\\Translator 169 $this->plurals[$domain] = [ 207 if (!isset($this->plurals[$domain]) || $fallback === true) { 211 if (!isset($this->plurals[$domain]['function'])) { 212 $code = static::fixTerseIfs($this->plurals[$domain]['code']); 213 $this->plurals[$domain]['function'] = eval("return function (\$n) { $code };"); 216 if ($this->plurals[$domain]['count'] <= 2) { 217 return call_user_func($this->plurals[$domain]['function'], $n) ? 1 : 0; 220 return call_user_func($this->plurals[$domain]['function'], $n);
|
/dports/www/ilias/ILIAS-5.4.25/libs/composer/vendor/gettext/gettext/src/ |
H A D | Translator.php | 12 private $plurals = array(); variable in Gettext\\Translator 156 $this->plurals[$domain] = array( 195 if (!isset($this->plurals[$domain])) { 199 if (!isset($this->plurals[$domain]['function'])) { 200 …$this->plurals[$domain]['function'] = create_function('$n', self::fixTerseIfs($this->plurals[$doma… 203 if ($this->plurals[$domain]['count'] <= 2) { 204 return (call_user_func($this->plurals[$domain]['function'], $n)) ? 2 : 1; 209 return (call_user_func($this->plurals[$domain]['function'], $n)) + 1;
|
/dports/net-mgmt/cacti/cacti-1.2.19/include/vendor/gettext/src/ |
H A D | Translator.php | 11 private $plurals = []; variable in Gettext\\Translator 169 $this->plurals[$domain] = [ 207 if (!isset($this->plurals[$domain]) || $fallback === true) { 211 if (!isset($this->plurals[$domain]['function'])) { 212 $code = self::fixTerseIfs($this->plurals[$domain]['code']); 213 $this->plurals[$domain]['function'] = eval("return function (\$n) { $code };"); 216 if ($this->plurals[$domain]['count'] <= 2) { 217 return call_user_func($this->plurals[$domain]['function'], $n) ? 1 : 0; 220 return call_user_func($this->plurals[$domain]['function'], $n);
|
/dports/www/bolt/bolt-2.2.24/vendor/symfony/translation/Symfony/Component/Translation/Loader/ |
H A D | PoFileLoader.php | 164 $plurals = $item['translated']; 166 ksort($plurals); 168 end($plurals); 169 $count = key($plurals); 172 $plurals += $empties; 173 ksort($plurals); 174 … $messages[stripcslashes($item['ids']['plural'])] = stripcslashes(implode('|', $plurals));
|
/dports/www/owncloud/owncloud/core/Command/L10n/ |
H A D | CreateJs.php | 88 list($translations, $plurals) = $this->loadTranslations($path, $lang); 89 $this->writeJsFile($app, $path, $lang, $output, $translations, $plurals); 90 $this->writeJsonFile($path, $lang, $output, $translations, $plurals); 93 …private function writeJsFile($app, $path, $lang, OutputInterface $output, $translations, $plurals)… argument 108 $content .= "\n},\n\"$plurals\");\n"; 114 private function writeJsonFile($path, $lang, OutputInterface $output, $translations, $plurals) { argument 120 $content = ['translations' => $translations, 'pluralForm' => $plurals];
|
/dports/security/vault/vault-1.8.2/vendor/github.com/hashicorp/vic/vendor/golang.org/x/text/internal/number/ |
H A D | gen_plural.go | 82 for _, plurals := range data.Supplemental().Plurals { 83 if plurals.Type == "" { 89 for _, pRules := range plurals.PluralRules { 114 w.WriteVar(plurals.Type+"Tests", tests) 119 for _, plurals := range data.Supplemental().Plurals { 120 if plurals.Type == "" { 161 for _, pRules := range plurals.PluralRules { 220 w.WriteVar(plurals.Type+"Rules", rules) 221 w.WriteVar(plurals.Type+"Index", index) 232 w.WriteVar(plurals.Type+"LangToIndex", langToIndex) [all …]
|
/dports/security/vault/vault-1.8.2/vendor/github.com/hashicorp/vic/vendor/github.com/go-swagger/go-swagger/vendor/golang.org/x/text/internal/number/ |
H A D | gen_plural.go | 82 for _, plurals := range data.Supplemental().Plurals { 83 if plurals.Type == "" { 89 for _, pRules := range plurals.PluralRules { 114 w.WriteVar(plurals.Type+"Tests", tests) 119 for _, plurals := range data.Supplemental().Plurals { 120 if plurals.Type == "" { 161 for _, pRules := range plurals.PluralRules { 220 w.WriteVar(plurals.Type+"Rules", rules) 221 w.WriteVar(plurals.Type+"Index", index) 232 w.WriteVar(plurals.Type+"LangToIndex", langToIndex) [all …]
|
/dports/www/phpmyfaq/phpmyfaq/src/phpMyFAQ/ |
H A D | Helper.php | 61 protected $plurals = null; variable in phpMyFAQ\\Helper 127 * @param Plurals $plurals Language_Plurals object 129 public function setPlurals(Plurals $plurals) argument 131 $this->plurals = $plurals;
|
/dports/www/nextcloud/nextcloud/core/Command/L10n/ |
H A D | CreateJs.php | 93 [$translations, $plurals] = $this->loadTranslations($path, $lang); 94 $this->writeJsFile($app, $path, $lang, $output, $translations, $plurals); 95 $this->writeJsonFile($path, $lang, $output, $translations, $plurals); 98 …private function writeJsFile($app, $path, $lang, OutputInterface $output, $translations, $plurals)… argument 113 $content .= "\n},\n\"$plurals\");\n"; 119 private function writeJsonFile($path, $lang, OutputInterface $output, $translations, $plurals) { argument 125 $content = ['translations' => $translations, 'pluralForm' => $plurals];
|
/dports/databases/prometheus-postgresql-adapter/prometheus-postgresql-adapter-0.6.0/vendor/golang.org/x/text/feature/plural/ |
H A D | gen.go | 124 for _, plurals := range data.Supplemental().Plurals { 125 if plurals.Type == "" { 131 for _, pRules := range plurals.PluralRules { 156 w.WriteVar(plurals.Type+"Tests", tests) 161 for _, plurals := range data.Supplemental().Plurals { 162 if plurals.Type == "" { 203 for _, pRules := range plurals.PluralRules { 262 w.WriteVar(plurals.Type+"Rules", rules) 263 w.WriteVar(plurals.Type+"Index", index) 286 w.WriteVar(plurals.Type+"LangToIndex", langToIndex) [all …]
|
/dports/net/gscloud/gscloud-0.11.0/vendor/golang.org/x/text/feature/plural/ |
H A D | gen.go | 124 for _, plurals := range data.Supplemental().Plurals { 125 if plurals.Type == "" { 131 for _, pRules := range plurals.PluralRules { 156 w.WriteVar(plurals.Type+"Tests", tests) 161 for _, plurals := range data.Supplemental().Plurals { 162 if plurals.Type == "" { 203 for _, pRules := range plurals.PluralRules { 262 w.WriteVar(plurals.Type+"Rules", rules) 263 w.WriteVar(plurals.Type+"Index", index) 286 w.WriteVar(plurals.Type+"LangToIndex", langToIndex) [all …]
|
/dports/net/grpcui/grpcui-1.1.0/vendor/github.com/envoyproxy/protoc-gen-validate/vendor/golang.org/x/text/feature/plural/ |
H A D | gen.go | 124 for _, plurals := range data.Supplemental().Plurals { 125 if plurals.Type == "" { 131 for _, pRules := range plurals.PluralRules { 156 w.WriteVar(plurals.Type+"Tests", tests) 161 for _, plurals := range data.Supplemental().Plurals { 162 if plurals.Type == "" { 203 for _, pRules := range plurals.PluralRules { 262 w.WriteVar(plurals.Type+"Rules", rules) 263 w.WriteVar(plurals.Type+"Index", index) 274 w.WriteVar(plurals.Type+"LangToIndex", langToIndex) [all …]
|
/dports/net/grpcui/grpcui-1.1.0/vendor/golang.org/x/text/feature/plural/ |
H A D | gen.go | 124 for _, plurals := range data.Supplemental().Plurals { 125 if plurals.Type == "" { 131 for _, pRules := range plurals.PluralRules { 156 w.WriteVar(plurals.Type+"Tests", tests) 161 for _, plurals := range data.Supplemental().Plurals { 162 if plurals.Type == "" { 203 for _, pRules := range plurals.PluralRules { 262 w.WriteVar(plurals.Type+"Rules", rules) 263 w.WriteVar(plurals.Type+"Index", index) 286 w.WriteVar(plurals.Type+"LangToIndex", langToIndex) [all …]
|
/dports/net/inlets/inlets-3.0.2/vendor/golang.org/x/text/text-0.3.4/feature/plural/ |
H A D | gen.go | 124 for _, plurals := range data.Supplemental().Plurals { 125 if plurals.Type == "" { 131 for _, pRules := range plurals.PluralRules { 156 w.WriteVar(plurals.Type+"Tests", tests) 161 for _, plurals := range data.Supplemental().Plurals { 162 if plurals.Type == "" { 203 for _, pRules := range plurals.PluralRules { 262 w.WriteVar(plurals.Type+"Rules", rules) 263 w.WriteVar(plurals.Type+"Index", index) 286 w.WriteVar(plurals.Type+"LangToIndex", langToIndex) [all …]
|
/dports/net-mgmt/bind_exporter/bind_exporter-0.4.0/vendor/golang.org/x/text/feature/plural/ |
H A D | gen.go | 124 for _, plurals := range data.Supplemental().Plurals { 125 if plurals.Type == "" { 131 for _, pRules := range plurals.PluralRules { 156 w.WriteVar(plurals.Type+"Tests", tests) 161 for _, plurals := range data.Supplemental().Plurals { 162 if plurals.Type == "" { 203 for _, pRules := range plurals.PluralRules { 262 w.WriteVar(plurals.Type+"Rules", rules) 263 w.WriteVar(plurals.Type+"Index", index) 286 w.WriteVar(plurals.Type+"LangToIndex", langToIndex) [all …]
|
/dports/multimedia/livego/livego-0.0.15/vendor/golang.org/x/text/feature/plural/ |
H A D | gen.go | 124 for _, plurals := range data.Supplemental().Plurals { 125 if plurals.Type == "" { 131 for _, pRules := range plurals.PluralRules { 156 w.WriteVar(plurals.Type+"Tests", tests) 161 for _, plurals := range data.Supplemental().Plurals { 162 if plurals.Type == "" { 203 for _, pRules := range plurals.PluralRules { 262 w.WriteVar(plurals.Type+"Rules", rules) 263 w.WriteVar(plurals.Type+"Index", index) 286 w.WriteVar(plurals.Type+"LangToIndex", langToIndex) [all …]
|
/dports/net/go-bapu/carlostrub-bapu-23ca6b019fbc/vendor/golang.org/x/text/feature/plural/ |
H A D | gen.go | 124 for _, plurals := range data.Supplemental().Plurals { 125 if plurals.Type == "" { 131 for _, pRules := range plurals.PluralRules { 156 w.WriteVar(plurals.Type+"Tests", tests) 161 for _, plurals := range data.Supplemental().Plurals { 162 if plurals.Type == "" { 203 for _, pRules := range plurals.PluralRules { 262 w.WriteVar(plurals.Type+"Rules", rules) 263 w.WriteVar(plurals.Type+"Index", index) 286 w.WriteVar(plurals.Type+"LangToIndex", langToIndex) [all …]
|
/dports/devel/gh/cli-2.4.0/vendor/golang.org/x/text/feature/plural/ |
H A D | gen.go | 125 for _, plurals := range data.Supplemental().Plurals { 126 if plurals.Type == "" { 132 for _, pRules := range plurals.PluralRules { 157 w.WriteVar(plurals.Type+"Tests", tests) 162 for _, plurals := range data.Supplemental().Plurals { 163 if plurals.Type == "" { 204 for _, pRules := range plurals.PluralRules { 263 w.WriteVar(plurals.Type+"Rules", rules) 264 w.WriteVar(plurals.Type+"Index", index) 287 w.WriteVar(plurals.Type+"LangToIndex", langToIndex) [all …]
|