Mercurial > hg > syntilista
changeset 118:b982ac0fdae4
Make printed header title strings etc. translatable.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Wed, 05 Jul 2017 15:21:25 +0300 |
parents | 71cfb7d96cfc |
children | eb74c4dff497 |
files | src/main.cpp |
diffstat | 1 files changed, 6 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- 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); }