# # # # compare_lang.cfv # This checks for missing and out of date language nodes between # the English language module and the language defined in # "language_to_compare". Edit "language_to_compare" to define # a different language. # include "templates.util.compare_node_existence"; subroutine(compare_lang, ( subroutine(get_lang_node_from_file( string language, string language_file), ( string file_path = LOGANALYSISINFO_DIRECTORY . "language/" . language . "/" . language_file . ".cfg"; string s = read_file(file_path); node n = string_to_node(s); n; )); debug_message("### compare_lang() \n"); # # # Define language which you want to compare to english language module # # string language_to_compare = "japanese"; node a; node b; '
";
"This shows missing and out of date language module nodes.
";
"A dash in the left column indicates that the node in the " . capitalize(language_to_compare) . " module is out of date and can be deleted.
";
"A dash in the right column indicates that the node exists in the English language module but is missing in the " . capitalize(language_to_compare) . " module.";
"
"; "Edit templates.dev_pages.compare_lang.cfv to define a different language for comparison."; "
"; '