Not sure this is the the right place for this report...
Install Joomla 3.7.0
install Afrikaans language set as default for frontend
do a search for an invalid 1 char string
Afrikaans equivalent of "Search term must be a minimum of 3 characters and a maximum of 200 characters"
Note the html entity being displayed
Note that it says 20 and not 200 (infact other languages, (like arabic!) also say 20 chars, whereas the english says 200!!)
Soektog term moet 'n minimum van 3 karakters en 'n maksimum van 20 karakters hê.
Labels |
Added:
?
|
Title |
|
Category | ⇒ | com_search Language & Strings |
By curiosity I looked at 1.6.0 and I found that we had there the right code
/**
* getUpperLimitSearchWord function
*
* This method returns an upper limit integer for length of search words
*
* @return integer The upper limit integer for length of search words (20 if no value was set for a specific language)
* @since 1.6
*/
public function getUpperLimitSearchWord() {
if ($this->upperLimitSearchWordCallback !== null) {
return call_user_func($this->upperLimitSearchWordCallback);
}
else {
return 20;
}
}
Basically this means that the upperlimit setting is always overriden if <200
weird
Status | New | ⇒ | Discussion |
@infograf768 did you forget about this?
Status | Discussion | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2019-02-10 21:35:23 |
Closed_By | ⇒ | PhilETaylor | |
Labels |
Added:
J3 Issue
|
It is indeed not the place to post this...
One should have contacted the TT coordinator for Afrikaans
https://community.joomla.org/translations/joomla-3-translations.html#af-za
But it seems you found a bug
The lower and upper limits are defined by the TT in the xx-XX.localise.php
which gives for Afrikaans and en-GB
COM_SEARCH_ERROR_SEARCH_MESSAGE="Search term must be a minimum of %1$s characters and a maximum of %2$s characters."
Therefore the error is created by this code
The Afrikkans string is not following the en-GB value
COM_SEARCH_ERROR_SEARCH_MESSAGE="Soektog term moet 'n minimum van 3 karakters en 'n maksimum van 20 karakters hê."
But he tried to reflect what should be (forget the
hê
for now);we should have indeed
`Search term must be a minimum of 3 characters and a maximum of 20 characters.
I guess the error is here:
https://github.com/joomla/joomla-cms/blob/staging/libraries/joomla/language/language.php#L590-L598