Details

    • Type: Task Task
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Component/s: docs.moodle.org
    • Labels:
      None
    • Rank:
      19696

      Description

      I know people poo-poo the quality of Google translations but I still think it would be a good idea to provide some way to easily generate a translation on-the-fly of all the English docs.

      Let's start with the Development docs at least, to try it out. There are no official translations anyway.

      All we need to do is insert this somewhere near the top:

      <div id="google_translate_element"></div>
      <script>
      	function googleTranslateElementInit() {
      	  new google.translate.TranslateElement({
      	    pageLanguage: 'en'
      	  }, 'google_translate_element');
      	}
      </script>
      <script src="http://translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>
      

        Activity

        Martin Dougiamas created issue -
        Martin Dougiamas made changes -
        Field Original Value New Value
        Assignee Helen Foster [ tsala ] Jordan Tomkinson [ jtomkinson ]
        Hide
        Martin Dougiamas added a comment -

        An example of what it looks like (and where I got the code): http://www.jhische.com/twitter/

        Show
        Martin Dougiamas added a comment - An example of what it looks like (and where I got the code): http://www.jhische.com/twitter/
        Hide
        Jordan Tomkinson added a comment -

        Quickly hacked this into the theme to display as a nav block, it appears to have broken the links above the wiki page (article, page comments, history, etc..)

        its on the docstest site: http://docstest.moodle.local/20/en/Main_Page

        Show
        Jordan Tomkinson added a comment - Quickly hacked this into the theme to display as a nav block, it appears to have broken the links above the wiki page (article, page comments, history, etc..) its on the docstest site: http://docstest.moodle.local/20/en/Main_Page
        Hide
        Helen Foster added a comment -

        Unfortunately I can't access http://docstest.moodle.local/. How about using http://docs.moodle.org/test/ for testing docs stuff.

        Show
        Helen Foster added a comment - Unfortunately I can't access http://docstest.moodle.local/ . How about using http://docs.moodle.org/test/ for testing docs stuff.
        Hide
        Jordan Tomkinson added a comment -
        Show
        Jordan Tomkinson added a comment - http://docstest.moodle.com/
        Martin Dougiamas made changes -
        Workflow jira [ 100119 ] SITES Full Workflow [ 125376 ]

          People

          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:

              Development