gnucash-htdocs master: Try converting packtpub plug string to use php sprintf

John Ralls jralls at code.gnucash.org
Fri Apr 5 17:43:32 EDT 2019


Updated	 via  https://github.com/Gnucash/gnucash-htdocs/commit/95b52322 (commit)
	from  https://github.com/Gnucash/gnucash-htdocs/commit/2efc8391 (commit)



commit 95b5232295aff208c7e1de2e8a352c0ab1a47d84
Author: John Ralls <jralls at ceridwen.us>
Date:   Fri Apr 5 14:43:22 2019 -0700

    Try converting packtpub plug string to use php sprintf

diff --git a/externals/menu.phtml b/externals/menu.phtml
index 8897da1..92649dc 100644
--- a/externals/menu.phtml
+++ b/externals/menu.phtml
@@ -76,7 +76,9 @@
     <p class="adstext"><?= T_("The GnuCash development team received notice about a new book published by PacktPub, UK:")?></p>
     <p class="adstext"><a href="https://www.packtpub.com/hardware-and-creative/gnucash-24-small-business-accounting-beginners-guide"><?= T_("GnuCash 2.4 Small Business Accounting, by Ashok Ramachandran")?></a>.</p>
     <p class="adstext"><?= T_("This is a Beginner's Guide for managing your accounts.")?></p>
-    <p class="adstext"><?= T_("Our own developer Christian Stimming has been contributing to this book as a reviewer, and we can wholeheartly recommend the outcome of this fruitful collaboration. Feel free to have a look at this book over at <a href=\"https://www.packtpub.com/hardware-and-creative/gnucash-24-small-business-accounting-beginners-guide\">packtpub.com</a>, and, best of all, the publisher has committed to allocate some percentage of the book sales back to the GnuCash project. Have fun with this book!")?></p>
+    <?php
+    echo '<p class="adstext">' . sprintf(T_("Our own developer Christian Stimming has been contributing to this book as a reviewer, and we can wholeheartly recommend the outcome of this fruitful collaboration. Feel free to have a look at this book over at %s , and, best of all, the publisher has committed to allocate some percentage of the book sales back to the GnuCash project. Have fun with this book"), '<a href=\"https://www.packtpub.com/hardware-and-creative/gnucash-24-small-business-accounting-beginners-guide\">packtpub.com</a>') . '</p>';
+    ?>
     
     </div>
   
diff --git a/po/de.po b/po/de.po
index 2e58200..0a75a5b 100644
--- a/po/de.po
+++ b/po/de.po
@@ -1440,14 +1440,13 @@ msgstr ""
 msgid ""
 "Our own developer Christian Stimming has been contributing to this book as a "
 "reviewer, and we can wholeheartly recommend the outcome of this fruitful "
-"collaboration. Feel free to have a look at this book over at <a href="
-"\\\"https://www.packtpub.com/hardware-and-creative/gnucash-24-small-business-accounting-beginners-guide\\\">packtpub.com</a>, and, best of all, the "
+"collaboration. Feel free to have a look at this book over at %s, and, best of all, the "
 "publisher has committed to allocate some percentage of the book sales back "
 "to the GnuCash project. Have fun with this book!"
 msgstr ""
 "Einer unserer Entwickler, Christian Stimming, hat bei diesem Buch als Lektor "
 "mitgewirkt und wir freuen uns über diese fruchtbare Zusammenarbeit. Sie "
-"können einen kleinen Auszug aus diesem Buch anlesen unter <a href=\"https://www.packtpub.com/hardware-and-creative/gnucash-24-small-business-accounting-beginners-guide\">packtpub.com</a>. Der Autor hat zugesagt einen "
+"können einen kleinen Auszug aus diesem Buch anlesen unter %s. Der Autor hat zugesagt einen "
 "kleinen Prozentsatz des Erlöses aus diesem Buch dem <span class=\"gnucash"
 "\">GnuCash</span> Projekt zufließen zu lassen. "
 



Summary of changes:
 externals/menu.phtml | 4 +++-
 po/de.po             | 5 ++---
 2 files changed, 5 insertions(+), 4 deletions(-)



More information about the gnucash-changes mailing list