changed: we do not make a 'base redirect' when the request method is POST

changed: ConfParser -- now we have spaces (only one level)



git-svn-id: svn://ttmath.org/publicrep/winix/trunk@767 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
2011-09-16 22:46:42 +00:00
parent f113e2ef31
commit 60f0e62c23
11 changed files with 546 additions and 307 deletions

View File

@@ -85,16 +85,16 @@ return read;
void Locale::AddLocale(size_t lang)
{
ConfParser::TableSingle::iterator i = loc_parser.table_single.begin();
ConfParser::TableSingle::iterator i = loc_parser.space.table_single.begin();
for( ; i != loc_parser.table_single.end() ; ++i)
for( ; i != loc_parser.space.table_single.end() ; ++i)
loc_tab[lang][i->first] = i->second;
// lists
ConfParser::Table::iterator i2 = loc_parser.table.begin();
ConfParser::Table::iterator i2 = loc_parser.space.table.begin();
for( ; i2 != loc_parser.table.end() ; ++i2)
for( ; i2 != loc_parser.space.table.end() ; ++i2)
loc_tab_multi[lang][i2->first] = i2->second;
}
@@ -132,9 +132,9 @@ bool read = false;
if( loc_parser.Parse(file_name) == ConfParser::ok )
{
read = true;
CreateSubstVector(subst_url, loc_parser.table_single[L"url_original"], loc_parser.table_single[L"url_changeto"]);
CreateSubstVector(subst_smalllet, loc_parser.table_single[L"smallleters"], loc_parser.table_single[L"capitalics"]);
CreateSubstVector(subst_capitallet, loc_parser.table_single[L"capitalics"], loc_parser.table_single[L"smallleters"]);
CreateSubstVector(subst_url, loc_parser.space.table_single[L"url_original"], loc_parser.space.table_single[L"url_changeto"]);
CreateSubstVector(subst_smalllet, loc_parser.space.table_single[L"smallleters"], loc_parser.space.table_single[L"capitalics"]);
CreateSubstVector(subst_capitallet, loc_parser.space.table_single[L"capitalics"], loc_parser.space.table_single[L"smallleters"]);
log << log3 << "Locale: read characters substitution tables from: " << file_name << logend;
}