Localized all relevant numbers visible to end-user (#2488)

This commit is contained in:
Paweł
2021-03-06 15:03:33 +01:00
committed by GitHub
parent 346cd2b86d
commit 1eb6aa64db
6 changed files with 21 additions and 7 deletions
+4 -2
View File
@@ -14,6 +14,7 @@
#include "singletons/Resources.hpp"
#include "singletons/Settings.hpp"
#include "util/Clipboard.hpp"
#include "util/Helpers.hpp"
#include "util/LayoutCreator.hpp"
#include "util/PostToThread.hpp"
#include "util/Shortcut.hpp"
@@ -611,7 +612,8 @@ void UserInfoPopup::updateUserData()
this->ui_.nameLabel->setText(user.displayName);
this->setWindowTitle(TEXT_TITLE.arg(user.displayName));
this->ui_.viewCountLabel->setText(TEXT_VIEWS.arg(user.viewCount));
this->ui_.viewCountLabel->setText(
TEXT_VIEWS.arg(localizeNumbers(user.viewCount)));
this->ui_.createdDateLabel->setText(
TEXT_CREATED.arg(user.createdAt.section("T", 0, 0)));
this->ui_.userIDLabel->setText(TEXT_USER_ID + user.id);
@@ -635,7 +637,7 @@ void UserInfoPopup::updateUserData()
return;
}
this->ui_.followerCountLabel->setText(
TEXT_FOLLOWERS.arg(followers.total));
TEXT_FOLLOWERS.arg(localizeNumbers(followers.total)));
},
[] {
// on failure