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

Allow for translating strings in Learning Mode templates #6138

Open
jom opened this issue Nov 18, 2022 · 0 comments
Open

Allow for translating strings in Learning Mode templates #6138

jom opened this issue Nov 18, 2022 · 0 comments

Comments

@jom
Copy link
Member

jom commented Nov 18, 2022

Is your feature request related to a problem? Please describe

Right now, our Learning Mode templates have english default strings that aren't translated. They are editable, but it would be nice if they could be initially translated. An example string is Contact Teacher.

Describe the solution you'd like

We should be able to convert them to PHP files and in Sensei_Course_Theme_Templates::get_block_templates() include the files instead of use file_get_contents.

Describe alternatives you've considered

Forcing the user to manually translate the text in the site editor.

@jom jom added [Type] Enhancement [Status] Needs Triage Issue needs to be triaged Learning Mode and removed [Status] Needs Triage Issue needs to be triaged labels Nov 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant