Hi guys,
as I wrote you in past, we bought SEF Translate because is a useful extension. We are not used to waste time. We are used to be collaborative and invest time with developers (you) to have always a better extension that can cover always our customer needs
This is why in first of all, as I summarized on my previous post, we agreed that this should be the simplest and logical solution about this Language + Alphabetical ordering List "issue":
- Right now the SEF Translate module "Languages Dropdown List" is established from the english file: /components/com_seftranslate/languages.ini
- SEF Translate knows which language has been selected into the SEF Translate module Languages Dropdown List
- We'll have to transform the generic languages.ini into:
en-EN.languages.ini
fr-FR.languages.ini
it-IT.languages.ini
etc.
- And tell to SEF Translate:
when English is selected the en-EN.languages.ini file is loaded
when French is selected the fr-FR.languages.ini file is loaded
etc.
In this way all the languages ini files will have the languages list yet translated and the alphabetical order (per language) as we want...
PS: would be good to move all the .ini language files into the respective frontend .../Languages/en-EN/ ...etc. folders.
In this way your customers (we) could use also the default Joomla Languages Overrides feature if needed (or preferred)
Now, waiting those features in the next SEF Translate release, I updated this discussion after 4.6 release reporting the "issues" that are still there and suggesting fixes for them. It would be better to have more attention on your part to be able to fix these small bugs in the next versions and have always a better and better SEF Translate extension. This is why I ask you to read carefully all topic from its begin.
Anyway, I try to be more detailed:
1 - This is not a "custom change". SEF Translate module have an issue:
The "Select language" is not managed by the language file, but by the .../modules/mod_seftranslate/tmpl/default.php file.
"Select language" is "English".
If I have English set as Frontend default language there is no problem. But, if I have another language than English, let me say Spanish set as Frontend default language there is a problem: "Select language" (languages.ini) should be in Spanish, not in English, like "Selecciona Idioma" OR those words will appear in English on a Spanish site. So, following the suggestion you made me in previous post:
FIX - Editing the file is site/modules/mod_seftranslate/tmpl/default.php line 809 (was line 788 in previous 4.5 version)
Test site where I applied it changing "Select language" TO "Idioma" (Spanish) > Versus >
Test site with default "Select language"
Not only "Can you confirm ?" answer would be a good thing for all users here, but also a small note about this into SEF Translate documentation would be "a must"
2 - 3 - I reported these because something seem to be changed from 4.5 version to 4.6 version, and a confirmation by you is needed:
2 - .../components/com_seftranslate/languages.ini file: Hebrew = iw - On previos 4.5 version I had to change it TO he to have it running. Now it is running with iw, while I tested changing TO he and the Hebrew language disappear from the Module list.
About this
Google say that it should be with both iw and he. This is why "Please, Can you confirm ?"
3 - .../components/com_seftranslate/languages.ini file: Norwegian = “no” - On previos 4.5 version I had to change it TO no to have it running. It is running, I tested changing it TO no (without " " ) and the Norwegian language disappear from Module list.
About this you wrote: "This is Google API - it work only as it is" But
Google say that it should be only no. This is why "Please, Can you confirm ?"
May be a Google API update is needed ?!?
4 - Bug - Into the languages.ini you wrote: CHINESE_SIMPLIFIED, like all the languages with double words separated by _
In this why Google cannot translate CHINESE_SIMPLIFIED because for Google is like one word !
FIX - Is really too simple, change it with CHINESE SIMPLIFIED by default. I
tested it and it is running like a charm.
Here you can see running the
default CHINESE_SIMPLIFIED languages.ini, that is not translated.
The "Please, Can you confirm ?" means also to confirm the Fix for next release.
5 - Bug - When I select one language from the list, also the languages list is translated into the selected language.
But the ENGLISH one listed is translated always into "Inglés" (the Spanish name of ENGLISH). When Chinese, Japanes, Korean, Persian, Thai, languages are selected the "English" is translated into the right translated word.
I suppose it is an issue related to the thing that the default .../components/com_seftranslate/languages.ini file is in English while my default frontend language is Spanish (while English is the default Administrator site language).
I believe the bug deserves to be investigated by you.
You can test and see it in action here on the
default languages.ini Test site.
6 - Alphabetical ordering List
When I spoke about it I meant that all the times we select the language the module language list should be alphabetical reordered using the translated words.
Right now the default alphabetical list is established by the .../components/com_seftranslate/languages.ini file and just for the default language.
Now, you wrote: "we added ordering to languages in module. As you see this not always work", the question is that:
6A - the Alphabetical ordering is useful only if applied each time I selected each language and on all translated words. This is not happening, take a look on my test sites.
6B - This issue will be manually solved when the waited SEF Translate update that will transform languages.ini TO en-EN.languages.ini, fr-FR.languages.ini, etc. will be released, because we'll can edit manually reorder each language file.
Are you agree ?
7 - Bug - Upper case accented or special like Ñ letters are not recognized
As you know, a lot of languages words in Spanish have the accent, like GERMAN > ALEMÁN, or ARABIC > ÁRABE.
-
inside the SEF Translate Module selector as you can see all special Ñ or Á letters are still upper case because are not recognized. In case of ÁRABE, it cuse that the word is moved at the end of the list (for the reordering alphabetical rule you added, in the languages.ini file it is in the right position at the begin of the list)
- but also inside the SEF Translate Component (I attach an image for you)
Please, How to have the The recognition of special letters that will also resolve the alphabetic reordering of the list ?
This is the most urgent bug fix !
As far as I understand is not a server issue, Am I right ?
![](https://ordasoft.com/images/fbfiles/images/2019_06_18_accent_upper_case.jpg)