From 40b8798cbd1a05e73f619ee74c35549997161f9b Mon Sep 17 00:00:00 2001 From: Tim Young Date: Thu, 1 Mar 2018 12:37:23 -0600 Subject: [PATCH] Languify components for ShapeEditor --- .../Resources/languages/edustrings.resx | 32 +++++++++++++++++++ EduNetworkBuilder/ShapeEditor.cs | 13 ++++++++ 2 files changed, 45 insertions(+) diff --git a/EduNetworkBuilder/Resources/languages/edustrings.resx b/EduNetworkBuilder/Resources/languages/edustrings.resx index 2e6f256..8cc51b3 100644 --- a/EduNetworkBuilder/Resources/languages/edustrings.resx +++ b/EduNetworkBuilder/Resources/languages/edustrings.resx @@ -2049,6 +2049,18 @@ Cannot place a tree on top of a tree. NB_TreePlacementError = Cannot place a tree on top of a tree. + + FIll + SE_Fill = Fill + + + Height + SE_Height = Height + + + Line + SE_Line = Line + Move To End SE_MoveToEnd = Move to End @@ -2057,4 +2069,24 @@ Move To Top SE_MoveToTop = Move To Top + + Shape + SE_Shape = Shape + + + Shapes + SE_Shapes = Shapes + + + Width + SE_Width = Width + + + X + SE_X = X + + + Y + SE_Y = Y + \ No newline at end of file diff --git a/EduNetworkBuilder/ShapeEditor.cs b/EduNetworkBuilder/ShapeEditor.cs index 172aa46..4767271 100644 --- a/EduNetworkBuilder/ShapeEditor.cs +++ b/EduNetworkBuilder/ShapeEditor.cs @@ -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();