From e761a6de35d48cab3698d9baf0bc1b08314a9204 Mon Sep 17 00:00:00 2001 From: Normann Lou Date: Mon, 5 Nov 2007 23:54:20 +0000 Subject: [PATCH] add condition of assigning $lang['zh_CN']. ie. if it is not set yet. git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@44301 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- lang/zh_CN.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lang/zh_CN.php b/lang/zh_CN.php index 9a4d5c75d..f11fb1abf 100644 --- a/lang/zh_CN.php +++ b/lang/zh_CN.php @@ -4,7 +4,7 @@ i18n::include_locale_file('sapphire', 'en_US'); global $lang; -$lang['zh_CN'] = $lang['en_US']; +if(!isset($lang['zh_CN'])) $lang['zh_CN'] = $lang['en_US']; $lang['zh_CN']['ComplexTableField.ss']['DELETEROW'] = '删除此行'; $lang['zh_CN']['ComplexTableField.ss']['DELETE'] = '删除';