Non English characters stripped from Alias field

General questions regarding the use of languages in Joomla! 1.5.

Moderator: General Support Moderators

Locked
User avatar
atomik
Joomla! Apprentice
Joomla! Apprentice
Posts: 49
Joined: Fri Oct 24, 2008 7:02 pm

Non English characters stripped from Alias field

Post by atomik » Sun Jul 12, 2009 3:18 pm

Hi,

I've got Polish site and I want Polish special characters to be translated propperly from Title to Alias field in articles.

Standard behaviour of Joomla is to strip out all non-english characters.

Is there any conversion table present where I could add Title -> Alias charaters pairs to help with propper translation?

User avatar
Stroganoff
Joomla! Guru
Joomla! Guru
Posts: 677
Joined: Fri Jun 26, 2009 11:05 pm

Re: Non English characters stripped from Alias field

Post by Stroganoff » Sun Jul 12, 2009 3:31 pm

Non ASCII character in URLs just suck. Face it please. Keep technology clean and simple...

/edit: My first reply was rubbish. Looking for a proper answer...

User avatar
ot2sen
Joomla! Master
Joomla! Master
Posts: 10421
Joined: Thu Aug 18, 2005 9:58 am
Location: Hillerød - Denmark
Contact:

Re: Non English characters stripped from Alias field

Post by ot2sen » Sun Jul 12, 2009 4:23 pm

Hi atomik,

Currently joomla do transliterate latin1 nicely, but for non-latin and for latin2 you would see characters being stripped, or alias automatically with date in case it was empty.

Would suggest you to have a look at the plugin yvTransliterate and the languagepacks with transliteration tables that can be found at the download location.
Find it here:
http://extensions.joomla.org/extensions/5452/details
Ole Bang Ottosen
Dansk frivillig Joomla! support websted - joomla.dk
OpenTranslators Core Team opentranslators.org

User avatar
atomik
Joomla! Apprentice
Joomla! Apprentice
Posts: 49
Joined: Fri Oct 24, 2008 7:02 pm

Re: Non English characters stripped from Alias field

Post by atomik » Sun Jul 12, 2009 4:29 pm

Thank's Stroganoff for your effort.

My intention is not to keep non-english characters in url's but to translate them into their closest english counterpart because now they are stripped out and it makes Alias unreadable.

User avatar
atomik
Joomla! Apprentice
Joomla! Apprentice
Posts: 49
Joined: Fri Oct 24, 2008 7:02 pm

Re: Non English characters stripped from Alias field

Post by atomik » Sun Jul 12, 2009 4:37 pm

Thank you, but I do not want to use plugin for such a simple task.
ot2sen wrote:transliteration tables
Can I create such table myself? I cannot find any in download section nor I know where to upload it?

User avatar
ot2sen
Joomla! Master
Joomla! Master
Posts: 10421
Joined: Thu Aug 18, 2005 9:58 am
Location: Hillerød - Denmark
Contact:

Re: Non English characters stripped from Alias field

Post by ot2sen » Sun Jul 12, 2009 5:53 pm

Using a plugin is simply an easy way of getting the missing core support of translaliteration for your language. Download, install and activate.

For this socalled simple task that would be the solution for now.
atomik wrote:Can I create such table myself? I cannot find any in download section nor I know where to upload it?
For the extension yvTransliterate you can create the precise set of replacements that you prefer. The download section I referred to was the download of the extensions where you can find an example english language pack, and other Eastern European language packs that shows how you can create a Polish language pack.

Sorry, can´t help you better than this for now. But I can asure you that its a topic that we do certainly have focus at, for to strengthen the internationalization effort in the longer run.
Ole Bang Ottosen
Dansk frivillig Joomla! support websted - joomla.dk
OpenTranslators Core Team opentranslators.org

User avatar
atomik
Joomla! Apprentice
Joomla! Apprentice
Posts: 49
Joined: Fri Oct 24, 2008 7:02 pm

Re: Non English characters stripped from Alias field

Post by atomik » Sun Jul 12, 2009 10:40 pm

Thank you ot2sen for explanation.

My concern against foreign plugins is that you start to use plugin, you enjoy it and then it disappeares the next time you need to upgrade your site for next release of Joomla. It happened to me with Simple META Management plugin which blew up after my site had grown. I have to rewrite all my site content now because it is no longer supported and withdrawn form Joomla extensions page. So I prefer to use as much Joomla core native functionality as I can.

Anyway, I am surprised, that there is nothing like that in Joomla core because it is not so hard to do employing separate file(s) with translation tables for each localisation. It seams that character translation is hardcoded or simple filtering is used. It would be great to see more flexible solution in future releases of Joomla.

User avatar
atomik
Joomla! Apprentice
Joomla! Apprentice
Posts: 49
Joined: Fri Oct 24, 2008 7:02 pm

Re: Non English characters stripped from Alias field

Post by atomik » Thu Jul 23, 2009 9:12 pm

OK ot2sen. I tried to use yvTransliterate for that purpose and I am amazed! Long time I've never seen such a nonsense :(

Sorro o2sen, it is not your fault, you did the best and tried to help me, I appreciate it.

yvTransliterate is kind of using a rocket to get from London to Glasgow. It employs XML syntax simply to assign pairs of letters to each other :eek: There are more effective and more simply ways to do this like ie ARTIO JoomSEF uses and many other applicatons of that kind use.

Morover, yvTransliterate fails when you want to translate ie from Polish to English but you have English language selected (as it is my case).

Configuring it is too complicated and not explained by author so you have to define in bilion places, that you simply want to translate character1 to charcter2 :eek:

Anyway.. I gave up after several tries and found it easier to change a couple of letters manualy then struggling how to configure yvTransliterate. It is definitely not my choice for that job :D

eddaathygli
Joomla! Apprentice
Joomla! Apprentice
Posts: 6
Joined: Tue Sep 15, 2009 2:38 pm

Re: Non English characters stripped from Alias field

Post by eddaathygli » Wed Dec 23, 2009 8:45 am

This is exactly what I am trying to do regarding the Icelandic language. Could anyone point me to the right file to change this in! I am tired of having ð become e but not d.

atomik wrote:Thank's Stroganoff for your effort.

My intention is not to keep non-english characters in url's but to translate them into their closest english counterpart because now they are stripped out and it makes Alias unreadable.

hosseindany
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Thu Dec 27, 2012 9:58 pm
Contact:

Re: Non English characters stripped from Alias field

Post by hosseindany » Sat Jun 01, 2013 12:40 pm

in Joomla 1.7+ You can enable UTF characters in URL by going to:
Global setting > site setting
then activate Unicode alias .


Locked

Return to “Language - Joomla! 1.5”