Changeset View
Changeset View
Standalone View
Standalone View
ui/propertiesdialog.cpp
Show First 20 Lines • Show All 349 Lines • ▼ Show 20 Line(s) | 347 | { | |||
---|---|---|---|---|---|
350 | 350 | | |||
351 | switch ( role ) | 351 | switch ( role ) | ||
352 | { | 352 | { | ||
353 | case Qt::DisplayRole: | 353 | case Qt::DisplayRole: | ||
354 | switch ( index.column() ) | 354 | switch ( index.column() ) | ||
355 | { | 355 | { | ||
356 | case 0: | 356 | case 0: | ||
357 | { | 357 | { | ||
358 | QString fontname = m_fonts.at( index.row() ).name(); | 358 | const Okular::FontInfo &fi = m_fonts.at( index.row() ); | ||
359 | const QString fontname = fi.name(); | ||||
360 | const QString substituteName = fi.substituteName(); | ||||
361 | if ( fi.embedType() == Okular::FontInfo::NotEmbedded && !substituteName.isEmpty() && !fontname.isEmpty() && substituteName != fontname ) { | ||||
pino: i18n please, with a context explaining the message | |||||
pino: no .arg() with i18n(), but parameters to it | |||||
362 | return i18nc("Replacing missing font with another one", "%1 (substituting with %2)", fontname, substituteName); | ||||
363 | } | ||||
359 | return fontname.isEmpty() ? i18nc( "font name not available (empty)", "[n/a]" ) : fontname; | 364 | return fontname.isEmpty() ? i18nc( "font name not available (empty)", "[n/a]" ) : fontname; | ||
360 | break; | 365 | break; | ||
361 | } | 366 | } | ||
362 | case 1: | 367 | case 1: | ||
363 | return descriptionForFontType( m_fonts.at( index.row() ).type() ); | 368 | return descriptionForFontType( m_fonts.at( index.row() ).type() ); | ||
364 | break; | 369 | break; | ||
365 | case 2: | 370 | case 2: | ||
366 | return pathOrDescription( m_fonts.at( index.row() ) ); | 371 | return pathOrDescription( m_fonts.at( index.row() ) ); | ||
▲ Show 20 Lines • Show All 60 Lines • Show Last 20 Lines |
i18n please, with a context explaining the message