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:
Pierre Rudloff 2018-01-26 11:37:43 +01:00
parent 9ec3194c5e
commit 986dad5100
5 changed files with 101 additions and 25 deletions

View file

@ -19,6 +19,7 @@ msgstr ""
#: templates/playlist.tpl:26 templates/password.tpl:10 templates/video.tpl:97
#: templates/video.tpl:100 templates/index.tpl:19
#: controllers/FrontController.php:265
msgid "Download"
msgstr ""
@ -38,7 +39,7 @@ msgstr ""
msgid "Video password"
msgstr ""
#: templates/extractors.tpl:4
#: templates/extractors.tpl:4 controllers/FrontController.php:159
msgid "Supported websites"
msgstr ""
@ -137,3 +138,69 @@ msgstr ""
#: templates/index.tpl:32
msgid "Bookmarklet"
msgstr ""
#: classes/VideoDownload.php:114
msgid "Wrong password"
msgstr ""
#: classes/VideoDownload.php:270 classes/VideoDownload.php:353
msgid "Can't find avconv or ffmpeg."
msgstr ""
#: classes/VideoDownload.php:326 classes/VideoDownload.php:485
msgid "Conversion of M3U8 files is not supported."
msgstr ""
#: classes/VideoDownload.php:334 classes/VideoDownload.php:371
#: classes/VideoDownload.php:404 classes/VideoDownload.php:437
#: classes/VideoDownload.php:493
msgid "Could not open popen stream."
msgstr ""
#: classes/VideoDownload.php:461
msgid "Could not open fopen stream."
msgstr ""
#: controllers/FrontController.php:116
msgid ""
"Easily download videos from Youtube, Dailymotion, Vimeo and other websites."
msgstr ""
#: controllers/FrontController.php:160
msgid ""
"List of all supported websites from which Alltube Download can extract video "
"or audio files"
msgstr ""
#: controllers/FrontController.php:185
msgid "Password prompt"
msgstr ""
#: controllers/FrontController.php:186
msgid ""
"You need a password in order to download this video with Alltube Download"
msgstr ""
#: controllers/FrontController.php:261
msgid "Video download"
msgstr ""
#: controllers/FrontController.php:262
msgid "Download video from "
msgstr ""
#: controllers/FrontController.php:265
msgid "from"
msgstr ""
#: controllers/FrontController.php:328
msgid "Error"
msgstr ""
#: controllers/FrontController.php:400
msgid "You need to enable remux mode to merge two formats."
msgstr ""
#: controllers/FrontController.php:467
msgid "Can't find URL of video."
msgstr ""