feat: Make strings in PHP files translatable
Meaningful strings are now parsed through the getext() function and the "composer update-locales" script now parses PHP files. Fixes #143
This commit is contained in:
parent
9ec3194c5e
commit
986dad5100
5 changed files with 101 additions and 25 deletions
|
@ -84,7 +84,10 @@
|
|||
},
|
||||
"scripts": {
|
||||
"compile": "composer install --ignore-platform-reqs",
|
||||
"update-locales": "tsmarty2c.php templates > i18n/template.pot",
|
||||
"update-locales": [
|
||||
"tsmarty2c.php templates > i18n/template.pot",
|
||||
"xgettext --omit-header -j -o i18n/template.pot classes/* controllers/*"
|
||||
],
|
||||
"youtube-dl": "vendor/rg3/youtube-dl/youtube_dl/__main__.py"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue