[i18n] add armenian translation

Signed-off-by: R4SAS <r4sas@i2pmail.org>
This commit is contained in:
R4SAS 2021-11-18 15:15:34 +03:00
parent 174983548d
commit e5f39d0caf
No known key found for this signature in database
GPG key ID: 66F6C87B98EBCFE2
4 changed files with 221 additions and 3 deletions

View file

@ -26,7 +26,7 @@ namespace russian // language namespace
// See for language plural forms here:
// https://localization-guide.readthedocs.io/en/latest/l10n/pluralforms.html
static int plural (int n) {
return n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;
return n % 10 == 1 && n % 100 != 11 ? 0 : n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 10 || n % 100 >= 20) ? 1 : 2;
}
static std::map<std::string, std::string> strings