1

I'm trying to translate Magento 2.4 with Porto theme in Danish, all translations working fine but a few of them not work.

  1. Under Customer Dashboard > Account Information below text not translated. "In order to reset your password, please Sign Out and click on “Forgot Your Password?” from the Sign In page" enter image description here
  2. Backorder message not translated, in vendor/magento/module-inventory-sales/Model/IsProductSalableCondition
if ($displayQty > 0) {
       $errors = [
         $this->productSalabilityErrorFactory->create([
            'code' => 'back_order-not-enough',
            'message' => __(
                'We don\'t have as many quantity as you requested, '
                . 'but we\'ll back order the remaining %1.',
                $displayQty * 1
                )])
       ];
       return $this->productSalableResultFactory->create(['errors' => $errors]);
    }

Also is there any way to show backorder message in popup on the checkout page?

  1. All .js error messages also not translated into danish.

Thank you in advance for your help. Faizan Roshan

8
  • Translation message added in which csv file? can you please add file path? Jun 27, 2021 at 6:59
  • In app/i18n and app/design/frontend/Smartwave/porto/i18n da_DK.csv Jun 27, 2021 at 8:48
  • Translation i put in .csv file "We don\'t have as many quantity as you requested, but we\'ll back order the remaining %1.","Vi har ikke så mange mængder, som du har anmodet om, men vi bestiller tilbage den resterende %1.",module,Magento_InventorySales" Jun 27, 2021 at 8:49
  • "In order to reset your password, please","translated text" Jun 27, 2021 at 8:50
  • "and click on “Forgot Your Password?” from the Sign In page","translated text" Jun 27, 2021 at 8:51

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Browse other questions tagged or ask your own question.