Extension talk:Translate

Jump to navigation Jump to search

About this board


Unused translation units in the percent stats

Want (talkcontribs)

Section "Changing the source text" from Help:Extension:Translate/Page_translation_administration page state:

Unused unit translations are not deleted automatically, but that should not cause trouble.

It's ok. But unused messages is along count into the info value percentual about state of translated page and it is confusing.

Is usable call of the function MessageGroupStats::clearGroup() for remove unused translation units? Or exists another method for it?

Wladek92 (talkcontribs)

By 'unused messages' do you mean for example T:201 T:202 of the following snippet ? (from https://www.mediawiki.org/wiki/Manual:HTMLForm_Tutorial_3). These comments correspond to previous translated sections which have been corrected such as NO longer to be translated now. Advice in the translation rules was to keep the tags. These comments do not appear on the page but if they generate erroneous statistics we can decide in a first step to remove them (?) carefully from the source (non excluding the developpement part of ignoring them for statistics - but this will be a Phabricator task).

Select multiple users.....
<source lang="php">
$formDescriptor = [...

== url== <!--T:201-->

[[File:HTMLForm Url.jpg|500px]]


... let we still read other points of view.

Christian Wia (talk) 07:23, 1 August 2019 (UTC)

Want (talkcontribs)

No. I specifically meant translation units 51 and 52 from page Help:Signatures (Special:Diff/3339237/3338935). After reverting changes and re-mark page to translate for some time, it still showed that only 95 percent of translation units were translated. It seems to have been just some cache, because now it's ok. But still interest me, what method I can use to get a list of currently id's of the translation units from the page what use by the current revision.

Reply to "Unused translation units in the percent stats"

Suggestion: "Translation" section is Special:SpecialPages

DannyS712 (talkcontribs)

I'd like to suggest that the pages added by this extension have their own section in Special:SpecialPages. For normal users, the following pages are accessible

  1. Search translations
  2. Translate
  3. All translations
  4. Translator signup
  5. Export translations
  6. Language statistics
  7. Message group stats
  8. Supported languages

which are distributed throughout the different sections. Translation admins also have

  1. Aggregate groups
  2. Import translations
  3. Prepare page for translation
  4. Translation page migration
  5. Notify translators
  6. Change page language

And there may be more that are only visible to full administrators. Having this many special pages for the extension means that it would make sense to group them together, rather than the way they are now. Thoughts?

Reply to "Suggestion: "Translation" section is Special:SpecialPages"

Problems about the Chinese local variant conversion are still needed to solve

Taiwania Justo (talkcontribs)
Reply to "Problems about the Chinese local variant conversion are still needed to solve"

By FuzzyBot, translation of all of the paragraph is overwritten in the original

Runequest77 (talkcontribs)

Since English is not good is the question of the automatic translation.

*1.Translated the original text

*2.Fixed only settles the original text

*3.In page translated " mark for translation "

*4.By FuzzyBot, translation of all of the paragraph is overwritten in the original .

I want to leave as it is a translation .

I'll be if I do? --~~~~

Reply to "By FuzzyBot, translation of all of the paragraph is overwritten in the original"

How to show Other languages box on all pages?

2A02:8109:9B40:78:2016:2294:8DA4:BF30 (talkcontribs)


when I translate a page the other languages box is not shown on the translated page, only on the source page (<languages /> tag is in article). But how do I show it on all pages?

Nikerabbit (talkcontribs)

Make sure you mark for translation the version of source page where you added the <languages /> tag.

Reply to "How to show Other languages box on all pages?"

Disabling fancy proofreading effects

Summary by Nikerabbit
if ( $( document.body ).is( '.mw-special-Translate' ) ) { $.fx.off = true; }
Kranix (talkcontribs)

Is it possible to disable the 'smooth' downward scrolling each time a proofreading is saved? Proofreading can be done rather quickly if most translations are correct, so the time waiting for this effect to finish is not insignificant.

Nikerabbit (talkcontribs)

The scrolling event is very fast and non-disturbing for me (it takes longer to download the message documentation which I usually want to see). Is this not the case for you?

Without scrolling the window would eventually go out of viewport, and without any smoothness it can be confusing that a scroll actually happened.

Kranix (talkcontribs)

It is quite fast, perhaps 0.3 seconds or so. It's not much, but does add up when proofreading many short items. The documentation loads instantaneously for me. I can see quite easily when a scroll has happened, so I'd just like an option to turn it off. A bit of CSS would probably accomplish it, but I don't know CSS.

Nikerabbit (talkcontribs)

You could add something like the following to your common.js to disable all animations on the page.

if ( $( document.body ).is( '.mw-special-Translate' ) ) { $.fx.off = true; }
Kranix (talkcontribs)

Thank you. This works.

Fanatikvoice (talkcontribs)

Hi, i installed MediaWiki_Language_Extension_Bundle, add in config default settings, and i not translate page.

I make page special tag <translate> -> return page, and no see link "Translate this page", instead i see link "Make translate the page".

Pls help me.

Reply to "Is not Translate this Page"

Avoid this is a translated version advice

4 (talkcontribs)

Is there a way to avoid the "This page is a translated version of the page XXX" message inside the translated pages? I'm using the extension for a documentation site, and I'd like to remove it, at least for not logged users.

Clump (talkcontribs)

For indiscriminate removal you could add a CSS rule to not display it:

.mw-pt-translate-header {
   display: none;
} (talkcontribs)

Thanks for the answer, but I'd like to have the information when logged, but I would like no to show it to the people who just consult the site

Nikerabbit (talkcontribs)

You could use JavaScript to make it visible again to logged in users.

There is no way to change this with configuration only.

Reply to "Avoid this is a translated version advice"

Translate Plugin is not loading the Suggestions on the "right side" of the translate view

7 (talkcontribs)

I just set up a frash mediawiki installation and installes all i needed for translating my wiki and the content. manual translations just working like expected but in that view i do not get any suggestions shown? Maybe there is any logfile i could check or is that due to a lack of configuration? (it is pretty much default). Im just wondering that is show forever "Loading..." and no content is shown as in some screenshots of that plugin.

Tuxxic (talkcontribs)

Did you configure TTMServer in the LocalSettings.php ? Link : Help:Extension:Translate/Configuration/fr

$wgTranslateTranslationServices = array(); $wgTranslateTranslationServices['TTMServer'] = array( 'database' => false, // Passed to wfGetDB 'cutoff' => 0.75, 'type' => 'ttmserver', 'public' => false, ); (talkcontribs)

that is configured in the Translate.php file like in the default with that 4 entries, so i guess i do not need to do that again in the LocalSettings file, or?

Tuxxic (talkcontribs)

You won't know unless you try, inmy opinion ;) (talkcontribs)

well that did not help is always stays at "loading..."... any other ideas?

Cloud668 (talkcontribs)

I am also having a similar issue on 1.31/MLEB 2018.07 (PHP 7.2.9 cgi-fcgi and on IIS if that matters for whatever reasons), but in my case, the translation aids column is loading fine for page translations but not file based message groups, which only ever showed the "Loading..." string. I've tested some of the same files along with the custom FFS/YAML group configs on an older wiki I have (1.28/MLEB 2016.10/PHP 5.6.11 fpm-fcgi on Ubuntu) and it worked fine there. Both wikis are using the default DB TTM.

On the older wiki, I noticed that the column only loaded after running createMessageIndex.php, but running that on the newer one didn't really help solve the problem.

I'm not sure what could be causing the issue on the newer wiki. Any help is appreciated.

Cloud668 (talkcontribs)

Digging a little into the access logs, it seems that in my case, the problem that the aids never loaded was that the translationaids API call for all file based messages for some reason only ever returns this:

"code":"nomessagefortitle","info":"Title does not correspond to a translatable message"
Reply to "Translate Plugin is not loading the Suggestions on the "right side" of the translate view"

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

2 (talkcontribs)


Please help,

I am using Mediawiki 1.30

and Language Extension Bundle MediaWikiLanguageExtensionBundle-2018.03.tar.bz2

When I try to translate this page,


I've enabled anonymous translating, so you can check ($wgGroupPermissions['*']['translate'] = true;)

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)



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)
Reply to "Error : "Saving the translation failed: This namespace is reserved for content page translations.""