Topic on Extension talk:Translate/Archive 2

Unused translation units in the percent stats

3
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).

<translate>
<!--T:157-->
Select multiple users.....
</translate>
<source lang="php">
$formDescriptor = [...
</source>

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

<!--T:202-->
[[File:HTMLForm Url.jpg|500px]]

<translate>
<!--T:158-->
Textbox....
</translate>

... 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"