gnucash-htdocs master: Fix typos

John Ralls jralls at code.gnucash.org
Fri Mar 31 23:50:02 EDT 2023


Updated	 via  https://github.com/Gnucash/gnucash-htdocs/commit/87f8dc1f (commit)
	from  https://github.com/Gnucash/gnucash-htdocs/commit/cd0f1892 (commit)



commit 87f8dc1f7125488287c15e9462823707d1580dfc
Author: John Ralls <jralls at ceridwen.us>
Date:   Fri Mar 31 20:31:21 2023 -0700

    Fix typos

diff --git a/externals/gettext.php b/externals/gettext.php
index 4c937ea..5d61269 100644
--- a/externals/gettext.php
+++ b/externals/gettext.php
@@ -160,7 +160,7 @@ class gettext_reader {
       /* read all strings in the cache */
       for ($i = 0; $i < $this->total; $i++) {
           $offset = $i * 2 + 2;
-          if (!($this && $this->table_oritinals &&
+          if (!($this && $this->table_originals &&
                 $this->table_originals[$offset])) {
               continue;
           }
diff --git a/lang.php b/lang.php
index 8d4896d..3afdc92 100644
--- a/lang.php
+++ b/lang.php
@@ -66,7 +66,7 @@ if ($locale == "") {
     {
         # tolower() => remove space => '-' -> '_'
         # "fr-ch;q=0.3, en, zh-cn;q=0.7" => "fr_ch;q=0.3,en,zh_cn;q=0.7"
-        $accept_language = filter_input(INPUT_SERVER, 'HTTP_ACCEPT_LANGUAGE', FILTER_SANITZE_STRING);
+        $accept_language = filter_input(INPUT_SERVER, 'HTTP_ACCEPT_LANGUAGE', FILTER_SANITIZE_STRING);
         $languages = str_replace('-','_', str_replace(' ', '', strtolower($accept_language)));
         $languages = explode(",", $languages);
         foreach ($languages as $item)



Summary of changes:
 externals/gettext.php | 2 +-
 lang.php              | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)



More information about the gnucash-changes mailing list