Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Marcin Mikołajczak
funkwhale
Commits
afbb2054
Verified
Commit
afbb2054
authored
Jul 01, 2018
by
Eliot Berriot
Browse files
Added nowrap
parent
0cfefe7a
Changes
1
Hide whitespace changes
Inline
Side-by-side
front/scripts/i18n-extract.sh
View file @
afbb2054
...
...
@@ -12,7 +12,8 @@ xgettext --language=JavaScript --keyword=npgettext:1c,2,3 \
--from-code
=
utf-8
--join-existing
--no-wrap
\
--package-name
=
$(
node
-e
"console.log(require('./package.json').name);"
)
\
--package-version
=
$(
node
-e
"console.log(require('./package.json').version);"
)
\
--output
$locales_dir
/app.pot
$js_sources
--output
$locales_dir
/app.pot
$js_sources
\
--no-wrap
# Fix broken files path/lines in pot
sed
-e
's|#: src/|#: front/src/|'
-i
$locales_dir
/app.pot
...
...
@@ -23,6 +24,6 @@ for lang in $locales; do \
po_file
=
$locales_dir
/
$lang
/LC_MESSAGES/app.po
;
\
echo
"msgmerge --update
$po_file
"
;
\
mkdir
-p
$(
dirname
$po_file
)
;
\
[
-f
$po_file
]
&&
msgmerge
--lang
=
$lang
--update
$po_file
$locales_dir
/app.pot
||
msginit
--no-translator
--locale
=
$lang
--input
=
$locales_dir
/app.pot
--output-file
=
$po_file
;
\
[
-f
$po_file
]
&&
msgmerge
--lang
=
$lang
--update
$po_file
$locales_dir
/app.pot
--no-wrap
||
msginit
--no-wrap
--no-translator
--locale
=
$lang
--input
=
$locales_dir
/app.pot
--output-file
=
$po_file
;
\
msgattrib
--no-wrap
--no-obsolete
-o
$po_file
$po_file
;
\
done
;
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment