Issue Details (XML | Word | Printable)

Key: MDL-10609
Type: New Feature New Feature
Status: Closed Closed
Resolution: Not a bug
Priority: Minor Minor
Assignee: David Mudrak
Reporter: Daniele Cordella
Votes: 0
Watchers: 1
Operations

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

unaccesible lang file

Created: 26/Jul/07 01:18 AM   Updated: 27/Jul/07 01:28 PM
Return to search
Component/s: Languages
Affects Version/s: 1.8.2
Fix Version/s: None

Issue Links:
Relates
 

Participants: Daniele Cordella, David Mudrak and Koen Roggemans
Security Level: None
Affected Branches: MOODLE_18_STABLE


 Description  « Hide
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.

 All   Comments   Change History   Version Control      Sort Order: Ascending order - Click to sort in descending order
Koen Roggemans added a comment - 27/Jul/07 06:26 AM
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.


David Mudrak added a comment - 27/Jul/07 07:04 AM
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).


Daniele Cordella added a comment - 27/Jul/07 01:28 PM
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.