From 8b63a6b4c1d75933dd914aec0c67a6a7a9454f2b Mon Sep 17 00:00:00 2001 From: Carsten Schmitz Date: Fri, 28 Jul 2006 22:49:19 +0000 Subject: [PATCH] gettext-changes/bugfixes git-svn-id: file:///Users/Shitiz/Downloads/lssvn/source/phpsurveyor@1809 b72ed6b6-b9f8-46b5-92b4-906544132732 --- admin/deactivate.php | 2 +- admin/navigator.php | 2 +- admin/saved.php | 2 +- common.php | 5 ++++- templates/index.html | 0 tmp/index.html | 0 6 files changed, 7 insertions(+), 4 deletions(-) create mode 100644 templates/index.html create mode 100644 tmp/index.html diff --git a/admin/deactivate.php b/admin/deactivate.php index 89f1c8b1cae..dcc38f25f6d 100644 --- a/admin/deactivate.php +++ b/admin/deactivate.php @@ -54,7 +54,7 @@ echo "\t\t\t

"._("When you de-activate a survey all the data entered in the original table will be moved elsewhere, and when you activate the survey again, the table will be empty. You will not be able to access this data using PHPSurveyor any more.")."

\n"; echo "\t\t\t

"._("De-activated survey data can only be accessed by system administrators using a MySQL data access tool like phpmyadmin. If your survey uses tokens, this table will also be renamed and will only be accessible by system administrators.")."

\n"; echo "\t\t\t

"._("Your responses table will be renamed to:")." {$dbprefix}old_{$_GET['sid']}_{$date}

\n"; - echo "\t\t\t

"._("You should export your responses before de-activating. Click \")."

\n"; + echo "\t\t\t

"._("You should export your responses before de-activating. Click \"Cancel\" to return to the main admin screen without de-activating this survey.")."

\n"; echo "\t\t\n"; echo "\t\n"; echo "\t\n"; diff --git a/admin/navigator.php b/admin/navigator.php index c4e5583dab5..12055cea985 100644 --- a/admin/navigator.php +++ b/admin/navigator.php @@ -943,7 +943,7 @@ function assessmentDetails($surveyid) {
- + diff --git a/admin/saved.php b/admin/saved.php index 3c665868807..4c80584b1b1 100644 --- a/admin/saved.php +++ b/admin/saved.php @@ -116,7 +116,7 @@ function showSavedList($surveyid) ".$row['email']." ["._("Delete")."] ["._("Edit")."] diff --git a/common.php b/common.php index 3689726232d..2843f22f24f 100644 --- a/common.php +++ b/common.php @@ -132,11 +132,14 @@ if ($sourcefrom == "admin") { $langdir="$publicurl/locale/".$_SESSION['adminlang']."/help"; - if (!is_dir($langdir)) + $langdirlocal="$rootdir/locale/".$_SESSION['adminlang']."/help"; + + if (!is_dir($langdirlocal)) // is_dir only works on local dirs { $langdir="$publicurl/locale/en/help"; //default to english if there is no matching language dir } } + //SET LOCAL TIME $localtimedate=(strftime("%Y-%m-%d %H:%M", mktime(date("H")+$timeadjust))); diff --git a/templates/index.html b/templates/index.html new file mode 100644 index 00000000000..e69de29bb2d diff --git a/tmp/index.html b/tmp/index.html new file mode 100644 index 00000000000..e69de29bb2d