Blob Blame History Raw
From 1732bc83cb2c949089d98cd9be0e922ac4af4a28 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= <miro@hroncok.cz>
Date: Tue, 4 Apr 2017 20:25:58 +0200
Subject: [PATCH] Handle 2 argument translation calls generated by Qt 5.7.1

This fixes a FTBFS error described in https://github.com/openscad/openscad/issues/1872

Fix from https://github.com/openscad/openscad/commit/4fa5f0340a2b7b031a0b39f7de0ca795d52bb68b
---
 data.h | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/data.h b/data.h
index 83fc9ff..e5404f0 100644
--- a/data.h
+++ b/data.h
@@ -23,6 +23,12 @@ inline QString _( const char *msgid, int category )
     Q_UNUSED( category );
     return QString::fromUtf8( _( msgid ) );
 }
+inline QString _( const char *msgid, const char *disambiguation )
+{
+    Q_UNUSED(disambiguation);
+    return QString::fromUtf8(_(msgid));
+}
+
 /** END TAG */