2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Added generation of string with decimal separated numbers.

- Added new plural tag "kPluralDecimalSeparationTag".
 - Added Lang::PluralType for default, shorted and decimal separated numbers.
 - Replaced members and votes count with decimal separated type.
This commit is contained in:
23rd
2019-05-03 16:12:23 +03:00
committed by John Preston
parent 5d321f7c59
commit 5901b42a83
13 changed files with 57 additions and 28 deletions

View File

@@ -126,7 +126,7 @@ bool SectionToggle::checkRippleStartPosition(QPoint position) const {
}
auto MembersStatusText(int count) {
return lng_chat_status_members(lt_count, count);
return lng_chat_status_members_demical(lt_count_decimal, count);
};
auto OnlineStatusText(int count) {
@@ -139,7 +139,7 @@ auto ChatStatusText(int fullCount, int onlineCount, bool isGroup) {
lt_members_count, MembersStatusText(fullCount),
lt_online_count, OnlineStatusText(onlineCount));
} else if (fullCount > 0) {
return lng_chat_status_members(lt_count, fullCount);
return lng_chat_status_members_demical(lt_count_decimal, fullCount);
}
return lang(isGroup
? lng_group_status