The lang files should only contain simple strings and not php code. #77
Labels
No Label
Fixed
Confirmed
Fixed
Unconfirmed
Kind
Breaking
Kind
Bug
Kind
Deprecation issue
Kind
Documentation
Kind
Enhancement
Kind
Feature
Kind
Language
Kind
Security
Priority
High
Priority
Low
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: Miqra-Engineering/moodle_local_treestudyplan#77
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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";
Resolved in commit
108a612e8c
by removing the PHP code and expanding the loop into multiple copies of the lines.