<div dir="ltr">Thanks a lot, Alessandro, I didn't know this.<br></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="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 color="#666666" face="Verdana"><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: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: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>
<br><div class="gmail_quote">On 16 May 2018 at 22:02, Alessandro Pasotti <span dir="ltr"><<a href="mailto:apasotti@gmail.com" target="_blank">apasotti@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto"><div dir="auto"><br></div>In qgis3 you must use string search and replace, that is what the qgis2 implementation was doing.<div dir="auto"><br></div></div><br><div class="gmail_quote"><div><div class="h5"><div dir="ltr">On Wed, May 16, 2018, 17:30 Adam Borczyk <<a href="mailto:adam.borczyk@gis-support.pl" target="_blank">adam.borczyk@gis-support.pl</a>> wrote:<br></div></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><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" rel="noreferrer" target="_blank">https://qgis.org/api/2.18/<wbr>classQgsComposition.html#<wbr>ac147dd9e3ee689a7fdfdca58743e7<wbr>be8</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" rel="noreferrer" target="_blank">https://qgis.org/api/<wbr>classQgsLayout.html#<wbr>ad84ff95e98598ed3c29eef973d7b4<wbr>bff</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="m_9041742679625546770m_8782614101189800410gmail_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">------------------------------<wbr>---</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 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" rel="noreferrer" 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></div></div>
______________________________<wbr>_________________<br>
QGIS-Developer mailing list<br>
<a href="mailto:QGIS-Developer@lists.osgeo.org" rel="noreferrer" target="_blank">QGIS-Developer@lists.osgeo.org</a><br>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer noreferrer" target="_blank">https://lists.osgeo.org/<wbr>mailman/listinfo/qgis-<wbr>developer</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer noreferrer" target="_blank">https://lists.osgeo.org/<wbr>mailman/listinfo/qgis-<wbr>developer</a></blockquote></div>
</blockquote></div><br></div>