Moodle

Remove duplicate string definitions

Details

  • Type: Sub-task Sub-task
  • Status: Closed Closed
  • Priority: Trivial Trivial
  • Resolution: Fixed
  • Affects Version/s: 1.9.3
  • Fix Version/s: 2.0.2
  • Component/s: Language
  • Labels:
    None
  • Affected Branches:
    MOODLE_19_STABLE
  • Fixed Branches:
    MOODLE_20_STABLE

Description

Sometimes, a string definition is duplicated. I.e. in the same file a $string['id'] = 'value' appears twice. It is not a real issue as it does not influence PHP functionality (later definition wins). But it may break grep filtering and other automatic lang pack manipulation tools.

I discovered some of them this when I compared the numbers of strings as shown by the new Language manipulation API functions and their count as returned by grep filter.

Issue Links

Activity

Hide
David Mudrak added a comment -

First fixes in the CVS:
lang/en_utf8/enrol_mnet.php
lang/en_utf8/quiz_overview.php
lang/en_utf8/qtype_multichoice.php

Show
David Mudrak added a comment - First fixes in the CVS: lang/en_utf8/enrol_mnet.php lang/en_utf8/quiz_overview.php lang/en_utf8/qtype_multichoice.php
Hide
David Mudrak added a comment -

Fixed the rest in PULL-244

Show
David Mudrak added a comment - Fixed the rest in PULL-244
Hide
Helen Foster added a comment -

Thanks David.

Show
Helen Foster added a comment - Thanks David.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: