ebaf4c4
From 1732bc83cb2c949089d98cd9be0e922ac4af4a28 Mon Sep 17 00:00:00 2001
ebaf4c4
From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= <miro@hroncok.cz>
ebaf4c4
Date: Tue, 4 Apr 2017 20:25:58 +0200
ebaf4c4
Subject: [PATCH] Handle 2 argument translation calls generated by Qt 5.7.1
ebaf4c4
ebaf4c4
This fixes a FTBFS error described in https://github.com/openscad/openscad/issues/1872
ebaf4c4
ebaf4c4
Fix from https://github.com/openscad/openscad/commit/4fa5f0340a2b7b031a0b39f7de0ca795d52bb68b
ebaf4c4
---
ebaf4c4
 data.h | 6 ++++++
ebaf4c4
 1 file changed, 6 insertions(+)
ebaf4c4
ebaf4c4
diff --git a/data.h b/data.h
ebaf4c4
index 83fc9ff..e5404f0 100644
ebaf4c4
--- a/data.h
ebaf4c4
+++ b/data.h
ebaf4c4
@@ -23,6 +23,12 @@ inline QString _( const char *msgid, int category )
ebaf4c4
     Q_UNUSED( category );
ebaf4c4
     return QString::fromUtf8( _( msgid ) );
ebaf4c4
 }
ebaf4c4
+inline QString _( const char *msgid, const char *disambiguation )
ebaf4c4
+{
ebaf4c4
+    Q_UNUSED(disambiguation);
ebaf4c4
+    return QString::fromUtf8(_(msgid));
ebaf4c4
+}
ebaf4c4
+
ebaf4c4
 /** END TAG */
ebaf4c4
 
ebaf4c4