|
|
@ -1,7 +1,8 @@
|
|
|
|
#include "translation.hpp"
|
|
|
|
#include "translation.hpp"
|
|
|
|
#include <components/misc/stringops.hpp>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#include <fstream>
|
|
|
|
#include <boost/filesystem/fstream.hpp>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#include <components/misc/stringops.hpp>
|
|
|
|
|
|
|
|
|
|
|
|
namespace Translation
|
|
|
|
namespace Translation
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -28,9 +29,8 @@ namespace Translation
|
|
|
|
|
|
|
|
|
|
|
|
if (dataFileCollections.getCollection (extension).doesExist (fileName))
|
|
|
|
if (dataFileCollections.getCollection (extension).doesExist (fileName))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
std::string path = dataFileCollections.getCollection (extension).getPath (fileName).string();
|
|
|
|
boost::filesystem::ifstream stream (
|
|
|
|
|
|
|
|
dataFileCollections.getCollection (extension).getPath (fileName));
|
|
|
|
std::ifstream stream (path.c_str());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!stream.is_open())
|
|
|
|
if (!stream.is_open())
|
|
|
|
throw std::runtime_error ("failed to open translation file: " + fileName);
|
|
|
|
throw std::runtime_error ("failed to open translation file: " + fileName);
|
|
|
|