Skip to content

Translation breaks in PDF-template #1034

@jmmeijer

Description

@jmmeijer

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions