From c37e18220e6dd785d07793a7d8b48555ff72bce7 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sat, 14 May 2005 22:40:33 +0000 Subject: [PATCH] r139: Renamed some language import files. Changed the export results for phrasetools.php. --- docs/{lang_file_to_db.php => lang_file_import.php} | 2 +- docs/{en.php => lang_file_master.php} | 9 --------- docs/phrasetools.php | 12 ++---------- 3 files changed, 3 insertions(+), 20 deletions(-) rename docs/{lang_file_to_db.php => lang_file_import.php} (93%) rename docs/{en.php => lang_file_master.php} (98%) diff --git a/docs/lang_file_to_db.php b/docs/lang_file_import.php similarity index 93% rename from docs/lang_file_to_db.php rename to docs/lang_file_import.php index b4dc338..7565251 100644 --- a/docs/lang_file_to_db.php +++ b/docs/lang_file_import.php @@ -15,7 +15,7 @@ $sql = " VALUES"; -require('./docs/en.php'); +require('./docs/lang_file_master.php'); foreach ($language AS $varname => $phrase) { diff --git a/docs/en.php b/docs/lang_file_master.php similarity index 98% rename from docs/en.php rename to docs/lang_file_master.php index 8d85696..554ae0f 100755 --- a/docs/en.php +++ b/docs/lang_file_master.php @@ -10,15 +10,6 @@ || ################################################################### || \*=====================================================================*/ -// Language configuration variables -$cfg = array( - 'title' => 'English (US)', - 'languagecode' => 'en', - 'charset' => 'ISO-8859-1', - 'direction' => 'ltr' -); - -// Phrase text $language = array( 'action' => 'Action', 'add_component' => 'Add Component', diff --git a/docs/phrasetools.php b/docs/phrasetools.php index 13b7a2b..5cae4c3 100644 --- a/docs/phrasetools.php +++ b/docs/phrasetools.php @@ -196,15 +196,7 @@ if ($_REQUEST['do'] == 'search') if ($_REQUEST['do'] == 'export') { - $output = "// Language configuration variables -\$cfg = array( - 'title' => 'English (US)', - 'languagecode' => 'en', - 'charset' => 'ISO-8859-1', - 'direction' => 'ltr' -); - -// Phrase text + $output = " \$language = array("; $phrases = $db->query("SELECT * FROM " . TABLE_PREFIX . "phrase ORDER BY varname"); @@ -217,7 +209,7 @@ if ($_REQUEST['do'] == 'export') $output .= implode(',', $phrasebits); $output .= " -);"; +);\n"; $output = $bugsys->sanitize($output); -- 2.43.5