Last modified: 2012-07-09 05:52:11 UTC
Hello, I just installed the Translate extension in a mediawiki 1.18 installation I'm using for tests, and according to everything I've read so far, I've installed the extension correctly. However, every time I try to translate a message unit, in the popup that appears at the top of the page, a javascript alert message appears stating the following error: Unknown error: "tpt-unknown-page" (unknownerror) What is this error and how can I solve it? This is completely blocking my work and I already spent quite a few hours trying to solve this, including a new fresh installation of the mediawiki. Thanks in advance.
What kind of message groups and which version of Translate? Running php scripts/createMessageIndex.php will temporarily fix the problem.
(In reply to comment #1) > What kind of message groups and which version of Translate? > > Running php scripts/createMessageIndex.php will temporarily fix the problem. The latest stable version for MediaWiki 1.18. I'm not sure what you mean by kind of message groups, but I'm currently testing the translate extension for a wiki page, which has create a message group with 4 message units, one being the title and another three for the page's content.
There is no such thing as latest stable version of Translate for MediaWiki 1.18. If you are downloading Translate from 1.18 branch you are getting a year old version. The latest version from https://gerrit.wikimedia.org/r/gitweb?p=mediawiki/extensions/Translate.git still supports MediaWiki 1.18.
In the Translate extension page (http://www.mediawiki.org/wiki/Extension:Translate), to the right there is a link called "Download Snapshot". I clicked on it which took me to this page (http://www.mediawiki.org/wiki/Special:ExtensionDistributor/Translate) letting me choose for which version of MediaWiki I have. So I assumed this was the latest stable version for MediaWiki 1.18. Also when I updated to the extension version you gave me (I removed the old folder and pasted the new version) a new error appeared when I clicked on a message unit to translate, which can be seen in the image I attached to this ticket. This is the configuration I have for extension: require_once( "$IP/extensions/Translate/Translate.php" ); $wgGroupPermissions['translator']['translate'] = true; $wgTranslateDocumentationLanguageCode = 'qqq'; $wgGroupPermissions['sysop']['pagetranslation'] = true; $wgEnablePageTranslation = true;
Created attachment 10775 [details] Error that appears when clicking on a message unit to translate.
Is there a solution or fix for these issues? I tried running that script, but now, if I try to save the translation, nothing happens. Nothing is saved. Any help would be greatly appreciated.
I need more information that "nothing happens". It would be helpful if you checked PHP error logs and inspected the AJAX request in the developer tools of Firefox or Chrome.
*** This bug has been marked as a duplicate of bug 37647 ***