← Back to team overview

mahara-contributors team mailing list archive

[Bug 1265061] Re: detecting which language to use for tinymce not correct

 

Have added a patch
https://reviews.mahara.org/#/c/2853/

To test:

1) Add in some language packs to the site - make sure to add language
packs that are both dialect ones, it will have a 5 char code instead of
two in left hand column, and non dialect ones.

2) Make sure one of the dialect ones also exists as a dialect lang pack
for tinymce (see /js/tinymce/langs/ directory for what is installed) -
Currently only zh_TW matches this criteria.

3) Pick the language to test in site options

4) Go to a page that uses tinymce (eg /artefact/internal/index.php) and make sure tinymce is displaying the correct language.
- when you are viewing tinymce with mahara using zh_TW  
   -- without the patch it will use the zh.js lang pack 
   -- with the patch it will use the zh-tw.js lang pack

** Changed in: mahara
       Status: Confirmed => In Progress

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1265061

Title:
  detecting which language to use for tinymce not correct

Status in Mahara ePortfolio:
  In Progress

Bug description:
  Taking just the fist 2 letters of the current language to select which
  language file to use with tinymce will not work correctly for some
  languages dialects.

  eg Chinese, traditional is represented with 'zh_tw' in mahara language
  packs (http://langpacks.mahara.org/)  - note the underscore

  and is represented as zh-tw.js for the tinymce language pack - note
  the hyphen.

  And is different to the tinymce language pack zh-cn.js

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1265061/+subscriptions


References