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

Language strings for "calendar" --> today, month, week, day | resources, list, timeline #57

Closed
sberger opened this issue Nov 18, 2024 · 2 comments
Assignees
Labels
question Further information is required

Comments

@sberger
Copy link
Collaborator

sberger commented Nov 18, 2024

Where are the language strings defined?

Language calenderviews Screenshot

@sberger sberger added the question Further information is required label Nov 18, 2024
@sberger sberger self-assigned this Nov 18, 2024
@melanietreitinger
Copy link
Owner

File: amd/src/calendar.js
-> look for "headerToolbar"

Translation of the button texts using Moodle strings:

const str_request_booking = await getString('addbooking', 'mod_bookit');
const str_today = await getString('today');
const str_month = await getString('month');
const str_week = await getString('week');
const str_day = await getString('day', 'calendar');
const str_list = await getString('upcomingevents', 'calendar');

Docs: https://github.com/vkurko/calendar?tab=readme-ov-file#headertoolbar
Example: vkurko/calendar#311

@melanietreitinger melanietreitinger moved this from Todo REQ to Ready to FUNKTEST in BookIt Planning Board Dec 2, 2024
@DeniseMaterna DeniseMaterna moved this from Ready to FUNKTEST to Ready for REVIEW in BookIt Planning Board Dec 9, 2024
@sberger
Copy link
Collaborator Author

sberger commented Dec 13, 2024

Language customisation can be done via the strings as set above.

@sberger sberger closed this as completed Dec 17, 2024
@github-project-automation github-project-automation bot moved this from Ready for REVIEW and RELTEST to CLOSED in BookIt Planning Board Dec 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is required
Projects
Status: CLOSED
Development

No branches or pull requests

2 participants