';
$days = array(
@@ -227,6 +257,17 @@
get_string('thursday', 'calendar'), get_string('friday', 'calendar'),
get_string('saturday', 'calendar'));
$values['startwday'] = $days[$values['startwday']];
+ switch($values['timeformat']) {
+ case '':
+ $values['timeformat'] = get_string('default', 'calendar');
+ break;
+ case CALENDAR_TF_12:
+ $values['timeformat'] = get_string('timeformat_12', 'calendar');
+ break;
+ case CALENDAR_TF_24:
+ $values['timeformat'] = get_string('timeformat_24', 'calendar');
+ break;
+ }
// OK, display them
foreach($prefs as $name => $description) {
diff --git a/lang/el/calendar.php b/lang/el/calendar.php
index 40caeb2532f..fb1ede3cb1e 100644
--- a/lang/el/calendar.php
+++ b/lang/el/calendar.php
@@ -33,6 +33,7 @@ $string['expired'] = '
$string['explain_lookahead'] = 'Ο αριθμός αυτός καθορίζει το πόσες μέρες στο μέλλον (το πολύ) πρέπει να ξεκινά κάποιο γεγονός για να ειδοποιηθείτε ότι είναι επικείμενο. Γεγονότα που ξεκινούν αργότερα στο μέλλον δεν θα εμφανίζονται ως επικείμενα. Προσέξτε ότι δεν είναι εγγυημένο ότι θα εμφανιστούν όλα τα γεγονότα στο χρονικό αυτό διάστημα, και αν είναι πάρα πολλά (περισσότερα από την προτίμησή σας \"Επικείμενα γεγονότα\") τότε τα πιο μελλοντικά δεν θα εμφανιστούν.';
$string['explain_maxevents'] = 'Ο αριθμός αυτός καθορίζει το μέγιστο αριθμό από επικείμενα γεγονότα που θα επιτρέπεται να εμφανίζεται κάθε φορά. Αν επιλέξετε πάρα πολλά, μπορεί να καταλαμβάνουν πολύ χώρο στην οθόνη.';
$string['explain_startwday'] = 'Η πρώτη μέρα της εβδομάδας καθορίζει από το ποιά μέρα θα ξεκινάει κάθε εβδομάδα οπουδήποτε βλέπετε μηνιαίο ημερολόγιο. Χρησιμοποιήστε την για να προσαρμόσετε την εμφάνιση του ημερολογίου στις προτιμήσεις σας.';
+$string['explain_timeformat'] = 'Εδώ μπορείτε να επιλέξετε τη μορφή με την οποία θα εμφανίζονται οι ώρες στο ημερολόγιο. Οι επιλογές για 12ωρη και 24ωρη μορφή εμφανίζουν όλες τις ώρες στη μορφή αυτή. Με την επιλογή \"εξ\' ορισμού\" θα χρησιμοποιείται αυτόματα η μορφή απεικόνισης που έχει οριστεί για τη γλώσσα στην οποία βλέπετε τη σελίδα.';
$string['globalevents'] = 'Γεγονότα συστήματος';
$string['groupevents'] = 'Ομαδικά γεγονότα';
$string['hidden'] = 'δεν φαίνονται';
@@ -44,10 +45,13 @@ $string['oneevent'] = '1
$string['pref_lookahead'] = 'Μέρες στο μέλλον';
$string['pref_maxevents'] = 'Επικείμενα γεγονότα';
$string['pref_startwday'] = 'Πρώτη μέρα εβδομάδας';
+$string['pref_timeformat'] = 'Μορφή εμφάνισης ώρας';
$string['preferences'] = 'Προτιμήσεις';
$string['preferences_available'] = 'Διαθέσιμες προσωπικές προτιμήσεις';
$string['shown'] = 'φαίνονται';
$string['spanningevents'] = 'Γεγονότα σε εξέλιξη';
+$string['timeformat_12'] = '12ωρη (πμ/μμ)';
+$string['timeformat_24'] = '24ωρη';
$string['today'] = 'Σήμερα';
$string['tomorrow'] = 'Αύριο';
$string['tt_deleteevent'] = 'Διαγραφή γεγονότος';
diff --git a/lang/en/calendar.php b/lang/en/calendar.php
index 8fa8f865a6b..83d4adee40f 100644
--- a/lang/en/calendar.php
+++ b/lang/en/calendar.php
@@ -33,6 +33,7 @@ $string['expired'] = 'Expired';
$string['explain_lookahead'] = 'This preference sets the (maximum) number of days in the future that an event has to start in in order to be displayed as an upcoming event. Events that start later in the future will never be displayed as upcoming. Please note that there is no guarantee that all events starting in this time frame will be displayed; if they are too many (more than the \"Maximum upcoming events\" preference) then the most distant events will not be displayed.';
$string['explain_maxevents'] = 'This preference sets the maximum number of upcoming events that can be displayed. If you pick a large number here, it is possible that upcoming events displays will take up a lot of space on your screen.';
$string['explain_startwday'] = 'This preference configures the way that all monthly calendars are displayed. Use it to make them be displayed in the way you are accustomed to.';
+$string['explain_timeformat'] = 'This preference controls the way that times are displayed in the calendar. You can choose to see times in either 12 or 24 hour format. If you choose \"default\", then the format will be automatically chosen according to the language you use in the site.';
$string['globalevents'] = 'Global events';
$string['groupevents'] = 'Group events';
$string['hidden'] = 'hidden';
@@ -44,10 +45,13 @@ $string['oneevent'] = '1 event';
$string['pref_lookahead'] = 'Upcoming events look-ahead';
$string['pref_maxevents'] = 'Maximum upcoming events';
$string['pref_startwday'] = 'First day of week';
+$string['pref_timeformat'] = 'Time display format';
$string['preferences'] = 'Preferences';
$string['preferences_available'] = 'Your personal preferences';
$string['shown'] = 'shown';
$string['spanningevents'] = 'Events underway';
+$string['timeformat_12'] = '12-hour (am/pm)';
+$string['timeformat_24'] = '24-hour';
$string['today'] = 'Today';
$string['tomorrow'] = 'Tomorrow';
$string['tt_deleteevent'] = 'Delete event';