From 21ea23741d3d4704bed01484b04f1d28edc0bdbb Mon Sep 17 00:00:00 2001 From: leha-bot Date: Wed, 17 Oct 2018 23:08:37 +0300 Subject: [PATCH] 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. --- Telegram/Resources/langs/lang.strings | 2 +- Telegram/SourceFiles/intro/introstart.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Telegram/Resources/langs/lang.strings b/Telegram/Resources/langs/lang.strings index 6fa43faed..ab6751259 100644 --- a/Telegram/Resources/langs/lang.strings +++ b/Telegram/Resources/langs/lang.strings @@ -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"; diff --git a/Telegram/SourceFiles/intro/introstart.cpp b/Telegram/SourceFiles/intro/introstart.cpp index d2281a4fb..983f7af27 100644 --- a/Telegram/SourceFiles/intro/introstart.cpp +++ b/Telegram/SourceFiles/intro/introstart.cpp @@ -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(); }