Issue Details (XML | Word | Printable)

Key: MDL-16070
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Critical Critical
Assignee: Petr Skoda
Reporter: Petr Skoda
Votes: 0
Watchers: 4
Operations

Add/Edit UI Mockup to this issue
If you were logged in you would be able to see more operations.
Moodle

Do not use $a[0] syntax in lang packs

Created: 16/Aug/08 06:18 PM   Updated: 16/Aug/08 08:17 PM
Return to search
Component/s: Languages
Affects Version/s: 2.0
Fix Version/s: 2.0

Participants: Petr Skoda
Security Level: None
Resolved date: 16/Aug/08
Affected Branches: MOODLE_20_STABLE
Fixed Branches: MOODLE_20_STABLE


 Description  « Hide
This was wrongly introduced in 1.9 in mnet and auth code, we should definitely not add new tricks into lang packs, this is only going to confuse translators!
Fixing all new strings introduced in 2.0 with

$a = (object)array('something'=>$something, 'other'=>$other)

 All   Comments   Change History   Version Control      Sort Order: Ascending order - Click to sort in descending order
Petr Skoda made changes - 16/Aug/08 06:25 PM
Field Original Value New Value
Summary Do not use a$[0] syntax in lang packs Do not use $a[0] syntax in lang packs
Petr Skoda made changes - 16/Aug/08 08:17 PM
Resolution Fixed [ 1 ]
Status Open [ 1 ] Resolved [ 5 ]