Languify components for ShapeEditor

This commit is contained in:
Tim Young 2018-03-01 12:37:23 -06:00
parent 1b3291fcfa
commit 40b8798cbd
2 changed files with 45 additions and 0 deletions

View File

@ -2049,6 +2049,18 @@
<value>Cannot place a tree on top of a tree.</value>
<comment>NB_TreePlacementError = Cannot place a tree on top of a tree.</comment>
</data>
<data name="SE_Fill" xml:space="preserve">
<value>FIll</value>
<comment>SE_Fill = Fill</comment>
</data>
<data name="SE_Height" xml:space="preserve">
<value>Height</value>
<comment>SE_Height = Height</comment>
</data>
<data name="SE_Line" xml:space="preserve">
<value>Line</value>
<comment>SE_Line = Line</comment>
</data>
<data name="SE_MoveToEnd" xml:space="preserve">
<value>Move To End</value>
<comment>SE_MoveToEnd = Move to End</comment>
@ -2057,4 +2069,24 @@
<value>Move To Top</value>
<comment>SE_MoveToTop = Move To Top</comment>
</data>
<data name="SE_Shape" xml:space="preserve">
<value>Shape</value>
<comment>SE_Shape = Shape</comment>
</data>
<data name="SE_Shapes" xml:space="preserve">
<value>Shapes</value>
<comment>SE_Shapes = Shapes</comment>
</data>
<data name="SE_Width" xml:space="preserve">
<value>Width</value>
<comment>SE_Width = Width</comment>
</data>
<data name="SE_X" xml:space="preserve">
<value>X</value>
<comment>SE_X = X</comment>
</data>
<data name="SE_Y" xml:space="preserve">
<value>Y</value>
<comment>SE_Y = Y</comment>
</data>
</root>

View File

@ -60,6 +60,19 @@ namespace EduNetworkBuilder
FillFormItems();
}
private void LanguagifyComponents()
{
NBSettings OurSettings = NB.GetSettings();
lblFill.Text = NB.Translate("SE_Fill", OurSettings);
lblLine.Text = NB.Translate("SE_Line", OurSettings);
lblX.Text = NB.Translate("SE_X", OurSettings);
lblY.Text = NB.Translate("SE_Y", OurSettings);
lblWidth.Text = NB.Translate("SE_Width", OurSettings);
lblHeight.Text = NB.Translate("SE_Height", OurSettings);
lblShape.Text = NB.Translate("SE_Shape", OurSettings);
lblShapes.Text = NB.Translate("SE_Shapes", OurSettings);
}
void FillFormItems()
{
Network myNet = NB.GetNetwork();