move ImportStrings to i18n

This commit is contained in:
Marco Antonio J. Costa
2026-07-21 18:39:50 -03:00
committed by majcosta
parent 4be9b106f4
commit 738225d2a2
4 changed files with 1 additions and 1 deletions
-1
View File
@@ -8,7 +8,6 @@ set(UtilsSrc
"${CMAKE_CURRENT_SOURCE_DIR}/Encrypted File.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/Event Pump.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/Font Control.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/ImportStrings.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/INIReader.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/KeyMap.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/MapUtility.cpp"
-37
View File
@@ -1,37 +0,0 @@
#include "ImportStrings.h"
#include "LocalizedStrings.h"
#include <vfs/Tools/vfs_tools.h>
#include <vfs/Core/vfs.h>
#include <cmath>
void Loc::ImportStrings()
{
Loc::AssociateWithFile(Loc::AIM_BIOGRAPHY, L"Localization/AimBiographies.xml");
Loc::AssociateWithFile(Loc::AIM_HISTORY, L"Localization/AimHistory.xml");
Loc::AssociateWithFile(Loc::AIM_POLICY, L"Localization/AimPolicy.xml");
Loc::AssociateWithFile(Loc::GAME_STRINGS, L"Localization/GameStrings.xml");
vfs::String bio, add, bio2;
Loc::GetString(Loc::AIM_BIOGRAPHY,L"Bio",L"0",add);
Loc::GetString(Loc::AIM_BIOGRAPHY,L"Add",L"10",bio);
Loc::GetString(Loc::AIM_BIOGRAPHY,L"Bio",23,bio2);
for(int i=0; i<200; ++i)
{
std::wstringstream wss;
for(int exp=2; exp>=0; --exp)
{
int t = (int)std::pow((double)10,(double)exp);
wss << (i % (t*10)) / t;
}
vfs::String s = wss.str() + L".EDT.xml";
vfs::Path filename(L"Localization/Dialogue");
filename += vfs::Path(s);
if(getVFS()->fileExists(filename))
{
Loc::AssociateWithFile(Loc::DIALOGUE,filename,vfs::toString<wchar_t>(i));
}
}
}
-9
View File
@@ -1,9 +0,0 @@
#ifndef _IMPORTSTRINGS_H_
#define _IMPORTSTRINGS_H_
namespace Loc
{
void ImportStrings();
}
#endif // _IMPORTSTRINGS_H_