[% USE JSON; SET account_locale = locale.get_user_locale(), #The account's locale name, in the session locale. direction = locale.get_html_dir_attr(), lang_file_path_debug = "../../libraries/elfinder/source/js/i18n/elfinder." _ account_locale _ ".js", supported_file_browser_locales = ["ar", "bg", "ca", "cs", "de", "es", "fr", "hu", "jp", "LANG", "nl", "no", "pl", "pt_BR", "ru", "zh_CH"], use_locale = "false", lang_file_path = "../../libraries/elfinder/optimized/js/i18n/elfinder." _ account_locale _ ".js", security_token = CPANEL.ENV.cp_security_token; # If locale is not found, fallback to English FOREACH locale IN supported_file_browser_locales; IF account_locale == locale; use_locale = "true"; BREAK; END; END; %] [% IF CPANEL.is_debug_mode_enabled() %] [% IF use_locale == "true" %] [% END %] [% ELSE %] [% IF use_locale == "true" %] [% END %] [% END %]