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>bb10
parent
4429f7510c
commit
7113bb23ba
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue