Merge pull request #5663 from kanaxx/borderstyle_localize

localize border style
This commit is contained in:
Jaex 2021-06-28 04:11:48 +03:00 committed by GitHub
commit fa76349a05
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 95 additions and 6 deletions

View file

@ -78,7 +78,7 @@ internal static string ActionsCodeMenuEntry_OutputFilePath_File_path_without_ext
"me_extension_", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to abandoned
///able
@ -484,6 +484,51 @@ internal static string ArrowHeadDirection_Start {
}
}
/// <summary>
/// Looks up a localized string similar to Dash.
/// </summary>
internal static string BorderStyle_Dash {
get {
return ResourceManager.GetString("BorderStyle_Dash", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to DashDot.
/// </summary>
internal static string BorderStyle_DashDot {
get {
return ResourceManager.GetString("BorderStyle_DashDot", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to DashDotDot.
/// </summary>
internal static string BorderStyle_DashDotDot {
get {
return ResourceManager.GetString("BorderStyle_DashDotDot", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Dot.
/// </summary>
internal static string BorderStyle_Dot {
get {
return ResourceManager.GetString("BorderStyle_Dot", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Solid.
/// </summary>
internal static string BorderStyle_Solid {
get {
return ResourceManager.GetString("BorderStyle_Solid", resourceCulture);
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>

View file

@ -1198,4 +1198,19 @@
<data name="HotkeyType_InspectWindow" xml:space="preserve">
<value>ウィンドウの調査</value>
</data>
<data name="BorderStyle_Solid" xml:space="preserve">
<value>実線</value>
</data>
<data name="BorderStyle_Dash" xml:space="preserve">
<value>破線</value>
</data>
<data name="BorderStyle_Dot" xml:space="preserve">
<value>点線</value>
</data>
<data name="BorderStyle_DashDot" xml:space="preserve">
<value>一点鎖線</value>
</data>
<data name="BorderStyle_DashDotDot" xml:space="preserve">
<value>二点鎖線</value>
</data>
</root>

View file

@ -1298,4 +1298,19 @@ Would you like to download and install it?</value>
<data name="HotkeyType_InspectWindow_Category" xml:space="preserve">
<value>Tools</value>
</data>
<data name="BorderStyle_Solid" xml:space="preserve">
<value>Solid</value>
</data>
<data name="BorderStyle_Dash" xml:space="preserve">
<value>Dash</value>
</data>
<data name="BorderStyle_Dot" xml:space="preserve">
<value>Dot</value>
</data>
<data name="BorderStyle_DashDot" xml:space="preserve">
<value>DashDot</value>
</data>
<data name="BorderStyle_DashDotDot" xml:space="preserve">
<value>DashDotDot</value>
</data>
</root>

View file

@ -325,7 +325,7 @@ public enum ImageInsertMethod
CanvasExpandRight
}
public enum BorderStyle
public enum BorderStyle // Localized
{
Solid,
Dash,

View file

@ -1374,6 +1374,15 @@ internal static string ShapeManager_ArrowHeadDirection {
}
}
/// <summary>
/// Looks up a localized string similar to Border style:.
/// </summary>
internal static string ShapeManager_BorderStyle {
get {
return ResourceManager.GetString("ShapeManager_BorderStyle", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Center points:.
/// </summary>

View file

@ -313,7 +313,7 @@
<value>すべて削除</value>
</data>
<data name="ShapeManager_CreateContextMenu_Border_size_" xml:space="preserve">
<value>線の太さ:</value>
<value>線の太さ:</value>
</data>
<data name="ShapeManager_CreateToolbar_AnnotateMenu" xml:space="preserve">
<value>注釈メニュー</value>
@ -325,7 +325,7 @@
<value>画像の切り抜き...</value>
</data>
<data name="ShapeManager_CreateContextMenu_Border_color___" xml:space="preserve">
<value>線の色...</value>
<value>線の色...</value>
</data>
<data name="ShapeManager_CreateContextMenu_Show_magnifier" xml:space="preserve">
<value>ルーペを表示</value>
@ -437,4 +437,7 @@
<data name="LockMenu" xml:space="preserve">
<value>ツールバーメニューを固定する</value>
</data>
<data name="ShapeManager_BorderStyle" xml:space="preserve">
<value>線の形式:</value>
</data>
</root>

View file

@ -774,4 +774,7 @@ X: {4} Y: {5}</value>
<data name="ScreenRecordForm_Stop" xml:space="preserve">
<value>Stop</value>
</data>
<data name="ShapeManager_BorderStyle" xml:space="preserve">
<value>Border style:</value>
</data>
</root>

View file

@ -514,8 +514,7 @@ internal void CreateToolbar()
};
tsddbShapeOptions.DropDownItems.Add(tslnudCornerRadius);
// TODO: Translate
tscbBorderStyle = new ToolStripLabeledComboBox("Border style:");
tscbBorderStyle = new ToolStripLabeledComboBox(Resources.ShapeManager_BorderStyle);
tscbBorderStyle.Content.AddRange(Helpers.GetLocalizedEnumDescriptions<BorderStyle>());
tscbBorderStyle.Content.SelectedIndexChanged += (sender, e) =>
{