Wtx ~ Wt Extension Library
WtxLib
Calendar.cpp
1 
2 #include <string>
3 #include <vector>
4 
5 #include <Wt/WString.h>
6 
7 #include "Calendar.h"
8 
9 std::vector<std::string> g_daynames;
10 
11 const std::vector<std::string> & Wtx::Web::Calendar::daynames()
12 {
13  if( g_daynames.size() == 0 )
14  {
15  g_daynames.push_back( Wt::WString::tr("Wtx.Calendar.dayname.sun").toUTF8() );
16  g_daynames.push_back( Wt::WString::tr("Wtx.Calendar.dayname.mon").toUTF8() );
17  g_daynames.push_back( Wt::WString::tr("Wtx.Calendar.dayname.tue").toUTF8() );
18  g_daynames.push_back( Wt::WString::tr("Wtx.Calendar.dayname.wed").toUTF8() );
19  g_daynames.push_back( Wt::WString::tr("Wtx.Calendar.dayname.thu").toUTF8() );
20  g_daynames.push_back( Wt::WString::tr("Wtx.Calendar.dayname.fri").toUTF8() );
21  g_daynames.push_back( Wt::WString::tr("Wtx.Calendar.dayname.sat").toUTF8() );
22  }
23 
24  return g_daynames;
25 }
26 
const std::vector< std::string > & daynames()
Long Day Names.
Definition: Calendar.cpp:11