| 1 |
[[!comment format=mdwn |
| 2 |
username="svetlana@192500fb6a2e2ef8e78d1a08cca64b1bca9833b9" |
| 3 |
nickname="svetlana" |
| 4 |
avatar="http://cdn.libravatar.org/avatar/5821f2dec97d186ce3b455b806d33035" |
| 5 |
subject="comment 4" |
| 6 |
date="2017-02-20T23:42:13Z" |
| 7 |
content=""" |
| 8 |
Fixed the .po marking pages as translatable -- |
| 9 |
|
| 10 |
1. un-ticked \"use page/index.mdwn source files\" |
| 11 |
|
| 12 |
2. ran this script, committed, and pushed: |
| 13 |
|
| 14 |
``` |
| 15 |
|
| 16 |
# Bash -- from http://mywiki.wooledge.org/BashFAQ/030 |
| 17 |
# Also requires GNU or BSD find(1) |
| 18 |
# Recursively change all *.foo files to *.bar |
| 19 |
|
| 20 |
find . -type f -name 'index.mdwn' -print0 | while IFS= read -r -d '' f; do |
| 21 |
mv -- \"$f\" \"${f%/index.mdwn}.mdwn\" |
| 22 |
done |
| 23 |
|
| 24 |
find . -type f -name 'index.ru.po' -print0 | while IFS= read -r -d '' f; do |
| 25 |
mv -- \"$f\" \"${f%/index.ru.po}.ru.po\" |
| 26 |
done |
| 27 |
|
| 28 |
find . -type f -name 'index.pot' -print0 | while IFS= read -r -d '' f; do |
| 29 |
mv -- \"$f\" \"${f%/index.pot}.pot\" |
| 30 |
done |
| 31 |
|
| 32 |
|
| 33 |
mv ..mdwn index.mdwn |
| 34 |
mv ..pot index.pot |
| 35 |
mv ..ru.po index.ru.po |
| 36 |
``` |
| 37 |
|
| 38 |
|
| 39 |
|
| 40 |
|
| 41 |
The problem with backlinks still stays so far. |
| 42 |
"""]] |