Use lang-packed "copy" instead of "code".
This commit is contained in:
parent
952c89687c
commit
287af101d0
3 changed files with 8 additions and 1 deletions
|
|
@ -214,4 +214,8 @@ QString Integration::phraseBotAllowWriteConfirm() {
|
||||||
return "Allow";
|
return "Allow";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QString Integration::phraseQuoteHeaderCopy() {
|
||||||
|
return "copy";
|
||||||
|
}
|
||||||
|
|
||||||
} // namespace Ui
|
} // namespace Ui
|
||||||
|
|
|
||||||
|
|
@ -99,6 +99,7 @@ public:
|
||||||
[[nodiscard]] virtual QString phraseBotAllowWrite();
|
[[nodiscard]] virtual QString phraseBotAllowWrite();
|
||||||
[[nodiscard]] virtual QString phraseBotAllowWriteTitle();
|
[[nodiscard]] virtual QString phraseBotAllowWriteTitle();
|
||||||
[[nodiscard]] virtual QString phraseBotAllowWriteConfirm();
|
[[nodiscard]] virtual QString phraseBotAllowWriteConfirm();
|
||||||
|
[[nodiscard]] virtual QString phraseQuoteHeaderCopy();
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -12,6 +12,7 @@
|
||||||
#include "ui/text/text_parser.h"
|
#include "ui/text/text_parser.h"
|
||||||
#include "ui/text/text_renderer.h"
|
#include "ui/text/text_renderer.h"
|
||||||
#include "ui/basic_click_handlers.h"
|
#include "ui/basic_click_handlers.h"
|
||||||
|
#include "ui/integration.h"
|
||||||
#include "ui/painter.h"
|
#include "ui/painter.h"
|
||||||
#include "base/platform/base_platform_info.h"
|
#include "base/platform/base_platform_info.h"
|
||||||
#include "styles/style_basic.h"
|
#include "styles/style_basic.h"
|
||||||
|
|
@ -1279,7 +1280,8 @@ int String::quoteMinWidth(QuoteDetails *quote) const {
|
||||||
|
|
||||||
const QString &String::quoteHeaderText(QuoteDetails *quote) const {
|
const QString &String::quoteHeaderText(QuoteDetails *quote) const {
|
||||||
static const auto kEmptyHeader = QString();
|
static const auto kEmptyHeader = QString();
|
||||||
static const auto kDefaultHeader = u"code"_q;
|
static const auto kDefaultHeader
|
||||||
|
= Integration::Instance().phraseQuoteHeaderCopy();
|
||||||
return (!quote || !quote->pre)
|
return (!quote || !quote->pre)
|
||||||
? kEmptyHeader
|
? kEmptyHeader
|
||||||
: quote->language.isEmpty()
|
: quote->language.isEmpty()
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue