[PATCH] printoptions.cpp: add missing tr() calls

Dirk Hohndel dirk at hohndel.org
Thu Oct 1 09:57:12 PDT 2015


Thank you. Applied and strings pushed to transifex

/D

On Thu, Oct 01, 2015 at 04:17:20PM +0300, Lubomir I. Ivanov wrote:
> From: "Lubomir I. Ivanov" <neolit123 at gmail.com>
> 
> Signed-off-by: Lubomir I. Ivanov <neolit123 at gmail.com>
> ---
>  qt-ui/printoptions.cpp | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/qt-ui/printoptions.cpp b/qt-ui/printoptions.cpp
> index f976567..79bcee1 100644
> --- a/qt-ui/printoptions.cpp
> +++ b/qt-ui/printoptions.cpp
> @@ -171,8 +171,8 @@ void PrintOptions::on_deleteButton_clicked()
>  {
>  	QString templateName = getSelectedTemplate();
>  	QMessageBox msgBox;
> -	msgBox.setText("This action cannot be undone!");
> -	msgBox.setInformativeText("Delete '" + templateName + "' template?");
> +	msgBox.setText(tr("This action cannot be undone!"));
> +	msgBox.setInformativeText(tr("Delete template: %1?").arg(templateName));
>  	msgBox.setStandardButtons(QMessageBox::Ok | QMessageBox::Cancel);
>  	msgBox.setDefaultButton(QMessageBox::Cancel);
>  	if (msgBox.exec() == QMessageBox::Ok) {
> -- 
> 1.7.11.msysgit.0
> 
> _______________________________________________
> subsurface mailing list
> subsurface at subsurface-divelog.org
> http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface


More information about the subsurface mailing list