Added a script to strip file lines from po files.
Этот коммит содержится в:
родитель
345d85309a
Коммит
7e211ffccc
@ -1,2 +1,4 @@
|
|||||||
When you commit a translation, please strip the #: lines before. This
|
When you commit a translation, please strip the #: lines before. This
|
||||||
makes it much easier to view diffs.
|
makes it much easier to view diffs. Example:
|
||||||
|
|
||||||
|
./strip-location *.po
|
||||||
|
8
po/strip-location.sh
Исполняемый файл
8
po/strip-location.sh
Исполняемый файл
@ -0,0 +1,8 @@
|
|||||||
|
#! /bin/sh
|
||||||
|
set -e
|
||||||
|
|
||||||
|
for i in "$@"; do
|
||||||
|
i="./$i"
|
||||||
|
sed '/^#:/d' < "$i" > "$i.tmp"
|
||||||
|
mv -f "$i.tmp" "$i"
|
||||||
|
done
|
Загрузка…
x
Ссылка в новой задаче
Block a user