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

Translations are not available in AMOS #1

Closed
germanvaleroelizondo opened this issue Nov 29, 2019 · 8 comments
Closed

Translations are not available in AMOS #1

germanvaleroelizondo opened this issue Nov 29, 2019 · 8 comments

Comments

@germanvaleroelizondo
Copy link
Contributor

Hi,
This plugin can not be translated in AMOS.
String concatenation is not allowed.
Please check the plugins checklist for strings at https://docs.moodle.org/dev/index.php?title=Plugin_contribution_checklist&redirect=no#Strings .

Thanks in advance.

@danmarsden
Copy link
Member

Whoops! - missed that in my review! Thanks for the report - we'll get that fixed next week!

@DrCuriosity
Copy link
Collaborator

My apologies for not catching more opportunities to internationalise the strings earlier. I removed some string hard-coding from the original plugin, but I appear to have added some of my own. I will be more careful about that in future.

From an initial look-through I have found these two things to fix, and I will work on them in the morning:

I will also conduct a more careful check once that is done.

If you can see any other places where correction is obviously needed, do please let me know and I will address them as promptly as I can. Thank you!

@danmarsden
Copy link
Member

@DrCuriosity - Amos doesn't cope with string concatenation- eg 'line1'.'line2'

@danmarsden
Copy link
Member

Eg:

. '<p><b>NOTE:</b> <i>You <b>cannot</b> edit converted cohorts manually!</i></p>'

@DrCuriosity
Copy link
Collaborator

Understood. Will make that conversion, and do it as a PR for review.

@DrCuriosity
Copy link
Collaborator

Code updated, and version reuploaded to moodle.org. Is there anything further that needs to be done in order for AMOS to pick up the change?

@danmarsden
Copy link
Member

nope that should be it - thanks David! - @germanvaleroelizondo - let us know if you have any further issues!

@germanvaleroelizondo
Copy link
Contributor Author

Hi,
Strings are now available in AMOS for translation.
Thanks.

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