Skip to content

Commit c271f16

Browse files
committed
📝 Clarify language detection tooltips in bot translation settings to explain when detection actually runs (only when the translation service is used, e.g. missing translation item), that chat locale applies when a translation is found by identifier, and that per-identifier detection can be enabled via "Try detect language using AI service before translating" 🔍🤖🌐
1 parent 9e1f679 commit c271f16

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎lhc_web/design/defaulttheme/tpl/lhgenericbot/form_translation.tpl.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
<div class="form-group">
2424
<label><input type="checkbox" name="detect_chat_language" <?php !empty($trConfiguration['detect_chat_language']) ? print 'checked="checked"' : ''?> value="1" /> <?php echo erTranslationClassLhTranslation::getInstance()->getTranslation('user/account','Detect chat language with translation service instead of relying on chat locale')?></label>
25-
<p><i><small><?php echo erTranslationClassLhTranslation::getInstance()->getTranslation('department/edit','Detected language is stored in chat variables, so detection is executed only once per chat.');?></small></i></p>
25+
<p><i><small><?php echo erTranslationClassLhTranslation::getInstance()->getTranslation('department/edit','Language detection is executed only when the translation service is actually used, e.g. when a translation item for a bot message is not found and the text has to be translated by the service. If a translation item is found by its identifier, the chat locale is used - to detect the language for that specific identifier instead, enable "Try detect language using AI service before translating" in the translation item itself. Detected language is stored in chat variables, so detection is executed only once per chat.');?></small></i></p>
2626
</div>
2727

2828
<div class="form-group">

‎lhc_web/design/defaulttheme/tpl/lhgenericbot/form_translation_item.tpl.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363

6464
<div class="form-group">
6565
<label><input type="checkbox" name="detect_language" <?php $item->detect_language == 1 ? print 'checked="checked"' : ''?> value="1" /> <?php echo erTranslationClassLhTranslation::getInstance()->getTranslation('department/edit','Try detect language using AI service before translating')?></label>
66-
<p><i><small><?php echo erTranslationClassLhTranslation::getInstance()->getTranslation('department/edit','Instead of using bot language as a source language we will detect the language of this translation with the translation service.');?></small></i></p>
66+
<p><i><small><?php echo erTranslationClassLhTranslation::getInstance()->getTranslation('department/edit','Visitor language is detected with the translation service from the first visitor messages in chat, instead of relying on chat locale. The detected language is used to choose which translation of this identifier to show to the visitor. If no translation matches the detected language and "If translation is not found use translation service" is enabled above, the text is translated into the detected language. Detection is executed only once per chat.');?></small></i></p>
6767
</div>
6868

6969
<div role="tabpanel">

0 commit comments

Comments
 (0)