translating filter button label

  • Posts: 19
  • Thank you received: 0
12 years 10 months ago #35812

I am trying to give a custom name to the label on the filter button on the frontend of the filter module. No matter what I change in the language file the label remains "filter" for English and "filtre" for french.

Please Log in or Create an account to join the conversation.

  • Posts: 82910
  • Thank you received: 13379
  • MODERATOR
12 years 10 months ago #35846

Hi,

You should add your modification in the override area when you edit your translation file via the interface of the configuration like that:
FILTER="My custom text"

Please Log in or Create an account to join the conversation.

  • Posts: 19
  • Thank you received: 0
12 years 10 months ago #35880

Hi, I have tried that and cleared the cache, but the text remains the same.

Please Log in or Create an account to join the conversation.

  • Posts: 82910
  • Thank you received: 13379
  • MODERATOR
12 years 10 months ago #35882

Could you do a screenshot of your modification ?

Please Log in or Create an account to join the conversation.

  • Posts: 19
  • Thank you received: 0
12 years 10 months ago #35887

here is it

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 82910
  • Thank you received: 13379
  • MODERATOR
12 years 10 months ago #35945

That's correct indeed.

Then, it must be joomla translation files overriding that override in some way.
In that case, you should edit the file "filter" for your front end template via the menu Display->Views and directly change the text :
JText::_('FILTER')

by:
'Rechercher'

and that will do what you want.

Please Log in or Create an account to join the conversation.

  • Posts: 19
  • Thank you received: 0
12 years 10 months ago #36041

That worked. But it is not the best solution for me since I have a multilanguage site and it is not possible to translate the word by this solution. I will keep looking if I can find where the override is coming from. In case you also find it let me know. Thanks for all the help

Please Log in or Create an account to join the conversation.

  • Posts: 82910
  • Thank you received: 13379
  • MODERATOR
12 years 10 months ago #36079

Then, you could replace JText::_('FILTER') by this:
JText::_('MY_FILTER')

and in your override file, you could do like that:
MY_FILTER="Rechercher"

That way, the Joomla override when mess with yours.

Please Log in or Create an account to join the conversation.

  • Posts: 19
  • Thank you received: 0
12 years 10 months ago #36128

That worked perfectly. Thanks.

Please Log in or Create an account to join the conversation.

Time to create page: 0.065 seconds
Powered by Kunena Forum