Skip to content
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 strings with variables aren't being translated #55

Open
mouse-reeve opened this issue Mar 19, 2022 · 1 comment
Open

Translation strings with variables aren't being translated #55

mouse-reeve opened this issue Mar 19, 2022 · 1 comment

Comments

@mouse-reeve
Copy link
Member

When there's a translation string that takes a variables, like {{ _("%s users" % instance.users) }} in https://github.com/bookwyrm-social/join-bookwyrm/blob/main/templates/instances/index.html#L51, the string isn't being translated when the site is compiled. The translation string does seem to be loading correctly in the locale file (for example, https://github.com/bookwyrm-social/join-bookwyrm/blob/main/locale/de_DE/LC_MESSAGES/messages.po#L175).

@mouse-reeve
Copy link
Member Author

I've been stumped on this one -- I don't know if you have any leads, @joachimesque

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant