helsinkisisu Posted January 5, 2020 Share Posted January 5, 2020 (edited) Pulling my hair out with this one. I cannot find where to translate 'Addresses' (My Addresses on some templates) in the bottom customer account menu. I have translated all template variables but it's still unchanged (the actual page name is translated). It's not included in the Customer Account Links module either (the options are only accessible via translation), and the My Account Block module isn't configurable. Suggestions gratefully received! Edited January 8, 2020 by helsinkisisu Update topic title (see edit history) Link to comment Share on other sites More sharing options...
helsinkisisu Posted January 7, 2020 Author Share Posted January 7, 2020 (edited) OK, according to this $link = $this->context->link; $my_account_urls = array( 2 => array( 'title' => $this->trans('Orders', array(), 'Admin.Global'), 'url' => $link->getPageLink('history', true), ), 3 => array( 'title' => $this->trans('Credit slips', array(), 'Modules.Customeraccountlinks.Admin'), 'url' => $link->getPageLink('order-slip', true), ), 4 => array( 'title' => $this->trans('Addresses', array(), 'Shop.Theme.Global'), 'url' => $link->getPageLink('addresses', true), ), 0 => array( 'title' => $this->trans('Personal info', array(), 'Modules.Customeraccountlinks.Admin'), 'url' => $link->getPageLink('identity', true), ), ); in modules->ps_customeraccountlinks->ps_customeraccountlinks.php, it says 'Addresses' should be in the 'Shop.Theme.Global' language file. I can see it at line 15 in ShopThemeGlobal.en-US.xlf, but it's not in ShopThemeGlobal.fi-FI.xlf (Finnish). Any ideas how I can add this? Edited January 7, 2020 by helsinkisisu (see edit history) Link to comment Share on other sites More sharing options...
helsinkisisu Posted January 8, 2020 Author Share Posted January 8, 2020 I've noticed that there are three trans-units missing from that Finnish XLF file (Addresses, Merchandise returns, and %label%. These are in ROOT/app/Resources/translations/LANGUAGE/ Adding them is a simple cut and paste from the en-US file and add the translation. However, the additions caused the backend to fail to load. Unless it was put into Debug Mode (which showed no issue with the changes I made). The changes took effect in the front end. I am getting quite frustrated about this and would really appreciate some advice on how to move forward. I've noticed that there are three trans-units missing from that Finnish XLF file (Addresses, Merchandise returns, and %label%. These are in ROOT/app/Resources/translations/LANGUAGE/ Adding them is a simple cut and paste from the en-US file and add the translation. However, the additions caused the backend to fail to load. Unless it was put into Debug Mode (which showed no issue with the changes I made). The changes took effect in the front end. I am getting quite frustrated about this and would really appreciate some advice on how to move forward. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now