diff options
author | Friedemann Kleint <Friedemann.Kleint@theqtcompany.com> | 2015-02-19 14:18:21 +0100 |
---|---|---|
committer | Konstantin Ritt <ritt.ks@gmail.com> | 2015-02-20 00:21:34 +0000 |
commit | 7113bb23baf5200e12b1aea7b99f9d977a249a03 (patch) | |
tree | 93249063231f53edf0d868e7ebb87eedd25a57d3 /src/gui/text | |
parent | 4429f7510c61b35ee38d6abe3bc925e8d388d842 (diff) |
Add explanatory text to translated strings in font database.
Notify the translator that those are substrings used for searching.
Change-Id: I242f701ff23929fe84099c40a696acfca3388f7b
Reviewed-by: Konstantin Ritt <ritt.ks@gmail.com>
Diffstat (limited to 'src/gui/text')
-rw-r--r-- | src/gui/text/qfontdatabase.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/text/qfontdatabase.cpp b/src/gui/text/qfontdatabase.cpp index 1cdbf6aa8e..1a71042648 100644 --- a/src/gui/text/qfontdatabase.cpp +++ b/src/gui/text/qfontdatabase.cpp @@ -152,8 +152,10 @@ static int getFontWeight(const QString &weightString) return QFont::ExtraBold; // And now the contains() checks for the translated strings. + //: The word for "Extra" as in "Extra Bold, Extra Thin" used as a pattern for string searches const QString translatedExtra = QCoreApplication::translate("QFontDatabase", "Extra").toLower(); if (s.contains(translatedBold)) { + //: The word for "Demi" as in "Demi Bold" used as a pattern for string searches QString translatedDemi = QCoreApplication::translate("QFontDatabase", "Demi").toLower(); if (s .contains(translatedDemi)) return QFont::DemiBold; |