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
Translation breaks in PDF-template #1034
Comments
Thanks for the Bug Report, man! Will be released with version |
You're very welcome, It was my intention to provider more details on the cause, but to my surprise it was already merged into dev! You're fast, Niels! |
This one:
Is an interesting one, let me look up an old issue : I think those 2 get very close to what you were experiencing. If you re-experience the problem, just howler and we'll take a look. |
Expected Behavior
Translation should be based on system setting
Current Behavior
Translation is reverted to English as default
Screenshots
Possible Solution
In file application/helpers/trans_helper.php
Replace line 37:
$current_language = 'english';
with:
$current_language = get_setting('default_language') ?? 'english';
Steps to Reproduce
Context (Environment)
In a PDF-template for an invoice the first strings will be properly translated, however after one point, (for an unknown reason) it will revert to English. After this, all other string will be English.
Detailed Description
Possible Implementation
Failure Logs
The text was updated successfully, but these errors were encountered: