- Posts: 18
- Thank you received: 0
- Community Forum
- Appointment Booking Pro - Retired, no longer for sale or supported.
- ABPro 4.0.x
- Multilanguage Message centre
Multilanguage Message centre
- Alper
- Topic Author
- Offline
- Fresh Boarder
Less
More
8 years 1 month ago #21355
by Alper
Multilanguage Message centre was created by Alper
I translated almost entirely my site. But I couldn't messages:
Booking Complete
(to Customer): {svkey}YOUR_BOOK_OK{svkey}
I added to language/en-GB/en-GB.com_rsappt_pro3.ini this line:
YOUR_BOOK_OK="Thank you for your order. "
And to language/tr-TR/tr-TR.com_rsappt_pro3.ini this:
YOUR_BOOK_OK="Rezervasyonunuz için teşekkür ederiz."
But it didnt work, e-mail like this : YOUR_BOOK_OK
Thank you in advance...
Booking Complete
(to Customer): {svkey}YOUR_BOOK_OK{svkey}
I added to language/en-GB/en-GB.com_rsappt_pro3.ini this line:
YOUR_BOOK_OK="Thank you for your order. "
And to language/tr-TR/tr-TR.com_rsappt_pro3.ini this:
YOUR_BOOK_OK="Rezervasyonunuz için teşekkür ederiz."
But it didnt work, e-mail like this : YOUR_BOOK_OK
Thank you in advance...
Please Log in to join the conversation.
- Rob
- Offline
- Administrator
Less
More
- Posts: 4785
- Karma: 103
- Thank you received: 673
8 years 1 month ago #21356
by Rob
Replied by Rob on topic Multilanguage Message centre
In the message setup screen click on the Toggle Editor button, and look to see if your editor is adding any formatting characters to the string.
It must be pure text of
{svkey}YOUR_BOOK_OK{svkey}
It must be pure text of
{svkey}YOUR_BOOK_OK{svkey}
Please Log in to join the conversation.
- Alper
- Topic Author
- Offline
- Fresh Boarder
Less
More
- Posts: 18
- Thank you received: 0
8 years 3 weeks ago #21410
by Alper
Replied by Alper on topic Multilanguage Message centre
i've cleared all formatting characters and now works for English, but send only in English, doesn't change to Turkish
Please Log in to join the conversation.
- Rob
- Offline
- Administrator
Less
More
- Posts: 4785
- Karma: 103
- Thank you received: 673
8 years 3 weeks ago - 8 years 3 weeks ago #21411
by Rob
Replied by Rob on topic Multilanguage Message centre
Joomla is very fussy about the language file.
A single extra, or missing, quotation mark ( " ) and it will ignore the language file and revert to English.
The bottom of this page shows how to troubleshoot a language file.
appointmentbookingpro.com/how-to/173-tra...nother-language.html
A single extra, or missing, quotation mark ( " ) and it will ignore the language file and revert to English.
The bottom of this page shows how to troubleshoot a language file.
appointmentbookingpro.com/how-to/173-tra...nother-language.html
Last edit: 8 years 3 weeks ago by Rob.
Please Log in to join the conversation.
- Alper
- Topic Author
- Offline
- Fresh Boarder
Less
More
- Posts: 18
- Thank you received: 0
8 years 3 weeks ago #21412
by Alper
Replied by Alper on topic Multilanguage Message centre
only this:
JROOT/administrator/language/en-GB/en-GB.com_rsappt_pro3.ini : error(s) in line(s) 1109, 1164, 1394, 2102
and i don't think this is about my problem
JROOT/administrator/language/en-GB/en-GB.com_rsappt_pro3.ini : error(s) in line(s) 1109, 1164, 1394, 2102
and i don't think this is about my problem
Please Log in to join the conversation.
- Rob
- Offline
- Administrator
Less
More
- Posts: 4785
- Karma: 103
- Thank you received: 673
8 years 3 weeks ago #21413
by Rob
Replied by Rob on topic Multilanguage Message centre
If you can email me (This email address is being protected from spambots. You need JavaScript enabled to view it.) with super user access, I can have a look at it.
Please Log in to join the conversation.
- Rob
- Offline
- Administrator
Less
More
- Posts: 4785
- Karma: 103
- Thank you received: 673
8 years 3 weeks ago - 8 years 3 weeks ago #21414
by Rob
Replied by Rob on topic Multilanguage Message centre
If running a multi-language site, and using a payment processor, the payment complete callback reverts to the default language of the site. It should use the language that the customer had selected at the time of the booking.
The next build will fix this issue, if you would like to fix you copy now you can edit file:
\administrator\components\com_rsappt_pro3\sendmail_pro2.php
At line 55 look for:
$lang = JFactory::getLanguage();
$langTag = $lang->getTag();
if($langTag == ""){
$langTag = "en_GB";
}
$sql = "SET NAMES 'utf8';";
try{
Insert red code as shown here:
$lang = JFactory::getLanguage();
$langTag = $lang->getTag();
if($langTag == ""){
$langTag = "en_GB";
}
$sql = 'SELECT booking_language FROM #__sv_apptpro3_requests WHERE id_requests = '.$request_id;
try{
$database->setQuery($sql);
$request_lang = NULL;
$request_lang = $database -> loadResult();
} catch (RuntimeException $e) {
logIt($e->getMessage(), "be_sendmail", "", "");
echo JText::_('RS1_SQL_ERROR').$e->getMessage();
exit;
}
if($request_lang != "" && $langTag != $request_lang){
// Change to language used by customer at time of booking
$langTag = $request_lang;
$language = JFactory::getLanguage();
$language->load('com_rsappt_pro3', JPATH_SITE, $request_lang, true);
}
$sql = "SET NAMES 'utf8';";
try{
The next build will fix this issue, if you would like to fix you copy now you can edit file:
\administrator\components\com_rsappt_pro3\sendmail_pro2.php
At line 55 look for:
$lang = JFactory::getLanguage();
$langTag = $lang->getTag();
if($langTag == ""){
$langTag = "en_GB";
}
$sql = "SET NAMES 'utf8';";
try{
Insert red code as shown here:
$lang = JFactory::getLanguage();
$langTag = $lang->getTag();
if($langTag == ""){
$langTag = "en_GB";
}
$sql = 'SELECT booking_language FROM #__sv_apptpro3_requests WHERE id_requests = '.$request_id;
try{
$database->setQuery($sql);
$request_lang = NULL;
$request_lang = $database -> loadResult();
} catch (RuntimeException $e) {
logIt($e->getMessage(), "be_sendmail", "", "");
echo JText::_('RS1_SQL_ERROR').$e->getMessage();
exit;
}
if($request_lang != "" && $langTag != $request_lang){
// Change to language used by customer at time of booking
$langTag = $request_lang;
$language = JFactory::getLanguage();
$language->load('com_rsappt_pro3', JPATH_SITE, $request_lang, true);
}
$sql = "SET NAMES 'utf8';";
try{
Last edit: 8 years 3 weeks ago by Rob.
The following user(s) said Thank You: Alper
Please Log in to join the conversation.
- Alper
- Topic Author
- Offline
- Fresh Boarder
Less
More
- Posts: 18
- Thank you received: 0
8 years 3 weeks ago #21415
by Alper
Replied by Alper on topic Multilanguage Message centre
thank you,
great, fast support...
great, fast support...
Please Log in to join the conversation.
- Community Forum
- Appointment Booking Pro - Retired, no longer for sale or supported.
- ABPro 4.0.x
- Multilanguage Message centre
Time to create page: 0.094 seconds