# HG changeset patch # User Matti Hamalainen # Date 1499257285 -10800 # Node ID b982ac0fdae45b5fca6db05c2afe02831a4381de # Parent 71cfb7d96cfc2347a2b3c8083b295914fa73bd81 Make printed header title strings etc. translatable. diff -r 71cfb7d96cfc -r b982ac0fdae4 src/main.cpp --- a/src/main.cpp Wed Jul 05 15:08:54 2017 +0300 +++ b/src/main.cpp Wed Jul 05 15:21:25 2017 +0300 @@ -681,11 +681,11 @@ pt->setPen(QPen(Qt::black, 3, Qt::SolidLine, Qt::RoundCap, Qt::RoundJoin)); ctx.setPos(0, 0); - ctx.drawText( 5, 180, "Etunimi"); - ctx.drawText( 200, 230, "Sukunimi"); - ctx.drawText( 450, 190, "Lisätty"); - ctx.drawText( 650, 190, "Päivitetty"); - ctx.drawText( 870, 120, "Tase"); + ctx.drawText( 5, 180, tr("Etunimi")); + ctx.drawText( 200, 230, tr("Sukunimi")); + ctx.drawText( 450, 190, tr("Lisätty")); + ctx.drawText( 650, 190, tr("Päivitetty")); + ctx.drawText( 870, 120, tr("Tase")); ctx.lf(); pt->drawLine(0, ctx.m_pos.y(), 1000, ctx.m_pos.y()); @@ -727,7 +727,7 @@ { ctx.setPos(0, 1240); ctx.drawText(0, 1000, - QStringLiteral("Sivu %1 / %2"). + tr("Sivu %1 / %2"). arg(npage).arg(printer->toPage()), Qt::AlignHCenter); }