[geeklog-cvs] geeklog: Moved leftover hard-coded text from admin/sectest.php t...

geeklog-cvs at lists.geeklog.net geeklog-cvs at lists.geeklog.net
Sat Aug 1 07:58:19 EDT 2009


details:   http://project.geeklog.net/cgi-bin/hgweb.cgi/rev/f3dc16b9e325
changeset: 7212:f3dc16b9e325
user:      Dirk Haun <dirk at haun-online.de>
date:      Sat Aug 01 11:20:46 2009 +0200
description:
Moved leftover hard-coded text from admin/sectest.php to the language files

diffstat:

 language/english.php             |  2 +-
 language/english_utf-8.php       |  2 +-
 language/german.php              |  2 +-
 language/german_formal.php       |  2 +-
 language/german_formal_utf-8.php |  2 +-
 language/german_utf-8.php        |  2 +-
 public_html/admin/sectest.php    |  6 ++++--
 public_html/docs/history         |  2 ++
 8 files changed, 12 insertions(+), 8 deletions(-)

diffs (107 lines):

diff -r 45b48a8521db -r f3dc16b9e325 language/english.php
--- a/language/english.php	Thu Jul 30 21:00:35 2009 +0200
+++ b/language/english.php	Sat Aug 01 11:20:46 2009 +0200
@@ -1479,7 +1479,7 @@
     'public_html'   => '"public_html" should never be part of your site\'s URL.  Please read the part about public_html in the %s again and change your setup accordingly before you proceed.',
     'installation'  => 'installation instructions',
     'directory'     => 'directory',
-    'failed_bak'    => 'Failed to create a temporary file in your data directory. Check your directory permissions!',
+    'failed_tmp'    => 'Failed to create a temporary file in your %s directory. Check your directory permissions!',
     'fix_it'        => 'This is a security risk and should be fixed!',
     'reachable'     => 'Your %s is reachable from the web.',
     'not_reachable' => 'Good! Your %s is not reachable from the web.',
diff -r 45b48a8521db -r f3dc16b9e325 language/english_utf-8.php
--- a/language/english_utf-8.php	Thu Jul 30 21:00:35 2009 +0200
+++ b/language/english_utf-8.php	Sat Aug 01 11:20:46 2009 +0200
@@ -1479,7 +1479,7 @@
     'public_html'   => '"public_html" should never be part of your site\'s URL.  Please read the part about public_html in the %s again and change your setup accordingly before you proceed.',
     'installation'  => 'installation instructions',
     'directory'     => 'directory',
-    'failed_bak'    => 'Failed to create a temporary file in your data directory. Check your directory permissions!',
+    'failed_tmp'    => 'Failed to create a temporary file in your %s directory. Check your directory permissions!',
     'fix_it'        => 'This is a security risk and should be fixed!',
     'reachable'     => 'Your %s is reachable from the web.',
     'not_reachable' => 'Good! Your %s is not reachable from the web.',
diff -r 45b48a8521db -r f3dc16b9e325 language/german.php
--- a/language/german.php	Thu Jul 30 21:00:35 2009 +0200
+++ b/language/german.php	Sat Aug 01 11:20:46 2009 +0200
@@ -1475,7 +1475,7 @@
     'public_html' => '"public_html" should never be part of your site\'s URL.  Please read the part about public_html in the %s again and change your setup accordingly before you proceed.',
     'installation' => 'installation instructions',
     'directory' => 'directory',
-    'failed_bak' => 'Failed to create a temporary file in your data directory. Check your directory permissions!',
+    'failed_tmp' => 'Failed to create a temporary file in your %s directory. Check your directory permissions!',
     'fix_it' => 'This is a security risk and should be fixed!',
     'reachable' => 'Your %s is reachable from the web.',
     'not_reachable' => 'Good! Your %s is not reachable from the web.',
diff -r 45b48a8521db -r f3dc16b9e325 language/german_formal.php
--- a/language/german_formal.php	Thu Jul 30 21:00:35 2009 +0200
+++ b/language/german_formal.php	Sat Aug 01 11:20:46 2009 +0200
@@ -1476,7 +1476,7 @@
     'public_html' => '"public_html" should never be part of your site\'s URL.  Please read the part about public_html in the %s again and change your setup accordingly before you proceed.',
     'installation' => 'installation instructions',
     'directory' => 'directory',
-    'failed_bak' => 'Failed to create a temporary file in your data directory. Check your directory permissions!',
+    'failed_tmp' => 'Failed to create a temporary file in your %s directory. Check your directory permissions!',
     'fix_it' => 'This is a security risk and should be fixed!',
     'reachable' => 'Your %s is reachable from the web.',
     'not_reachable' => 'Good! Your %s is not reachable from the web.',
diff -r 45b48a8521db -r f3dc16b9e325 language/german_formal_utf-8.php
--- a/language/german_formal_utf-8.php	Thu Jul 30 21:00:35 2009 +0200
+++ b/language/german_formal_utf-8.php	Sat Aug 01 11:20:46 2009 +0200
@@ -1476,7 +1476,7 @@
     'public_html' => '"public_html" should never be part of your site\'s URL.  Please read the part about public_html in the %s again and change your setup accordingly before you proceed.',
     'installation' => 'installation instructions',
     'directory' => 'directory',
-    'failed_bak' => 'Failed to create a temporary file in your data directory. Check your directory permissions!',
+    'failed_tmp' => 'Failed to create a temporary file in your %s directory. Check your directory permissions!',
     'fix_it' => 'This is a security risk and should be fixed!',
     'reachable' => 'Your %s is reachable from the web.',
     'not_reachable' => 'Good! Your %s is not reachable from the web.',
diff -r 45b48a8521db -r f3dc16b9e325 language/german_utf-8.php
--- a/language/german_utf-8.php	Thu Jul 30 21:00:35 2009 +0200
+++ b/language/german_utf-8.php	Sat Aug 01 11:20:46 2009 +0200
@@ -1475,7 +1475,7 @@
     'public_html' => '"public_html" should never be part of your site\'s URL.  Please read the part about public_html in the %s again and change your setup accordingly before you proceed.',
     'installation' => 'installation instructions',
     'directory' => 'directory',
-    'failed_bak' => 'Failed to create a temporary file in your data directory. Check your directory permissions!',
+    'failed_tmp' => 'Failed to create a temporary file in your %s directory. Check your directory permissions!',
     'fix_it' => 'This is a security risk and should be fixed!',
     'reachable' => 'Your %s is reachable from the web.',
     'not_reachable' => 'Good! Your %s is not reachable from the web.',
diff -r 45b48a8521db -r f3dc16b9e325 public_html/admin/sectest.php
--- a/public_html/admin/sectest.php	Thu Jul 30 21:00:35 2009 +0200
+++ b/public_html/admin/sectest.php	Sat Aug 01 11:20:46 2009 +0200
@@ -335,7 +335,8 @@
                                'backups ' . $LANG_SECTEST['directory']);
             @unlink($_CONF['backup_path'] . 'test.txt');
         } else {
-            $display .= '<li>Failed to create a temporary file in your backups directory. Check your directory permissions!</li>';
+            $display .= '<li>' . sprintf($LANG_SECTEST['failed_tmp'], 'backups')
+                     . '</li>';
         }
     }
 
@@ -343,7 +344,8 @@
         $display .= doTest($url, 'data/test.txt', 'data directory');
         @unlink($_CONF['path_data'] . 'test.txt');
     } else {
-        $display .= '<li>' . $LANG_SECTEST['failed_bak'] . '</li>';
+        $display .= '<li>' . sprintf($LANG_SECTEST['failed_tmp'], 'data')
+                 . '</li>';
     }
 
     $display .= checkDefaultPassword();
diff -r 45b48a8521db -r f3dc16b9e325 public_html/docs/history
--- a/public_html/docs/history	Thu Jul 30 21:00:35 2009 +0200
+++ b/public_html/docs/history	Sat Aug 01 11:20:46 2009 +0200
@@ -3,6 +3,8 @@
 ??? ??, 2009 (1.6.1)
 ------------
 
+- Moved leftover hard-coded text from admin/sectest.php to the language files
+  [Dirk]
 - When creating Pingback excerpts, convert the other site's content to our
   site's character set, when necessary [Dirk]
 - New function COM_getTextContent converts HTML into continuous text. Used for



More information about the geeklog-cvs mailing list