Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Web/scripts/admin/schedule.js
Original file line number Diff line number Diff line change
Expand Up @@ -666,7 +666,7 @@ function ScheduleManagement(opts) {
allDaySlot: false,
initialDate: opts.calendarOptions.defaultDate,
initialView: 'dayGridMonth',
locale: (document.documentElement.lang || 'en').replace('_', '-'),
locale: document.documentElement.lang.slice(0, 2) || 'en',
views: {
dayGridMonth: { buttonText: opts.calendarOptions.buttonText.month },
timeGridWeek: { buttonText: opts.calendarOptions.buttonText.week },
Expand Down
5 changes: 1 addition & 4 deletions Web/scripts/calendar.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@ function Calendar(opts) {
};

// Helper functions for FullCalendar v6
function normalizeLocale(locale) {
return (locale || document.documentElement.lang || 'en').replace('_', '-');
}

function mapCurrentViewToLegacy(viewType) {
switch (viewType) {
Expand Down Expand Up @@ -93,7 +90,7 @@ function Calendar(opts) {
weekNumbers: _options.showWeekNumbers,
initialView: mapLegacyViewToCurrent(_options.view),
initialDate: _options.defaultDate,
locale: normalizeLocale(_options.locale),
locale: document.documentElement.lang.slice(0, 2) || 'en',
events: {
url: _options.eventsUrl,
extraParams: function () {
Expand Down
2 changes: 1 addition & 1 deletion lang/ar.php
Original file line number Diff line number Diff line change
Expand Up @@ -1103,6 +1103,6 @@ protected function _LoadLetters()

protected function _GetHtmlLangCode()
{
return 'en';
return 'ar';
}
}
2 changes: 1 addition & 1 deletion lang/cz.php
Original file line number Diff line number Diff line change
Expand Up @@ -911,6 +911,6 @@ protected function _LoadLetters()

protected function _GetHtmlLangCode()
{
return 'cz';
return 'cs';
}
}
2 changes: 1 addition & 1 deletion lang/du_be.php
Original file line number Diff line number Diff line change
Expand Up @@ -481,6 +481,6 @@ protected function _LoadLetters()

protected function _GetHtmlLangCode()
{
return 'en_us';
return 'nl-BE';
}
}
2 changes: 1 addition & 1 deletion lang/du_nl.php
Original file line number Diff line number Diff line change
Expand Up @@ -1084,6 +1084,6 @@ protected function _LoadLetters()

protected function _GetHtmlLangCode()
{
return 'du_nl';
return 'nl-NL';
}
}
3 changes: 1 addition & 2 deletions lang/ee_ee.php
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,6 @@ protected function _LoadStrings()
$strings['ReservationDescription'] = 'Broneeringu kirjeldus';
$strings['ResourceList'] = 'Broneeritavad v盲ljakud';
$strings['Accessories'] = 'Lisavarustus';
;
$strings['InvitationList'] = 'Kutsutud inimesed';
$strings['AccessoryName'] = 'Lisavarustuse nimi';
$strings['QuantityAvailable'] = 'Kogus saadaval';
Expand Down Expand Up @@ -862,6 +861,6 @@ protected function _LoadLetters()

protected function _GetHtmlLangCode()
{
return 'ee';
return 'et';
}
}
2 changes: 1 addition & 1 deletion lang/no_no.php
Original file line number Diff line number Diff line change
Expand Up @@ -728,6 +728,6 @@ protected function _LoadLetters()

protected function _GetHtmlLangCode()
{
return 'no_no';
return 'nb-NO';
}
}
4 changes: 2 additions & 2 deletions lang/si_si.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
Modified by Alenka Kav膷i膷 (alenka.kavcic@fri.uni-lj.si), UL FRI, July 2015
Translated and adapted for Slovenian language
*/
*/

require_once('Language.php');
require_once('en_gb.php');
Expand Down Expand Up @@ -749,6 +749,6 @@ protected function _LoadLetters()

protected function _GetHtmlLangCode()
{
return 'si-si';
return 'sl-SI';
}
}
2 changes: 1 addition & 1 deletion lang/tr_tr.php
Original file line number Diff line number Diff line change
Expand Up @@ -881,6 +881,6 @@ protected function _LoadLetters()

protected function _GetHtmlLangCode()
{
return 'en';
return 'tr';
}
}
2 changes: 1 addition & 1 deletion lang/vn_vn.php
Original file line number Diff line number Diff line change
Expand Up @@ -839,6 +839,6 @@ protected function _LoadLetters()

protected function _GetHtmlLangCode()
{
return 'en';
return 'vi';
}
}