dfhack/library/include/modules/Translation.h

36 lines
832 B
C

2010-04-06 17:17:03 -06:00
#ifndef CL_MOD_TRANSLATION
#define CL_MOD_TRANSLATION
2010-04-06 09:11:58 -06:00
/*
2010-04-06 14:47:50 -06:00
* DF translation tables and name translation
2010-04-06 09:11:58 -06:00
*/
2010-05-25 22:48:23 -06:00
#include "dfhack/DFExport.h"
2010-04-06 09:11:58 -06:00
namespace DFHack
{
2010-05-23 15:06:10 -06:00
class DFContextPrivate;
2010-04-06 09:11:58 -06:00
typedef std::vector< std::vector<std::string> > DFDict;
typedef struct
{
DFDict translations;
DFDict foreign_languages;
} Dicts;
class DFHACK_EXPORT Translation
{
public:
2010-05-23 15:06:10 -06:00
Translation(DFContextPrivate * d);
2010-04-06 09:11:58 -06:00
~Translation();
bool Start();
bool Finish();
2010-04-06 14:47:50 -06:00
2010-04-06 09:11:58 -06:00
// Get pointer to the two dictionary structures
Dicts * getDicts();
// translate a name using the loaded dictionaries
std::string TranslateName(const DFHack::t_name& name, bool inEnglish = true);
private:
struct Private;
Private *d;
};
}
#endif