Language problem: Contact form

  • natt
    Active member
  • Topic Author
  • New Member
  • New Member
More
1 year 1 month ago #50262 by natt
Hello,

could it be that there is a problem with the language file for the contact form on the detail page? One could create an override, but I can't find any English text/labels for the individual input fields.
I've attached a screenshot.

Best regards
F. 

Please Log in to join the conversation.

  • milos
    Support Staff
  • Moderator
  • Moderator
More
1 year 1 month ago #50265 by milos
Hello,

As you can see on our demo site the contact form is looking normally. Can you check the language files you are using if they are complete?

Regards,
Milos

Please Log in to join the conversation.

  • natt
    Active member
  • Topic Author
  • New Member
  • New Member
More
1 year 1 month ago #50271 by natt
Replied by natt on topic Language problem: Contact form
Hi,
this file? 

File Attachment:

File Name: en-GB.tpl_...work.zip
File Size:8 KB

Please Log in to join the conversation.

  • milos
    Support Staff
  • Moderator
  • Moderator
More
1 year 1 month ago #50272 by milos
Correct. Just make sure this is the file from the “languages” folder of Joomla. There are two identical language files. You can add all missing strings there or modify existing ones.

Regards,
Milos

Please Log in to join the conversation.

  • natt
    Active member
  • Topic Author
  • New Member
  • New Member
More
1 year 1 month ago #50273 by natt
Replied by natt on topic Language problem: Contact form
Hello,

Thank you very much for the information!
I have one last question. :-)
Where can I customize the "number_format" for the prices etc.? I need the German format or a point.
For example:
€20.000,00
7.000,50 sqm

MfG
F.

Please Log in to join the conversation.

  • milos
    Support Staff
  • Moderator
  • Moderator
More
1 year 1 month ago #50276 by milos
Hello,

To change the currency symbol in Joomla 4 and move currency right from the number, edit files:

/templates/sparky_framework/html/com_content/featured/default_item.php
/templates/sparky_framework/html/com_content/category/blog_item.php

For example, to change from $ to EUR, change this
Code:
if( $field->label == "Price") { echo '<div class="price">' . '$' . number_format($field->value) . '</div>'; }

to this:
Code:
if( $field->label == "Price") { echo '<div class="price">' . number_format($field->value) . ' EUR' . '</div>'; }

Also, in this file: /templates/sparky_framework/html/com_content/article/default.php change this:
Code:
if( $field->name == "price" && $field->value) { echo '<div class="price">' . '$' . number_format($field->value) . '</div>'; }

to this:
Code:
if( $field->name == "price" && $field->value) { echo '<div class="price">' . number_format($field->value) . ' EUR' . '</div>'; }

Regards,
Milos

Please Log in to join the conversation.

Time to create page: 0.318 seconds
Powered by Kunena Forum