From: svetlana@192500fb6a2e2ef8e78d1a08cca64b1bca9833b9 Date: Mon, 20 Feb 2017 23:42:13 +0000 (-0400) Subject: Added a comment X-Git-Tag: debian/3.20170622~111 X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/commitdiff_plain/dc232c0006da77cb57fe7d59b8caaff778e255de Added a comment --- diff --git a/doc/forum/Inconsistency_in_pages_behaviour/comment_4_01ae20cdc4f105bd182049f5138a8dd2._comment b/doc/forum/Inconsistency_in_pages_behaviour/comment_4_01ae20cdc4f105bd182049f5138a8dd2._comment new file mode 100644 index 000000000..d43c11ece --- /dev/null +++ b/doc/forum/Inconsistency_in_pages_behaviour/comment_4_01ae20cdc4f105bd182049f5138a8dd2._comment @@ -0,0 +1,42 @@ +[[!comment format=mdwn + username="svetlana@192500fb6a2e2ef8e78d1a08cca64b1bca9833b9" + nickname="svetlana" + avatar="http://cdn.libravatar.org/avatar/5821f2dec97d186ce3b455b806d33035" + subject="comment 4" + date="2017-02-20T23:42:13Z" + content=""" +Fixed the .po marking pages as translatable -- + +1. un-ticked \"use page/index.mdwn source files\" + +2. ran this script, committed, and pushed: + +``` + + # Bash -- from http://mywiki.wooledge.org/BashFAQ/030 + # Also requires GNU or BSD find(1) + # Recursively change all *.foo files to *.bar + + find . -type f -name 'index.mdwn' -print0 | while IFS= read -r -d '' f; do + mv -- \"$f\" \"${f%/index.mdwn}.mdwn\" + done + + find . -type f -name 'index.ru.po' -print0 | while IFS= read -r -d '' f; do + mv -- \"$f\" \"${f%/index.ru.po}.ru.po\" + done + + find . -type f -name 'index.pot' -print0 | while IFS= read -r -d '' f; do + mv -- \"$f\" \"${f%/index.pot}.pot\" + done + + + mv ..mdwn index.mdwn + mv ..pot index.pot + mv ..ru.po index.ru.po +``` + + + + +The problem with backlinks still stays so far. +"""]]