diff -u convert.orig\po2web2py.py convert\po2web2py.py
old
|
new
|
|
40 | 40 | if unit.istranslated() or (includefuzzy and unit.isfuzzy()): |
41 | 41 | mydict[unit.source] = unit.target |
42 | 42 | else: |
43 | | mydict[unit.source] = '*** ' + unit.source |
| 43 | mydict[unit.source] = unit.source |
44 | 44 | |
45 | 45 | str_obj.write('{\n') |
46 | 46 | for source_str in mydict: |
diff -u convert.orig\web2py2po.py convert\web2py2po.py
old
|
new
|
|
43 | 43 | |
44 | 44 | for source_str in mydict.keys(): |
45 | 45 | target_str = mydict[source_str] |
46 | | if target_str.startswith('*** '): |
| 46 | if target_str == source_str: |
| 47 | target_str = '' |
| 48 | elif target_str.startswith('*** '): |
47 | 49 | target_str = '' |
48 | 50 | pounit = self.convertunit(source_str, target_str) |
49 | 51 | self.mypofile.addunit(pounit) |