Skip to content

Commit

Permalink
Merge pull request #4611 from daschuer/QT_TRANSLATE_NOOP
Browse files Browse the repository at this point in the history
Provide a context for QT_TRANSLATE_NOOP
  • Loading branch information
Holzhaus authored Jan 8, 2022
2 parents 169c030 + f94a59d commit 64e0088
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions res/translations/mixxx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10078,6 +10078,11 @@ Fully right: end of the effect period</source>
</context>
<context>
<name>SamplerBank</name>
<message>
<location filename="../../src/mixer/samplerbank.cpp" line="21"/>
<source>Mixxx Sampler Banks (*.xml)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/mixer/samplerbank.cpp" line="65"/>
<source>Save Sampler Bank</source>
Expand Down
2 changes: 1 addition & 1 deletion src/mixer/samplerbank.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const ConfigKey kConfigkeyLastImportExportDirectory(
"[Samplers]", "last_import_export_directory");
// This is used in multiple tr() calls below which accepts const char* as a key.
// lupdate finds the single string here.
const char kSamplerFileType[] = QT_TR_NOOP("Mixxx Sampler Banks (*.xml)");
const char kSamplerFileType[] = QT_TRANSLATE_NOOP("SamplerBank", "Mixxx Sampler Banks (*.xml)");

} // anonymous namespace

Expand Down

0 comments on commit 64e0088

Please sign in to comment.