<div dir="ltr"><div>Hi everyone,</div><div><br></div><div>In QGIS 2 there was this handy function to load a Python dict with string mapping into a QgsComposition object, so each string (not only label, also eg. HTML) inside a given .qpt project was substituted accordingly -> <a href="https://qgis.org/api/2.18/classQgsComposition.html#ac147dd9e3ee689a7fdfdca58743e7be8">https://qgis.org/api/2.18/classQgsComposition.html#ac147dd9e3ee689a7fdfdca58743e7be8</a></div><div><br></div><div>I know Composition stuff was moved to QgsLayout in Q 3. In the documentation I found only this one: <a href="https://qgis.org/api/classQgsLayout.html#ad84ff95e98598ed3c29eef973d7b4bff">https://qgis.org/api/classQgsLayout.html#ad84ff95e98598ed3c29eef973d7b4bff</a> but it doesn't seem to support the substitution map. What is the way to substitute string in Q 3?<br></div><div><br></div><div>Best regards<br></div><div><div><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><p dir="ltr" style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="vertical-align:baseline"><b><b><font face="Verdana" color="#666666"><span style="font-size:11pt;white-space:pre-wrap">
Adam Borczyk</span></font></b></b></span></p><b style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255)"><p dir="ltr" style="font-weight:normal;line-height:1.38;margin-top:0pt;margin-bottom:0pt"><b style="font-weight:normal"><span style="font-size:10pt;font-family:Verdana;color:rgb(102,102,102);background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap">---------------------------------</span></b></p><div dir="ltr" style="font-weight:normal;margin-left:0pt"><table style="border:medium none;border-collapse:collapse"><colgroup><col width="85"><col width="515"></colgroup><tbody><tr style="height:0pt"><td style="font-family:arial,sans-serif;margin:0px;vertical-align:top;padding:5pt"><img src="https://lh4.googleusercontent.com/yca9ivhb3UYddsWYT-xM3D4m_2gEmiUaKo65N-NWgzN7yY2MdsCAn5cTFTB9wphc05Nv5oDLHRnKU8l1FFbrI87mb_e1URHDK6kY_3NQWu1av4Nk-haZfPMnbotTXrWCm5gKcxhE" style="border: medium none;" width="64" height="66"></td><td style="font-family:arial,sans-serif;margin:0px;vertical-align:top;padding:5pt"><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:9pt;font-family:Verdana;color:rgb(102,102,102);background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap">GIS Support Sp. z o.o.</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:9pt;font-family:Verdana;color:rgb(102,102,102);background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap"><a href="https://maps.google.com/?q=Dobrza%C5%84skiego+3,+Lublin+20-262&entry=gmail&source=g" target="_blank">DobrzaƄskiego 3, Lublin 20-262</a></span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:9pt;font-family:Verdana;color:rgb(102,102,102);background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap">tel. +48 81 451 14 90, NIP: 9462641761</span></p></td></tr></tbody></table></div></b></div></div></div></div></div></div></div></div></div></div></div></div></div>
</div></div>