Skip to content

Commit

Permalink
Fix issue with consistency checker
Browse files Browse the repository at this point in the history
  • Loading branch information
Mc-muffin committed Nov 20, 2024
1 parent 1500e4d commit 1234383
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions TranslationApp/fMain.cs
Original file line number Diff line number Diff line change
Expand Up @@ -425,8 +425,9 @@ private void ShowOtherTranslations()
{
string translation = string.IsNullOrEmpty(tbEnglishText.Text) ? tbJapaneseText.Text : tbEnglishText.Text;
translation = translation.Replace("\r\n", "\n");
List<EntryFound> Entryfound = FindOtherTranslations("All", tbJapaneseText.Text.Replace("\r\n", "\n"), "Japanese", true, false, false);
OtherTranslations = Entryfound.Where(x => x.Entry.JapaneseText == tbJapaneseText.Text && x.Entry.EnglishText != translation).ToList();
string jptext = tbJapaneseText.Text.Replace("\r\n", "\n");
List<EntryFound> Entryfound = FindOtherTranslations("All", jptext, "Japanese", true, false, false);
OtherTranslations = Entryfound.Where(x => x.Entry.JapaneseText.Replace("\r\n", "\n") == jptext && x.Entry.EnglishText.Replace("\r\n", "\n") != translation).ToList();

string cleanedString = tbEnglishText.Text.Replace("\r\n", "").Replace(" ", "");
List<EntryFound> DifferentLineBreak = Entryfound.Where(x => x.Entry.EnglishText != null).
Expand Down

0 comments on commit 1234383

Please sign in to comment.