DDMAL / linkedmusic-website

website for LinkedMusic Partnership Grant
https://linkedmusic.ca
2 stars 0 forks source link

Google translate widget #15

Closed emilyhopkins closed 2 years ago

emilyhopkins commented 3 years ago
  1. figure out how to add as in https://theglobaljukebox.org/#
  2. figure out how to deal with bilingual content on site (can we mark it to not be translated or similar?)
emilyhopkins commented 3 years ago

May have to budget for using Google too?

They are pushing browser translation instead (https://support.google.com/chrome/answer/173424?co=GENIE.Platform%3DDesktop&hl=en) and the widget is only free for COVID update non-profit sites (https://developers.google.com/search/blog/2020/05/google-translates-website-translator) and they send everyone else to Google Cloud Translation API (https://cloud.google.com/translate)

(I can look more into pricing for this later)

emilyhopkins commented 3 years ago

https://www.coderepublics.com/howto/how-to-google-translate.php

emilyhopkins commented 2 years ago

This is done, little bit hacky solution to adding notranslate tags though -- Had to copy HTML from generated site and use that in pages as works in Markdown but breaks other formatting

fujinaga commented 2 years ago

When I select a language the top menu disappears.

emilyhopkins commented 2 years ago

Since we can't control the appearance of translate, I've modified the header CSS so it no longer gets hidden when the translate option is used.

fujinaga commented 2 years ago

Looks good! Thank you.