Extension talk:MultiLanguageManager

From MediaWiki.org
Jump to: navigation, search

Search[edit | edit source]

Is it possible to search for articles in a specific language? If I search for "news" on http://www.art122-5.net/ I get "Accueil" (French) and "Home" (English)? --Denise 21:07, 10 June 2007 (UTC)

that is not possible yet, because ... I did not think about that ... but it's a good idea :) I will try to add this in a few days --Absimiliard 21:41, 10 June 2007 (UTC)

Creating translation page[edit | edit source]

First this is a really nice extension, we migrating lots of documentation both internal & external to wiki's and we have a legal requirement to provide both Welsh & English versions and this will help us alot, thanks for your work (working on MW Verssion 1.9.2)

It would be nice if an editor could go to a page, in say English, select the language tab, put in the name of the page they wanted to link to in the second language, and if it doesn't already exist they are offered the option of creating it, selecting it's language, and the the editor is opened for them, as well as the various entries created in the new table.

May be just another section at the bottom of the Special:MultiLanguageManager page, which has a box for the new page name, a radio selector for the language of the new page and a 'create new page for translated version' button.

Tarlachmoorhouse 10:21, 11 June 2007 (UTC)

  • Thanks for your comment :)

For your request, the first version (0.1.0) of this extension worked like that, but I have changed its architecture and this feature was dropped. It's not really difficult to put it back, I will try to do that next week, with the search engine

--Absimiliard 21:11, 12 June 2007 (UTC)

How can I integrate the language switch[edit | edit source]

Is a nice extension. But at the moment i have no possibility to change the Language. Can anybody give me a short example (ToDo List)? Is it possibel to change the Language with the LanguageSelector?

--Mchansy 14:36, 3 July 2007 (UTC)

hello, what is exactly your problem ?

did you install the extension and you want to know how to create a translated page ? or do you want to know how to install the language selector ? if you want you can contact me directly using http://forum.art122-5.net

If you have correctly install the extension, you have a new tab "language" you can use for setting the page language, and then you can use the same tab to say which page the current page translated

I will try to create an example

Absimiliard 19:30, 3 July 2007 (UTC)

Page name[edit | edit source]


Thank you for this extension, it's very useful and works fine. However, a major issue remains: there's no way to create two pages with the same name, but in different languages. Many articles share the same name in several languages, especially proper names, and this is why I'm currently trying to edit MediaWiki. Sadly, I'm afraid the only thing I'll achieve is fucking up the whole piece of software, if I may say. I have a few ideas, like using different tables depending on the lang value used in the URL, but I still wanted to ask if anyone had had the same problem and, perhaps, had found a way to fix it. Thanks!


This one's easy: Just create an article named "ARTICLE" and the translations as "ARTICLE/en" or "ARTICLE/de" etc.
To the author' A better way would be to create the ARTICLE as "ARTICLE/<language>" and have "ARTICLE/default-language" redirect to it. Then on ARTICLE, the extension either automagically redirects the user to the article in the user's preferred language, OR (if that translation doesn't exist), it redirects the user to ARTICLE/default-language. If automagic isn't possible or feasible, then create a new MAGIC WORD which will do the trick. Article creators then need to create ARTICLE containing only this magic word.
--otheus 13:59, 26 July 2008 (UTC)

Setup problems[edit | edit source]

As documentation for setup problems and how I solved them, here the problems that I faced on 29.10.2008 and the links to the solutions. The versions were:

  • MultiLanguageManager 1.0.1
  • MediaWiki 1.13.2

"mlChangeLanguageForGuest failed to return a value"[edit | edit source]

Solution found in this Thread: In file MultiLanguageManager.php add at the end of the following function modules

  • mlLoadMessages
  • mlAddLanguageAction
  • mlChangeLanguageForGuest
  • mlCleanLanguageOnArticleDelete

the line return(true);

Where shall I add the language switch in my template?[edit | edit source]

Solution found in this Thread.

!!! Links to http://forum.art122-5.net are unuseful as that server seems to be offline. Please copy the guidelines into the artcle. Thanks :)

Mediawiki:Sidebar switch[edit | edit source]

This is nice extension, very nice: thanks! It is simple to match pages and change language: it is fantastic! Is it possible to switch Mediawiki:Sidebar page when switch page traslated.. as Art122-5 site? -- Bilardi 14:57, 9 October 2009 (UTC)

Not working with MW 1.16.0[edit | edit source]

Version 1.0.1 of this extension is not working with MW 1.16.0. I can't find the option to change the language in MW 1.16.0 10:24, 29 September 2010 (UTC)

This extension uses a method that doesn't exist in MW 1.16 onwards which leads to a PHP Fatal error: Call to undefined method DatabaseMysql::safeQuery() in ...\extensions\MultiLanguageManager\MultiLanguageManager_controller.php on line ... If you absolutely must use this extension, you'll have to at least replace the safeQuery() calls with query(). Better still use the methods described in Manual:Database_access. --Pigpen (talk) 16:01, 23 September 2013 (UTC)

Source File Corrupted[edit | edit source]

Went to http://www.art122-5.net/index.php/MediaWiki_multi-Language_management_with_the_extension_MultiLanguageManager to get a copy but after downloading, archiver says the file is corrupted and I could not use it. Please help! Any other alternative?

Download does not work[edit | edit source]

Downloading the extension is not possible. Always redirects to Download Page

Any alternative download locations? Or any alternatives? -- 11:28, 31 July 2011 (UTC)

Database corruption[edit | edit source]

I started a wiki here and found that the MultiLanguageManager was just right for this kind of project. It's been working fine up until recently, I noticed that it was all screwed up and the pages weren't linking to each other any more. When I went to the Language Manager for any given page I noticed that the language of the article was always in english. If I set it to italian, it would say "language set to italian" or whatever but the radio input was still on english. I went to look at the database to see if anything had happened there, and in fact in the "wiki_page_language" table the "lang" field was set to BINARY instead of VARCHAR!

Now how can that happen? There must have been some malicious code that executed in my wiki? I am having to often block malicious users who are targeting the wiki and inserting nonsense pages. Could it be that some user was able to do mysql injection such as to change the type of field? Is there any weakness in the code of the extension that could open up to mysql injection? --Lwangaman 05:09, 20 August 2011 (UTC)

Link back to article from the Manager?[edit | edit source]

It would be very useful to have a way of navigating back to the article from the Language Manager. I'm finding that there is no link back to the article who's language settings are being set. For example in the section of the page that says:

Select the language of the article : _article name_

"_article name_" could easily become "[[_article name_]]". --Lwangaman 08:03, 20 August 2011 (UTC)

Download not working / Is this extension being maintained?[edit | edit source]

I keep getting redirected to the same page when I try to download 1.0.1 http://www.art122-5.net/index.php/Download_MultiLanguageManager_1.0.1.tgz

From the older posts, it seems the developer no longer responding or maintaining. Can you recommend another method of creating multilanguage site for a total newbie?

Or can you please post your copy of the MultiLanguageManager_1.0.1.tgz  ? It looks like just what I need. thanks.