instructure / canvas-lms

The open LMS by Instructure, Inc.
https://github.com/instructure/canvas-lms/wiki
GNU Affero General Public License v3.0
5.54k stars 2.46k forks source link

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

Open amulgarg opened 6 years ago

amulgarg commented 6 years ago

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

simonista commented 6 years ago

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 enUS.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 commented 6 years ago

Thanks, Simon. This helps a lot!

lekhachiep-ADT commented 4 years ago

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 (https://github.com/instructure/canvas-lms/issues/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: david@adtgroup.net Skype: david.le.adt; Mobile/Whatapp/Zalo/Vibre/Imo: +84.986354152

amg-web commented 3 years ago

This manual looks outdated.

lekhachiep-ADT commented 3 years ago

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

tuantiensiu commented 3 years ago

I have the same requirement with them

ndhoan commented 3 years ago

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

lekhachiep-ADT commented 3 years ago

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.

ndhoan commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

Could you give me your email. There are some matters I want to clear

Sent from Mail for Windows

From: Dr. Bravestone Sent: Thursday, September 9, 2021 4:30 PM To: instructure/canvas-lms Cc: lekhachiep-ADT; Comment Subject: Re: [instructure/canvas-lms] How do I add a new language to Canvas?(#1314)

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 — 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.

GTMtremolo commented 3 years ago

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

lekhachiep-ADT commented 3 years ago

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 commented 3 years ago

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.

lekhachiep-ADT commented 3 years ago

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.

dengcen commented 3 years ago

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.

lekhachiep-ADT commented 3 years ago

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.

GTMtremolo commented 3 years ago

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 commented 3 years ago

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.

GTMtremolo commented 3 years ago

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 commented 3 years ago

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.

GTMtremolo commented 3 years ago

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 commented 3 years ago

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.

GTMtremolo commented 3 years ago

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