From: Philip Tzou Date: Mon, 1 Feb 2010 20:39:17 +0000 (+0000) Subject: Fix a bug found in Makefile.py. X-Git-Tag: 1.31.0-rc.0~37985 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/journal.php?a=commitdiff_plain;h=e0fd27a6a37e242e2838c3fa7b712c81ed1c2f26;p=lhc%2Fweb%2Fwiklou.git Fix a bug found in Makefile.py. --- diff --git a/includes/ZhConversion.php b/includes/ZhConversion.php index 9b6fc36fb6..e559b6cb13 100644 --- a/includes/ZhConversion.php +++ b/includes/ZhConversion.php @@ -2745,7 +2745,6 @@ $zh2Hant = array( '𫛢' => '鸋', '𫛶' => '鶒', '𫛸' => '鶗', -'' => '', '0多只' => '0多隻', '0天后' => '0天後', '0只' => '0隻', @@ -18021,4 +18020,4 @@ $zh2SG = array( '笨豬跳' => '绑紧跳', '蹦极跳' => '绑紧跳', '笑星' => '谐星', -); \ No newline at end of file +); diff --git a/includes/zhtable/Makefile.py b/includes/zhtable/Makefile.py index ea78fbd060..26e229df69 100644 --- a/includes/zhtable/Makefile.py +++ b/includes/zhtable/Makefile.py @@ -255,14 +255,14 @@ def CustomRules( dest ): return ret def GetPHPArray( table ): - lines = ['\'%s\' => \'%s\',' % (f, t) for (f, t) in table] + lines = ['\'%s\' => \'%s\',' % (f, t) for (f, t) in table if f and t] #lines = ['"%s"=>"%s",' % (f, t) for (f, t) in table] return '\n'.join(lines) def RemoveSameChar( src_table ): dst_table = {} for f, t in src_table.items(): - if not f == t: + if f != t: dst_table[f] = t return dst_table