mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-01 18:01:06 +02:00
yWeb 2.8.a.3 Alpha-Version
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@406 e54a6e83-5905-42d5-8d5c-058d10e6a962
Origin commit data
------------------
Commit: 32c7517141
Author: yjogol <yjogol2@online.de>
Date: 2010-02-24 (Wed, 24 Feb 2010)
This commit is contained in:
44
src/nhttpd/yhttpd_core/ylanguage.h
Normal file
44
src/nhttpd/yhttpd_core/ylanguage.h
Normal file
@@ -0,0 +1,44 @@
|
||||
//=============================================================================
|
||||
// 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;
|
||||
|
||||
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__ */
|
Reference in New Issue
Block a user