Use {appname} for splash screen string

Also update usage in intro widget. Please note that the language strings
with placeholders must be created using {lang_id}(lt_{placeholder},
lang({placeholder}), where you should replace {lang_id} with your actual
language string identifier and {placeholder} with your actual string
data.
This commit is contained in:
leha-bot 2018-10-17 23:08:37 +03:00
parent 9d4a8596dc
commit 21ea23741d
2 changed files with 2 additions and 2 deletions

View File

@ -165,7 +165,7 @@
"lng_pinned_unpin" = "Unpin";
"lng_pinned_notify" = "Notify all members";
"lng_intro_about" = "Welcome to Kepka - the unofficial telegram app.\nIt's fast and secure.";
"lng_intro_about" = "Welcome to the {appname}, unofficial Telegram app.\nIt's fast and secure.";
"lng_start_msgs" = "START MESSAGING";
"lng_intro_next" = "NEXT";

View File

@ -35,7 +35,7 @@ StartWidget::StartWidget(QWidget *parent, Widget::Data *data)
: Step(parent, data, true) {
setMouseTracking(true);
setTitleText([] { return str_const_toString(AppName); });
setDescriptionText(langFactory(lng_intro_about));
setDescriptionText([] { return lng_intro_about(lt_appname, lang(appname)); });
show();
}