24
1
mirror of https://github.com/processone/ejabberd.git synced 2024-06-10 21:47:01 +02:00

Fix language string

This commit is contained in:
Badlop 2010-06-21 22:50:29 +02:00
parent ac6ae9e8dd
commit 493d3bc7aa

View File

@ -482,8 +482,8 @@ get_dateweek(Date, Lang) ->
12 -> ?T("December")
end,
case Lang of
"en" -> io_lib:format("~s, ~s ~w, ~w", [Weekday, Month, D, Y]);
"es" -> io_lib:format("~s ~w de ~s de ~w", [Weekday, D, Month, Y]);
<<"en">> -> io_lib:format("~s, ~s ~w, ~w", [Weekday, Month, D, Y]);
<<"es">> -> io_lib:format("~s ~w de ~s de ~w", [Weekday, D, Month, Y]);
_ -> io_lib:format("~s, ~w ~s ~w", [Weekday, D, Month, Y])
end.