Moodle

Custom block language files not in the admin editing language list

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Duplicate
  • Affects Version/s: 1.8, 1.9
  • Fix Version/s: 1.9
  • Component/s: Language
  • Labels:
    None
  • Affected Branches:
    MOODLE_18_STABLE, MOODLE_19_STABLE
  • Fixed Branches:
    MOODLE_19_STABLE

Description

Custom blocks can store their language files in their own directory eg blocks/my_block/lang/en_utf8/block_my_block.php
When using the admin interface to edit language strings, these files do not appear in the list to be edited ie only the files under lang/en_utf8 appear.

Issue Links

Activity

Hide
David Mudrak added a comment -

This has been already fixed and should work in 1.9 - see MDL-9361. Please note, custom (3rd party's) plugins are listed separately at the very bottom of the selection box.
I have tried to reproduce:

$ mkdir -p blocks/my_block/lang/en_utf8
$ touch blocks/my_block/lang/en_utf8/block_my_block.php

and the file appeared in the selection (see screenshot).

Show
David Mudrak added a comment - This has been already fixed and should work in 1.9 - see MDL-9361. Please note, custom (3rd party's) plugins are listed separately at the very bottom of the selection box. I have tried to reproduce: $ mkdir -p blocks/my_block/lang/en_utf8 $ touch blocks/my_block/lang/en_utf8/block_my_block.php and the file appeared in the selection (see screenshot).
Hide
David Mudrak added a comment -

closing as duplicate

Show
David Mudrak added a comment - closing as duplicate

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: