Files
recycled-ni-neutrino/src/nhttpd/yhttpd_core/ylanguage.h
vanhofen daa5507e80 ylanguage.cpp: add neutrino locale as an additional locale file for yWeb
Origin commit data
------------------
Commit: 5324c57a38
Author: vanhofen <vanhofen@gmx.de>
Date: 2013-11-08 (Fri, 08 Nov 2013)

Origin message was:
------------------
- ylanguage.cpp: add neutrino locale as an additional locale file for yWeb
2013-11-08 15:07:02 +01:00

46 lines
1.0 KiB
C++

//=============================================================================
// YHTTPD
// Language
//=============================================================================
#ifndef __yhttpd_language_h__
#define __yhttpd_language_h__
#include <stdlib.h>
#include <configfile.h>
// yhttpd
#include <yconfig.h>
#include "ytypes_globals.h"
#include "ywebserver.h"
// forward declaration
class CWebserverConnection;
class CLanguage
{
protected:
static CLanguage *instance;
CLanguage(void);
~CLanguage(void);
static CConfigFile *DefaultLanguage;
static CConfigFile *ConfigLanguage;
static CConfigFile *NeutrinoLanguage;
public:
// Instance Handling
static CLanguage *getInstance(void);
static void deleteInstance(void);
// Language
static std::string language;
static std::string language_dir;
void setLanguage(std::string _language);
std::string getLanguage(void) {return language;};
std::string getLanguageDir(void);
std::string getTranslation(std::string id);
};
#endif /* __yttpd_language_h__ */