Uploaded image for project: 'Blesta Core'
  1. Blesta Core
  2. CORE-2282

Add custom language file unused by Blesta

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.1.0-b1
    • Component/s: None
    • Labels:
      None

      Description

      Many people, such as developers, or those wishing to make custom changes, have an issue using our current "_custom" language file because it is included with Blesta, and therefore subject to being overwritten on Blesta updates.

      We should add support for "developer-only" custom language file. It would be assumed to exist in Blesta's language directory for the particular language, e.g. "/languages/en_us/FILE.php"

      We will not include this file with Blesta, but someone can add it, if they wish to their own installation, and Blesta will attempt to load it. Any language definitions set will be available.

        Activity

        Hide
        jonathan Jonathan Reissmueller added a comment -

        Sorry, I'm a little unsure. What do you want the filename to be? FILE.php? developer-only.php? Something else?

        Show
        jonathan Jonathan Reissmueller added a comment - Sorry, I'm a little unsure. What do you want the filename to be? FILE.php? developer-only.php? Something else?
        Hide
        tyson Tyson Phillips (Inactive) added a comment -

        Definitely neither of those. It should follow the same format of beginning with an underscore. We should probably include an example file in the installation so people don't have to start from scratch.

        Something like _global-example.php. It should contain valid php with comments describing to rename the file to _global.php and an example $lang definition or two to illustrate how they work. It should also specify that custom language definitions can be created here. If they collide with existing language definitions, the ones in this file will be overridden by the other definition. It does not take precedence (and be sure it does not take precedence). I don't think we could allow it to take precedence because it would have to be loaded last, which is not an option.

        Show
        tyson Tyson Phillips (Inactive) added a comment - Definitely neither of those. It should follow the same format of beginning with an underscore. We should probably include an example file in the installation so people don't have to start from scratch. Something like _global-example.php . It should contain valid php with comments describing to rename the file to _global.php and an example $lang definition or two to illustrate how they work. It should also specify that custom language definitions can be created here. If they collide with existing language definitions, the ones in this file will be overridden by the other definition. It does not take precedence (and be sure it does not take precedence). I don't think we could allow it to take precedence because it would have to be loaded last, which is not an option.
        Hide
        jonathan Jonathan Reissmueller added a comment -

        We already have _custom.php could this not simply work by changing that to _custom-example.php?

        Show
        jonathan Jonathan Reissmueller added a comment - We already have _custom.php could this not simply work by changing that to _custom-example.php?
        Hide
        tyson Tyson Phillips (Inactive) added a comment -

        No, we already use the _custom language in the core of Blesta.

        Show
        tyson Tyson Phillips (Inactive) added a comment - No, we already use the _custom language in the core of Blesta.

          People

          • Assignee:
            jonathan Jonathan Reissmueller
            Reporter:
            tyson Tyson Phillips (Inactive)
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              Fix Release Date:
              17/Jul/17

              Agile