Criteria for langpacks in download packages

Criteria for langpacks in download packages

by Ralf Hilgenstock -
Number of replies: 3
Picture of Language pack maintainers

Hello

we discussed yesterday which lang files are added to the  download packages and which not.  Long time ago only default tool lang files were included in download packages.  Today some third party modules are included others aren't.

I.e. OUblog and OUwiki are included but NGForum files are not.

Who can tell us how this is defined?

Ralf

In reply to Ralf Hilgenstock

Re: Criteria for langpacks in download packages

by koen roggemans -
Picture of Language pack maintainers

As far as I can tell: everything that is translated is in the download.

All strings of plugins that are in the plugins database are in the download if they are translated.

In reply to Ralf Hilgenstock

Re: Criteria for langpacks in download packages

by David Mudrák -
Picture of Language pack maintainers

Koen is right. AMOS puts all translated components into the language pack. However, it's actually a bit more complex.

As you know, strings in AMOS are registered at branches (versions). For add-ons (non-standard plugins), the branch is determined by the declared Moodle version in the Plugins directory. The AMOS translator shows the list of all branches next to the name of the component (see attachments).

You can see there that while the OUwiki's strings are available at branches 2.1, 2.2, 2.3 and 2.4, ForumNG has it's strings registered at the branch 2.4 only. That means there are no ForumNG strings to be included in the language packs for Moodle 2.3 and lower. Translations of those 2.4 strings are automatically included in all higher versions (i.e. in lang packs for Moodle 2.5 and 2.6) unless there is an explicit version for them at such branch.

Hmm. I just checked the Plugins directory and i realized there is actually ForumNG version available for Moodle 2.3, 2.2 and even 2.1. So in theory, the string should be in AMOS too. I can just guess there was an error during the strings import and the maintainer did not pay much of attention to it. We will probably need to improve the sync process between AMOS and the Plugins directory.

Thanks for raising this!

Attachment forumng.png
Attachment ouwiki.png
In reply to David Mudrák

Re: Criteria for langpacks in download packages

by David Mudrák -
Picture of Language pack maintainers
Confirmed. ForumNG lang pack was using syntax that the AMOS input parser does not support. So unless the maintainers of the ForumNG release a new version of it, the strings won't be registered here.