Privet, Misha.
Thank you for contacting us.
I assign developer to investigate this issue further.
He should check this ASAP.
Privet Misha.
Please, do a safe copy of:
ROOT/components/com_community/models/search.php
ROOT/components/com_community/views/search/view.html.php
ROOT/language/en-GB/en-GB.com_community.ini
Then upload content of the package to Joomla! root folder and replace original files.
Finally do language overrides:
documentation.jomsocial.com/wiki/Changin...gle_Sentence_or_Word
Good afternoon. Did everything as told. If you do not translate COM_COMMUNITY_JUMP_..._VALUE="...", it works as before, only with English letters. If you translate for example COM_COMMUNITY_JUMP_ABC_VALUE="абв", COM_COMMUNITY_JUMP_ABC="abc" then there is no sorting by "abc", it shows all users.
Hi, Misha.
Thank you for reporting this.
I reported it back to our developer.
Hi, Misha.
Please, make safe copy of those files:
ROOT/components/com_community/models/search.php
ROOT/components/com_community/views/search/view.html.php
Then replace original files with patched from package.
Good evening. Thank you. But with your option works search on the English alphabet, or Russian. In two alphabets, the search does not work. I do not know programming, so I compared the two files old and new, found the changes, and tried to make my own. The result is not a nice code, but it works.
And now you can make a search in other languages (Arabic and Chinese). But I do not know how to hide the search in other languages when the site is in English.
ROOT/components/com_community/models/search.php
$filterCount = CStringHelper::strlen($filter);
$allowedFilters = array(JText::_('COM_COMMUNITY_JUMP_ABC_VALUE'), JText::_('COM_COMMUNITY_JUMP_DEF_VALUE'), JText::_('COM_COMMUNITY_JUMP_GHI_VALUE'), JText::_('COM_COMMUNITY_JUMP_JKL_VALUE'), JText::_('COM_COMMUNITY_JUMP_MNO_VALUE'), JText::_('COM_COMMUNITY_JUMP_PQR_VALUE'), JText::_('COM_COMMUNITY_JUMP_STU_VALUE'), JText::_('COM_COMMUNITY_JUMP_VWX_VALUE'), JText::_('COM_COMMUNITY_JUMP_YZ_VALUE'),
JText::_('COM_COMMUNITY_JUMP_1_VALUE'), JText::_('COM_COMMUNITY_JUMP_2_VALUE'), JText::_('COM_COMMUNITY_JUMP_3_VALUE'), JText::_('COM_COMMUNITY_JUMP_4_VALUE'), JText::_('COM_COMMUNITY_JUMP_5_VALUE'), JText::_('COM_COMMUNITY_JUMP_6_VALUE'), JText::_('COM_COMMUNITY_JUMP_7_VALUE'), JText::_('COM_COMMUNITY_JUMP_8_VALUE'), JText::_('COM_COMMUNITY_JUMP_9_VALUE'));
ROOT/components/com_community/views/search/view.html.php
$filterItems = array();
$config = CFactory::getConfig();
if ($config->get('alphabetfiltering')) {
$filterItems = array(
'all' => JText::_('COM_COMMUNITY_JUMP_ALL'),
JText::_('COM_COMMUNITY_JUMP_ABC_VALUE') => JText::_('COM_COMMUNITY_JUMP_ABC'),
JText::_('COM_COMMUNITY_JUMP_DEF_VALUE') => JText::_('COM_COMMUNITY_JUMP_DEF'),
JText::_('COM_COMMUNITY_JUMP_GHI_VALUE') => JText::_('COM_COMMUNITY_JUMP_GHI'),
JText::_('COM_COMMUNITY_JUMP_JKL_VALUE') => JText::_('COM_COMMUNITY_JUMP_JKL'),
JText::_('COM_COMMUNITY_JUMP_MNO_VALUE') => JText::_('COM_COMMUNITY_JUMP_MNO'),
JText::_('COM_COMMUNITY_JUMP_PQR_VALUE') => JText::_('COM_COMMUNITY_JUMP_PQR'),
JText::_('COM_COMMUNITY_JUMP_STU_VALUE') => JText::_('COM_COMMUNITY_JUMP_STU'),
JText::_('COM_COMMUNITY_JUMP_VWX_VALUE') => JText::_('COM_COMMUNITY_JUMP_VWX'),
JText::_('COM_COMMUNITY_JUMP_YZ_VALUE') => JText::_('COM_COMMUNITY_JUMP_YZ'),
JText::_('COM_COMMUNITY_JUMP_1_VALUE') => JText::_('COM_COMMUNITY_JUMP_1'),
JText::_('COM_COMMUNITY_JUMP_2_VALUE') => JText::_('COM_COMMUNITY_JUMP_2'),
JText::_('COM_COMMUNITY_JUMP_3_VALUE') => JText::_('COM_COMMUNITY_JUMP_3'),
JText::_('COM_COMMUNITY_JUMP_4_VALUE') => JText::_('COM_COMMUNITY_JUMP_4'),
JText::_('COM_COMMUNITY_JUMP_5_VALUE') => JText::_('COM_COMMUNITY_JUMP_5'),
JText::_('COM_COMMUNITY_JUMP_6_VALUE') => JText::_('COM_COMMUNITY_JUMP_6'),
JText::_('COM_COMMUNITY_JUMP_7_VALUE') => JText::_('COM_COMMUNITY_JUMP_7'),
JText::_('COM_COMMUNITY_JUMP_8_VALUE') => JText::_('COM_COMMUNITY_JUMP_8'),
JText::_('COM_COMMUNITY_JUMP_9_VALUE') => JText::_('COM_COMMUNITY_JUMP_9'),
'others' => JText::_('COM_COMMUNITY_JUMP_OTHERS')
);
}
ROOT/language/en-GB/en-GB.com_community.ini
COM_COMMUNITY_JUMP_1="1"
COM_COMMUNITY_JUMP_2="2"
COM_COMMUNITY_JUMP_3="3"
COM_COMMUNITY_JUMP_4="4"
COM_COMMUNITY_JUMP_5="5"
COM_COMMUNITY_JUMP_6="6"
COM_COMMUNITY_JUMP_7="7"
COM_COMMUNITY_JUMP_8="8"
COM_COMMUNITY_JUMP_9="9"
COM_COMMUNITY_JUMP_1_VALUE="1"
COM_COMMUNITY_JUMP_2_VALUE="2"
COM_COMMUNITY_JUMP_3_VALUE="3"
COM_COMMUNITY_JUMP_4_VALUE="4"
COM_COMMUNITY_JUMP_5_VALUE="5"
COM_COMMUNITY_JUMP_6_VALUE="6"
COM_COMMUNITY_JUMP_7_VALUE="7"
COM_COMMUNITY_JUMP_8_VALUE="8"
COM_COMMUNITY_JUMP_9_VALUE="9"
ROOT/language/overrides/ru-RU.override.ini
COM_COMMUNITY_JUMP_1="абв"
COM_COMMUNITY_JUMP_2="гдеё"
COM_COMMUNITY_JUMP_3="жзий"
COM_COMMUNITY_JUMP_4="клм"
COM_COMMUNITY_JUMP_5="ноп"
COM_COMMUNITY_JUMP_6="рст"
COM_COMMUNITY_JUMP_7="уфх"
COM_COMMUNITY_JUMP_8="цчшщы"
COM_COMMUNITY_JUMP_9="эюя"
COM_COMMUNITY_JUMP_1_VALUE="абв"
COM_COMMUNITY_JUMP_2_VALUE="гдеё"
COM_COMMUNITY_JUMP_3_VALUE="жзий"
COM_COMMUNITY_JUMP_4_VALUE="клм"
COM_COMMUNITY_JUMP_5_VALUE="ноп"
COM_COMMUNITY_JUMP_6_VALUE="рст"
COM_COMMUNITY_JUMP_7_VALUE="уфх"
COM_COMMUNITY_JUMP_8_VALUE="цчшщы"
COM_COMMUNITY_JUMP_9_VALUE="эюя"
Hi
By default Jomsocial supported by the English language. I am not able to understand your last message for hiding search in other languages?
Kindly let me know with an example if you have sort issue in Russia with two letters.
Good afternoon. I wanted when the Frontend Language "English" sorting by other alphabets was not displayed. But then I decided that even if Frontend Langauge "English" sorting should be done in two languages, as the names in Russian remain. Therefore, nothing needs to be changed, because now I like it. Thank you.
it seems you found a way to handle the sorting now :)
Actually jomsocial does not translate the strings, By default Jomsocial supported by the English language.
If you will have any issue in future, do not hesitate to open a new thread on forum.
Regards