X-Git-Url: http://git.plutz.net/?a=blobdiff_plain;f=macros%2Fchanges;h=8714976154c43748cae3d56b31ac85782950931f;hb=65676ea8331f60d882e3baec99c101382e9fad57;hp=562fa8f6dddf35aed439dbd57ed4f3fc008be8f2;hpb=ade7bf5a0fb735ac515d6f0bfd6e4b169989bc27;p=shellwiki diff --git a/macros/changes b/macros/changes index 562fa8f..8714976 100755 --- a/macros/changes +++ b/macros/changes @@ -4,6 +4,9 @@ . "$_EXEC/tools.sh" . "$_EXEC/acl.sh" +_(){ printf %s\\n "$*"; } +[ "${LANGUAGE}" -a -r "${_EXEC}/l10n/${LANGUAGE}.sh" ] && . "${_EXEC}/l10n/${LANGUAGE}.sh" + LANGUAGES='' glob="/" depth=-1 while [ $# -gt 0 ]; do case $1 in --system) glob_system_pages=true; shift 1;; @@ -25,7 +28,8 @@ page_glob "$glob" "$depth" |while read page; do read ostamp odate <<-EOF $([ "$REV_PAGES" = true ] \ && git -C "$_DATA" log --pretty="format:%at %ai" -- "pages${page_abs}#page.md" \ - || stat -c "%Y %y" -- "$_DATA/pages${page_abs}#page.md" + || stat -c "%Y %y" -- "$_DATA/pages${page_abs}#page.md" 2>&- \ + || printf "0 %s\n" "$(_ "(never edited)")" ) EOF row="