Skip to content

Add a way to override language strings without recompiling .po files #47

@pietroalbini

Description

@pietroalbini

Currently, the only way to override translation strings is to edit the .po files, rebuild those, and reinstall botogram with the rebuilt .mo files. That's a really bad UX, and it might cause problems with multiple bots.

The proposed API is:

bot.override_i18n = {
    "No description available": "Hey, that's empty!",
}

Meta issue: #46

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions