Jump to content

Edit History

zod

zod

7 hours ago, huymanutd said:

Hi zod,

Have you had success in changing the word 'Contact Us' to 'Contact' (top left hand corner of the classic theme)?

I'm having this precise issue and I tried the three methods above but they didn't work.

1. checked the 'translations' table to make sure the translation entry exists

2. checked the files app/Resources/translations/default/ModulesContactinfoShop.xlf and app/Resources/translations/en-us/ModulesContactinfoShop.xlf to change the line         <target state="final">Contact</target>

3. Cleared cache via back office (Performance > Clear Cache) and checked the content of the folders: cache/smarty/compile & cache/smarty/cache to see they were empty (just having index.php)

Totally agree the current translation scheme is not user friendly.

First thing first! When you want to change a string you need to find and analyze the template. In your case your template is this: /themes/classic/modules/ps_contactinfo/nav.tpl

So, you open it and you discover the link, and the string involved: <a href="{$urls.pages.contact}">{l s='Contact us' d='Shop.Theme.Global'}</a>

You modified the wrong strings, because the real one is in the Global section of your theme. 

zod

zod

7 hours ago, huymanutd said:

Hi zod,

Have you had success in changing the word 'Contact Us' to 'Contact' (top left hand corner of the classic theme)?

I'm having this precise issue and I tried the three methods above but they didn't work.

1. checked the 'translations' table to make sure the translation entry exists

2. checked the files app/Resources/translations/default/ModulesContactinfoShop.xlf and app/Resources/translations/en-us/ModulesContactinfoShop.xlf to change the line         <target state="final">Contact</target>

3. Cleared cache via back office (Performance > Clear Cache) and checked the content of the folders: cache/smarty/compile & cache/smarty/cache to see they were empty (just having index.php)

Totally agree the current translation scheme is not user friendly.

First thing first! When you want to change a string you need to find and analyze the template. In your case your tempalte is this: /themes/classic/modules/ps_contactinfo/nav.tpl

So, you discover the link, and the string: <a href="{$urls.pages.contact}">{l s='Contact us' d='Shop.Theme.Global'}</a>

You modified the wrong strings, because the real one is in the Global section of your theme. 

×
×
  • Create New...