Moodle

unaccesible lang file

Details

  • Type: New Feature New Feature
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Not a bug
  • Affects Version/s: 1.8.2
  • Fix Version/s: None
  • Component/s: Language
  • Labels:
    None
  • Affected Branches:
    MOODLE_18_STABLE

Description

If I have a lang file (i.e.: block_selfmade.php) in it_utf8_local folder ONLY, so, if I don't have block_selfmade.php into it_utf8 folder too,
ther is no Moodle GUI to change the content of block_selfmade.php strings.

Issue Links

Activity

Hide
Koen Roggemans added a comment -

Added David to the watchlist

I just wonder, if you make a block yourself, why would you want to change the language file in the local folder?
As far as I know, the language file should be in the lang folder of the block.

But yes, there is no gui to change the content.

Show
Koen Roggemans added a comment - Added David to the watchlist I just wonder, if you make a block yourself, why would you want to change the language file in the local folder? As far as I know, the language file should be in the lang folder of the block. But yes, there is no gui to change the content.
Hide
David Mudrak added a comment -

I agree with Koen. Language files are NEVER expected to be in _local folder only. All _local folders are for local site modifications of standard packages. Closing this issue as it not a bug and such feature is not intended to be implemented.

Explanation:

If the plugin (module, block, ...) is part of standard distro, its languge pack is in dirroot/lang/en_utf8/ and moodledata/lang/lang_utf8/

If the plugin is your own add-on or other 3rd party stuff, its lang pack should be save in its own lang file, e.g.blocks/block_mynewblock/lang/en_utf8 and blocks/block_mynewblock/lang/lang_utf8. Fixed MDL-9361 will allow to edit such strings as well (give me some more time, I am working on it right now).

Show
David Mudrak added a comment - I agree with Koen. Language files are NEVER expected to be in _local folder only. All _local folders are for local site modifications of standard packages. Closing this issue as it not a bug and such feature is not intended to be implemented. Explanation: If the plugin (module, block, ...) is part of standard distro, its languge pack is in dirroot/lang/en_utf8/ and moodledata/lang/lang_utf8/ If the plugin is your own add-on or other 3rd party stuff, its lang pack should be save in its own lang file, e.g.blocks/block_mynewblock/lang/en_utf8 and blocks/block_mynewblock/lang/lang_utf8. Fixed MDL-9361 will allow to edit such strings as well (give me some more time, I am working on it right now).
Hide
Daniele Cordella added a comment -

There is always something to learn. I totally ignored the it was supposed to save langs file in blocks/block_mynewblock/lang/en_utf8 and blocks/block_mynewblock/lang/lang_utf8. I always saved them in moodledata/lang/lang_utf8_local. Nice to know about the coming way to edit them too. Thank you for your time.

Show
Daniele Cordella added a comment - There is always something to learn. I totally ignored the it was supposed to save langs file in blocks/block_mynewblock/lang/en_utf8 and blocks/block_mynewblock/lang/lang_utf8. I always saved them in moodledata/lang/lang_utf8_local. Nice to know about the coming way to edit them too. Thank you for your time.

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: