?
avatar hakanara
hakanara
9 Feb 2020

Steps to reproduce the issue

Either in a fresh Joomla installation or an old Joomla with a latest version, the same thing happens. When you write İ in the title area (in articles or in a component), the alias is produced as "i-" not "i". So for example if you write "İş" it becomes "i-s" as alias, not "is". İ is a Turkish letter (capital for i, not like in English). By the way, all other Turkish strange letters work fine, capital and small: ÜĞŞÇÖüğışçö

I have added İ to tr-TR.localise.php file both in site and admin language folders but the result did not change.

The latest Turkish language file is a bit old, 3.9.4.1, a more recent version was not published. But what does it have to do with it indeed?

Expected result

When you write İ, the alias field is expected to produce only i, without dash.
"i"

Actual result

"i-"

System information (as much as possible)

Tested with 3.9.14 Joomla which is 12 years old
Tested with a fresh 3.9.15 Joomla.
(Turkish language file latest: 3.9.4.1) Not the same version with Joomla, because this is the latest file.

Additional comments

I love everybody who spend their time for Joomla :-)

avatar hakanara hakanara - open - 9 Feb 2020
avatar joomla-cms-bot joomla-cms-bot - change - 9 Feb 2020
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 9 Feb 2020
avatar hakanara hakanara - change - 9 Feb 2020
The description was changed
avatar hakanara hakanara - edited - 9 Feb 2020
avatar hakanara hakanara - change - 9 Feb 2020
The description was changed
avatar hakanara hakanara - edited - 9 Feb 2020
avatar infograf768
infograf768 - comment - 9 Feb 2020

Can you post here a .zip of your localise.php containing the transliterate method?

avatar hakanara
hakanara - comment - 9 Feb 2020

tr-TR.localise.zip
Thank you very much @infograf768
On Joomla forums posts, who are even 10 years old, you were still answering these Turkish character problems :-) Nice to see you here again.

avatar Bakual Bakual - close - 10 Feb 2020
avatar Bakual
Bakual - comment - 10 Feb 2020

Closing this issue as it's a language pack issue, not a core issue.

avatar Bakual Bakual - change - 10 Feb 2020
Status New Closed
Closed_Date 0000-00-00 00:00:00 2020-02-10 07:15:06
Closed_By Bakual
avatar hakanara
hakanara - comment - 10 Feb 2020

As I have mentioned on the issue (The first post) I already tried to add "İ" into that line, but it didn't work. I tried it again since you said this is the solution, it didn't work again. Do you have any other ideas why it might occur? I will create another fresh Joomla site in Turkish and see how it behaves. It wasn't like this before.

avatar infograf768
infograf768 - comment - 10 Feb 2020

It will never work. İ is a specific utf8 character which is not considered as having a lowercase equivalent.

avatar infograf768
infograf768 - comment - 10 Feb 2020

@Bakual
In fact it is a bit more complex and one could say it is not only a lang pack issue because of the utf8 nature of this specfic character.
I think that if we could first change that specific character to a latin upper I, we could solve the issue.
This may require a new method.

avatar hakanara
hakanara - comment - 10 Feb 2020

@infograf768 Thank you very much for your time and efforts. Actually I have been using Joomla for 12 years and I never remember seeing something like this before, even though I have some articles which have a title starting with "İ".

İ is an upper case letter of i in Turkish. It is not lowercase.

avatar hakanara
hakanara - comment - 10 Feb 2020

And if it is not considered to have a lowercase, then how does it have the alias i with a dash? There should be some code where it recognizes how it turns to lowercase. I am not a PHP expert, just thinking and asking.

avatar Bakual Bakual - change - 10 Feb 2020
Status Closed New
Closed_Date 2020-02-10 07:15:06
Closed_By Bakual
avatar Bakual Bakual - reopen - 10 Feb 2020
avatar infograf768
infograf768 - comment - 10 Feb 2020

I suggest you test something and you may see how weird is this utf8 character.
in global configuration, set unicode slugs to Yes.
Then create an article which title will contain your special character.
Save and look at the alias.
instead of keeping the same character, it is display as an i to which is added another dot on top.
(on ipad now. can’t show you a scren shot)

avatar hakanara
hakanara - comment - 12 Feb 2020

I saw what you mean. I did all the changes, It created an alias with a character that looks like a lowercase i but it is not the exact i.

I would like to repeat here, I believe something had changed either with server, PHP or Joomla. Because I created many web sites with Joomla within the last 12 years. Contact means "İletişim" in Turkish. So at every web site, I created at least a contact menu item starting with capital İ. But I never saw the alias as "i-letisim", I remember them as "iletisim". Therefore I opened this issue.

avatar richard67
richard67 - comment - 13 Feb 2020

Can't we just force the whole world to use pure ASCII? ;-) (sorry, bad joke)

avatar infograf768
infograf768 - comment - 19 Feb 2020

@hakanara
We have now implemented transliterator_transliterate in Joomla 4.0 and it solves your issue.
#27974

Screen Shot 2020-02-19 at 08 41 17

I you like, you can modify your 3.9.15 joomla with the code proposed here for J3 and which was refused at the time, as it depends on the php version you use as well as the presence of Intl

#16880

avatar hakanara
hakanara - comment - 19 Feb 2020

@infograf768 you are amazing. Thank you very much for your efforts. I love you :-)

avatar alikon
alikon - comment - 19 Feb 2020

@hakanara please close the issue if problem solved
thanks

avatar hakanara hakanara - change - 19 Feb 2020
Status New Closed
Closed_Date 0000-00-00 00:00:00 2020-02-19 17:50:43
Closed_By hakanara
avatar hakanara hakanara - close - 19 Feb 2020
avatar infograf768
infograf768 - comment - 19 Feb 2020

@hakanara
Don’t forget to redo the j3 patch after future updates of j3.

Add a Comment

Login with GitHub to post a comment