mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
disable --no-wrap option
This commit is contained in:
@@ -39,8 +39,7 @@ FOLDERS="install"
|
|||||||
find $FOLDERS -name "*.php" > PHPFILESLIST
|
find $FOLDERS -name "*.php" > PHPFILESLIST
|
||||||
|
|
||||||
# Run the xgettext command with various options. Do not change these options to keep the POT/PO files consistent in Wavelog
|
# Run the xgettext command with various options. Do not change these options to keep the POT/PO files consistent in Wavelog
|
||||||
xgettext --no-wrap \
|
xgettext -F \
|
||||||
-F \
|
|
||||||
-o $POT_FILE \
|
-o $POT_FILE \
|
||||||
--from-code=UTF-8 \
|
--from-code=UTF-8 \
|
||||||
--keyword=__ \
|
--keyword=__ \
|
||||||
@@ -65,7 +64,7 @@ head -n 3 "$POT_FILE" > POT_HEADER
|
|||||||
|
|
||||||
# Now we can merge the POT file (PO template) into each found PO file
|
# Now we can merge the POT file (PO template) into each found PO file
|
||||||
for po in $(find $FOLDERS -name "*.po"); do
|
for po in $(find $FOLDERS -name "*.po"); do
|
||||||
msgmerge --no-wrap --update -vv --backup=none --no-fuzzy-matching "$po" $POT_FILE;
|
msgmerge --update -vv --backup=none --no-fuzzy-matching "$po" $POT_FILE;
|
||||||
# Replace the first three lines of the PO file with the POT file header
|
# Replace the first three lines of the PO file with the POT file header
|
||||||
sed -i '1,3d' "$po"
|
sed -i '1,3d' "$po"
|
||||||
cat POT_HEADER "$po" > temp.po && mv temp.po "$po"
|
cat POT_HEADER "$po" > temp.po && mv temp.po "$po"
|
||||||
|
|||||||
@@ -39,8 +39,7 @@ FOLDERS="application assets src system"
|
|||||||
find $FOLDERS -name "*.php" > PHPFILESLIST
|
find $FOLDERS -name "*.php" > PHPFILESLIST
|
||||||
|
|
||||||
# Run the xgettext command with various options. Do not change these options to keep the POT/PO files consistent in Wavelog
|
# Run the xgettext command with various options. Do not change these options to keep the POT/PO files consistent in Wavelog
|
||||||
xgettext --no-wrap \
|
xgettext -F \
|
||||||
-F \
|
|
||||||
-o $POT_FILE \
|
-o $POT_FILE \
|
||||||
--from-code=UTF-8 \
|
--from-code=UTF-8 \
|
||||||
--keyword=__ \
|
--keyword=__ \
|
||||||
@@ -65,7 +64,7 @@ head -n 3 "$POT_FILE" > POT_HEADER
|
|||||||
|
|
||||||
# Now we can merge the POT file (PO template) into each found PO file
|
# Now we can merge the POT file (PO template) into each found PO file
|
||||||
for po in $(find $FOLDERS -name "*.po"); do
|
for po in $(find $FOLDERS -name "*.po"); do
|
||||||
msgmerge --no-wrap --update -vv --backup=none --no-fuzzy-matching "$po" $POT_FILE;
|
msgmerge --update -vv --backup=none --no-fuzzy-matching "$po" $POT_FILE;
|
||||||
# Replace the first three lines of the PO file with the POT file header
|
# Replace the first three lines of the PO file with the POT file header
|
||||||
sed -i '1,3d' "$po"
|
sed -i '1,3d' "$po"
|
||||||
cat POT_HEADER "$po" > temp.po && mv temp.po "$po"
|
cat POT_HEADER "$po" > temp.po && mv temp.po "$po"
|
||||||
|
|||||||
Reference in New Issue
Block a user