diff --git a/contrib/remind-conf-mode/remind-conf-mode.el b/contrib/remind-conf-mode/remind-conf-mode.el index 6d45bf13..5647cdd3 100644 --- a/contrib/remind-conf-mode/remind-conf-mode.el +++ b/contrib/remind-conf-mode/remind-conf-mode.el @@ -143,7 +143,7 @@ "$MinsFromUTC" "$Minute" "$Monday" "$Mplu" "$NextMode" "$November" "$Now" "$NumQueued" "$NumTrig" "$October" "$On" "$Pm" "$PrefixLineNo" "$PSCal" "$RunOff" "$Saturday" "$September" "$SimpleCal" "$SortByDate" "$SortByPrio" "$SortByTime" - "$SubsIndent" "$Sunday" "$T" "$Td" "$Thursday" "$TimeSep" "$Tm" + "$SubsIndent" "$Sunday" "$SysInclude" "$T" "$Td" "$Thursday" "$TimeSep" "$Tm" "$Today" "$Tomorrow" "$Tuesday" "$Tw" "$Ty" "$U" "$Ud" "$Um" "$UntimedFirst" "$Uw" "$Uy" "$Was" "$Wednesday") #'(lambda (a b) (> (length a) (length b))))) diff --git a/include/lang/auto.rem b/include/lang/auto.rem new file mode 100644 index 00000000..ae1e4fca --- /dev/null +++ b/include/lang/auto.rem @@ -0,0 +1,19 @@ +SET autolang getenv("LC_ALL") +IF autolang == "" + SET autolang getenv("LANGUAGE") +ENDIF +IF autolang == "" + SET autolang getenv("LANG") +ENDIF + +IF autolang != "" + IF access($SysInclude + "/lang/" + lower(substr(autolang, 1, 5)) + ".rem", "r") == 0 + INCLUDE [$SysInclude]/lang/[lower(substr(autolang, 1, 5))] + ELSE + IF access($SysInclude + "/lang/" + lower(substr(autolang, 1, 2)) + ".rem", "r") == 0 + INCLUDE [$SysInclude]/lang/[lower(substr(autolang, 1, 2))].rem + ENDIF + ENDIF +ENDIF + +UNSET autolang