[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] developer_tools/inc/class.uilangfile.inc.php, 1.10.2.
From: |
nomail |
Subject: |
[Phpgroupware-cvs] developer_tools/inc/class.uilangfile.inc.php, 1.10.2.1.2.9 |
Date: |
Tue, 27 Jul 2004 10:00:10 +0200 |
Update of /developer_tools/inc
Modified Files:
Branch: Version-0_9_16-branch
class.uilangfile.inc.php
date: 2004/07/27 08:00:10; author: Caeies; state: Exp; lines: +16 -13
Log Message:
Solving bug #9047
=====================================================================
Index: developer_tools/inc/class.uilangfile.inc.php
diff -u developer_tools/inc/class.uilangfile.inc.php:1.10.2.1.2.8
developer_tools/inc/class.uilangfile.inc.php:1.10.2.1.2.9
--- developer_tools/inc/class.uilangfile.inc.php:1.10.2.1.2.8 Sun Aug 10
15:01:51 2003
+++ developer_tools/inc/class.uilangfile.inc.php Tue Jul 27 08:00:10 2004
@@ -301,15 +301,15 @@
$this->template->set_var('lang_cancel',lang('Cancel'));
$this->template->set_var('lang_step',lang('Step'));
$help = 'onMouseOver="self.status=\'%s\'; return true;"
onMouseOut="self.status=\'\'; return true;"';
-
$this->template->set_var('cancel_help',sprintf($help,lang('Returns to the
application list, not saved changes get lost !!!')));
-
$this->template->set_var('load_help',sprintf($help,lang('Loads the selected
lang-files, to be modified in the next steps')));
-
$this->template->set_var('update_help',sprintf($help,lang('Saves the
added/changed translations to an internal buffer, to be used in further
steps')));
-
$this->template->set_var('search_help',sprintf($help,lang('Searches the
source-code for phrases not in the actual source-lang-file')));
-
$this->template->set_var('add_help',sprintf($help,lang('Allows you to add a
single phrase')));
-
$this->template->set_var('revert_help',sprintf($help,lang('Clears the internal
buffer, all changes made sofar are lost')));
-
$this->template->set_var('download_help',sprintf($help,lang('Download the
lang-file to be saved in the apps setup-dir')));
-
$this->template->set_var('write_help',sprintf($help,lang('Write the lang-file
to the apps setup-dir')));
-
$this->template->set_var('loaddb_help',sprintf($help,lang('Updates the
translations of both lang-files in your database, so you can verify your work
imediatly')));
+
$this->template->set_var('cancel_help',sprintf($help,addslashes(lang('Returns
to the application list, not saved changes get lost !!!'))));
+
$this->template->set_var('load_help',sprintf($help,addslashes(lang('Loads the
selected lang-files, to be modified in the next steps'))));
+
$this->template->set_var('update_help',sprintf($help,addslashes(lang('Saves the
added/changed translations to an internal buffer, to be used in further
steps'))));
+
$this->template->set_var('search_help',sprintf($help,addslashes(lang('Searches
the source-code for phrases not in the actual source-lang-file'))));
+
$this->template->set_var('add_help',sprintf($help,addslashes(lang('Allows you
to add a single phrase'))));
+
$this->template->set_var('revert_help',sprintf($help,addslashes(lang('Clears
the internal buffer, all changes made sofar are lost'))));
+
$this->template->set_var('download_help',sprintf($help,addslashes(lang('Download
the lang-file to be saved in the apps setup-dir'))));
+
$this->template->set_var('write_help',sprintf($help,addslashes(lang('Write the
lang-file to the apps setup-dir'))));
+
$this->template->set_var('loaddb_help',sprintf($help,addslashes(lang('Updates
the translations of both lang-files in your database, so you can verify your
work imediatly'))));
$languages = $this->bo->list_langs();
@@ -392,7 +392,8 @@
{
if($_mess)
{
- $_mess =
strtolower(trim($this->recode_id($_mess)));
+ // You need to strip the
message ! in case of magic quote ? Caeies. btw English people should never add
this kind of problem ... :)
+ $_mess =
stripslashes(strtolower(trim($this->recode_id($_mess))));
$this->bo->source_langarray[$_mess]['app_name'] = $_app;
$this->bo->target_langarray[$_mess]['app_name'] = $_app;
}
@@ -401,7 +402,8 @@
{
if($_mess && $_cont)
{
- $_mess =
strtolower(trim($this->recode_id($_mess)));
+ // You need to strip the
message ! in case of magic quote ? Caeies. btw English people should never add
this kind of problem ... :)
+ $_mess =
stripslashes(strtolower(trim($this->recode_id($_mess))));
//Known issue: if a message
containing a ] is used as index of array, when the array is posted the index
gets truncated;
$this->bo->target_langarray[$_mess]['message_id'] = $_mess;
//POST method adds slashes
@@ -417,7 +419,8 @@
{
if($_checked == 'on')
{
- $_mess =
strtolower(trim($this->recode_id($_mess)));
+ // You need to strip the
message ! in case of magic quote ? Caeies. btw English people should never add
this kind of problem ... :)
+ $_mess =
stripslashes(strtolower(trim($this->recode_id($_mess))));
unset($this->bo->source_langarray[$_mess]);
unset($this->bo->target_langarray[$_mess]);
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] developer_tools/inc/class.uilangfile.inc.php, 1.10.2.1.2.9,
nomail <=