Skip to content
This repository has been archived by the owner on Aug 13, 2020. It is now read-only.

Commit

Permalink
change: quick hack for automatic new line
Browse files Browse the repository at this point in the history
  • Loading branch information
atoring committed May 16, 2018
1 parent 4d6ed7c commit 69aa5ed
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions lang/make_ja.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,14 @@ def marge_data(data1, data2, skip, index1, index2):
if cnt >= len(data2):
break
if data2[cnt][index1] != "":
strs[d] = data2[cnt][index1]
_d = data2[cnt][index1]
_d = _d.replace("、", ",") # quick hack for automatic new line
strs[d] = _d
elif "{" not in data1[d] and index2>=0 and data2[cnt][index2]!="":
_d = data2[cnt][index2]
_d = _d.replace("</ n>", "\n")
_d = _d.replace("</ N>", "\n")
_d = _d.replace("、", ",") # quick hack for automatic new line
_d = _d.replace("</ n>", "\n") # fix google translation's broken new line
_d = _d.replace("</ N>", "\n") # fix google translation's broken new line
strs[d] = _d
else:
strs[d] = data1[d]
Expand Down

0 comments on commit 69aa5ed

Please sign in to comment.