OS Property support center

Square meters instead of square feet

  • Heidy Alpizar
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
11 years 8 months ago #39602 by Heidy Alpizar
Square meters instead of square feet was created by Heidy Alpizar
Hello, in my country we only use square meters and not square feet. Is there a way to change this to reflect the correct measurement? Thank you in advance for your kind and prompt response.

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

More
11 years 8 months ago #39609 by Dang Thuc Dam
Replied by Dang Thuc Dam on topic Re: Square meters instead of square feet
Hi Heidy,
You can use feature "Translator labels" at the backend to translate "Square feet" to "Square meter"
There are one place that you need to make the modification to change "sqft" to "sqmt" is in
components > com_osproperty > templates > your_current_template > details.html.php
find
Jtext::_('sqft');
and change it to
Jtext::_('sqmt');

Good luck and Happy holiday
Dam
The following user(s) said Thank You: Heidy Alpizar

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

More
11 years 8 months ago #39847 by Daniel Lovšin
Replied by Daniel Lovšin on topic Re: Square meters instead of square feet
It will be almost necessary in the next release of OS property to have the option to switch between the US and metric system under the config settings.

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

More
11 years 8 months ago #39849 by Dang Thuc Dam
Replied by Dang Thuc Dam on topic Re: Square meters instead of square feet
Ok, i will note your suggestion for future development
Thanks
Dam

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

More
11 years 8 months ago #39862 by Daniel Lovšin
Replied by Daniel Lovšin on topic Re: Square meters instead of square feet
Thank you for this implementation. It will be user friendly for us that we are using the metric system. Currently I'm testing now the OS property and it's a great component. Congratulations :)

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

  • Heidy Alpizar
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
11 years 7 months ago #40243 by Heidy Alpizar
Replied by Heidy Alpizar on topic Re: Square meters instead of square feet
Hello again, I was able to make the changes as you indicated in components > com_osproperty > templates > your_current_template > details.html.php

However, I am now trying to have the words translated correctly to the Spanish language but with no success. Could you please indicate also how I can do this? I had already made the translation in Control Panel > Other > Translation, but that is not working since in the Frontend I have Square meters in the Spanish version of the site instead of Metros Cuadrados.

Thanks again for all your support.

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

More
11 years 7 months ago #40245 by Dang Thuc Dam
Replied by Dang Thuc Dam on topic Re: Square meters instead of square feet
Hi Heidy,
Can you please attach the screenshot so i can suggest the solution for you
Thanks
Dam

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

More
11 years 7 months ago #40356 by rich
Replied by rich on topic Re: Square meters instead of square feet
Hi Dam,

Ive changed the 'sqft' setting to 'sqmt' in components > com_osproperty > templates > your_current_template > details.html.tpl.php. Im still showing 'sqft' in the property details view - see attached screenshot.

How can i change this?

Thanks
Rich

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

More
11 years 7 months ago #40357 by Dang Thuc Dam
Replied by Dang Thuc Dam on topic Re: Square meters instead of square feet
Hi Rich,
Please try and edit in file:
components > com_osproperty > classes > listing.html.php also
Thanks
Dam

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

More
11 years 7 months ago #40363 by rich
Replied by rich on topic Re: Square meters instead of square feet
Awesome, that worked! Thanks Dam.

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

Moderators: Dang Thuc DamNguyen Phu Quan