$templates.shared.doctype
{= include "templates.admin.preferences.util.build_view_row"; =}
{=
# Make sure that the charset node in preferences exist
# if it does not yet exist then set it now.
# If language is set to japanese make sure that the charset
# is set to EUC-JP, if it is not yet set then set it now.
if (node_exists("preferences.miscellaneous.charset") and (preferences.miscellaneous.charset ne "")) then (
if (preferences.miscellaneous.language eq "japanese") then (
if (preferences.miscellaneous.charset ne "EUC-JP") then (
preferences.miscellaneous.charset = "EUC-JP";
save_node("preferences");
);
);
);
else (
if (preferences.miscellaneous.language ne "japanese") then (
if (node_exists("lang_stats.charset") and (lang_stats.charset ne "")) then (
preferences.miscellaneous.charset = lang_stats.charset;
)
else (
preferences.miscellaneous.charset = "UTF-8";
);
)
else (
preferences.miscellaneous.charset = "EUC-JP";
);
save_node("preferences");
);
'
\n';
build_view_row("miscellaneous.language", "string");
build_view_row("miscellaneous.charset", "string");
build_view_row("miscellaneous.temporary_files_lifespan", "string");
build_view_row("miscellaneous.logout_url", "string");
build_view_row("miscellaneous.never_look_up_ip_numbers", "bool");
build_view_row("miscellaneous.only_look_up_log_ip_numbers", "bool");
if (node_exists("preferences.miscellaneous.talkback") and node_exists("lang_options.preferences.miscellaneous.talkback.label")) then (
build_view_row("miscellaneous.talkback", "bool");
);
'
\n';
expand(templates.shared.copyright);
'
\n';
=}