VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Main
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2018-03-30 11:53:37 (GMT)
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2018-03-30 11:53:37 (GMT)
commitda77d7e2c4c9310ba4236196240504663d9ebb9e (patch)
tree34f49b62b7f4a54f884fa62f204302c67e79babc /src/Main
parent1732ee57d097dbd3f809393a606f29d4df1457cf (diff)
downloadVeraCrypt-da77d7e2c4c9310ba4236196240504663d9ebb9e.zip
VeraCrypt-da77d7e2c4c9310ba4236196240504663d9ebb9e.tar.gz
Simplify format of XML language files to make it easy to integrate in collaborative translation platforms (e.g. Transifex).
Diffstat (limited to 'src/Main')
-rw-r--r--src/Main/LanguageStrings.cpp9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/Main/LanguageStrings.cpp b/src/Main/LanguageStrings.cpp
index 43ac7a1..93f9823 100644
--- a/src/Main/LanguageStrings.cpp
+++ b/src/Main/LanguageStrings.cpp
@@ -40,14 +40,7 @@ namespace VeraCrypt
void LanguageStrings::Init ()
{
- foreach (XmlNode node, XmlParser (Resources::GetLanguageXml()).GetNodes (L"string"))
- {
- wxString text = node.InnerText;
- text.Replace (L"\\n", L"\n");
- Map[StringConverter::ToSingle (wstring (node.Attributes[L"key"]))] = text;
- }
-
- foreach (XmlNode node, XmlParser (Resources::GetLanguageXml()).GetNodes (L"control"))
+ foreach (XmlNode node, XmlParser (Resources::GetLanguageXml()).GetNodes (L"entry"))
{
wxString text = node.InnerText;
text.Replace (L"\\n", L"\n");