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

        There are no comments yet on this issue.

          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