The lang files should only contain simple strings and not php code. #77

Closed
opened 2024-10-21 22:23:40 +02:00 by danmarsden · 1 comment

code like this should not be in your lang string files:

https://git.miqra.nl/Miqra-Engineering/moodle_local_treestudyplan/src/branch/master/lang/en/local_treestudyplan.php#L144-L151

string concatenation and raw PHP in the lang packs is not allowed - it causes problems for the Moodle translation tool

eg:
$string['test'] = "sometext"."somemoretext";
or
$string['test'] = "sometext".$string['someotheritem'];

each string must be contained within one set of quotes eg:
$string['test'] = "sometext somemoretext";

code like this should not be in your lang string files: https://git.miqra.nl/Miqra-Engineering/moodle_local_treestudyplan/src/branch/master/lang/en/local_treestudyplan.php#L144-L151 string concatenation and raw PHP in the lang packs is not allowed - it causes problems for the Moodle translation tool eg: $string['test'] = "sometext"."somemoretext"; or $string['test'] = "sometext".$string['someotheritem']; each string must be contained within one set of quotes eg: $string['test'] = "sometext somemoretext";
pmkuipers self-assigned this 2024-10-29 09:20:28 +01:00
Owner

Resolved in commit 108a612e8c by removing the PHP code and expanding the loop into multiple copies of the lines.

Resolved in commit 108a612e8c by removing the PHP code and expanding the loop into multiple copies of the lines.
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Miqra-Engineering/moodle_local_treestudyplan#77
No description provided.