How to easily see outdated or new strings in all plugins you use?

How to easily see outdated or new strings in all plugins you use?

Terrier Séverin -
Кількість відповідей: 16

Hi,

I have a question about plugin translation : what could be the solution to easily see all outdated and new strings in all plugins used on a Moodle site?

Could there be a system that could, from a Moodle site, connect to AMOS, but transmitting the list of plugins used, to check for outdated and new string.

That would be a real usefull way to keep plugins used completly translated. Because otherwise, when news version of plugins bring new strings (or strings are modified), you don't know which ones, and still use old ones, or forgot to translate new strings (or you have to check manually all plugin used, which can be really time consuming).

Ideally, an automated task that would check that, and inform administrator(s) would also be very good!

Séverin

У відповідь на Terrier Séverin

Re: How to easily see outdated or new strings in all plugins used on a Moodle site?

Terrier Séverin -

Hi,

Nobody has a solution, or at least an opinion about this request?

Should i open a tracker issue?

Séverin

У відповідь на Terrier Séverin

Re: How to easily see outdated or new strings in all plugins used on a Moodle site?

roggemans koen -
Фото Language pack maintainers
У відповідь на roggemans koen

Re: How to easily see outdated or new strings in all plugins used on a Moodle site?

Terrier Séverin -

Hi Koen,

Thanks for make me think about the permalink. Of course, better to keep out standard strings.

Even with your tips, having several Moodle plateforms, with different plugins, it can help, but still need to be updated when you add/remove plugins.

Having a link in language administration that would automatically generate this URL would really ease the process, being always up to date.

Séverin


У відповідь на Terrier Séverin

Re: How to easily see outdated or new strings in all plugins used on a Moodle site?

Terrier Séverin -

The problem is to find the names of all (non standard) plugins installed, grouped with ",".

A quick possiblity i've found (not really clean) is to go to the plugin overview page, and only show non standard plugins. Then i copy the content of the page in a file (tempfile.txt) on my unix server.

And then, i launch this command to keep only words containing a "_", and concatenate them with "," beetween them :

grep _ temp.txt | tr "\n" ","

Then i just insert the result beetween the begining of the permalink :

https://lang.moodle.org/local/amos/view.php?t=1529405492&v=3500&l=fr&c=

and the end :

&s&d&m=1


You could also group commands with :

echo "https://lang.moodle.org/local/amos/view.php?t=1529405492&v=3500&l=fr&c="`grep _ temp.txt | tr "\n" ","`"&s&d&m=1"

to obtain the whole URL to use.

Of course, you'll have to adapt the URL for your language (for me "fr") and version (here "3500").

Hope it can help,
Séverin

У відповідь на Terrier Séverin

Re: How to easily see outdated or new strings in all plugins used on a Moodle site?

roggemans koen -
Фото Language pack maintainers

Where is that 'usefull' button усміхаюсь

I don't have many sites / plugins, but for heavy users this is a very good start of automating the thing усміхаюсь

У відповідь на Terrier Séverin

Re: How to easily see outdated or new strings in all plugins used on a Moodle site?

Terrier Séverin -

Hi,

Just a little update/clarification about the process.

You should :

  1. go to the plugin overview page, in english (admin/plugins.php?updatesonly=0&contribonly=1&lang=en)
  2. copy the content of plugin table in a file (plugins.tmp)
  3. launch the command (adjust l=fr to your language and v=3700 (for Moodle 3.7) to the appropriate version):
    echo "https://lang.moodle.org/local/amos/view.php?t=1550000000&v=3700&l=fr&c="`grep _ plugins.tmp | grep -v 'Required by' | tr "\n" ","`"&s&d&m=1"
  4. launch the obtained URL

The command has been updated to ignore bad insertions due to plugin dependencies (hence the need to have the english page to ignore these lines).

Hope this helps,
Séverin

У відповідь на Terrier Séverin

Re: How to easily see outdated or new strings in all plugins used on a Moodle site?

Terrier Séverin -

Hi,

I come back about this functionnality. Still waiting for an integrated solution directly in Moodle web interface, by MDL-62759.

But waiting for that, and time passing, with new ability coming in Moodle, i now have a simpler solution to generate the whole link to AMOS, with incomplete or outdated sentences for all non standards plugins used (in french language) :

echo "https://lang.moodle.org/local/amos/view.php?t="`date +%s`"&v=l&l=fr&c="\
`php admin/cli/uninstall_plugins.php  --show-contrib | cut -f 1 | tr '\n' ','`"&s&d&m=1"
HTH,

Séverin

У відповідь на Terrier Séverin

Re: How to easily see outdated or new strings in all plugins used on a Moodle site?

Terrier Séverin -
Hi,

I've recently asked in the french community if someone could create a little plugin for that, and good news, something as been done, named "amoslink" (for now). It really eases the process to see outdated or untranslated strings of all non standard plugins installed on your Moodle (you need an AMOS account).

Perhaps it will be an official plugin in some weeks (or months). If so, i'll post direct link to this plugin.
 
HTH,
Séverin
У відповідь на Terrier Séverin

Re: How to easily see outdated or new strings in all plugins used on a Moodle site?

Terrier Séverin -
Hi,

I'm really happy to confirm that the AMOS link plugin, developped by Olivier VALENTIN is now available in the plugin DB :
https://moodle.org/plugins/tool_amoslink

Thanks a lot Olivier.

Hope it will ease the work of lots of admins to check non standard plugins and improve the translations.

Séverin
У відповідь на Terrier Séverin

Re: How to easily see outdated or new strings in all plugins used on a Moodle site?

Cooch Mary -
Thanks Séverin усміхаюсь If this were on moodle.org I'd rate it 'useful' -and perhaps it is worth posting in Moodle in English too?
У відповідь на Cooch Mary

Re: How to easily see outdated or new strings in all plugins used on a Moodle site?

Terrier Séverin -
Yes, i plan to post in the Languages forum.

Just let Olivier some time to improve installation (and PHP 7 support) before, so that it's clean for people підморгую

Séverin
У відповідь на Terrier Séverin

Re: How to easily see outdated or new strings in all plugins you use?

Perez Rodriguez Adrian -

Hello Séverin

As you asked me for my opinion in https://moodle.org/mod/forum/discuss.php?d=391693#p1582334 here would be my idea.

Create a custom script that gets the contributed plugins from your Moodle platform with the local_pluginsfetcher. With that plugin names you can fetch afterwards the versions from AMOS and compare them to the versions of actual ones in your Moodle.

Doesn't seem to be a big task. But I don't know how we can get the current version from a plugin from AMOS.

HTH,
Adrian


У відповідь на Perez Rodriguez Adrian

Re: How to easily see outdated or new strings in all plugins you use?

Terrier Séverin -

Hi Adrian,

Thanks for taking time to read here and make a suggestion.

In reality, i hoped you could help to create the link to AMOS, allowing to directly see missing and outdating strings for all installed plugins, as i proposed in MDL-62759.

Séverin