Skip to content

Commit fafdf53

Browse files
authoredFeb 5, 2025··
Fixes #753 - Added language detection
1 parent 4f85ccc commit fafdf53

File tree

6 files changed

+323
-189
lines changed

6 files changed

+323
-189
lines changed
 
Loading
Loading

‎locale/admin-docs.pot

+266-187
Large diffs are not rendered by default.

‎manage/trigger/learn-by-example.rst

+5-2
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,14 @@ To learn about triggers in detail, first go to
2121
:align: center
2222
:scale: 80%
2323

24-
3. Send an auto-reply email to *any customer* who responds to a ticket:
24+
.. _trigger-example-3:
25+
26+
3. Send an auto-reply email to any customer who creates a ticket via web, if
27+
the detected language is English:
2528

2629
.. figure:: /images/manage/trigger/trigger-based-auto-replies-on-follow-ups_with_locale.png
2730
:align: center
28-
:scale: 80%
31+
:scale: 95%
2932

3033
.. note:: 📨 **Not all automated messages come from triggers!**
3134

‎misc/object-conditions/basics.rst

+14
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,20 @@ editing a condition. Find them in the following table.
9696
- - current user
9797
- specific user
9898
- not set
99+
* - Detected
100+
101+
Language
102+
- Article
103+
- Checks the language of the article.
104+
- - is
105+
- is not
106+
- All languages which
107+
108+
are supported by the
109+
110+
language detection
111+
112+
service.
99113
* - Existing
100114

101115
members

‎settings/ticket.rst

+38
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,44 @@ the desired agents in the ``Exception Users`` list. The search function in this
163163
area is only effective, if you have too many agents to display at once to help
164164
you with the configuration.
165165

166+
Language Detection
167+
------------------
168+
169+
Zammad offers a built in language detection for articles. By default, it is
170+
turned off. Turn it on by selecting a backend service and confirm by clicking
171+
**Submit**.
172+
173+
After enabling it, Zammad tries to detect the language of each **new** article.
174+
The language is not detected for existing articles.
175+
176+
.. note::
177+
- Currently, there is only one backend service available:
178+
`Compact Language Detection <https://github.com/jtoy/cld>`_.
179+
- Be aware that this feature is in its early stages. Enhancements may come in
180+
very soon.
181+
- While we noticed it works pretty well, it may fail for some edge cases.
182+
- The language selection in conditions and the output in the article detail
183+
view is always in English. The language names are not translated into
184+
user's current language.
185+
186+
You can see the name of the detected language in the detail view of an article.
187+
You can display additional information by clicking on an article, which expands
188+
more details:
189+
190+
.. figure:: /images/settings/ticket/article-detail-language-detection.png
191+
:alt: Screenshot showing detected language in article detail view
192+
:align: center
193+
194+
If you are wondering what this feature is useful for, the answer is:
195+
196+
- Use the detected language as a condition attribute in triggers and schedulers.
197+
Examples are: to send auto replies in different languages (see
198+
:ref:`trigger example <trigger-example-3>`) and to
199+
move tickets in a specific language into a specific group.
200+
- Search by the new article attribute in the advanced search (both via
201+
language code and language name). Examples: ``article.detected_language:en``,
202+
``article.detected_language_name:english``
203+
166204
Notifications
167205
-------------
168206

0 commit comments

Comments
 (0)
Please sign in to comment.