Changeset View
Changeset View
Standalone View
Standalone View
ui/propertiesdialog.cpp
Show First 20 Lines • Show All 350 Lines • ▼ Show 20 Line(s) | 347 | { | |||
---|---|---|---|---|---|
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 | QString fontname = m_fonts.at( index.row() ).name(); | ||
359 | QString substituteName = m_fonts.at( index.row() ).substituteName(); | ||||
360 | if (m_fonts.at( index.row() ).embedType() == Okular::FontInfo::NotEmbedded && !substituteName.isEmpty() && !fontname.isEmpty()) { | ||||
361 | return QString("%1 (substituting with %2)").arg(fontname).arg(substituteName); | ||||
pino: i18n please, with a context explaining the message | |||||
pino: no .arg() with i18n(), but parameters to it | |||||
362 | } | ||||
359 | return fontname.isEmpty() ? i18nc( "font name not available (empty)", "[n/a]" ) : fontname; | 363 | return fontname.isEmpty() ? i18nc( "font name not available (empty)", "[n/a]" ) : fontname; | ||
360 | break; | 364 | break; | ||
361 | } | 365 | } | ||
362 | case 1: | 366 | case 1: | ||
363 | return descriptionForFontType( m_fonts.at( index.row() ).type() ); | 367 | return descriptionForFontType( m_fonts.at( index.row() ).type() ); | ||
364 | break; | 368 | break; | ||
365 | case 2: | 369 | case 2: | ||
366 | return pathOrDescription( m_fonts.at( index.row() ) ); | 370 | 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