Estate Template: "Spain" In The SP Property Location And Other Minor Bugs In Language - Question | JoomShaper

Estate Template: "Spain" In The SP Property Location And Other Minor Bugs In Language

M

Mon

Template 3 years ago

After doing the translate for the correspondent es-ES files in language, the SP property Admin shows "Spain" as country.

  1. What can I do to make it be "España"

  2. In addition to that. It appears SELL in some of the properties, while others show the correct VENTA in Spanish (the same goes to BED and BATH). https://prnt.sc/10pc988 (by the way, in that case. The state of the property chosen is 'pending' not 'sell', as you can see here https://prnt.sc/10pciry and here https://prnt.sc/10pck7v).

After taking a look, it seems that (after translation) any choice other than 'sell' ('venta') , 'rent' ('alquiler') or 'sold' ('vendido') (eg 'in hold' 'en espera', 'pending' 'pendiente', etc) keeps 'sell' in English in the feature box. Weird...

  1. In the other hand, when display property detail pages, it continues to show AMENITIES, MAP (in place of MAPA), FLOOR PLAN, and VIDEO (for VÍDEO, with accent mark) aswell as EMI CALCULATOR. Here: https://prnt.sc/10pccjw

What else can I do? Thanks,

0
13 Answers
Ofi Khan
Ofi Khan
Accepted Answer
Support Agent 3 years ago #11069

Hello Mon

Sorry, your translation process is not feasible. Whenever template or extension gets an update, you might lose the translation. Please follow this documentation to translate the component.

Best regards

0
M
Mon
Accepted Answer
3 years ago #11209

That's the point. I didn't update anything. And I did translate to spanish as indicated in the documentation:

  • administrator\language\en-GB\en-GB.com_spproperty.ini (this file include all main admin panel phrases)
  • administrator\language\en-GB\en-GB.com_spproperty.sys.ini (admin menu phrases)

And For front-end phrases i did this same process with following files:

  • language\en-GB\en-GB.com_spproperty.ini
  • language\en-GB\en-GB.mod_spproperty_search.ini
  • language\en-GB\en-GB.mod_spproperty_properties.ini
  • language\en-GB\en-GB.mod_spproperty_agents.ini
  • language\en-GB\en-GB.mod_spproperty_emi_calculator.ini
  • language\en-GB\en-GB.mod_spproperty_categories.ini

Given that, I'm sorry but I must insist:

  1. After doing the translate for the correspondent es-ES files in language, the SP property Admin shows "Spain" as country.

What can I do to make it be "España" https://prnt.sc/10q39jn

  1. In addition to that. It appears SELL in some of the properties, while others show the correct VENTA in Spanish (the same goes to BED and BATH). https://prnt.sc/10pc988 (by the way, in that case. The state of the property chosen is 'pending' not 'sell', as you can see here https://prnt.sc/10pciry and here https://prnt.sc/10pck7v).

After taking a look, it seems that (after translation) any choice other than 'sell' ('venta') , 'rent' ('alquiler') or 'sold' ('vendido') (eg 'in hold' 'en espera', 'pending' 'pendiente', etc) keeps 'sell' in English in the feature box. Weird...

  1. In the other hand, when display property detail pages, it continues to show AMENITIES, MAP (in place of MAPA), FLOOR PLAN, and VIDEO (for VÍDEO, with accent mark) aswell as EMI CALCULATOR. Here: https://prnt.sc/10pccjw. The same happens with 'Contact for Enquiry', here https://prnt.sc/10q4qq5.

  2. And, in adition to that, I'll merge here this discussion https://www.joomshaper.com/forum/question/2622 I’ve translated the es-ES.mod_spproperty_emi_calculator. ini archive and all the ones that are required to have the Spanish translate done. But the EMI calculator continues to show up in English.

Given in the different modules there is no option to manage.

What else can I do?

It seems to me that there are some parts of the module or component that are not included in the chains to be translated. To prove my point I'll add here the es-ES.mod_spproperty_search.ini (you can see the link in the 'Hidden Content' box below), whitch clearly doesn't contain the translate opcions for 'City / State', 'Advance' or 'Search property' as you can see in the capture https://prnt.sc/10q3zls.

I'll appreciate any lead about this issues.

Best regards,

0
Ofi Khan
Ofi Khan
Accepted Answer
Support Agent 3 years ago #11256
  1. Please go to this location: administrator/components/com_spproperty/models/fields and replace spcountries.php file with the attached file. You need to unzip the file and then replace.

spcountries.php.zip

  1. and 3. I have changed Status Dropdown on Homepage. https://prnt.sc/10qq3w1 and also added some translation for property details page. Please go to this location: language/overrides/es-ES.override.ini and replace es-ES.override.ini file with the attached file. You need to unzip the file and then replace.

es-ES.override.ini.zip

Hopefully, you will understand now how it works. Go to the locations that you have mentioned in your reply. Then copy paste all the strings in es-ES.override.ini file. Then translate the strings.

0
M
Mon
Accepted Answer
3 years ago #11294

Thanks Ofi,

  1. spcountries.php.zip worked fine!

  2. It is because I do need the template in a few days that I’m doing a lot of research too to improve it by myself. That’s why yesterday I incorporated the values you gave to me now (and that were missing in the original .ini file) in the respective constants in the languages files according to the link you gave to me https://www.joomshaper.com/documentation/joomla-extensions/sp-property/translation, and it worked. I’ve read that the changes in .ini files for language work better than overrides (Where I created override is for the default.php you gave to me in order to do not show the agents).

The problem continues here: https://prnt.sc/10w5rbo BUY / PROPERTIES continue to show bed and bath, idem with RENT. Where can I chage it?

  1. Still, the are some issues I can’t manage in the Search box as I show you in the image below: https://prnt.sc/10r5evd
  • The price range shows price to be calculated with the m2 (relative prices). Is there any chance to show final prices (aboluted / fixed prices) so that m2 will only be a specification more, like number of baths, rooms, etc.
  1. In order to that point of fixed price (yes or no), I have to say that the detailed property page shows more detailed and valuable information when you chose NO FIXED price, here it is https://prnt.sc/10r4cko, but it shows confusing price (in m2 in my case) in the homepage, like this https://prnt.sc/10r4dr5 when the ideal for the price for me is to be show like FIXED PRICE.

In the other hand, when we choose FIXED price, it shows fine on homepage https://prnt.sc/10r4g83 but still shows ONLY price per square meter on property detail page https://prnt.sc/10r4gr0 which is quite confusing for users. At least is there any posibility to introduce here the legend "price per m2" after the number itself?

Maybe if you could tell me where I can change the data (what archives include the data I want to change), in order to be more clear in the exposition. I hope I can explain myself properly:

  • Is there any chance you can guide me to show always FIXED values in price but with the same amount of information https://prnt.sc/10r4cko once you enter in the property page detailed (shown when you chose NO FIXED price for the property)? Or at least, to introduce the legend "price per m2" after the number itself where it shows that way https://prnt.sc/10r4gr0.
  • Is that possible to keep the square meters only informative, and not to be calculated? I mean that we want to introduce the price, and we only want to introduce the m2 at an informative level, not to be multiplied by the price per square meter in order to give us the total. The rounding in the calculation does not allow for example to achieve a price of 200,000 for a house of 183 m2. And that is a huge problem.

NOTICE we still have NO SOLUTION for these issues mentioned before:

  1. It appears SELL in some of the properties, while others show the correct VENTA in Spanish (the same goes to BED and BATH). https://prnt.sc/10pc988 (by the way, in that case. The state of the property chosen is 'pending' not 'sell', as you can see here https://prnt.sc/10pciry and here https://prnt.sc/10pck7v).

After taking a look, it seems that (after translation) any choice other than 'sell' ('venta') , 'rent' ('alquiler') or 'sold' ('vendido') (eg 'in hold' 'en espera', 'pending' 'pendiente', etc) keeps 'sell' in English in the feature box. Weird...

  1. Once we have solved the legend 'Emi Calculator' translation in the property detailed page, the problem continues to appear in the graph of the calculations, as you can see here https://prnt.sc/10r4nww I’ve translated the es-ES.mod_spproperty_emi_calculator. ini archive and all the ones that are required to have the Spanish translate done. But the EMI calculator CHART continues to show up in English.

EDITED (2021/03/24): in the default.php page of the template I chaged the orixinal line

'COM_SPPROPERTY_EMI_CALCULATOR' for 'MOD_SPPROPERTY_EMI_CALCULATOR' And now the translation works only part as you can see here https://prnt.sc/10ucx1r

Here the options given (for AMOUNT_PLACEHOLDER and INTEREST_PLACEHOLDER in the es-Es.mod_spproperty_emi_calculator.ini file:

MOD_SPPROPERTY_COMPONENT_NOT_INSTALLED_OR_MISSING_FILE="Quizás no haya instalado el componente SP Property o falten los archivos necesarios"

MOD_SPPROPERTY_EMI_CALCULATOR="Cálculo del préstamo" MOD_SPPROPERTY_EMI_CALCULATOR_LOAN_EMI="Cuota mensual préstamo (Pagadero mensual): " MOD_SPPROPERTY_EMI_CALCULATOR_TOTAL_INTEREST_PAYABLE="Total intereses: " MOD_SPPROPERTY_EMI_CALCULATOR_TOTAL_PRINCIPAL_PLUS_INTEREST_PAYABLE="Total Principal + intereses: " MOD_SPPROPERTY_EMI_CALCULATOR_LOAN_AMOUNT="Monto principal del préstamo" MOD_SPPROPERTY_EMI_CALCULATOR_INTEREST_RATE="Tasa de interés" MOD_SPPROPERTY_EMI_CALCULATOR_LOAN_TENURE="Tenencia del préstamo (año + mes)" MOD_SPPROPERTY_EMI_CALCULATOR_HINT_YEAR="Año" MOD_SPPROPERTY_EMI_CALCULATOR_HINT_MONTH="Mes" MOD_SPPROPERTY_EMI_CALCULATOR_LOAN_AMOUNT_PLACEHOLDER="50000 €" MOD_SPPROPERTY_EMI_CALCULATOR_SPEC_INTEREST_PLACEHOLDER="6%" MOD_SPPROPERTY_EMI_CALCULATOR_HINT_YEAR="Año" MOD_SPPROPERTY_EMI_CALCULATOR_HINT_MONTH="Mes"

Thanks in advance for you help,

Best regards

0
M
Mon
Accepted Answer
3 years ago #11784

Please Ofi, tell me something about this as soo as you can... it is important for me to advance on the web and upload it.

Thanks

0
Ofi Khan
Ofi Khan
Accepted Answer
Support Agent 3 years ago #12236
  1. Great.
  2. Please go to language/overrides and in es-ES.override.ini file add these: MOD_SPPROPERTY_PROPERTIES_BED="Cama" MOD_SPPROPERTY_PROPERTIES_BATH="Baño"
  3. Please explain this more.
  4. Please go to templates/shaper_estate/html/com_spproperty/property and replace default.php file with the attached file. You need to unzip the file and then replace.

default.php.zip

  1. Please go to language/overrides and in es-ES.override.ini file add these: COM_SPPROPERTY_FIELD_PROPERTY_STATUS_RENT = "Alquiler" COM_SPPROPERTY_FIELD_PROPERTY_STATUS_SELL = "Venta" COM_SPPROPERTY_FIELD_PROPERTY_STATUS_IN_HOLD = "En Espera" COM_SPPROPERTY_FIELD_PROPERTY_STATUS_IN_PENDING = "Pendiente" COM_SPPROPERTY_FIELD_PROPERTY_STATUS_IN_SOLD = "Vendido" COM_SPPROPERTY_FIELD_PROPERTY_STATUS_IN_UNDER_OFFER = "Bajo Oferta" MOD_SPPROPERTY_PROPERTOES_FIELD_FEATURED = "Presentado"
  2. Please go to language/overrides and in es-ES.override.ini file translate these: MOD_SPPROPERTY_EMI_CALCULATOR_LOAN_EMI="EMI(Monthly payable): " MOD_SPPROPERTY_EMI_CALCULATOR_TOTAL_INTEREST_PAYABLE="Total interest payable: " MOD_SPPROPERTY_EMI_CALCULATOR_TOTAL_PRINCIPAL_PLUS_INTEREST_PAYABLE="Total Principal + Interest payable: " MOD_SPPROPERTY_EMI_CALCULATOR_LOAN_AMOUNT="Principal loan amount" MOD_SPPROPERTY_EMI_CALCULATOR_INTEREST_RATE="Interest Rate" MOD_SPPROPERTY_EMI_CALCULATOR_LOAN_TENURE="Loan Tenure(Year + Month)" MOD_SPPROPERTY_EMI_CALCULATOR_HINT_YEAR="Year" MOD_SPPROPERTY_EMI_CALCULATOR_HINT_MONTH="Month" MOD_SPPROPERTY_EMI_CALCULATOR_LOAN_AMOUNT_PLACEHOLDER="$5000000" MOD_SPPROPERTY_EMI_CALCULATOR_SPEC_INTEREST_PLACEHOLDER="10%" MOD_SPPROPERTY_EMI_CALCULATOR_HINT_YEAR="Year" MOD_SPPROPERTY_EMI_CALCULATOR_HINT_MONTH="Month"
0
M
Mon
Accepted Answer
3 years ago #12316

Thanks for your answer Ofi,

  1. Works fine in Overrides. Although I don't like very much do it so... because for languages I prefer the languages files .ini. I only use Overrides for .php files in templates. Still, thanks for the tip! I'll let it work that way.

  2. I would prefer final prices for the advanced search box. Because here in Spain people normaly search for final prices, not prices per m2 (for example: I would like to search for a house for 200.000 EUR and with at least 184 m2). Is there any chance to show final prices (aboluted / fixed prices) in that search box? I've solved adding the legend '(por m2)' in order to clarify the data. You can see it here: https://prnt.sc/10z9jhs

  3. Thanks for the changes in default.php. It works.

Acording to the example below (given in previus point 3.): Is there any chance you can guide me to give always FIXED values in price? I'll try to explain my reasons:

The rounding in the calculation does not allow for example to achieve a price of 200,000 for a house of 184 m2. Which is what our client tells us… And that is a huge problem. Because if I put 184 m2, I have to introduce 1087 EU x 184 and it gives me 200.008 EUR https://prnt.sc/10z9e6i. which still doesn’t show the correct figure… And its very important for us.

  1. Works MOD_SPPROPERTY_PROPERTOES_FIELD_FEATURED = "Destacado" (you can see it here: https://prnt.sc/10z97lj) but do not work all the rest (note that the constant you gave to me is PROPERTOES and still it works! Could there be more 'errors' of this kind?

Sorry but the other you gave to me shows the same in the homepage… it doesn’t work. Still there are strange things happening like that: https://prnt.sc/10z99qv,’ venta’ or ‘sell’ in English (which here shows right, strangely..) shouldn't show up with ‘in hold’, right? Cause you pick one or the other, not both...

As you can see here https://prnt.sc/10za1u5 the properties module works fine by itself… odd… Isn’t the same module which shows in the homegage? BUT, another thing happens in the properties module alone is that https://prnt.sc/10zcdxm, as you can see it shows relative price (per m2) and not absolute.

  1. The same here. It doesn't work better with the overrides you give to me. As I told you, I had already managed to make it work and get the most part translated changing 'COM_SPPROPERTY_EMI_CALCULATOR' for 'MOD_SPPROPERTY_EMI_CALCULATOR' in the default.php page of the template (obviously it was a mistake in the template), and now the translation works only part as you can see here https://prnt.sc/10ucx1r, where you can see that the options given for AMOUNT_PLACEHOLDER and INTEREST_PLACEHOLDER in the es-Es.mod_spproperty_emi_calculator.ini file don't work fine (I gave this MOD_SPPROPERTY_EMI_CALCULATOR_LOAN_AMOUNT_PLACEHOLDER="50000 €" and MOD_SPPROPERTY_EMI_CALCULATOR_SPEC_INTEREST_PLACEHOLDER="6%") and it continues to show up the original numbers... and we want to change it.

And more: As you can see here https://prnt.sc/10ucx1r when the mouse is hovering over the graphic, there are certain parts that are still displayed in English.

And the button for the final calculation still appears in English as 'calculate', again https://prnt.sc/10ucx1r.

Thanks again, Ofi

Best regards

0
M
Mon
Accepted Answer
3 years ago #13113

Please Ofi... Tell me something to solve this issue...

I Need to solve it

0
Ofi Khan
Ofi Khan
Accepted Answer
Support Agent 3 years ago #13737
  1. For pricing issue, share the specific property values from the administrator.
  2. For the EMI Calculator Chart, go here: modules/mod_spproperty_emi_calculator/assets/js and change Total Interest and Per Month text in spemicalc.js file.
  3. For Calculate, go here: modules/mod_spproperty_emi_calculator/tmpl and in default.php change in the 61 line.

My apology for the delay. I would humbly request you to hire someone professional. We are only here for support. We do not do any customization.

0
M
Mon
Accepted Answer
3 years ago #13798

Thanks Ofi,

  1. As you said, I've chaged this (in the spemicalc.js archive from the EMI calculator module chart):

label: 'Interés total ', data: total_interest.toFixed(2) }); graphData.push({ label: 'Principal préstamo ', data: principal_payable.toFixed(2)

And it doesn't work. It works the tip for Calculate, but not this one... Where can I solve the issue???

In adition, the legend 'per month', isn't still in spanish, as you can see here https://prnt.sc/119v6um. I found and chaged this code: https://prnt.sc/119vbz0 for Per month, but (the same as label: 'Total interest ' and label:'Principal loan amount ') It doesn’t work.

What can I try for that???

  1. Regarding the previous answer from you: Maybe I'm expressing myself wrong. I'm not asking for any customization (I only ask for you to tell me where can I find the archives to do it myself). I am doing search enough, given the errors the template have...

Let me put an example. For Question 5. below (still not solved or answer from you). This were my appreciations (you can read in my previous post):

Works MOD_SPPROPERTY_PROPERTOES_FIELD_FEATURED = "Destacado" (you can see it here: https://prnt.sc/10z97lj) but do not work all the rest (note that the constant you gave to me is PROPERTOES and still it works! Could there be more 'errors' of this kind? Sorry but the other you gave to me shows the same in the homepage… it doesn’t work. Still there are strange things happening like that: https://prnt.sc/10z99qv,’ venta’ or ‘sell’ in English (which here shows right, strangely..) shouldn't show up with ‘in hold’, right? Cause you pick one or the other, not both...

As you can see here https://prnt.sc/10za1u5 the properties module works fine by itself… odd… Isn’t the same module which shows in the homegage? BUT, another thing happens in the properties module alone is that https://prnt.sc/10zcdxm, as you can see it shows relative price (per m2) and not absolute.

Well, it turns out that the error in the template is evident. Because after hours or research the problem was solved today (by myself) adding this: MOD_SPPROPERTY_PROPERTOES_SOLD just in place of MOD_SPPROPERTY_PROPERTIES_SOLD, namely PROPERTOES instead of PROPERTIES for all this STATUS constants.

My question is: isn't that a serious ISSUE? It's evident that thats why translations don't work in this template.

Best regards,

0
Ofi Khan
Ofi Khan
Accepted Answer
Support Agent 3 years ago #14192
  1. For the pricing issue, we will discuss on your recent forum post.
  2. EMI Calculator changes work on my localhost on your site backup. Please clear your Joomla cache and Browser's cache and then check. If possible, then check with a different browser.
  3. For the property status not translating, please investigate and check exactly which terms does not work (sell, hold, rent, featured) or all of them. Give me an exact scenario. I will check with the developers.
0
M
Mon
Accepted Answer
3 years ago #14255

Hello Ofi,

  1. Ok
  2. Works perfect, sorry I didn't realize before. I deleted cache from the browser and it works now.
  3. As I told you before, I found the issue: to solve it all you can do is to add the constants MOD_SPPROPERTY_PROPERTOES_SOLD (the problem for translations is that this constants don't exist in the .ini file in english, and then you have to create them for the spanish file) just in place of MOD_SPPROPERTY_PROPERTIES_SOLD, namely PROPERTOES instead of PROPERTIES for all this STATUS constants.

that is, it works introducing these constants for the translation in 'es-ES.mod_spproperty_properties.ini' file:

MOD_SPPROPERTY_PROPERTOES_SOLD="Vendido" MOD_SPPROPERTY_PROPERTOES_STATUS_RENT="Alquiler" MOD_SPPROPERTY_PROPERTOES_STATUS_SELL="Venta" MOD_SPPROPERTY_PROPERTOES_STATUS_IN_HOLD="En espera" MOD_SPPROPERTY_PROPERTOES_STATUS_IN_PENDING="Pendiente" MOD_SPPROPERTY_PROPERTOES_STATUS_IN_SOLD="Vendido" MOD_SPPROPERTY_PROPERTOES_STATUS_IN_UNDER_OFFER="Bajo oferta" MOD_SPPROPERTY_PROPERTOES_STATUS="Estado del inmueble" MOD_SPPROPERTY_PROPERTOES_STATUS_DESC="Select a property status"

I hope I have expressed myself well

0
Ofi Khan
Ofi Khan
Accepted Answer
Support Agent 2 years ago #15153

If you need your site only in Spanish, just go to the code and replace the text. Replace from JText::_('MOD_SPPROPERTY_PROPERTOES_STATUS_RENT') to this JText::_('Alquiler')

0