Talk:MediaWiki Language Extension Bundle

Jump to navigation Jump to search

About this board

Archive


Problem with the article itself: history is f'd up

4
Otheus (talkcontribs)
Jdforrester (WMF) (talkcontribs)

Revisions from prior October 2019 are showing more recent or current versions of the page. For example https://www.mediawiki.org/w/index.php?title=MediaWiki_Language_Extension_Bundle&oldid=3243449

That's because the page is using the {{/releases}} wikitext transclusion construction, which doesn't respect page versioning. The equivalent version of the transcluded page would be this one.

It's also unacceptable that links to the meiawiki itself are not whitelisted from abusefilter-linkspam guards.

I'm sorry, I don't know what you're saying?

Otheus (talkcontribs)

> That's because the page is using the Template:/releases wikitext transclusion construction, which doesn't respect page versioning.

That to me is a horrible documentation practice. Is this subpage/transclusion now a 'thing' with MW extensions? Thanks for finding the equivalent for me!

> It's also unacceptable that links to the meiawiki itself are not whitelisted from abusefilter-linkspam guards.

That's a complaint I should direct toward mediawiki.org. Nevermind. I tried to post the comment anonymously, which failed due to the inclusion of the link.

One more additional point: somewhere in the /installation documentation, it should be noted that 'rebuildLocalisation' should be run in the case of static lang-cache installations. Otherwise, the babel keyword won't be found and you'll get a horrible exception.

Jdforrester (WMF) (talkcontribs)

> That's because the page is using the Template:/releases wikitext transclusion construction, which doesn't respect page versioning. That to me is a horrible documentation practice. Is this subpage/transclusion now a 'thing' with MW extensions? Thanks for finding the equivalent for me!

Yeah, it's a mess, I agree. I don't think it's a common practice, no. This page is very unusual, as it's about a bundle of extension released as a tarball together rather than the normal individual manner.

> It's also unacceptable that links to the meiawiki itself are not whitelisted from abusefilter-linkspam guards. That's a complaint I should direct toward mediawiki.org. Nevermind. I tried to post the comment anonymously, which failed due to the inclusion of the link.

Oh, right. Sorry about that!

One more additional point: somewhere in the /installation documentation, it should be noted that 'rebuildLocalisation' should be run in the case of static lang-cache installations. Otherwise, the babel keyword won't be found and you'll get a horrible exception.

Oh. In my innocence, I had assumed that anything like that would be run by update.php; that certainly sounds like it should be added, yes.

Reply to "Problem with the article itself: history is f'd up"

after installed my wiki doesnt open

2
178.245.40.51 (talkcontribs)

MediaWiki internal error.

Original exception: [Xhynhn8RCN6g4AKfQjl5bwAAADo] /index.php/Main_Page Wikimedia\Rdbms\DBQueryError from line 1603 of /home/vol9_6/epizy.com/epiz_25047816/htdocs/includes/libs/rdbms/database/Database.php: A database query error has occurred. Did you forget to run your application's database schema updater after upgrading?

Query: SELECT rt_revision FROM `mwmw_revtag` WHERE rt_page = '1' AND rt_type = 'tp:mark' ORDER BY rt_revision DESC LIMIT 1

Function: TranslatablePage::getTag

Error: 1146 Table 'epiz_25047816_69.mwmw_revtag' doesn't exist (sql200.byetcluster.com)

Backtrace:

#0 /home/vol9_6/epizy.com/epiz_25047816/htdocs/includes/libs/rdbms/database/Database.php(1574): Wikimedia\Rdbms\Database->getQueryExceptionAndLog(string, integer, string, string)

#1 /home/vol9_6/epizy.com/epiz_25047816/htdocs/includes/libs/rdbms/database/Database.php(1152): Wikimedia\Rdbms\Database->reportQueryError(string, integer, string, string, boolean)

#2 /home/vol9_6/epizy.com/epiz_25047816/htdocs/includes/libs/rdbms/database/Database.php(1807): Wikimedia\Rdbms\Database->query(string, string)

#3 /home/vol9_6/epizy.com/epiz_25047816/htdocs/includes/libs/rdbms/database/Database.php(1644): Wikimedia\Rdbms\Database->select(string, string, array, string, array, array)

#4 /home/vol9_6/epizy.com/epiz_25047816/htdocs/includes/libs/rdbms/database/DBConnRef.php(68): Wikimedia\Rdbms\Database->selectField(string, string, array, string, array)

#5 /home/vol9_6/epizy.com/epiz_25047816/htdocs/includes/libs/rdbms/database/DBConnRef.php(302): Wikimedia\Rdbms\DBConnRef->__call(string, array)

#6 /home/vol9_6/epizy.com/epiz_25047816/htdocs/extensions/Translate/tag/TranslatablePage.php(616): Wikimedia\Rdbms\DBConnRef->selectField(string, string, array, string, array)

#7 /home/vol9_6/epizy.com/epiz_25047816/htdocs/extensions/Translate/tag/TranslatablePage.php(558): TranslatablePage->getTag(string)

#8 /home/vol9_6/epizy.com/epiz_25047816/htdocs/extensions/Translate/tag/PageTranslationHooks.php(937): TranslatablePage->getMarkedTag()

#9 /home/vol9_6/epizy.com/epiz_25047816/htdocs/extensions/Translate/tag/PageTranslationHooks.php(925): PageTranslationHooks::sourcePageHeader(RequestContext)

#10 /home/vol9_6/epizy.com/epiz_25047816/htdocs/includes/Hooks.php(174): PageTranslationHooks::translatablePageHeader(Article, boolean, boolean)

#11 /home/vol9_6/epizy.com/epiz_25047816/htdocs/includes/Hooks.php(202): Hooks::callHook(string, array, array, NULL)

#12 /home/vol9_6/epizy.com/epiz_25047816/htdocs/includes/page/Article.php(693): Hooks::run(string, array)

#13 /home/vol9_6/epizy.com/epiz_25047816/htdocs/includes/actions/ViewAction.php(63): Article->view()

#14 /home/vol9_6/epizy.com/epiz_25047816/htdocs/includes/MediaWiki.php(511): ViewAction->show()

#15 /home/vol9_6/epizy.com/epiz_25047816/htdocs/includes/MediaWiki.php(302): MediaWiki->performAction(Article, Title)

#16 /home/vol9_6/epizy.com/epiz_25047816/htdocs/includes/MediaWiki.php(900): MediaWiki->performRequest()

#17 /home/vol9_6/epizy.com/epiz_25047816/htdocs/includes/MediaWiki.php(527): MediaWiki->main()

#18 /home/vol9_6/epizy.com/epiz_25047816/htdocs/index.php(44): MediaWiki->run()

#19 {main}

Exception caught inside exception handler: [Xhynhn8RCN6g4AKfQjl5bwAAADo] /index.php/Main_Page Wikimedia\Rdbms\DBQueryError from line 1603 of /home/vol9_6/epizy.com/epiz_25047816/htdocs/includes/libs/rdbms/database/Database.php: A database query error has occurred. Did you forget to run your application's database schema updater after upgrading?

Query: SELECT rt_page FROM `mwmw_revtag`,`mwmw_page` WHERE (rt_page = page_id) AND (rt_revision = page_latest) AND rt_type IN ('tp:mark','tp:tag') GROUP BY rt_page

Function: TranslatablePage::getTranslatablePages

Error: 1146 Table 'epiz_25047816_69.mwmw_revtag' doesn't exist (sql200.byetcluster.com)

Backtrace:

#0 /home/vol9_6/epizy.com/epiz_25047816/htdocs/includes/libs/rdbms/database/Database.php(1574): Wikimedia\Rdbms\Database->getQueryExceptionAndLog(string, integer, string, string)

#1 /home/vol9_6/epizy.com/epiz_25047816/htdocs/includes/libs/rdbms/database/Database.php(1152): Wikimedia\Rdbms\Database->reportQueryError(string, integer, string, string, boolean)

#2 /home/vol9_6/epizy.com/epiz_25047816/htdocs/includes/libs/rdbms/database/Database.php(1807): Wikimedia\Rdbms\Database->query(string, string)

#3 /home/vol9_6/epizy.com/epiz_25047816/htdocs/extensions/Translate/tag/TranslatablePage.php(893): Wikimedia\Rdbms\Database->select(array, string, array, string, array)

#4 /home/vol9_6/epizy.com/epiz_25047816/htdocs/extensions/Translate/tag/TranslatablePage.php(869): TranslatablePage::getTranslatablePages()

#5 /home/vol9_6/epizy.com/epiz_25047816/htdocs/includes/libs/objectcache/wancache/WANObjectCache.php(1424): TranslatablePage::{closure}(boolean, integer, array, NULL)

#6 /home/vol9_6/epizy.com/epiz_25047816/htdocs/includes/libs/objectcache/wancache/WANObjectCache.php(1278): WANObjectCache->fetchOrRegenerate(string, integer, Closure, array)

#7 /home/vol9_6/epizy.com/epiz_25047816/htdocs/extensions/Translate/tag/TranslatablePage.php(871): WANObjectCache->getWithSetCallback(string, integer, Closure, array)

#8 /home/vol9_6/epizy.com/epiz_25047816/htdocs/extensions/Translate/tag/PageTranslationHooks.php(1104): TranslatablePage::isSourcePage(Title)

#9 /home/vol9_6/epizy.com/epiz_25047816/htdocs/includes/Hooks.php(174): PageTranslationHooks::replaceSubtitle(string, SkinVector, OutputPage)

#10 /home/vol9_6/epizy.com/epiz_25047816/htdocs/includes/Hooks.php(202): Hooks::callHook(string, array, array, NULL)

#11 /home/vol9_6/epizy.com/epiz_25047816/htdocs/includes/skins/Skin.php(782): Hooks::run(string, array)

#12 /home/vol9_6/epizy.com/epiz_25047816/htdocs/includes/skins/SkinTemplate.php(278): Skin->subPageSubtitle()

#13 /home/vol9_6/epizy.com/epiz_25047816/htdocs/includes/skins/SkinTemplate.php(215): SkinTemplate->prepareQuickTemplate()

#14 /home/vol9_6/epizy.com/epiz_25047816/htdocs/includes/OutputPage.php(2574): SkinTemplate->outputPage()

#15 /home/vol9_6/epizy.com/epiz_25047816/htdocs/includes/exception/MWExceptionRenderer.php(134): OutputPage->output()

#16 /home/vol9_6/epizy.com/epiz_25047816/htdocs/includes/exception/MWExceptionRenderer.php(53): MWExceptionRenderer::reportHTML(Wikimedia\Rdbms\DBQueryError)

#17 /home/vol9_6/epizy.com/epiz_25047816/htdocs/includes/exception/MWExceptionHandler.php(121): MWExceptionRenderer::output(Wikimedia\Rdbms\DBQueryError, integer)

#18 /home/vol9_6/epizy.com/epiz_25047816/htdocs/includes/exception/MWExceptionHandler.php(195): MWExceptionHandler::report(Wikimedia\Rdbms\DBQueryError)

#19 /home/vol9_6/epizy.com/epiz_25047816/htdocs/includes/MediaWiki.php(558): MWExceptionHandler::handleException(Wikimedia\Rdbms\DBQueryError)

#20 /home/vol9_6/epizy.com/epiz_25047816/htdocs/index.php(44): MediaWiki->run()

#21 {main}

Nikerabbit (talkcontribs)

Did you run update.php?

Reply to "after installed my wiki doesnt open"

Create a self-installing Multilingual Mediawiki bundle

2
2001:B07:6443:2E8F:D1AF:CA79:4A5F:4089 (talkcontribs)

Instead of providing extensions into a bundle, could be interesting to have a ready to install complete version of updated Mediawiki with pre-installed extensions provided with an installer to make a clone of a Wikipedia multilingual site

Nikerabbit (talkcontribs)

This is not in scope of our work.

Reply to "Create a self-installing Multilingual Mediawiki bundle"

LocalisationUpdate - already part of 1.32?

3
AssetDenmark (talkcontribs)

When I tried to upload these it looks like LocalisationUpdate already exists? It is however not shown in the Specialpages:Version? Can anyone explain, do I need to add this in localsettings.php ?


wfLoadExtension( 'LocalisationUpdate' );

$wgLocalisationUpdateDirectory = "$IP/cache";

Nikerabbit (talkcontribs)

If you took the MediaWiki tarball, it includes some most often used extensions, including LocalisationUpdate. But it doesn't enable or configure them by default.

AssetDenmark (talkcontribs)

Thanks - I was just confused by this (thinking that I had broken everything), LocalisationUpdate does not appear in the special:version pages.

It would be kind of cool if there was an "unused" Extensions function? That could be done neatly, by using the version and gitinfo.json files. With a bit of work the Extension install process could be in a template and automated... if only I had the time!

Reply to "LocalisationUpdate - already part of 1.32?"

Page content language matching user prefs?

2
PatrikRoy (talkcontribs)

That bundle is really impressive, and all seems to work well on my wiki. Made some translations without problems.
My only concern is... the translated pages doesn't display by default in the language set by the user.
i.e. if a Russian user come on my english wiki, has set "Russian" in his language Preferences, and reads a page that has a translated subpage /ru, shouldn't the wiki displays that /ru page first for him?
Maybe I'm missing a parameter? Thanks for any advice.

Nikerabbit (talkcontribs)

Due to complicated reasons it is hard to automatically redirect users to their language. But you can use Special:MyLanguage/Pagename to create such links that will redirect to that version (if it exists).

Reply to "Page content language matching user prefs?"
Fanatikvoice (talkcontribs)

Hi, when I include parameter (" $ IP /extensions/Translate/Translate.php" ;) in LocalSettings.php, my Wiki is not working. Downloaded the latest version from 2018.10


Nikerabbit (talkcontribs)

Can you describe how it is not working? Error messages? Blank page? Make sure that those spaces inside "" are not actually there.

Include TranslationNotifications?

5
Kghbln (talkcontribs)

I find the TranslationNotifications pretty useful and I wonder why this is not included in MLEB. Well there is probably a reason, but ... ;) I personally find it more useful than e.g. CleanChanges. Not saying that the latter is less useful. However in the translation context...

Nikerabbit (talkcontribs)

No particular reason I suppose. Perhaps I thought that no other wiki has such amount of translators that it would be useful. I have to say though that the extension is not well maintained and has severe issues.

Thanks for reminding about CleanChanges... I should propose dropping it from the bundle.

Kghbln (talkcontribs)

Fair enough, though I think it is also very much useful if you have a wiki with little but irregular appearing translatable content or with irregular appearing translators.

"not well maintained and has severe issues". This scares me a bit now. If you think that it should not be used in production ...

Nikerabbit (talkcontribs)

It's probably fine for your wiki, have look at Phabricator. It has some issues sending notices to a lot of recipients.

Kghbln (talkcontribs)

Yeah, I have a maximum of about 10 translators. I am somewhat relieved now. Indeed this extension needs some love when looking at phabricator.

Reply to "Include TranslationNotifications?"

Possible confusing instructions for installation?

3
Summary by Nikerabbit
Djruess (talkcontribs)

Under "Add/update your LocalSettings.php" it states "Near the end, you have to place the configuration lines given above (pick from one of the two sections)..."

To what "configuration lines given above" are they referencing? It could just be user error, but I don't see what it's talking about. Please help?

Thanks!

Djruess (talkcontribs)

So think I realized what they are talking about. For those who are confused like me.

You can either copy the instructions from each extension into your LocalSettings.php file - so for example: when you are installing Babel, can go to Babel's instructions and copy wfLoadExtension( 'Babel' ); into your LocalSettings.php file . . . and do that for each of the extensions in the bundle. (Doing this is considered the first section that you could pick from, when it says "(pick from one of the two sections)").

OR

You can simply copy the instructions they give under the "Add/update your LocalSettings.php" header - the instructions which includes all of the lines-of-code you need to put in your LocalSettings.php. (Doing this is considered the second section that you could pick from, when it says "(pick from one of the two sections)").

Nikerabbit (talkcontribs)

There used to be two ways to define $EXT, which is no longer needed with wfLoadExtension()

Saving the translation failed: This namespace is reserved for content page translations

9
Summary by Nikerabbit

Caused by an issue with job queue.

Vscheideck (talkcontribs)

Hello,

Please help,

I am using Mediawiki 1.30

and Language Extension Bundle MediaWikiLanguageExtensionBundle-2018.01.tar.bz2

When I try to translate this page,

https://polyglotclub.com/wiki/index.php?title=Special:Translate&group=page-Test-translate&language=fr&action=translate&filter=

I get the following errors :

on the screen :

Saving the translation failed: This namespace is reserved for content page translations. The page you are trying to edit does not seem to correspond any page marked for translation.

In the javascript console :

Uncaught RangeError: Maximum call stack size exceeded

    at jQuery.fn.init.push (<anonymous>)

    at superMatcher (load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=foreground&version=0zcenri:36)

    at Sizzle.select (load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=foreground&version=0zcenri:38)

    at Function.Sizzle (load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=foreground&version=0zcenri:12)

    at Function.jQuery.find (load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=foreground&version=0zcenri:141)

    at jQuery.fn.init.find (load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=foreground&version=0zcenri:41)

    at jQuery.fn.init (load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=foreground&version=0zcenri:43)

    at new jQuery.fn.init (load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=foreground&version=0zcenri:141)

    at jQuery (load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=foreground&version=0zcenri:1)

    at MessageTable.resize (<anonymous>:90:664)

I've tried to disable all other extensions.

My LocalSettings.php :

wfLoadExtension( 'Babel' );

wfLoadExtension( 'cldr' );

wfLoadExtension( 'CleanChanges' );

$wgCCTrailerFilter = true;

$wgCCUserFilter = false;

$wgDefaultUserOptions['usenewrc'] = 1;

wfLoadExtension( 'LocalisationUpdate' );

$wgLocalisationUpdateDirectory = "$IP/cache";

require_once "$IP/extensions/Translate/Translate.php";

$wgGroupPermissions['user']['translate'] = true;

$wgGroupPermissions['user']['translate-messagereview'] = true;

$wgGroupPermissions['user']['translate-groupreview'] = true;

$wgGroupPermissions['user']['translate-import'] = true;

$wgGroupPermissions['sysop']['pagetranslation'] = true;

$wgGroupPermissions['sysop']['translate-manage'] = true;

$wgTranslateDocumentationLanguageCode = 'qqq';

$wgExtraLanguageNames['qqq'] = 'Message documentation'; # No linguistic content. Used for documenting messages

wfLoadExtension( 'UniversalLanguageSelector' );

Nikerabbit (talkcontribs)

These kind of issues are usually caused by JobQueue. Try running maintenance/runJobs.php or extensions/Translate/scripts/createMessageIndex.php manually to confirm.

Vscheideck (talkcontribs)

thanks but it did not solve the problem

Nikerabbit (talkcontribs)

Right now it says message group page-Test-translate is not found. Are you sure have marked the page for translation or did you remove it after posting?

Vscheideck (talkcontribs)
Nikerabbit (talkcontribs)
89.82.208.37 (talkcontribs)

Yes, you were 100% right, the job was failing, it's corrected now, :D

89.82.208.37 (talkcontribs)

thanks for your help

Nikerabbit (talkcontribs)

Good that you were able to figure it out :)

KarinJ77 (talkcontribs)

I have question reagarding the translation statsitics. I know I can see % translated messages and number of translated messages. But is there anyway that I can see the number of words translated by language in my wiki?

Nikerabbit (talkcontribs)
KarinJ77 (talkcontribs)

Ok, and there is no way in related db tables by sql just do some wordcount either, if you know where to look?

Nikerabbit (talkcontribs)
Reply to "number of words translated?"