Chinese language in drupal bug

drupal 7.502

drupal 7.51

Chinese, Simplified zh-hans

https://www.drupal.org/project/h5p

7.x-1.20 7.x-1.19 7.x-1.18

language:zh

 

I have set the Drupal site to Chinese, but I still see all h5p editor and UI in english.  Although H5P uses the same language in the authoring tool as the rest of the site, but it isn't work on drupal and Chinese.

tim's picture

Hi, unfortunately the editor for h5p doesn't have a chinese language file yet: 

https://github.com/h5p/h5p-editor-php-library/tree/master/language

not only h5p editor doesn't have a chinese language file, but also h5p-interactive-video etc.

All official-h5p-release-20161020.h5p  isn't work on drupal and Chinese.

I guess that Chinese language have zh and zh-cn. maybe somethings wrong.

tim's picture

Hi, thanks for reporting this. I'm going to try and test it locally. 

tim's picture

Hi, sorry for the late reply. This is because the language file zh.json should be called zh-hans.json in drupal. You could try renaming it and see if drupal picks it up.

Since the platforms (wordpress, Drupal etc) expect different file names it is a bit hard to make sure all the translations work everywhere. However, it's something that will be improved in the near future.