Hi, I've found Serendipity really great blog SW, but...
I am from Czech republic and as you know we have many of "umlauts"
characters in our language. So when I use them in my entry title, these
characters are omitted in URLs.
For example: Entry title "Čeština" (characters C with wedge and s with
wedge) is converted to /archives/7-etina. I'd prefer /archives/cestina or
/archives/%C4%8Ce%C5%A1tina (which is UTF-8 encoded path).
So I tried to use your Custom Permalinks plug-in and it seems that this is
really thing I was looking for. I can use the the URL I want, but only in
the HTML output of the blog. In RSS feeds as well as XML-RPC pings the "old style" URL is used.
So my question is: Is there any hint or hack I can use the "cool URLs" produced by that plug-in in all output formats?
Many thanks
Sniff
Problem with "umlauts" characters in entry title-&
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: Problem with "umlauts" characters in entry tit
Hi!
I see that you also posted here, so I'll reply here instead than by private mail.
Basically, what you seem to should be using is the Serendipity i18n permalink translation feature.
Inside your main language file (lang/serendipity_lang_cz.inc.php for example) you can define an array like this:
With that you can define each character and to what it should be translated. Does that help you already further?
Best regards,
Garvin
I see that you also posted here, so I'll reply here instead than by private mail.
Basically, what you seem to should be using is the Serendipity i18n permalink translation feature.
Inside your main language file (lang/serendipity_lang_cz.inc.php for example) you can define an array like this:
Code: Select all
$i18n_filename_from = array(
'ä',
'ö'
);
$i18n_filename_to = array(
'a',
'o'
);
Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Re: Problem with "umlauts" characters in entry tit
Hi Garvin!
Another question is, if it is possible (on principe) to improve the Custom Permalinks plugin to change these URL also in all other formats (RSS, XML-RPC..)?
Thanks
Sniff
Yes, I think so. Thanks a lot. I will change this file for me and will send back also to Serendipity team.garvinhicking wrote: With that you can define each character and to what it should be translated. Does that help you already further?
Another question is, if it is possible (on principe) to improve the Custom Permalinks plugin to change these URL also in all other formats (RSS, XML-RPC..)?
Thanks
Sniff
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: Problem with "umlauts" characters in entry tit
Hi!
That would be great, if you could contribute the needed array.
Best regards,
Garvin
That would be great, if you could contribute the needed array.
Sadly this isn't currently possible, because the function that creates permalinks (serendipity_archiveURL) cannot use input from a plugin. It could, but then that would really take up a lot of performance, because the plugin API would be called for each plugin transformation...Another question is, if it is possible (on principe) to improve the Custom Permalinks plugin to change these URL also in all other formats (RSS, XML-RPC..)?
Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/