mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-07-01 18:24:36 +02:00
correct plurals
This commit is contained in:
parent
1e1eac17ae
commit
53d0bb7480
1 changed files with 6 additions and 6 deletions
|
@ -26,7 +26,7 @@ namespace filipino // language namespace
|
||||||
// See for language plural forms here:
|
// See for language plural forms here:
|
||||||
// https://localization-guide.readthedocs.io/en/latest/l10n/pluralforms.html
|
// https://localization-guide.readthedocs.io/en/latest/l10n/pluralforms.html
|
||||||
static int plural (int n) {
|
static int plural (int n) {
|
||||||
return n > 1;
|
return n != 1 && n != 2 && n != 3 && (n % 10 == 4 || n % 10 == 6 || n % 10 == 9);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Right to Left language?
|
// Right to Left language?
|
||||||
|
@ -209,11 +209,11 @@ namespace filipino // language namespace
|
||||||
|
|
||||||
static std::map<std::string, std::vector<std::string>> plurals
|
static std::map<std::string, std::vector<std::string>> plurals
|
||||||
{
|
{
|
||||||
{"%d days", {"%d araw", "%d araw", "%d araw"}},
|
{"%d days", {"%d araw", "%d (na) araw"}},
|
||||||
{"%d hours", {"%d oras", "%d oras", "%d oras"}},
|
{"%d hours", {"%d oras", "%d (na) oras"}},
|
||||||
{"%d minutes", {"%d minuto", "%d minuto", "%d minuto"}},
|
{"%d minutes", {"%d minuto", "%d (na) minuto"}},
|
||||||
{"%d seconds", {"%d segundo", "%d segundo", "%d segundo"}},
|
{"%d seconds", {"%d segundo", "%d (na) segundo"}},
|
||||||
{"", {"", "", ""}},
|
{"", {"", ""}},
|
||||||
};
|
};
|
||||||
|
|
||||||
std::shared_ptr<const i2p::i18n::Locale> GetLocale()
|
std::shared_ptr<const i2p::i18n::Locale> GetLocale()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue