changed: rename cmslu to winix
changed: html templates are a part of winix now and the user can provide special html templates for its site added: locales added: html templates are using HtmlFilter now (locales) changed: now we have html templates for each language git-svn-id: svn://ttmath.org/publicrep/winix/trunk@560 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
46
templates/localefilter.h
Executable file
46
templates/localefilter.h
Executable file
@@ -0,0 +1,46 @@
|
||||
/*
|
||||
* This file is a part of CMSLU -- Content Management System like Unix
|
||||
* and is not publicly distributed
|
||||
*
|
||||
* Copyright (c) 2010, Tomasz Sowa
|
||||
* All rights reserved.
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef headerfilecmslutemplateslocalefilter
|
||||
#define headerfilecmslutemplateslocalefilter
|
||||
|
||||
|
||||
#include "../core/locale.h"
|
||||
#include "ezc.h"
|
||||
|
||||
|
||||
|
||||
class LocaleFilter
|
||||
{
|
||||
public:
|
||||
|
||||
LocaleFilter();
|
||||
void Filter(Ezc::Pattern & pattern, const Locale & locale);
|
||||
|
||||
private:
|
||||
void ReadKey();
|
||||
std::string & FilterValue(const std::string & in);
|
||||
void FilterText(Ezc::Pattern::Item & item);
|
||||
void Parse(std::string & str);
|
||||
|
||||
char open_mark; // default '{'
|
||||
char closing_mark; // default '}'
|
||||
|
||||
const Locale * plocale;
|
||||
std::string res;
|
||||
std::string key;
|
||||
std::string value;
|
||||
const char * pchar;
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
#endif
|
Reference in New Issue
Block a user