mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-12-26 17:58:19 +03:00
Really fix translation in fspathedit
QT_TRANSLATE_NOOP3 is a macro, so we cannot use a runtime string for the context
argument.
Fix up 1d778676cd
.
This commit is contained in:
parent
8cf00ba5e1
commit
f54d7d46f2
1 changed files with 5 additions and 6 deletions
|
@ -41,7 +41,6 @@
|
||||||
|
|
||||||
namespace
|
namespace
|
||||||
{
|
{
|
||||||
const char i18nContext[] = "FileSystemPathEdit";
|
|
||||||
struct TrStringWithComment
|
struct TrStringWithComment
|
||||||
{
|
{
|
||||||
const char *source;
|
const char *source;
|
||||||
|
@ -49,18 +48,18 @@ namespace
|
||||||
|
|
||||||
QString tr() const
|
QString tr() const
|
||||||
{
|
{
|
||||||
return QCoreApplication::translate(i18nContext, source, comment);
|
return QCoreApplication::translate("FileSystemPathEdit", source, comment);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
constexpr TrStringWithComment browseButtonBriefText =
|
constexpr TrStringWithComment browseButtonBriefText =
|
||||||
QT_TRANSLATE_NOOP3(i18nContext, "...", "Launch file dialog button text (brief)");
|
QT_TRANSLATE_NOOP3("FileSystemPathEdit", "...", "Launch file dialog button text (brief)");
|
||||||
constexpr TrStringWithComment browseButtonFullText =
|
constexpr TrStringWithComment browseButtonFullText =
|
||||||
QT_TRANSLATE_NOOP3(i18nContext, "&Browse...", "Launch file dialog button text (full)");
|
QT_TRANSLATE_NOOP3("FileSystemPathEdit", "&Browse...", "Launch file dialog button text (full)");
|
||||||
constexpr TrStringWithComment defaultDialogCaptionForFile =
|
constexpr TrStringWithComment defaultDialogCaptionForFile =
|
||||||
QT_TRANSLATE_NOOP3(i18nContext, "Choose a file", "Caption for file open/save dialog");
|
QT_TRANSLATE_NOOP3("FileSystemPathEdit", "Choose a file", "Caption for file open/save dialog");
|
||||||
constexpr TrStringWithComment defaultDialogCaptionForDirectory =
|
constexpr TrStringWithComment defaultDialogCaptionForDirectory =
|
||||||
QT_TRANSLATE_NOOP3(i18nContext, "Choose a folder", "Caption for directory open dialog");
|
QT_TRANSLATE_NOOP3("FileSystemPathEdit", "Choose a folder", "Caption for directory open dialog");
|
||||||
}
|
}
|
||||||
|
|
||||||
class FileSystemPathEdit::FileSystemPathEditPrivate
|
class FileSystemPathEdit::FileSystemPathEditPrivate
|
||||||
|
|
Loading…
Reference in a new issue