Languages is smart search

General questions regarding the use of languages in Joomla! 4.x.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
Post Reply
deroderuiter
Joomla! Intern
Joomla! Intern
Posts: 58
Joined: Sun Mar 25, 2012 10:52 am

Languages is smart search

Post by deroderuiter » Thu Sep 16, 2021 12:58 pm

I have a problem in Smart Search in Joomla 4. On the front end there is an explanation of the Advanced Search. It is in English, but words like "not", "and" and "or" do not work. That make sense because the site is in Dutch and you have to use the translated words "niet", "en" and "of". But the explanation is in English and I don''t know how I can change that in Dutch. The backend and the frontend languages are "Dutch", but still I don't see a Dutch explanation. How can I solve this?
See the attachment.
You do not have the required permissions to view the files attached to this post.
Last edited by imanickam on Thu Sep 16, 2021 4:03 pm, edited 1 time in total.
Reason: Moved topic » from Performance - Joomla! 4.x to Language - Joomla! 3.x

User avatar
imanickam
Joomla! Master
Joomla! Master
Posts: 27751
Joined: Wed Aug 13, 2008 2:57 am
Location: Chennai, India

Re: Languages is smart search

Post by imanickam » Thu Sep 16, 2021 3:47 pm

The text you are referring to comes from the language strings that is available file com_finder.ini located in the directory \language\en-GB.

Code: Select all

COM_FINDER_ADVANCED_TIPS_AND="<p>Entering <strong>this and that</strong> into the search form will return results containing both &quot;this&quot; and &quot;that&quot;.</p>"
COM_FINDER_ADVANCED_TIPS_INTRO="<p>Here are a few examples of how you can use the search feature:</p>"
COM_FINDER_ADVANCED_TIPS_NOT="<p>Entering <strong>this not that</strong> into the search form will return results containing &quot;this&quot; and not &quot;that&quot;.</p>"
COM_FINDER_ADVANCED_TIPS_OR="<p>Entering <strong>this or that</strong> into the search form will return results containing either &quot;this&quot; or &quot;that&quot;.</p>"
COM_FINDER_ADVANCED_TIPS_OUTRO="<p>Search results can also be filtered using a variety of criteria. Select one or more filters below to get started.</p>"
COM_FINDER_ADVANCED_TIPS_PHRASE="<p>Entering <strong>&quot;this and that&quot;</strong> (with quotes) into the search form will return results containing the exact phrase &quot;this and that&quot;.</p>"

As you are using the Dutch language pack, check whether these language strings are translated in the file com_finder.ini that is located in the directory \language\nl-NL.
Ilagnayeru (MIG) Manickam | இளஞாயிறு மாணிக்கம்
Joomla! - Global Moderators Team | Joomla! Core - Tamil (தமிழ்) Translation Team Coordinator
ex-Joomla! Translations Coordination Team
Eegan - Support the poor and underprivileged

User avatar
imanickam
Joomla! Master
Joomla! Master
Posts: 27751
Joined: Wed Aug 13, 2008 2:57 am
Location: Chennai, India

Re: Languages is smart search

Post by imanickam » Thu Sep 16, 2021 3:54 pm

Guess what? I installed the Dutch language pack v4.0.3.1 and made it as the Default front-end language. I could view the translated stings that were referenced in my earlier post.

Following is what I see:
Dutch_nl-NL_Smart_Search_screenshot.jpg
Notice that the tips are in Dutch - NOT English.
You do not have the required permissions to view the files attached to this post.
Ilagnayeru (MIG) Manickam | இளஞாயிறு மாணிக்கம்
Joomla! - Global Moderators Team | Joomla! Core - Tamil (தமிழ்) Translation Team Coordinator
ex-Joomla! Translations Coordination Team
Eegan - Support the poor and underprivileged

deroderuiter
Joomla! Intern
Joomla! Intern
Posts: 58
Joined: Sun Mar 25, 2012 10:52 am

Re: Languages is smart search

Post by deroderuiter » Thu Sep 16, 2021 4:01 pm

Thank you for your reply. I made a Dutch language overwrite now!

deroderuiter
Joomla! Intern
Joomla! Intern
Posts: 58
Joined: Sun Mar 25, 2012 10:52 am

Re: Languages is smart search

Post by deroderuiter » Thu Sep 16, 2021 4:04 pm

imanickam wrote:
Thu Sep 16, 2021 3:54 pm
Guess what? I installed the Dutch language pack v4.0.3.1 and made it as the Default front-end language. I could view the translated stings that were referenced in my earlier post.

Following is what I see:
Dutch_nl-NL_Smart_Search_screenshot.jpg

Notice that the tips are in Dutch - NOT English.
That is strange. I also use the Dutch language pack v4.0.3.1, but my text is in English, so I had to make a language overwrite...

User avatar
imanickam
Joomla! Master
Joomla! Master
Posts: 27751
Joined: Wed Aug 13, 2008 2:57 am
Location: Chennai, India

Re: Languages is smart search

Post by imanickam » Thu Sep 16, 2021 4:15 pm

deroderuiter wrote:
Thu Sep 16, 2021 4:01 pm
I made a Dutch language overwrite now!
Do you mean that you reinstalled the Dutch language pack?
Ilagnayeru (MIG) Manickam | இளஞாயிறு மாணிக்கம்
Joomla! - Global Moderators Team | Joomla! Core - Tamil (தமிழ்) Translation Team Coordinator
ex-Joomla! Translations Coordination Team
Eegan - Support the poor and underprivileged

deroderuiter
Joomla! Intern
Joomla! Intern
Posts: 58
Joined: Sun Mar 25, 2012 10:52 am

Re: Languages is smart search

Post by deroderuiter » Thu Sep 16, 2021 5:41 pm

imanickam wrote:
Thu Sep 16, 2021 4:15 pm
deroderuiter wrote:
Thu Sep 16, 2021 4:01 pm
I made a Dutch language overwrite now!
Do you mean that you reinstalled the Dutch language pack?
I reinstalled the Dutch language pack, but the text is still in English, Although everything else is in Dutch.
When I look in the file /public_html/language/nl-NL/com_finder.ini the correct Dutch translation in there, but somehow Joomla does not use it.
The only thing that helps is making a language overwrite.
Very, very strange...

User avatar
imanickam
Joomla! Master
Joomla! Master
Posts: 27751
Joined: Wed Aug 13, 2008 2:57 am
Location: Chennai, India

Re: Languages is smart search

Post by imanickam » Fri Sep 17, 2021 3:28 am

To narrow down the problem, following information would be of help.

(a) Is it a fresh install of Joomla?

(b) What version of Joomla is being used?

(c) What template is being used for the site?

(d) Whether the template used for the site uses any framework (e.g., Gantry, T4)?


Note:
To figure out whether it is a template related problem, install Joomla in a new environment and test it without installing the third party template.
Ilagnayeru (MIG) Manickam | இளஞாயிறு மாணிக்கம்
Joomla! - Global Moderators Team | Joomla! Core - Tamil (தமிழ்) Translation Team Coordinator
ex-Joomla! Translations Coordination Team
Eegan - Support the poor and underprivileged

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 28192
Joined: Mon Oct 27, 2008 9:27 pm
Location: Romerike, Norway

Re: Languages is smart search

Post by Per Yngve Berg » Fri Sep 17, 2021 4:25 am

Mod. Note: Relocated topic from J3.x to J4 forum.

Enable Debug and Language Debug in Global Configuration.

In the Debug info at the bottom of the page, you can see what language files are loaded.

deroderuiter
Joomla! Intern
Joomla! Intern
Posts: 58
Joined: Sun Mar 25, 2012 10:52 am

Re: Languages is smart search

Post by deroderuiter » Fri Sep 17, 2021 8:21 am

imanickam wrote:
Fri Sep 17, 2021 3:28 am
To narrow down the problem, following information would be of help.

(a) Is it a fresh install of Joomla? The website is updated from Joomla 3.10 to Joomla 4

(b) What version of Joomla is being used? Joomla 4.0.3

(c) What template is being used for the site? Helix Ultimate 2.0.5

(d) Whether the template used for the site uses any framework (e.g., Gantry, T4)? Helix Ultimate Framework


Note:
To figure out whether it is a template related problem, install Joomla in a new environment and test it without installing the third party template.
The template seems to be the problem. When I use the Cassiopeia template, the text is in Dutch like it should be in my case.

deroderuiter
Joomla! Intern
Joomla! Intern
Posts: 58
Joined: Sun Mar 25, 2012 10:52 am

Re: Languages is smart search

Post by deroderuiter » Fri Sep 17, 2021 8:42 am

Per Yngve Berg wrote:
Fri Sep 17, 2021 4:25 am
Mod. Note: Relocated topic from J3.x to J4 forum.

Enable Debug and Language Debug in Global Configuration.

In the Debug info at the bottom of the page, you can see what language files are loaded.
plg_system_languagefilter
array:1 [ "language" => "nl-NL" ]

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 28192
Joined: Mon Oct 27, 2008 9:27 pm
Location: Romerike, Norway

Re: Languages is smart search

Post by Per Yngve Berg » Fri Sep 17, 2021 10:35 am

Screen-nl-finder.png

Is /language/nl-NL/com_finder.ini in the list?


** = Text is translated
?? = Text missing in language file
You do not have the required permissions to view the files attached to this post.

deroderuiter
Joomla! Intern
Joomla! Intern
Posts: 58
Joined: Sun Mar 25, 2012 10:52 am

Re: Languages is smart search

Post by deroderuiter » Fri Sep 17, 2021 11:37 am

Per Yngve Berg wrote:
Fri Sep 17, 2021 10:35 am
Screen-nl-finder.png


Is /language/nl-NL/com_finder.ini in the list?


** = Text is translated
?? = Text missing in language file
See the attachment
You do not have the required permissions to view the files attached to this post.

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 28192
Joined: Mon Oct 27, 2008 9:27 pm
Location: Romerike, Norway

Re: Languages is smart search

Post by Per Yngve Berg » Fri Sep 17, 2021 2:26 pm

You have 15 untranslated strings.

The beginning of language/nl-NL/com_finder.ini:

Code: Select all

; Joomla! Project
; (C) 2011 Open Source Matters, Inc. <https://www.joomla.org>
; License GNU General Public License version 2 or later; see LICENSE.txt
; Note : All ini files need to be saved as UTF-8

COM_FINDER="Slim zoeken"
COM_FINDER_ADVANCED_SEARCH_TOGGLE="Uitgebreid zoeken"
COM_FINDER_ADVANCED_TIPS_AND="<p>De invoer van <strong>dit en dat</strong> in het zoekformulier zal resultaten opleveren die zowel \"dit\" als \"dat\" bevatten.</p>"
COM_FINDER_ADVANCED_TIPS_INTRO="<p>Hier enkele voorbeelden hoe u de zoekfunctie kunt gebruiken:</p>"
COM_FINDER_ADVANCED_TIPS_NOT="<p>De invoer van <strong>dit niet dat</strong> in het zoekformulier zal resultaten opleveren die \"dit\" bevatten maar niet \"dat\".</p>"
COM_FINDER_ADVANCED_TIPS_OR="<p>De invoer van <strong>dit of dat</strong> in het zoekformulier zal resultaten opleveren die ofwel \"dit\" ofwel \"dat\" bevatten.</p>"
COM_FINDER_ADVANCED_TIPS_OUTRO="<p>De zoekresultaten kunnen ook gefilterd worden met behulp van verschillende criteria. Selecteer een of meer criteria om te filteren.</p>"
COM_FINDER_ADVANCED_TIPS_PHRASE="<p>De invoer van <strong>\"dit en dat\"</strong>(met aanhalingstekens) in het zoekformulier zal resultaten opleveren die exact de tekst \"dit en dat\" bevatten.</p>"
COM_FINDER_DEFAULT_PAGE_TITLE="Zoekresultaten"

deroderuiter
Joomla! Intern
Joomla! Intern
Posts: 58
Joined: Sun Mar 25, 2012 10:52 am

Re: Languages is smart search

Post by deroderuiter » Fri Sep 17, 2021 3:05 pm

The Helix Ultimate Framework uses the variable COM_FINDER_ADVANCED_TIPS which is not in the language file. I made a language overwrite for the Dutch text now. I will ask Joomshaper why they did choose for this solution and why they do not use the "normal" variables.


Post Reply

Return to “Language - Joomla! 4.x”