From 9761a1de3e92297244a7ff5f0e164dc860d80507 Mon Sep 17 00:00:00 2001 From: Georg Ehrke Date: Sat, 22 Oct 2011 13:14:54 +0200 Subject: translatable error messages --- apps/calendar/js/calendar.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'apps/calendar/js') diff --git a/apps/calendar/js/calendar.js b/apps/calendar/js/calendar.js index a29d6672858..afbb1b28586 100644 --- a/apps/calendar/js/calendar.js +++ b/apps/calendar/js/calendar.js @@ -91,27 +91,27 @@ Calendar={ $.post(url, post, function(data){ if(data.status == "error"){ - var output = "Missing fields:
"; + var output = missing_field + ":
"; if(data.title == "true"){ - output = output + "Title
"; + output = output + missing_field_title + "
"; } if(data.cal == "true"){ - output = output + "Calendar
"; + output = output + missing_field_calendar + "
"; } if(data.from == "true"){ - output = output + "From Date
"; + output = output + missing_field_fromdate + "
"; } if(data.fromtime == "true"){ - output = output + "From Time
"; + output = output + missing_field_fromtime + "
"; } if(data.to == "true"){ - output = output + "To Date
"; + output = output + missing_field_todate + "
"; } if(data.totime == "true"){ - output = output + "To Time
"; + output = output + missing_field_totime + "
"; } if(data.endbeforestart == "true"){ - output = "The event ends before it starts!"; + output = output + missing_field_startsbeforeends + "!
"; } if(data.dberror == "true"){ output = "There was a database fail!"; -- cgit v1.2.3