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

i18n is mssing when working with page /en/kalendar #103

Open
alaif opened this issue May 6, 2019 · 2 comments
Open

i18n is mssing when working with page /en/kalendar #103

alaif opened this issue May 6, 2019 · 2 comments
Assignees

Comments

@alaif
Copy link

alaif commented May 6, 2019

image

@timthelion
Copy link
Member

Thanks for the reminder. I'll get to translating it asap.

timthelion added a commit that referenced this issue May 6, 2019
Need to fix translations for javascript files. Perhaps this is helpful https://djangobook.com/internationalization-javascript-code/

Ref: #103
@timthelion
Copy link
Member

Right now I cannot figure out how to make the python3 manage.py makemessages --locale en parse trans tags in https://github.com/auto-mat/do-prace-na-kole/blob/0ce0ca12ee95fc397c5928c2c7969746dc5315b4/dpnk/templates/registration/calendar.js

We also need to change links such as this one

$('#trip-edit-button').attr("href", "/trip/" + format_date(info.event.start) + "/" + info.event.extendedProps.direction);

And this one
return "/view_trip/" + format_date(event.start) + "/" + event.extendedProps.direction

So that the language stays English after navigation.

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

3 participants