Issue Details (XML | Word | Printable)

Key: MDL-18766
Type: New Feature New Feature
Status: Reopened Reopened
Priority: Major Major
Assignee: Nobody
Reporter: Tim Hunt
Votes: 0
Watchers: 1
Operations

Add/Edit UI Mockup to this issue
If you were logged in you would be able to see more operations.
Moodle

Moodle should have an automatic translation system

Created: 01/Apr/09 08:37 AM   Updated: 02/Apr/09 05:58 PM
Return to search
Component/s: Lib
Affects Version/s: 2.0
Fix Version/s: None

File Attachments: 1. Text File autotranslate.patch.txt (20 kB)


Participants: Dan Poltawski, Eloy Lafuente (stronk7), Nobody and Tim Hunt
Security Level: None
Resolved date: 01/Apr/09
Affected Branches: MOODLE_20_STABLE


 Description  « Hide
Like http://translate.google.com/, but better, of course. Would save our translators a lot of work.

Perhaps improving the algorithms would make a good GSoC project.

 All   Comments   Change History   Version Control      Sort Order: Ascending order - Click to sort in descending order
tjhunt committed 8 files to 'Moodle CVS' - 01/Apr/09 08:39 AM
translation: MDL-18766 Prototype automatic translation system for Moodle.

If Google can do something like http://translate.google.com/, surely we
can do something just as good in Moodle. Here is a first attempt. It is
a bit rough around the edges, and only a couple of target lananguages
have been implemented so far. (More and better attempts welcome!)

In order to ensure that this gets adequate testing, I have made sure that
it gets turn on by default. However, if you really don't like it, you can
turn it off under Administration > Development -> Experimental settings.
ADD lib/Attic/autotranslatelib.php   Rev. 1.1    (+0 -0 lines)
MODIFY admin/index.php   Rev. 1.381    (+2 -1 lines)
MODIFY admin/settings/development.php   Rev. 1.4    (+2 -1 lines)
ADD lib/simpletest/Attic/testautotranslatelib.php   Rev. 1.1    (+0 -0 lines)
MODIFY lib/weblib.php   Rev. 1.1223    (+10 -14 lines)
MODIFY lib/moodlelib.php   Rev. 1.1183    (+4 -1 lines)
MODIFY lib/setup.php   Rev. 1.264    (+2 -1 lines)
ADD lang/en_utf8/Attic/autotranslate.php   Rev. 1.1    (+0 -0 lines)
Tim Hunt made changes - 01/Apr/09 08:40 AM
Field Original Value New Value
Status Open [ 1 ] Resolved [ 5 ]
Resolution Fixed [ 1 ]
Eloy Lafuente (stronk7) committed 2 files to 'Moodle CVS' - 01/Apr/09 05:04 PM
MDL-18766 Towards improved translation
MODIFY lang/en_utf8/Attic/autotranslate.php   Rev. 1.2    (+2 -1 lines)
MODIFY lib/Attic/autotranslatelib.php   Rev. 1.2    (+25 -2 lines)
Eloy Lafuente (stronk7) added a comment - 01/Apr/09 05:15 PM
Improved it a bit... trying to be more accurate with default translations. Great stuff, Tim.

Dan Poltawski added a comment - 02/Apr/09 01:05 AM
Grrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr I'm afraid this breaks install.

Dan Poltawski made changes - 02/Apr/09 01:05 AM
Resolution Fixed [ 1 ]
Status Resolved [ 5 ] Reopened [ 4 ]
Tim Hunt added a comment - 02/Apr/09 10:32 AM
Dan, I tested install and it worked for me!

tjhunt committed 8 files to 'Moodle CVS' - 02/Apr/09 10:42 AM
translation: MDL-18766 reverting. I guess it was not yet ready for prime-time.

I'll commit the patch to contrib in case anyone wishes to experiment further.
MODIFY lib/weblib.php   Rev. 1.1224    (+3 -5 lines)
DEL lang/en_utf8/Attic/autotranslate.php   Rev. 1.3    (+0 -0 lines)
MODIFY lib/moodlelib.php   Rev. 1.1184    (+1 -4 lines)
DEL lib/Attic/autotranslatelib.php   Rev. 1.3    (+0 -0 lines)
MODIFY lib/setup.php   Rev. 1.265    (+1 -2 lines)
MODIFY admin/settings/development.php   Rev. 1.5    (+1 -2 lines)
MODIFY admin/index.php   Rev. 1.382    (+1 -2 lines)
DEL lib/simpletest/Attic/testautotranslatelib.php   Rev. 1.2    (+0 -0 lines)
Tim Hunt added a comment - 02/Apr/09 10:49 AM
Here is a patch against HEAD in case anyone needs it. Committing to contrib soon.

Tim Hunt made changes - 02/Apr/09 10:49 AM
Attachment autotranslate.patch.txt [ 16740 ]
Tim Hunt made changes - 02/Apr/09 10:52 AM
Assignee Tim Hunt [ timhunt ] Nobody [ nobody ]
Tim Hunt made changes - 02/Apr/09 10:53 AM
Fix Version/s 2.0 [ 10122 ]
Dan Poltawski added a comment - 02/Apr/09 05:58 PM
There seemed to be a require problem within moodlelib when calling get_string during install.