This topic contains 32 replies, has 2 voices, and was last updated by Bryan 4 years, 9 months ago.
-
AuthorPosts
-
Hi,
How to translate the tagged word and put the date in dd/mm/yy
Thanks
Attachments:
You must be logged in to view attached files.Hello
You can use Poedit to translate some special words in site:
Also you can change the date format in Traveler Settings > Advance Options.
Thanks
This reply has been marked as private.Hello
In your image, what exactly word you want to translate so i can help you check and fix it if there are have problem.
Thanks
Just you see the image with detail and will read what is in Portuguese or what is in English and marked with cubic, is simple. Read the beginning of the email. See details, please.
Hi,
The problem is in the /st_templates/user/loop/loop-wishlist.php file on line 77
<span class=”booking-item-wishlist-title”>
<?php echo balanceTags($icon_type) ?>
<?php echo esc_html(mb_convert_case(str_ireplace(“st_”,””,$data[‘type’]), MB_CASE_TITLE, “UTF-8”)) ?>
<span><?php st_the_language(“added_on”) ?> <?php echo esc_html($data[‘date’]) ?></span>
</span>`The problem is in the /st_templates/user/loop/loop-wishlist.php file on line 77
being that all the dates of the system are correct in Portuguese dd/mm/yy
The word “Activity” has not been translated, like the rest of the system. This word is already included in the file pt_BR.po, exactly as it is on the screen.
Hello
My image will show you the way to fix it.
<?php switch ($data['type']) { case 'st_hotel': echo __('Hotel', ST_TEXTDOMAIN); break; case 'st_rental': echo __('Rental', ST_TEXTDOMAIN); break; case 'st_tours': echo __('Tours', ST_TEXTDOMAIN); break; case 'st_activity': echo __('Activity', ST_TEXTDOMAIN); break; case 'st_ca': echo __('Cars', ST_TEXTDOMAIN); break; default: <?php echo esc_html(mb_convert_case(str_ireplace("st_","",$data['type']), MB_CASE_TITLE, "UTF-8")) ?> break; } ?>
THanks
Attachments:
You must be logged in to view attached files.This reply has been marked as private.This reply has been marked as private.Hello
Please remove this code from default section then check again.
<?php echo esc_html(mb_convert_case(str_ireplace("st_","",$data['type']), MB_CASE_TITLE, "UTF-8")) ?>
Also the date can not be change to other format.
Thanks
This reply has been marked as private.Hello
You can remove that code line from the code i send to you to make it work property.
I have created a task to update it in next theme version.
Thanks
This reply has been marked as private.You can change date style in Settings > General > Date Format section.
Thanks
Hi,
As I said before, ALL DATES ARE FORMATTED according to the Portuguese language and configured correctly.
Only this date is out of standards.
Thanks
-
AuthorPosts
The forum ‘Traveler’ is closed to new topics and replies.