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

How do I add a new language to Canvas? #1314

Open
amulgarg opened this issue Jun 20, 2018 · 25 comments
Open

How do I add a new language to Canvas? #1314

amulgarg opened this issue Jun 20, 2018 · 25 comments

Comments

@amulgarg
Copy link

amulgarg commented Jun 20, 2018

How do I add a new language to Canvas? E.g I want to add 'Hindi' as a language

@simonista
Copy link
Contributor

simonista commented Jun 20, 2018

It's a bit of a process:
• Add the language to config/locales/locales.yml.
• Copy config/locales/en.yml to config/locales/[NEWLOCALE].yml, and translate all the strings in it.
• Ensure a file exists for the locale in public/javascripts/vendor/timezone/. These files come from https://github.com/bigeasy/timezone and one may already exist for the locale being added. If not, create the file. You can use the en_US.js file as a template, then most of the strings in the file can be replaced with values from the YAML file for the locale. If it the filename does not match the language code with s/-/_/g, then configure bigeasy_locale in locales.yml.
• Similarly, ensure a file exists for the locale in public/javascripts/bower/moment/locale/. These files come form Moment.js and one may already exist for the locale being added. If not, create the file. You can use the en-gb.js (en-us is unfortunately implicit) file as a template, then most of the strings in the file can be replaced with values from the YAML file for the locale. If the filename does not match the language code downcased, then configure moment_locale in locales.yml
• Ensure existence of corresponding file in public/javascripts/bower/fullcalendar/dist/lang/. If the filename does not match the language code downcast, then configure fullcalendar_locale in locales.yml.

If the datepicker isn't working correctly, one thing to check is whether our date format strings match between translated versions. You can see the different places these are defined here:
• public/javascripts/bower/fullcalendar/dist/lang/XX.js
• public/javascripts/bower/moment/locale/XX.js
• public/javascripts/vendor/timezone/XX.js
• config/locales/XX.yml

one other thing, we don’t load all the languages in development mode by default, so to get that to work you need to add an environment variable:

• $ rake i18n:generate_js
• $ RAILS_LOAD_ALL_LOCALES=true USE_OPTIMIZED_JS=true yarn run webpack
• $ RAILS_LOAD_ALL_LOCALES=true bundle exec rails server

Hope that helps!
Simon

@amulgarg
Copy link
Author

Thanks, Simon. This helps a lot!

@lekhachiep-ADT
Copy link

Dear Simon,

I passed your guide to my technician to add my language but fail.
I visited website https://github.com/instructure/canvas-lms/tree/master/config/locales and revise 2 files then send to my technician to add my language but fail. See attached my language files.
file vi.yml: https://drive.google.com/file/d/1NicbaQB2jyLq4MNyjVwPGiIOUVQe8wxN/view?usp=sharing
File locales: https://drive.google.com/file/d/1NicbaQB2jyLq4MNyjVwPGiIOUVQe8wxN/view?usp=sharing

See below technician's comment

"Unfortunately I can't add your language to the Canvas LMS. Where is a lot of errors with YAML syntax in the file, for example "(): did not find expected key while parsing a block mapping at line." I tried to correct it, but that wasn't work. The guide what you sent to us (#1314) was posted there in 2018, after that there were many updates and for now it's not working.
You can create the new topic in Canvas LMS GitHub and ask developers to help you add your language"

Do you have update guide or can you help me to add my Vietnamese language to my Canvas. I can pay service charge.
Best regards,
David
ADT International JSC
Email: [email protected]
Skype: david.le.adt; Mobile/Whatapp/Zalo/Vibre/Imo: +84.986354152

@amg-web
Copy link
Contributor

amg-web commented Feb 3, 2021

This manual looks outdated.

@lekhachiep-ADT
Copy link

Pls. help me to send updated instruction to add new language to Canvas

@tuantiensiu
Copy link

I have the same requirement with them

@ndhoan
Copy link

ndhoan commented Aug 28, 2021

Please help me fix this issue, datepicker isn't working correctly. I added Vietnamese language in the latest stable version.

@lekhachiep-ADT
Copy link

lekhachiep-ADT commented Aug 28, 2021 via email

@ndhoan
Copy link

ndhoan commented Aug 28, 2021

Bạn ở trường nào vậy? David Sent from Mail for Windows From: Hoan Sent: Saturday, August 28, 2021 3:36 PM To: instructure/canvas-lms Cc: lekhachiep-ADT; Comment Subject: Re: [instructure/canvas-lms] How do I add a new language to Canvas?(#1314) Please help me fix this issue, datepicker isn't working correctly. I added Vietnamese language in the latest stable version. — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.

Mình làm dự án opensource cho các trường thôi, bạn đã chỉnh được chưa?

@lekhachiep-ADT
Copy link

Làm cái ngôn ngữ tiếng Việt này lằng nhằng thật. Cũng đang mò đây

@GTMtremolo
Copy link

you need to create a file vi-VN.yml in path/to/canvas/config/locales/ (can get the template from en.yml)
After that add Vietnamese config to path/to/canvas/config/locales/locales.yml (can get them to template config on this file)
And then, recompile access and restart the apache server.
It work for me.
Thanks

@lekhachiep-ADT
Copy link

lekhachiep-ADT commented Sep 9, 2021 via email

@GTMtremolo
Copy link

I think we should discuss it in here to help other people resolve the issue

@lekhachiep-ADT
Copy link

lekhachiep-ADT commented Sep 15, 2021

I am very happy to add my language to Canvas successfully. Beside this, I added advance tools: Big Blue Button (Conference), Attendance, Analytic and some very interesting ones: AI tool to covert from Word files to question bank, Proctoring. See my video: https://edunow.vn/friend/

@dengcen
Copy link

dengcen commented Sep 16, 2021 via email

@lekhachiep-ADT
Copy link

lekhachiep-ADT commented Sep 16, 2021 via email

@dengcen
Copy link

dengcen commented Sep 16, 2021 via email

@lekhachiep-ADT
Copy link

lekhachiep-ADT commented Sep 16, 2021 via email

@GTMtremolo
Copy link

I am very happy to add my language to Canvas successfully. Beside this, I added advance tools: Big Blue Button (Conference), Attendance, Analytic and some very interesting ones: AI tool to covert from Word files to question bank, Proctoring. See my video: https://edunow.vn/friend/

Hi LeKhacHiep,
What AI tool u use to convert Word to Question bank?

@dengcen
Copy link

dengcen commented Sep 16, 2021 via email

@GTMtremolo
Copy link

but my canvas website dont have help: At 2021-09-16 23:35:18, "lekhachiep-ADT" @.> wrote: You want to have help link in home page lick this: https://prnt.sc/1sfv5do It is standard design after you installed Canvas. Let me see your Canvas website David Sent from Mail for Windows From: Kevin Deng Sent: Thursday, September 16, 2021 10:31 PM To: instructure/canvas-lms Cc: lekhachiep-ADT; Comment Subject: Re: [instructure/canvas-lms] How do I add a new language to Canvas?(#1314) sorry, I donot say very clearly, I mean that "help" in the menu bar how to get it.like this picture: At 2021-09-16 22:26:34, "lekhachiep-ADT" @.> wrote: I donot understand your question clearly. I guest that you are talking about “help” link in home page, see https://prnt.sc/1sfv5do It is standard default home page. Best regard, David Sent from Mail for Windows From: Kevin Deng Sent: Thursday, September 16, 2021 8:23 PM To: instructure/canvas-lms Cc: lekhachiep-ADT; Comment Subject: Re: [instructure/canvas-lms] How do I add a new language to Canvas?(#1314) dear all: congratulations to you add your new language for lms,but can you tell me how to get "help" for the lms platform. thank you very much. At 2021-09-15 23:23:37, "lekhachiep-ADT" @.***> wrote: I am very happy to add my language to Canvas. Beside this, I added advance tools: Big Blue Button (Conference), Attendance, Analytic and some very interesting ones: AI tool to covert from Word files to question bank, Proctoring. See my video: https://edunow.vn/friend/ — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.

Please upgrade new version code

@lekhachiep-ADT
Copy link

lekhachiep-ADT commented Sep 16, 2021 via email

@GTMtremolo
Copy link

Let me know about you. You are Canvas developer? What is your country? If you are working for any school, pls. advise school name and Canvas LMS link Sent from Mail for Windows From: Dr. Bravestone Sent: Thursday, September 16, 2021 10:39 PM To: instructure/canvas-lms Cc: lekhachiep-ADT; Comment Subject: Re: [instructure/canvas-lms] How do I add a new language to Canvas?(#1314) I am very happy to add my language to Canvas successfully. Beside this, I added advance tools: Big Blue Button (Conference), Attendance, Analytic and some very interesting ones: AI tool to covert from Word files to question bank, Proctoring. See my video: https://edunow.vn/friend/ Hi LeKhacHiep, What AI tool u use to convert Word to Question bank? — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.

I'm Vietnamese like u :)))

@lekhachiep-ADT
Copy link

lekhachiep-ADT commented Sep 16, 2021 via email

@GTMtremolo
Copy link

If you are school and want to build Canvas LMS 1. Install Canvas with standard figure 2. Add more tools: Attendance, Analytic 3. Add Vietnamese/any language to Canvas 4. Add tool to convert word to question bank 5. Add proctoring service to LMS. Pls. advise your school name then I will arrange a meeting to you. David Sent from Mail for Windows From: Dr. Bravestone Sent: Thursday, September 16, 2021 10:53 PM To: instructure/canvas-lms Cc: lekhachiep-ADT; Comment Subject: Re: [instructure/canvas-lms] How do I add a new language to Canvas?(#1314) Let me know about you. You are Canvas developer? What is your country? If you are working for any school, pls. advise school name and Canvas LMS link Sent from Mail for Windows From: Dr. Bravestone Sent: Thursday, September 16, 2021 10:39 PM To: instructure/canvas-lms Cc: lekhachiep-ADT; Comment Subject: Re: [instructure/canvas-lms] How do I add a new language to Canvas?(#1314) I am very happy to add my language to Canvas successfully. Beside this, I added advance tools: Big Blue Button (Conference), Attendance, Analytic and some very interesting ones: AI tool to covert from Word files to question bank, Proctoring. See my video: https://edunow.vn/friend/ Hi LeKhacHiep, What AI tool u use to convert Word to Question bank? — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. I'm Vietnamese like u :))) — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.

sorry but I only want to know what AI tool u use to convert doc to question bank. This is your development tool or opensource. If opensource, please share with me

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

8 participants