Error translating multilangforceold

Error translating multilangforceold

KrauseRalf -
回帖数:8
Language pack maintainers的头像

Hi,

there is an error translating multilangforceold. The text string seems to be read only. I found this old string missing in german, french and other lang packs.

Best regards, Ralf 


multilangforceold | core_admin
Force old multilang syntax: <span> without the class="multilang" and <lang>

回复KrauseRalf

Re: Error translating multilangforceold

roggemanskoen -
Language pack maintainers的头像

Hi Ralph,

I noticed it too. I translated the string several times and it always comes back.

I pinged David about it today. There is obviously something wrong.

Kind regards

Koen

回复roggemanskoen

Re: Error translating multilangforceold

ValeroGerman -
Language pack maintainers的头像
Silly old me!
I checked the history for that string in AMOS for Mexican Spanish: I have already translated the same string seven times!
回复ValeroGerman

Re: Error translating multilangforceold

KrauseRalf -
Language pack maintainers的头像

In the history I found the following:

4.1+ | de | 2022-06-17 08:20 UTC
Paul Holden <paulh@moodle.com>
MDL-74455 filter_multilang: add text labels for plugin settings. Committed into Git: 2022-04-07 10:58 UTC
commitscript
Alte Syntax für multilang festlegen: ohne &lt;span class="multilang"&gt; und ohne &lt;lang&gt;

回复KrauseRalf

Re: Error translating multilangforceold

HoldenPaul -

Hi all,

As per MDL-74455, the [multilangforceold,core_admin] has been deprecated and it's content moved to [forceoldsyntax_desc,filter_multilang]

回复HoldenPaul

Re: Error translating multilangforceold

roggemanskoen -
Language pack maintainers的头像
It can be 2 things: either something went wrong with the deprecation process or Amos doesn't process deprecated strings properly.
Fact is that this string shows up as missing in translationn, is perfectly translatable and after committing it to the language pack, it shows up as untranslated missing again, and again, ...
回复KrauseRalf

Re: Error translating multilangforceold

MudrákDavid -
Language pack maintainers的头像

Thanks everyone.

As I just commented in the tracker, this problem was caused by the incorrect usage of the MOV command in the AMOScript present in the commit message - https://github.com/moodle/moodle/commit/1cd65d696f3708ee59b8e5724e1e170cdbd8b0a4

The string was not actually "moved", it still remains in admin.php among other deprecated strings. But the MOV command marked all the translations as deleted which led to buggy behaviour of the AMOS. The string was reported as missing even though it was translated.

This is not so unlikely case and I agree AMOS should be better self-protected from such a misbehaviour. Meanwhile, I fixed this manually in the AMOS database to undo the removal of existing translations.

Thanks everyone for noticing and reporting this!