forked from qt-creator/qt-creator
Prefix Tr::tr contexts with ::
To make outliers better visible in Linguist Change-Id: Ic35ea2a858b7e3576d9a416fb494fddb616eaaa1 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
#include "qmljscodestylesettingspage.h"
|
||||
#include "qmljsindenter.h"
|
||||
#include "qmljstoolsconstants.h"
|
||||
#include "qmljstoolstr.h"
|
||||
|
||||
#include <qmljseditor/qmljseditorconstants.h>
|
||||
|
||||
@@ -39,7 +40,7 @@ Utils::Id QmlJSCodeStylePreferencesFactory::languageId()
|
||||
|
||||
QString QmlJSCodeStylePreferencesFactory::displayName()
|
||||
{
|
||||
return QLatin1String(Constants::QML_JS_SETTINGS_NAME);
|
||||
return Tr::tr("Qt Quick");
|
||||
}
|
||||
|
||||
TextEditor::ICodeStylePreferences *QmlJSCodeStylePreferencesFactory::createCodeStyle() const
|
||||
|
||||
@@ -20,7 +20,6 @@ const char QML_JS_CODE_STYLE_SETTINGS_ID[] = "A.Code Style";
|
||||
const char QML_JS_CODE_STYLE_SETTINGS_NAME[] = QT_TRANSLATE_NOOP("QmlJSTools", "Code Style");
|
||||
|
||||
const char QML_JS_SETTINGS_ID[] = "QmlJS";
|
||||
const char QML_JS_SETTINGS_NAME[] = QT_TRANSLATE_NOOP("QmlJSTools", "Qt Quick");
|
||||
|
||||
const char M_TOOLS_QMLJS[] = "QmlJSTools.Tools.Menu";
|
||||
const char RESET_CODEMODEL[] = "QmlJSTools.ResetCodeModel";
|
||||
|
||||
@@ -9,7 +9,7 @@ namespace QmlJSTools {
|
||||
|
||||
struct Tr
|
||||
{
|
||||
Q_DECLARE_TR_FUNCTIONS(QmlJSTools)
|
||||
Q_DECLARE_TR_FUNCTIONS(::QmlJSTools)
|
||||
};
|
||||
|
||||
} // namespace QmlJSTools
|
||||
|
||||
Reference in New Issue
Block a user