I will build the calendar in other langauge (thai) with tikzlibrary. I can change the \pgfcalendarmonthname
but the \pgfcalendarweekdayshortname
, I can't. The following code has errors.
\documentclass[a4paper,12pt]{article}
\usepackage{tikz}
\usetikzlibrary{calendar}
\usepackage{translator}
\begin{document}
% % % % % % % % %%%%%%%%%%%%%%%%%%%% % % % %This is good.
\def\pgfcalendarmonthname#1{%
\translate{\ifcase#1\or JJJ\or FFF\or MMM\or AAA\or
MAY\or JJU\or JJY\or AAU\or SSS\or OOO\or
NNN\or DDD\fi}}
% %%%%%%%%%%%%%%% % % % % % % % % % % % % % %This is errors.
\def\pgfcalendarweekdayshortname#1{%
\translate{\ifcase#1\or SU\or MN\or TU\or WE\or
TH\or FR\or SA\fi}}
% % % % % % % % % % % % % % % % % % % % % % % % % % % % %
\begin{tikzpicture}
\calendar
[dates=2013-09-01 to 2013-09-last,
day list downward,
month label left,
day code={\node[name=\pgfcalendarsuggestedname,
every day]{\pgfcalendarweekdayshortname{\pgfcalendarcurrentweekday}\
\tikzdaytext};},
every month/.append style={anchor=base east,xshift=-2em}];
\end{tikzpicture}
\end{document}