Turkish translation problem

Post

Posted
Rating:
#5938 (In Topic #1415)
Avatar
Standard member
medetaslan is in the usergroup ‘Fan in training’

character problem

When I turn the "locale" string, I get errors like this.
I think it's because the letters "I" and "i" are different in Turkish.
What can I do for it.

lower case: ı upper case: I
lower case: i upper case: İ
Secreeenshot.PNG
Online now: No Back to the top

Post

Posted
Rating:
#5939
Avatar
Site staff
Adam is in the usergroup ‘Super-moderators’
Not an official answer but I believe the uppercase string references should remain in English and only the strings themselves need translation. At least in the translations I've done, I haven't touched the original uppercase references.
Online now: No Back to the top

Post

Posted
Rating:
#5940
Avatar
Site director
Chris Graham is in the usergroup ‘Administrators’

Adam said

Not an official answer but I believe the uppercase string references should remain in English and only the strings themselves need translation. At least in the translations I've done, I haven't touched the original uppercase references.

I doubt this is it. Likely somewhere in the code is making a bad assumption about Unicode, that breaks when his locale is set.
Will look into it.


Become a fan of Composr on Facebook or add me as a friend. Add me on on Twitter. Follow me on Minds (where I am most active). Support me on Patreon

Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about Composr whenever you see the opportunity or support me on Patreon.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying Composr on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Online now: No Back to the top

Post

Posted
Rating:
#5941
Avatar
Standard member
medetaslan is in the usergroup ‘Fan in training’
I only get errors when I change this.
old:    locale=en-GB.UTF-8,en_GB.UTF-8,en-US.UTF-8,en_US.UTF-8,en.UTF-8,en-GB,en_GB,en-US,en_US,en
new:  locale=tr-TR.UTF-8,tr_TR.UTF-8,tr.UTF-8,tr-TR,tr_TR,tr
I only get errors when I change this.
old: locale = en-GB.UTF-8, en_GB.UTF-8, en-US.UTF-8, en_US.UTF-8, and.UTF-8, en-GB, and_GB, and -US, and_US, one
new: locale = tr-TR.UTF-8, tr_TR.UTF-8, tr.UTF-8, tr-TR, tr_TR, tr
Online now: No Back to the top

Post

Posted
Rating:
#5943
Avatar
Site director
Chris Graham is in the usergroup ‘Administrators’
What operating system is PHP running under? (Linux, Mac, Windows?)


Become a fan of Composr on Facebook or add me as a friend. Add me on on Twitter. Follow me on Minds (where I am most active). Support me on Patreon

Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about Composr whenever you see the opportunity or support me on Patreon.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying Composr on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Online now: No Back to the top

Post

Posted
Rating:
#5944
Avatar
Site director
Chris Graham is in the usergroup ‘Administrators’
Actually I can now reproduce on Linux with a simple test script, after I manually installed the Turkish locale on my box…

Code

<?php

setlocale('LC_ALL', 'tr_TR.UTF-8');
echo strtoupper('i');

Outputs i, not I.

It's a fascinating problem, I had no idea it existed. I assumed that all the a-z latin characters had consistent casing and that Unicode would provide a new character if any language had any of its own behaviours.

I'll be thinking about how to solve this now.

Btw, it's been great seeing all the progress on Transifex for Turkish.


Become a fan of Composr on Facebook or add me as a friend. Add me on on Twitter. Follow me on Minds (where I am most active). Support me on Patreon

Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about Composr whenever you see the opportunity or support me on Patreon.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying Composr on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Online now: No Back to the top

Post

Posted
Rating:
#5945
Avatar
Site director
Chris Graham is in the usergroup ‘Administrators’
Ok, a workaround is now committed to git. It will be released with the next patch release.

A new language string 'locale_ctype_hack' is in Transifex and needs to be set to '1'.

The workaround disables the locale for upper/lower case stuff ('ctype'), and temporarily re-enables it only when doing upper/lower case for Unicode stuff. I think it should work well.

In the ideal world there'd be a cleaner solution, but my testing showed even PHP can't handle Turkish locale properly.

View




Become a fan of Composr on Facebook or add me as a friend. Add me on on Twitter. Follow me on Minds (where I am most active). Support me on Patreon

Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about Composr whenever you see the opportunity or support me on Patreon.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying Composr on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Online now: No Back to the top

Post

Posted
Rating:
#5946
Avatar
Standard member
medetaslan is in the usergroup ‘Fan in training’
I was using Linux. The hosting service is also a temporary problem. I will try. There is no problem when I try it on the wamp server.
I used "locale_subst" for dates.
There are also php errors in the "compsr news" section in the admin zone. I think the reason is the same.
Thank you.
Online now: No Back to the top

Post

Posted
Rating:
#5947
Avatar
Standard member
medetaslan is in the usergroup ‘Fan in training’

Chris Graham said

Ok, a workaround is now committed to git. It will be released with the next patch release.

A new language string 'locale_ctype_hack' is in Transifex and needs to be set to '1'.

The workaround disables the locale for upper/lower case stuff ('ctype'), and temporarily re-enables it only when doing upper/lower case for Unicode stuff. I think it should work well.

In the ideal world there'd be a cleaner solution, but my testing showed even PHP can't handle Turkish locale properly.

View



I couldn't find the string you said on Transifex.
In the meantime, the main page translation is not done.
Ekran Alıntısı5.PNG
Online now: No Back to the top

Post

Posted
Rating:
#5948
Avatar
Site director
Chris Graham is in the usergroup ‘Administrators’
Sorry, it didn't push properly. It is there now. Remember though it won't make any difference until the next patch release is out and upgraded to.

Screen Shot 2019-07-28 at 7.21.12 PM.png
Regarding the 'Home' issue – If things are already saved into the database (e.g. by the installer), they are outside the control of the language pack. In this case the 'Header-menu call string' config option's default setting (Admin Zone > Setup > Configuration > Theme options > General) has already been saved to contain 'Home'.


Become a fan of Composr on Facebook or add me as a friend. Add me on on Twitter. Follow me on Minds (where I am most active). Support me on Patreon

Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about Composr whenever you see the opportunity or support me on Patreon.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying Composr on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Online now: No Back to the top

Post

Posted
Rating:
#5951
Avatar
Standard member
medetaslan is in the usergroup ‘Fan in training’
hank you for your help. I continue to receive different errors. It would be best to continue in English until the problems are resolved.
Thank you very much again.
Online now: No Back to the top
1 guest and 0 members have just viewed this.

Statistics

Users online:

Vaiva, amit.nigam, gabriel58, MVLipwig

Forum statistics:
  • 1,079 topics, 5,217 posts, 6,064 members
  • Our newest member is fubs
Birthdays:
Back to Top