OS Property support center

(Solved!) OS Map search problem translation

  • Hoffmann
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
8 years 8 months ago - 8 years 8 months ago #85849 by Hoffmann
Hey,

I want to translate this:



But i can't seem to find the variable involved. I tried to change both en.GB and fr.FR field "OS_SELECT_CATEGORY", which seems to be the one involved in the helper.php. But changing those value, it still displayed the same thing. I'm confused. I want to make that change myself.
Can you explain me what i am doing wrong?

Thanks in advance.
Attachments:
Last edit: 8 years 8 months ago by Hoffmann.

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

More
8 years 8 months ago #85860 by Mr. Dam
Replied by Mr. Dam on topic OS Map search problem translation
Hi,
You can use Translation tool at Back-end of OS Property to filter: OS Property component and OS Map search module to find and translate those words
Thanks
Dam

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

  • Hoffmann
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
8 years 8 months ago #85911 by Hoffmann
Replied by Hoffmann on topic OS Map search problem translation
Can't seem to find any filter nor variable named after this.

Attachments:

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

More
8 years 8 months ago #85912 by Mr. Dam
Replied by Mr. Dam on topic OS Map search problem translation
Hi,
To solve the problem, please follow these steps:
1. Open file:

root > administrator > components > com_osproperty > classes > translation.php

2. Find:
Code:
if(JFolder::exists(JPATH_ROOT.'/modules/mod_ospropertyrandom')){ $options[] = JHtml::_('select.option','mod_ospropertyrandom','Module OS Property Random'); }
and add this below:
Code:
if(JFolder::exists(JPATH_ROOT.'/modules/mod_osmapsearch')){ $options[] = JHtml::_('select.option','mod_osmapsearch','Module OS Map Search'); }

And then, you can filter the Map search module to translate it
Thanks
Dam

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

  • Hoffmann
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
8 years 8 months ago - 8 years 8 months ago #85962 by Hoffmann
Replied by Hoffmann on topic SOLVED !!! OS Map search problem translation
GREAT ! It's working pretty well ! Thanks you very much for your help i'm putting that to Solved.

However, there was another error i corrected:



That's why i didn't see the mortgage module inside the translation section :lol: (All those pointed toward "mortgate" instead of "mortgage".

Will you integrate all those changes in the next update?

Also, "Search properties" doesn't seem to be inside the module translating section...

Anyway thanks again for your help ! Much appreciated.
Attachments:
Last edit: 8 years 8 months ago by Mr. Dam.

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

Moderators: Mr. DamNguyen Phu Quan