Skip to content

Commit

Permalink
Localazation and some UI changes
Browse files Browse the repository at this point in the history
  • Loading branch information
cnbatch committed Jun 25, 2017
1 parent 939edc2 commit fdf06a8
Show file tree
Hide file tree
Showing 10 changed files with 241 additions and 202 deletions.
13 changes: 6 additions & 7 deletions Source/LangCodesHelp.Designer.cs

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

69 changes: 69 additions & 0 deletions Source/LangCodesHelp.resx
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,79 @@
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<data name="dataGridView1.Dock" type="System.Windows.Forms.DockStyle, System.Windows.Forms">
<value>Fill</value>
</data>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="dataGridView1.Location" type="System.Drawing.Point, System.Drawing">
<value>0, 0</value>
</data>
<data name="dataGridView1.Margin" type="System.Windows.Forms.Padding, System.Windows.Forms">
<value>3, 4, 3, 4</value>
</data>
<data name="dataGridView1.Size" type="System.Drawing.Size, System.Drawing">
<value>284, 461</value>
</data>
<assembly alias="mscorlib" name="mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<data name="dataGridView1.TabIndex" type="System.Int32, mscorlib">
<value>0</value>
</data>
<data name="&gt;&gt;dataGridView1.Name" xml:space="preserve">
<value>dataGridView1</value>
</data>
<data name="&gt;&gt;dataGridView1.Type" xml:space="preserve">
<value>System.Windows.Forms.DataGridView, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;dataGridView1.Parent" xml:space="preserve">
<value>$this</value>
</data>
<data name="&gt;&gt;dataGridView1.ZOrder" xml:space="preserve">
<value>0</value>
</data>
<metadata name="LangCodesDS.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>240, 17</value>
</metadata>
<metadata name="aboutEditorFormBindingSource.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<metadata name="$this.Localizable" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<data name="$this.AutoScaleDimensions" type="System.Drawing.SizeF, System.Drawing">
<value>7, 17</value>
</data>
<data name="$this.ClientSize" type="System.Drawing.Size, System.Drawing">
<value>284, 461</value>
</data>
<data name="$this.Font" type="System.Drawing.Font, System.Drawing">
<value>Segoe UI, 10pt</value>
</data>
<data name="$this.Margin" type="System.Windows.Forms.Padding, System.Windows.Forms">
<value>3, 4, 3, 4</value>
</data>
<data name="$this.StartPosition" type="System.Windows.Forms.FormStartPosition, System.Windows.Forms">
<value>CenterParent</value>
</data>
<data name="$this.Text" xml:space="preserve">
<value>LangCodesHelp</value>
</data>
<data name="&gt;&gt;LangCodesDS.Name" xml:space="preserve">
<value>LangCodesDS</value>
</data>
<data name="&gt;&gt;LangCodesDS.Type" xml:space="preserve">
<value>System.Data.DataSet, System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;aboutEditorFormBindingSource.Name" xml:space="preserve">
<value>aboutEditorFormBindingSource</value>
</data>
<data name="&gt;&gt;aboutEditorFormBindingSource.Type" xml:space="preserve">
<value>System.Windows.Forms.BindingSource, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;$this.Name" xml:space="preserve">
<value>LangCodesHelp</value>
</data>
<data name="&gt;&gt;$this.Type" xml:space="preserve">
<value>System.Windows.Forms.Form, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
</root>
28 changes: 6 additions & 22 deletions Source/MainUI.Designer.cs

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

19 changes: 9 additions & 10 deletions Source/MainUI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -108,15 +108,15 @@ private void openPackageFromOpenFileDialog()
{
case "CHS":
case "ZHI":
toolStripStatusLabel2.Text = "未打开任何文件。";
filenameLabel.Text = "未打开任何文件。";
break;
case "CHT":
case "ZHH":
case "ZHM":
toolStripStatusLabel2.Text = "未開啟任何檔案。";
filenameLabel.Text = "未開啟任何檔案。";
break;
default:
toolStripStatusLabel2.Text = "No file is opened.";
filenameLabel.Text = "No file is opened.";
break;
}
pathOpened = false;
Expand All @@ -131,7 +131,7 @@ private void openPackage(string pathToFile)
if (pathToFile != null)
{
stblFilePath = pathToFile;
toolStripStatusLabel2.Text = stblFilePath;
filenameLabel.Text = stblFilePath;
publicPath = stblFilePath;
pathOpened = fileIsOpened = true;
}
Expand Down Expand Up @@ -390,9 +390,6 @@ private void closeAndSavePackage(bool save = true)
SaveSTBLFile(true);
}

fileNameLbl.Text = "";
LanguageLbl.Text = "";

dataGridView1.DataSource = null;
dataGridView1.Columns.Add("Column1", "");
dataGridView1.Columns.Add("Column2", "");
Expand All @@ -402,17 +399,19 @@ private void closeAndSavePackage(bool save = true)
{
case "CHS":
case "ZHI":
toolStripStatusLabel2.Text = "未打开任何文件。";
filenameLabel.Text = "未打开任何文件。";
break;
case "CHT":
case "ZHH":
case "ZHM":
toolStripStatusLabel2.Text = "未開啟任何檔案。";
filenameLabel.Text = "未開啟任何檔案。";
break;
default:
toolStripStatusLabel2.Text = "No file is opened.";
filenameLabel.Text = "No file is opened.";
break;
}

languageLable.Text = string.Empty;
publicPath = string.Empty;
pathOpened = false;
canAlsoSave = false;
Expand Down
Loading

0 comments on commit fdf06a8

Please sign in to comment.