where to translate activity and resource names? (modulename or pluginname)

where to translate activity and resource names? (modulename or pluginname)

av Hakan Demiralp -
Galle vástádusa: 6

I want to translate the Activity and resource names listed on the "Add an activity or resource" page (Choice, Workshop, Survey, etc).

For example "Choice". In translator it is found under both:

  • 3.5 | modulename | mod_choice
and

  • 3.5 | pluginname | mod_choice
Which one I need to translate?

Also I could not find where to translate "Interactive Content" (H5P) in that list.
Any idea?
Vástádussan geasa: Hakan Demiralp

Re: where to translate activity and resource names? (modulename or pluginname)

av German Valero -
Bilde av Language pack maintainers

Have you seen the documentation page for finding the component and string  identifier ?


'Interactive Content' appears in two strings for the component hvp:

modulenameplural | hvp

modulename | hvp



Vástádussan geasa: German Valero

Re: where to translate activity and resource names? (modulename or pluginname)

av Hakan Demiralp -

Thanks for the link. I have read many pages, but not that link. Reading now.

Vástádussan geasa: Hakan Demiralp

Re: where to translate activity and resource names? (modulename or pluginname)

av German Valero -
Bilde av Language pack maintainers

@Hakan, RE: "I have read many pages, but not that link"

What pages did you read that you thought should have the answer that you were seeking, but did not?

Maybe we should add a reference to https://docs.moodle.org/35/en/Language_customisation#Finding_the_component_and_string_identifier there smiler

Vástádussan geasa: German Valero

Re: where to translate activity and resource names? (modulename or pluginname)

av Hakan Demiralp -

Actually I had first read the Amos manual, that was helpful with basic info. Then I looked at the moodle doc, but could find anything useful, I tried search feature there that lead me to the Translation page in the Dev docs that was not much helpful. Finally your suggestion for the Language customisation link which further helped.

Btw, guys, thanks for friendly and helpful manner. This forum is great.

Vástádussan geasa: Hakan Demiralp

Re: where to translate activity and resource names? (modulename or pluginname)

av David Mudrák -
Bilde av Language pack maintainers

I would suggest to change it in both for consistency. IIRC, the "pluginname" is the one that should be used in all recent code (it is present in all plugin types). The "modulename" is a legacy one but may be still used in some places.

Vástádussan geasa: David Mudrák

Re: where to translate activity and resource names? (modulename or pluginname)

av Hakan Demiralp -

Thanks for the info. I am changing them both.

I also encountered "modulenameplural" and I am changing there, too. It may be a legacy one too, since it is related to "modulename".

Also should I expect "something like "pluginnameplural"?