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
|
@ -47,6 +47,8 @@ class LocaleManager
|
|||
if (isset($cookieLocale)) {
|
||||
$this->setLocale(new Locale($cookieLocale));
|
||||
}
|
||||
bindtextdomain('Alltube', __DIR__.'/../i18n/');
|
||||
textdomain('Alltube');
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue