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

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

DemiralpHakan -
回帖数: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?
回复DemiralpHakan

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

ValeroGerman -
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



回复ValeroGerman

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

DemiralpHakan -

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

回复DemiralpHakan

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

ValeroGerman -
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 微笑

回复ValeroGerman

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

DemiralpHakan -

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.

回复DemiralpHakan

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

MudrákDavid -
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.

回复MudrákDavid

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

DemiralpHakan -

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