gnucash-htdocs master: I18N: more "printf(T_(…),…)" in 4.0 texts for less translation work

Frank H.Ellenberger fell at code.gnucash.org
Sun Jul 5 21:53:01 EDT 2020


Updated	 via  https://github.com/Gnucash/gnucash-htdocs/commit/7beb1033 (commit)
	from  https://github.com/Gnucash/gnucash-htdocs/commit/b606426f (commit)



commit 7beb1033d0ec94b2ea77b70b9bfbaa5f0d2da21d
Author: Frank H. Ellenberger <frank.h.ellenberger at gmail.com>
Date:   Sun Jul 5 04:47:02 2020 +0200

    I18N: more "printf(T_(…),…)" in 4.0 texts for less translation work

diff --git a/index.phtml b/index.phtml
index 4602364..df93387 100644
--- a/index.phtml
+++ b/index.phtml
@@ -30,9 +30,10 @@
       </div>
 
       <div style="float:left;">
-        <p><?php printf (T_("Version %s is the last version for Windows 7 and MacOS 10.12 and earlier."), "<a href=\"download.phtml#previous\">".$last_win7_version."</a>");?></p>
+        <p><?php printf (T_("Version %s is the last version for %s and %s and earlier."),
+                         "<a href=\"download.phtml#previous\">".$last_win7_version."</a>", "Windows 7", "MacOS 10.12");?></p>
         <p><?php printf (T_("Version %s is the last version for Windows XP/Vista and MacOS X 10.8 and earlier, and so the last version that will run on PowerPC Macs."),
-        		"<a href=\"download.phtml#historical\">".$last_xp_vista_version."</a>");?></p>
+                         "<a href=\"download.phtml#historical\">".$last_xp_vista_version."</a>");?></p>
       </div>
     </div>
 
@@ -66,8 +67,9 @@
     <a href="<?=$home?>/features.phtml"><?php echo T_("<b>Discover more...</b>");?></a>
   </div> <!-- mainfeature -->
   <div id="newfeatures">
-      <h1><?php echo T_("GnuCash 4.0 Released"); ?></h1>
-      <p><?php echo T_("We've released GnuCash 4.0 with many bugfixes and improvements including some <a href=\"" . $home . "/new_features-4.0.phtml\">great new features!</a>");?></p>
+      <h1><?php printf (T_("GnuCash %s Released"), "4.0"); ?></h1>
+      <p><?php printf (T_("We've released GnuCash %s with many bugfixes and improvements including some <a href=\"%s\">great new features!</a>"),
+      		           "4.0", $home."/new_features-4.0.phtml");?></p>
   </div> <!-- newfeatures -->
 
 
diff --git a/new_features-4.0.phtml b/new_features-4.0.phtml
index 4430e2b..3801c9f 100644
--- a/new_features-4.0.phtml
+++ b/new_features-4.0.phtml
@@ -7,7 +7,7 @@ include("$top_dir/externals/menu.phtml");
 ?>
 
 <div id="content">
-    <h1><?php echo T_("What's New in GnuCash 4.0");?></h1>
+    <h1><?php printf (T_("What's New in GnuCash %s"),"4.0");?></h1>
 
     <div class="featurecontainer">
         <div class="featureborder">
@@ -90,7 +90,7 @@ include("$top_dir/externals/menu.phtml");
             <li><?php echo T_("The OFX file importer can now import more than one file at a time.");?></li>
             <li><?php echo T_("OFX imports having balance information will now offer to immediately reconcile, passing the balance information in the file to the reconcile info.");?></li>
             <li><?php echo T_("The import transaction matcher window column headings are changed from R to C and from U+R to U+C, reflecting that the matcher marks transactions cleared but doesn't reconcile them.");?></li>
-            <li<?php echo T_(">Account matcher will decline to match accounts with a different commodity from the imported split if the import information includes the commodity.");?></li>
+            <li><?php echo T_("Account matcher will decline to match accounts with a different commodity from the imported split if the import information includes the commodity.");?></li>
             <li><?php echo T_("Ellipsize the Description and Memo fields in the account matcher.");?></li>
         </ul>
     </div>
@@ -118,7 +118,7 @@ include("$top_dir/externals/menu.phtml");
             <h2 class="featuretitle"><?php echo T_("Compatibility");?></h2>
         </div>
         <ul>
-            <li><?php echo T_("GnuCash 4.x will not migrate old gconf settings from GnuCash 2.4.x.");?></li>
+            <li><?php echo T_("GnuCash 4.x and later will no longer migrate old gconf settings from GnuCash 2.4.x.");?></li>
         </ul>
     </div>
 
@@ -131,5 +131,5 @@ include("$top_dir/externals/menu.phtml");
             <li><?php echo T_("Python bindings are now localized and their strings available for translation.");?></li>
         </ul>
     </div>
-    <p>For a complete list of new features and API changes see the <a href="<?=$home?>/news.phtml#n-200628-4.0.news">Release Notes</a></p>
+    <p><?php printf (T_("For a complete list of new features and API changes see the %s."), printf ("<a href=\"<?=$home?>/news.phtml#n-200628-4.0.news\">%s</a>", T_("Release Notes")));?></p>
 </div>



Summary of changes:
 index.phtml            | 10 ++++++----
 new_features-4.0.phtml |  8 ++++----
 2 files changed, 10 insertions(+), 8 deletions(-)



More information about the gnucash-changes mailing list