mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
Added a script to strip file lines from po files.
This commit is contained in:
parent
345d85309a
commit
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
Executable file
8
po/strip-location.sh
Executable file
@ -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
|
Loading…
Reference in New Issue
Block a user