Topic
7 replies Latest Post - ‏2010-08-11T15:30:04Z by thartric
bobleah
bobleah
8 Posts
ACCEPTED ANSWER

Pinned topic Bloggers: Instructions for inserting the n.Fluent widget into your blog

‏2010-07-22T03:31:58Z |
 Follow these steps to insert the n.Fluent widget into your blog:
  1. From your blog, click the Settings button
  2. From Preferences Tab, click Templates sub-tab
  3. Click Edit icon for your Weblog template
  4. Find -> <div id="followBlog"></div> in your Weblog template
  5. Insert the widget code before this line in your Weblog template
  6. Click Save to update your Weblog template.
  7. Reply to this forum post with your blog name and URL please!

The widget code for English language blogs:


<div id="dw_blog_transwidget"></div>
<script type="text/javascript" src="https://www.ibm.com/developerworks/mydeveloperworks/blogs/c7f41400-4eb9-477c-b6fb-042466407259/resource/dw_blog_transwidget.js">//</script>
 
For blogs that are in a language other than English, use this widget, which contains an extra script to configure "From" language, and provides for optional translation of the text that appears within the widget body itself  (Note: At this time please do not update the dww.feedbacklink Parm) :

<div id="dw_blog_transwidget"></div>

<script type="text/javascript">
dww = {};
dww.fromLangName='English';
dww.fromLang='en_us';
dww.heading='Translate this blog (Pilot)';
dww.feedback='Give us your feedback!';
dww.feedbacklink='https://www.ibm.com/developerworks/mydeveloperworks/groups/service/html/communityview?communityUuid=c7f41400-4eb9-477c-b6fb-042466407259';
dww.msg='<b>Real-Time Translation</b> performed by IBM n.Fluent.';
</script>

<script type="text/javascript" src="https://www.ibm.com/developerworks/mydeveloperworks/blogs/c7f41400-4eb9-477c-b6fb-042466407259/resource/dw_blog_transwidget.js">//</script> 
 
Language Parms for dww.fromLangName and dww.fromLang
  • dww.fromLangName='Arabic'  dww.fromLang='ar_ar'
  • dww.fromLangName='German'  dww.fromLang='de_de'
  • dww.fromLangName='Spanish'  dww.fromLang='es_es'
  • dww.fromLangName='French'  dww.fromLang='fr_fr'
  • dww.fromLangName='Italian'  dww.fromLang='it_it'
  • dww.fromLangName='Japanese'  dww.fromLang='ja_jp'
  • dww.fromLangName='Korean'  dww.fromLang='ko_kr'
  • dww.fromLangName='Portuguese'  dww.fromLang='pt_pt'
  • dww.fromLangName='Russian'  dww.fromLang='ru_ru'
  • dww.fromLangName='Chinese Simplified'  dww.fromLang='zh_cn'
  • dww.fromLangName='Chinese Traditional'  dww.fromLang='zh_tw'
Updated on 2010-08-23T13:25:43Z at 2010-08-23T13:25:43Z by bobleah
  • leahket
    leahket
    3 Posts
    ACCEPTED ANSWER

    Using n.fluent on blogs sourced in languages other than English

    ‏2010-07-22T13:17:51Z  in response to bobleah
    Some of our non-english bloggers might want to use n.fluent to translate back into english.  As n.fluent only translates from non-English into English (rather than for example, Arabic to Italian), what are the instructions for those bloggers ?
     
    There is a lang value in the javascript you reference (from=en-us) maybe that is the key.
    Updated on 2010-07-22T13:17:51Z at 2010-07-22T13:17:51Z by leahket
    • bobleah
      bobleah
      8 Posts
      ACCEPTED ANSWER

      Re: Using n.fluent on blogs sourced in languages other than English

      ‏2010-07-22T13:25:31Z  in response to leahket
      They would modify this string in the widget: &from=en-us
       
      I have asked CJ to provide additional details on supported values....
       
    • CJS
      CJS
      1 Post
      ACCEPTED ANSWER

      Re: Using n.fluent on blogs sourced in languages other than English

      ‏2010-07-22T14:18:50Z  in response to leahket
       Hi Leah,
       
      Can you please tell me which languages you want to support ? I can step you through each one of them.

      Regards,
      CJ
      • leahket
        leahket
        3 Posts
        ACCEPTED ANSWER

        Re: Using n.fluent on blogs sourced in languages other than English

        ‏2010-07-22T16:06:54Z  in response to CJS
         we should provide instructions in the FAQ or this instruction group for all languages supported by n.fluent.
        • bobleah
          bobleah
          8 Posts
          ACCEPTED ANSWER

          Re: Using n.fluent on blogs sourced in languages other than English

          ‏2010-07-24T02:18:03Z  in response to leahket
           I have simplified the the n.Fluent widget and supplied options and instructions for the "From" language.  I hope this helps!
          • leahket
            leahket
            3 Posts
            ACCEPTED ANSWER

            Re: Using n.fluent on blogs sourced in languages other than English

            ‏2010-07-26T18:46:17Z  in response to bobleah
             Thanks Bob and CJ. 
  • thartric
    thartric
    2 Posts
    ACCEPTED ANSWER

    Re: Bloggers: Instructions for inserting the n.Fluent widget into your blog

    ‏2010-08-11T15:30:04Z  in response to bobleah
     worked like a charm for me... thanks!