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

Widget and WidgetClient do not respect the selected language

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.5.0-b1
    • Component/s: None
    • Labels:
      None

      Description

      To reproduce:

      • Install an additional language
      • Add a language file for widget and update Widget.submit
      • Select the newly installed language
      • Visit the Clients list page
      • Expand the filter section
      • See that the button is still labeled "Submit"

      Update the Widget constructor to:

          public function __construct()
          {
              Loader::loadComponents($this, ['Session']);
              Language::setLang($this->Session->read('blesta_language'));
              Language::loadLang('widget');
          }
      

      Also WidgetClient references 'Widget.submit' when it should reference 'WidgetClient.submit'.

      Update the WidgetClient constructor to:

          public function __construct()
          {
              Loader::loadComponents($this, ['Session']);
              Language::setLang($this->Session->read('blesta_language'));
              Language::loadLang('widget_client');
          }
      

        Activity

        jonathan Jonathan Reissmueller created issue -
        jonathan Jonathan Reissmueller made changes -
        Field Original Value New Value
        Rank Ranked higher
        jonathan Jonathan Reissmueller made changes -
        Sprint 5.5.0 Sprint 3 [ 155 ]
        jonathan Jonathan Reissmueller made changes -
        Rank Ranked higher
        jonathan Jonathan Reissmueller made changes -
        Priority Major [ 3 ] Minor [ 4 ]
        abdy Abdy Franco made changes -
        Assignee Abdy Franco [ abdy ]
        abdy Abdy Franco made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        abdy Abdy Franco made changes -
        Remaining Estimate 0 minutes [ 0 ]
        Time Spent 30 minutes [ 1800 ]
        Worklog Id 15700 [ 15700 ]
        abdy Abdy Franco made changes -
        Status In Progress [ 3 ] In Review [ 5 ]
        Resolution Fixed [ 1 ]
        abdy Abdy Franco made changes -
        Time Spent 30 minutes [ 1800 ] 35 minutes [ 2100 ]
        Worklog Id 15704 [ 15704 ]
        jonathan Jonathan Reissmueller made changes -
        Status In Review [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            abdy Abdy Franco
            Reporter:
            jonathan Jonathan Reissmueller
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              Fix Release Date:
              29/Jun/22

              Time Tracking

              Estimated:
              Original Estimate - Not Specified
              Not Specified
              Remaining:
              Remaining Estimate - 0 minutes
              0m
              Logged:
              Time Spent - 35 minutes
              35m

                Agile