diff options
author | Jose Medrano <jose.medrano@microsoft.com> | 2019-01-11 11:52:48 +0300 |
---|---|---|
committer | Jose Medrano <jose.medrano@microsoft.com> | 2019-01-11 12:09:59 +0300 |
commit | 93826400d122807839455e960c29083cfe225040 (patch) | |
tree | a219473e89dd6c27275c185a182041e3c62939f1 /main/src/addins/MonoDevelop.HexEditor | |
parent | 0fdd4c57f2b91211e88f6aeeb683d97023862f73 (diff) |
Adds translation feature to Announce text in HexEditor
Diffstat (limited to 'main/src/addins/MonoDevelop.HexEditor')
-rw-r--r-- | main/src/addins/MonoDevelop.HexEditor/Mono.MHex/HexEditor.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/main/src/addins/MonoDevelop.HexEditor/Mono.MHex/HexEditor.cs b/main/src/addins/MonoDevelop.HexEditor/Mono.MHex/HexEditor.cs index 96300aea81..c6bf1290fc 100644 --- a/main/src/addins/MonoDevelop.HexEditor/Mono.MHex/HexEditor.cs +++ b/main/src/addins/MonoDevelop.HexEditor/Mono.MHex/HexEditor.cs @@ -38,6 +38,7 @@ using Mono.MHex.Data; using Mono.MHex.Rendering; using Xwt.Drawing; using MonoDevelop.Components.AtkCocoaHelper; +using MonoDevelop.Core; namespace Mono.MHex { @@ -529,10 +530,9 @@ namespace Mono.MHex try { var character = HexEditorData.Bytes [HexEditorData.Caret.Offset]; var data = Convert.ToString (character, 16); - var message = string.Format ("Selected '{0}' char:'{1}'", data[HexEditorData.Caret.SubPosition], (char)character); + var message = GettextCatalog.GetString ("Selected '{0}' char:'{1}'", data [HexEditorData.Caret.SubPosition], (char)character); hexWidget.Accessible.MakeAccessibilityAnnouncement (message); - } catch (Exception ex) { - + } catch { } } |