-
Notifications
You must be signed in to change notification settings - Fork 297
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Load theme translations files automatically #1093
Load theme translations files automatically #1093
Conversation
"Plural-Forms: nplurals=2; plural=(n > 1);\n" | ||
"X-Generator: Poedit 2.0.6\n" | ||
|
||
msgid "cock" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this test should use reference data that is not likely to be interpreted as being suggestive :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
application/Languages.php
Outdated
$themeTransFolder = rtrim($this->conf->get('raintpl_tpl'), '/') .'/'. $theme .'/language'; | ||
if (is_dir($themeTransFolder)) { | ||
try { | ||
/** @var Translations $translations */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I use this for type hinting in the IDE but the lib should handle it.
62e2425
to
54ad016
Compare
Fixes shaarli#1077 Take a look at the docs update to see how it works
54ad016
to
68c6afc
Compare
Rebased. |
Fixes #1077
Take a look at the docs update to see how it works