diff options
| author | Max Kremmel <xing@synapse.plus.com> | 2006-12-25 15:23:03 +0000 |
|---|---|---|
| committer | Max Kremmel <xing@synapse.plus.com> | 2006-12-25 15:23:03 +0000 |
| commit | 3f270609fa572e034a7117eb88a55c5960c6a6a8 (patch) | |
| tree | bb98f4942a89328a395bc19dd220cd60a2f43b5a /edit_languages.php | |
| parent | 8dbefdc064e3ed8c2349ca06c903bfa90ad80cf5 (diff) | |
| download | languages-3f270609fa572e034a7117eb88a55c5960c6a6a8.tar.gz languages-3f270609fa572e034a7117eb88a55c5960c6a6a8.tar.bz2 languages-3f270609fa572e034a7117eb88a55c5960c6a6a8.zip | |
some modifications to tr behaviour. extensive documentation for changes included
Diffstat (limited to 'edit_languages.php')
| -rw-r--r-- | edit_languages.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/edit_languages.php b/edit_languages.php index 952c4c9..ba2f5c2 100644 --- a/edit_languages.php +++ b/edit_languages.php @@ -2,7 +2,7 @@ /** * @package languages * @subpackage functions - * @version $Header: /cvsroot/bitweaver/_bit_languages/edit_languages.php,v 1.9 2006/12/23 09:05:46 squareing Exp $ + * @version $Header: /cvsroot/bitweaver/_bit_languages/edit_languages.php,v 1.10 2006/12/25 15:23:03 squareing Exp $ * * Copyright (c) 2005 bitweaver.org * Copyright (c) 2004-2005, Christian Fowler, et. al. @@ -108,7 +108,11 @@ if( !empty( $_REQUEST['clear_cache'] ) ) { $saveSuccess = NULL; foreach( $_REQUEST['edit_trans'] as $sourceHash => $string ) { if( $string != $gBitLanguage->mStrings[$editLang][$sourceHash]['trans'] ) { - $gBitLanguage->storeTranslationString( $editLang, $string, $sourceHash ); + // we need to remove the $_REQUEST slashes here to avoid stuff like: + // {$gBitSystem->getConfig(\'stuff\')} in the translated strings - + // it will kill the site since smarty won't be able to interpret + // the template anymore --xing + $gBitLanguage->storeTranslationString( $editLang, stripslashes( $string ), $sourceHash ); // update string in template as well $tranStrings[$sourceHash]['trans'] = $string; // this has to be the source, otherwise the translated string will enter the db and be recognised as a used master |
