Telligent Community 7.0 (TinyMCE localization)

Telligent Community 7.0 (TinyMCE localization)

This question is answered

All,

We have a Telligent Community 7.0 installation in the Netherlands and therefore localized our site to dutch. The only thing that is not localized is the used Full HTML editor component TinyMCE.

we went to the tinymce.com and saw that there was a dutch translation available.

What I would like to know how can we activate 'nl' language instead of the default  'en'?

Regards,

Steve

Verified Answer
  • The editor does not use user language.  You can add a default language to the editor using the following override:
     
      <Override xpath="/CommunityServer/Core/editors/editor[@name='Enhanced']" mode="add" where="end">
        <editorOption name="language" value="'nl'" />
      </Override>
     
     
    ..and here is the BUT…  though doing this works, unless you have an nl.js for every plugin in Evolution(which is a translation) your editor will not work until you add the translations OR disable them. 
     
    Patrick Mason
    Development Lead- Extensibility
    o: 214.420.1329
    telligent.com
     
    From: RoketteS [mailto:bounce-RoketteS@communities.telligent.com]
    Sent: Monday, January 21, 2013 9:47 AM
    To: discussion_evolution@communities.telligent.com
    Subject: RE: [Telligent Evolution Platform Discussion] Telligent Community 7.0 (TinyMCE localization)
     

    Rick,

    All but the tiny_mce editor is not translated so as we are a user that migrated from 6.x to 7.0 we are familiar with the translation that needs to be done in the centralized files /Languages, the Widgets & resources, but TinyMCE uses it's own language packs. The language is selected by the initialization of the tinyMCE editor see snippit:

    Again we already downloaded the correct [nl] language for tinyMCE but see no option within telligent (controlpanel and/or .config files) to select this for us. When using the start forum discussion.

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "www.w3.org/.../xhtml1-strict.dtd">

    <html xmlns="www.w3.org/.../xhtml">

    <head>

    <title>Simple theme example</title>

    <!-- TinyMCE -->

    <script type="text/javascript" src="/tiny_mce/tiny_mce.js"></script>

    <script type="text/javascript">

    tinyMCE.init({

        language : "nl", // change language here

        mode : "textareas",

        theme : "simple"  

    });

    </script>

    <!-- /TinyMCE -->

    </head>

All Replies
  • I am pretty sure the language support is till the same and hasn’t changed.
     
    http://telligent.com/support/csevolution/w/product_documentation/creating-a-new-language-pack.aspx
     
    Best Regards,
    Rick Reszler
     
     
    From: RoketteS [mailto:bounce-RoketteS@communities.telligent.com]
    Sent: Monday, January 21, 2013 10:06 AM
    To: discussion_evolution@communities.telligent.com
    Subject: [Telligent Evolution Platform Discussion] Telligent Community 7.0 (TinyMCE localization)
     

    All,

    We have a Telligent Community 7.0 installation in the Netherlands and therefore localized our site to dutch. The only thing that is not localized is the used Full HTML editor component TinyMCE.

    we went to the tinymce.com and saw that there was a dutch translation available.

    What I would like to know how can we activate 'nl' language instead of the default  'en'?

    Regards,

    Steve

  • Rick,

    All but the tiny_mce editor is not translated so as we are a user that migrated from 6.x to 7.0 we are familiar with the translation that needs to be done in the centralized files /Languages, the Widgets & resources, but TinyMCE uses it's own language packs. The language is selected by the initialization of the tinyMCE editor see snippit:

    Again we already downloaded the correct [nl] language for tinyMCE but see no option within telligent (controlpanel and/or .config files) to select this for us. When using the start forum discussion.

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "www.w3.org/.../xhtml1-strict.dtd">

    <html xmlns="www.w3.org/.../xhtml">

    <head>

    <title>Simple theme example</title>

    <!-- TinyMCE -->

    <script type="text/javascript" src="/tiny_mce/tiny_mce.js"></script>

    <script type="text/javascript">

    tinyMCE.init({

        language : "nl", // change language here

        mode : "textareas",

        theme : "simple"  

    });

    </script>

    <!-- /TinyMCE -->

    </head>

  • I found a link to some documentation, it seems you have to build your own language pack for TinyMCE.
     
    http://www.tinymce.com/wiki.php/Configuration:language
     
    Best Regards,
    Rick Reszler
     
     
    From: RoketteS [mailto:bounce-RoketteS@communities.telligent.com]
    Sent: Monday, January 21, 2013 10:47 AM
    To: discussion_evolution@communities.telligent.com
    Subject: RE: [Telligent Evolution Platform Discussion] Telligent Community 7.0 (TinyMCE localization)
     

    Rick,

    All but the tiny_mce editor is not translated so as we are a user that migrated from 6.x to 7.0 we are familiar with the translation that needs to be done in the centralized files /Languages, the Widgets & resources, but TinyMCE uses it's own language packs. The language is selected by the initialization of the tinyMCE editor see snippit:

    Again we already downloaded the correct [nl] language for tinyMCE but see no option within telligent (controlpanel and/or .config files) to select this for us. When using the start forum discussion.

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "www.w3.org/.../xhtml1-strict.dtd">

    <html xmlns="www.w3.org/.../xhtml">

    <head>

    <title>Simple theme example</title>

    <!-- TinyMCE -->

    <script type="text/javascript" src="/tiny_mce/tiny_mce.js"></script>

    <script type="text/javascript">

    tinyMCE.init({

        language : "nl", // change language here

        mode : "textareas",

        theme : "simple"  

    });

    </script>

    <!-- /TinyMCE -->

    </head>

  • The editor does not use user language.  You can add a default language to the editor using the following override:
     
      <Override xpath="/CommunityServer/Core/editors/editor[@name='Enhanced']" mode="add" where="end">
        <editorOption name="language" value="'nl'" />
      </Override>
     
     
    ..and here is the BUT…  though doing this works, unless you have an nl.js for every plugin in Evolution(which is a translation) your editor will not work until you add the translations OR disable them. 
     
    Patrick Mason
    Development Lead- Extensibility
    o: 214.420.1329
    telligent.com
     
    From: RoketteS [mailto:bounce-RoketteS@communities.telligent.com]
    Sent: Monday, January 21, 2013 9:47 AM
    To: discussion_evolution@communities.telligent.com
    Subject: RE: [Telligent Evolution Platform Discussion] Telligent Community 7.0 (TinyMCE localization)
     

    Rick,

    All but the tiny_mce editor is not translated so as we are a user that migrated from 6.x to 7.0 we are familiar with the translation that needs to be done in the centralized files /Languages, the Widgets & resources, but TinyMCE uses it's own language packs. The language is selected by the initialization of the tinyMCE editor see snippit:

    Again we already downloaded the correct [nl] language for tinyMCE but see no option within telligent (controlpanel and/or .config files) to select this for us. When using the start forum discussion.

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "www.w3.org/.../xhtml1-strict.dtd">

    <html xmlns="www.w3.org/.../xhtml">

    <head>

    <title>Simple theme example</title>

    <!-- TinyMCE -->

    <script type="text/javascript" src="/tiny_mce/tiny_mce.js"></script>

    <script type="text/javascript">

    tinyMCE.init({

        language : "nl", // change language here

        mode : "textareas",

        theme : "simple"  

    });

    </script>

    <!-- /TinyMCE -->

    </head>

  • Patrick,

    I saw your answer and acknowledge the issue with every plugin that needs to be translated to (which is not part of the core TinyMCE out of the box translation).

    Regards,

    Steve

  • Patrick I just pasted your description of all the component that also need to be translated in my .config but the ... part was an exteded char that is not allowed in the .xml ;) The editor did not work without the rest translated.

    regards,

    steve

  • Pasting sometimes makes things weird, its probably the single quotes.  Let me know if you couldn’t find the issue and I will format it in plain text.
     
    I assume you did because you found the issue.  If you do not translate all plugins(and Evolution has many third party and internal ones) the editor will not work at all.  This is because each non-translated plugin results in a 404(not found) when asking for the nl translation
    Patrick Mason
    Development Lead- Extensibility
    o: 214.420.1329
    telligent.com
     
    From: RoketteS [mailto:bounce-RoketteS@communities.telligent.com]
    Sent: Monday, January 21, 2013 10:25 AM
    To: discussion_evolution@communities.telligent.com
    Subject: RE: [Telligent Evolution Platform Discussion] Telligent Community 7.0 (TinyMCE localization)
     

    Patrick I just pasted your description of all the component that also need to be translated in my .config but the ... part was an exteded char that is not allowed in the .xml ;) The editor did not work without the rest translated.

    regards,

    steve

  • Patrick,

    Yes I solved it and copied the english files as the dutch for all of the missing plugins and the system start working again with partly translated editor :)

    Regards,

    Steve

  • That will work.  Glad you got it going
     
    Patrick Mason
    Development Lead- Extensibility
    o: 214.420.1329
    telligent.com
     
    From: RoketteS [mailto:bounce-RoketteS@communities.telligent.com]
    Sent: Monday, January 21, 2013 11:04 AM
    To: discussion_evolution@communities.telligent.com
    Subject: RE: [Telligent Evolution Platform Discussion] Telligent Community 7.0 (TinyMCE localization)
     

    Patrick,

    Yes I solved it and copied the english files as the dutch for all of the missing plugins and the system start working again with partly translated editor :)

    Regards,

    Steve