VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Main/LanguageStrings.cpp
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2021-08-15 00:51:06 +0200
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2021-08-15 01:07:17 +0200
commit8ae5a715d66dcbc598017f262089165b762f42c5 (patch)
treed1067a8e36e94f246e494677e04ebebaa175febe /src/Main/LanguageStrings.cpp
parent33baca72616d7d78e7a31519ea608a8f493842d6 (diff)
downloadVeraCrypt-8ae5a715d66dcbc598017f262089165b762f42c5.tar.gz
VeraCrypt-8ae5a715d66dcbc598017f262089165b762f42c5.zip
MacOSX: First native Apple M1 support
Diffstat (limited to 'src/Main/LanguageStrings.cpp')
-rw-r--r--src/Main/LanguageStrings.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/Main/LanguageStrings.cpp b/src/Main/LanguageStrings.cpp
index 33aaf6a9..71914ec7 100644
--- a/src/Main/LanguageStrings.cpp
+++ b/src/Main/LanguageStrings.cpp
@@ -29,6 +29,9 @@ namespace VeraCrypt
{
if (Map.count (key) > 0)
return wxString (Map.find (key)->second);
+ // return "VeraCrypt" as it is
+ if (key == "VeraCrypt")
+ return L"VeraCrypt";
return wxString (L"?") + StringConverter::ToWide (key) + L"?";
}
@@ -40,7 +43,6 @@ namespace VeraCrypt
void LanguageStrings::Init ()
{
-#ifdef TC_LINUX
static byte LanguageXml[] =
{
# include "Common/Language.xml.h"
@@ -53,7 +55,7 @@ namespace VeraCrypt
text.Replace (L"\\n", L"\n");
Map[StringConverter::ToSingle (wstring (node.Attributes[L"key"]))] = text;
}
-#endif
+
foreach (XmlNode node, XmlParser (Resources::GetLanguageXml()).GetNodes (L"entry"))
{
wxString text = node.InnerText;