Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
Minor fix on string localization.
  • Loading branch information
lzcapp committed Feb 25, 2024
1 parent ba662f7 commit 246ece7
Show file tree
Hide file tree
Showing 7 changed files with 851 additions and 31 deletions.
2 changes: 1 addition & 1 deletion FrmMain.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ private void FrmMain_Load(object? sender, EventArgs e) {
}
}

DialogResult result = MessageBox.Show(Strings.Confirm_Import_Kindle_Mate_Database, Strings.Confirm, MessageBoxButtons.YesNo, MessageBoxIcon.Question);
DialogResult result = MessageBox.Show(Strings.Confirm_Import_Kindle_Mate_Database_File, Strings.Confirm, MessageBoxButtons.YesNo, MessageBoxIcon.Question);

// ReSharper disable once SwitchStatementHandlesSomeKnownEnumValuesWithDefault
switch (result) {
Expand Down
3 changes: 3 additions & 0 deletions KindleMate2.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,9 @@
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Strings.Designer.cs</LastGenOutput>
</EmbeddedResource>
<EmbeddedResource Update="Strings.zh-cn.resx">
<DependentUpon>Strings.resx</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Update="Strings.zh-hans.resx">
<DependentUpon>Strings.resx</DependentUpon>
</EmbeddedResource>
Expand Down
4 changes: 2 additions & 2 deletions Strings.Designer.cs

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

6 changes: 3 additions & 3 deletions Strings.en.resx
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@
<data name="Error" xml:space="preserve">
<value>Error</value>
</data>
<data name="Confirm_Import_Kindle_Mate_Database" xml:space="preserve">
<value>Do you need to import Kindle Mate's database file?</value>
</data>
<data name="Confirm_Import_Kindle_Mate_2_Database" xml:space="preserve">
<value>Do you need to import Kindle Mate 2's database file?</value>
</data>
Expand Down Expand Up @@ -302,4 +299,7 @@
<data name="Backup_Successful_Open" xml:space="preserve">
<value>Backup completed! Do you want to open the backup folder?</value>
</data>
<data name="Confirm_Import_Kindle_Mate_Database_File" xml:space="preserve">
<value>Do you need to import Kindle Mate's database file?</value>
</data>
</root>
6 changes: 3 additions & 3 deletions Strings.resx
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,6 @@
<data name="Error" xml:space="preserve">
<value>错误</value>
</data>
<data name="Confirm_Import_Kindle_Mate_Database" xml:space="preserve">
<value>您需要导入Kindle Mate的数据库文件吗?</value>
</data>
<data name="Confirm_Import_Kindle_Mate_2_Database" xml:space="preserve">
<value>您需要导入Kindle Mate2的数据库文件吗?</value>
</data>
Expand Down Expand Up @@ -422,4 +419,7 @@
<data name="Backup_Successful_Open" xml:space="preserve">
<value>备份完成!需要打开备份文件夹吗?</value>
</data>
<data name="Confirm_Import_Kindle_Mate_Database_File" xml:space="preserve">
<value>您需要导入Kindle Mate的数据库文件吗?</value>
</data>
</root>
Loading

0 comments on commit 246ece7

Please sign in to comment.