Menu Content

Support

> Forums, FAQs & Paid Support
Welcome, Guest
Username Password: Remember me

Translation of some words are hard to find...
(1 viewing) (1) Guest
Support forum for users using free edition of Book it!. These forums are for mutual help among users.

NOTE: Due to our capacity limitations, ARTIO does not monitor this forum category regularly. If you want direct support from ARTIO, please start a ticket at Support Dashboard. If you have no support ticket available, you need to purchase it. .
  • Page:
  • 1
  • 2

TOPIC: Translation of some words are hard to find...

Translation of some words are hard to find... 12 years ago #35190

At the page where to fill out customer info, I am having a hard time to find out what files to edit to translate:

Tax
Item price
Deposit must be paid before
no expiration
Reservation Contact

Can anyone point me to the correct files? :-)
Attachments:

Re: Translation of some words are hard to find... 12 years ago #35200

  • maju
  • OFFLINE
  • Posts: 1107
Hello,

I agree, it can be hard to find even if those translations are not in english ini files.

I am not sure about all of them but you can try it this way:

TAX="{translation}"
ITEM PRICE="{translation}"
DEPOSIT MUST BE PAID BEFORE="{translation}"
NO EXPIRATION="{translation}"
RESERVATION CONTACT="{translation}"

Instead of {translation} use your translated text. It should work for all of them and if not, let me know.
ARTIO Support Team

Re: Translation of some words are hard to find... 12 years ago #35228

It worked for the DEPOSIT MUST BE PAID BEFORE="{translation}", but none of the others... :-)

Re: Translation of some words are hard to find... 12 years ago #35233

  • maju
  • OFFLINE
  • Posts: 1107
Ok, then I look on it:

1. Tax
add this row to lang file:
TAX %S="{translation with %s}"

{translation with %s} - use %s and this part of translation will be replaced by string from system.

2. Item Price
ITEM PRICE="{translation}" should work, tested and it is ok on my site

3. no expiration
open file: administrator/components/com_booking/helpers/booking.php
around line 2378 should be this row:
$ret = "no expiration";
modify it to:
$ret = JText::_("no expiration");

look on other rows like 2380:
$ret = "instant expiration for online payment";
you can modify it to:
$ret = JText::_("instant expiration for online payment");

and line 2395 with:
$ret = self::duration($cancelTime).' before booked event';
you can modify it to:
$ret = self::duration($cancelTime).JText::_(' before booked event');

If it will be in function JText::_("{text}");, it will be translated by your lang file. First text before '=' in lang file have to be uppercased.

4. Reservation Contact
RESERVATION CONTACT="{translation}" should work for you, the last solution should be correct. There is already JText::_('Reservation Contact'); and this translation works on my site.
ARTIO Support Team
Last Edit: 12 years ago by maju.

Re: Translation of some words are hard to find... 12 years ago #35238

On my translation are only missing:

On reservation confirmation page:
Reservation Status & Payment

On User reservation details:
Reservation #
Object (capacity)

I´ve added a few lines to the translation file (language/lang/lang.com_booking.in) In my case "lang"= pt.PT

PAYMENT METHOD="{translation}"
RESERVATION CONTACT="{translation}"
DEPOSIT MUST BE PAID BEFORE="{translation}"
DAY="{translation}"
TOTAL PRICE= "{translation}"
RESERVATION STATUS="{translation}"
PAYMENT STATUS="{translation}"
RESERVED="{translation}"
RESERVATION PAYMENT AND STATUS="{translation}"
EXPIRATION="{translation}"
DEPOSIT PAID="{translation}"
DETAIL="{translation}"
PAID IN FULL="{translation}"
RESERVATION #="{translation}" ** NOT WORKING **

Now i will follow maju´s suggestion and i will try to add missing translations ... ;)
Last Edit: 12 years ago by pmpeixoto.

Re: Translation of some words are hard to find... 12 years ago #35243

Thanks :-) Still no effect on Tax and item price, but this is good progress :-)
  • Page:
  • 1
  • 2
User Login Empty