Missing language strings in AMOS

Missing language strings in AMOS

DThomas -
回帖数:5

Hi,

I'm the developer of the Learning Analytics plugin and it appears there are language strings missing in AMOS.

The language file contains 65 strings. AMOS only lists 62 strings. To give an example: The string "navigation_link" is currently missing.

Is this something that I need to fix in the plugin or is this a problem with AMOS?

Thanks, Thomas

回复DThomas

Er: Missing language strings in AMOS

Zendegi UrzelaiIñigo -
Hi Thomas,

Some months ago I asked about a similar issue, reading David's answer may be helpful to you:


Cheers.

回复Zendegi UrzelaiIñigo

Re: Er: Missing language strings in AMOS

DThomas -
Hi!

Thanks! So I guess it's a problem with AMOS then as we don't use any complex operators in the language strings...

// edit: I'm wondering if the use of line-breaks in strings is a problem... There are a few of them in the strings in the language file although all of them appear to be imported correctly in to AMOS.
回复DThomas

Re: Missing language strings in AMOS

MudrákDavid -
Language pack maintainers的头像

This is not an AMOS bug but expected behaviour.

You have three strings with the "_link" suffix in the string id. Such strings have special purpose as documented at https://docs.moodle.org/dev/String_API#Help_strings

Such strings are not expected to be translatable and so the AMOS hides them from the Translator UI. That explains why you see three strings less than expected.

It is recommended that string identifiers follow the same naming rules as variable names (so the string would be navigationlink instead of navigation_link) and so suffixes like this would be used for special behaviour only.

Let me suggest that you rename the string identifier.