Skip to content

Commit

Permalink
Fixed Language Editor bug, add more Japanese strings
Browse files Browse the repository at this point in the history
  • Loading branch information
CatmanFan committed Jan 16, 2025
1 parent fb7e2bf commit b6651de
Show file tree
Hide file tree
Showing 3 changed files with 63 additions and 63 deletions.
Binary file modified FriishProduce/Strings/ja.json
Binary file not shown.
118 changes: 59 additions & 59 deletions FriishProduce/Subforms/LanguageEditor.Designer.cs

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

8 changes: 4 additions & 4 deletions FriishProduce/Subforms/LanguageEditor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -209,10 +209,10 @@ private void Open(byte[] file)
{
foreach (DataGridViewRow row in strings.Rows)
{
string sectionName = section.Key;
string sectionName = row.Cells[0].Value.ToString();
string id = row.Cells[1].Value.ToString();

if (section.Value.ContainsKey(id))
if (section.Value.ContainsKey(id) && sectionName.Contains(section.Key))
row.Cells[3].Value = section.Value[id].Replace("\n", "\r\n");

UpdateCell(row.Cells[3], false);
Expand All @@ -226,10 +226,10 @@ private void Open(byte[] file)
{
foreach (DataGridViewRow row in strings.Rows)
{
string sectionName = section.Key;
string sectionName = row.Cells[0].Value.ToString();
string id = row.Cells[1].Value.ToString();

if (section.Value.ContainsKey(id))
if (section.Value.ContainsKey(id) && sectionName.Contains(section.Key))
row.Cells[3].Value = section.Value[id].Replace("\n", "\r\n");

UpdateCell(row.Cells[3], false);
Expand Down

0 comments on commit b6651de

Please sign in to comment.