mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-30 17:01:08 +02:00
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
46 lines
1.0 KiB
C++
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__ */
|