Skip to content

Commit

Permalink
Fix translate bug + update version number to 1.8
Browse files Browse the repository at this point in the history
  • Loading branch information
niksedk committed Aug 11, 2019
1 parent a754488 commit ff3c114
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/XmlContentTranslator/Main.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/XmlContentTranslator/Translator/GoogleTranslator1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ public List<string> Translate(string sourceLanguage, string targetLanguage, List
if (c == '"' && result[i - 1] != '\\')
{
count++;
if (count % 2 == 1 && level > 2) // even numbers are original text, level > 3 is translation
if (count % 2 == 1 && level > 2 && level < 5) // even numbers are original text, level 3 is translation
sbAll.Append(" " + sb);
i++;
break;
Expand Down

0 comments on commit ff3c114

Please sign in to comment.