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?

yazan Séverin Terrier -
Yanıt sayısı: 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

Séverin Terrier yanıt olarak

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

yazan Séverin Terrier -

Hi,

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

Should i open a tracker issue?

Séverin

Séverin Terrier yanıt olarak

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

yazan koen roggemans -
Language pack maintainers 'ın resmi

I thought I had a solution:

Do a search for outdated and missing for core and add manually all components you use in your site. Then  create a permalink to bookmark.

Result: 

Error: url too long üzgün

It does work if I leave the core strings out (which have to be translated anyway).

These are the ones for what I have installed:

https://lang.moodle.org/local/amos/view.php?t=1529311734&v=3500&l=nl&c=block_course_overview%2Cauth_saml2%2Cblock_openbiblio%2Chotpot%2Chotpotattempt_hp%2Chotpotattempt_html%2Chotpotattempt_qedoc%2Chotpotreport_analysis%2Chotpotreport_clicktrail%2Chotpotreport_overview%2Chotpotreport_responses%2Chotpotreport_scores%2Chotpotsource_hp%2Chotpotsource_html%2Chotpotsource_qedoc%2Clocal_mailtest%2Cqformat_hotpot&s&d&m=1

(OMG!)

koen roggemans yanıt olarak

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

yazan Séverin Terrier -

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


Séverin Terrier yanıt olarak

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

yazan Séverin Terrier -

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

Séverin Terrier yanıt olarak

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

yazan koen roggemans -
Language pack maintainers 'ın resmi

Where is that 'usefull' button gülüyor

I don't have many sites / plugins, but for heavy users this is a very good start of automating the thing gülüyor

koen roggemans yanıt olarak

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

yazan Séverin Terrier -

You helped me find a way (with permalinks), and i tried to find a better (temporary) solution.

I've now created MDL-62759 for a real clean and integrated solution. Don't hesitate to comment/vote.

HTH,
Séverin

Séverin Terrier yanıt olarak

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

yazan Séverin Terrier -

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

Séverin Terrier yanıt olarak

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

yazan Séverin Terrier -

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

Séverin Terrier yanıt olarak

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

yazan Séverin Terrier -
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
Séverin Terrier yanıt olarak

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

yazan Séverin Terrier -
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
Séverin Terrier yanıt olarak

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

yazan Mary Cooch -
Thanks Séverin gülüyor If this were on moodle.org I'd rate it 'useful' -and perhaps it is worth posting in Moodle in English too?
Mary Cooch yanıt olarak

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

yazan Séverin Terrier -
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 gözkırpıyor

Séverin
Séverin Terrier yanıt olarak

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

yazan Adrian Perez Rodriguez -

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


Adrian Perez Rodriguez yanıt olarak

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

yazan Séverin Terrier -

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