Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
[issue] change "categoría" to "categoria" in next TxP release?
Hi,
a common problem in spanish websites URLs comes when the string “categoría” (with tilde) is used in the generated URLs.
They look like: http://www.dominio.com/categor%c3%ada :(
Check this threads:
http://forum.textpattern.com/viewtopic.php?id=16661
or
http://forum.textpattern.com/viewtopic.php?id=14619
The actual workaround is to change that string at the database.
Could this be changed in a future version of TxP?
Thanks.
Offline
#2 2006-06-01 19:22:46
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: [issue] change "categoría" to "categoria" in next TxP release?
Moved this to the Bug Reports forum…
I believe the problem is that particular string is used for things other than urls. So it either needs to be “cleaned” (use dumbDown()
?) or we need a different string defined for url use.
Offline
Re: [issue] change "categoría" to "categoria" in next TxP release?
The problem is localized strings are used for urls.
The russian txp community even decided that “category” and “author” shouldn’t be localized for that only reason.
Imagine %CA%E0%F2%E5%E3%EE%F0%E8%FF
in the url for russian “Категория” (Category)
Plugin Composer — admin plugin to write your own plugins
Offline
#4 2006-06-04 00:18:22
- zem
- Developer Emeritus
- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Re: [issue] change "categoría" to "categoria" in next TxP release?
Ok, so what’s the fix?
Use dumbDown(gTxt(‘category’))? Or a separate string just for the URL?
If we change it, existing URLs will break. How do we deal with that?
Alex
Offline
Re: [issue] change "categoría" to "categoria" in next TxP release?
The problem is once you use “category” or “author” links on a website you cannot change localization there, and if you do (for whatever reason; btw “permalink” tooltips are taken from locale too), the links will get changed. So they just should not be taken from localization sheet. They’d rather be fixed, or customized in the prefs to allow today’s siteholders keep whatever they used up to date for their urls.
Last edited by Inspired (2006-06-04 06:19:25)
Plugin Composer — admin plugin to write your own plugins
Offline
#6 2006-06-04 06:48:42
- zem
- Developer Emeritus
- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Re: [issue] change "categoría" to "categoria" in next TxP release?
Seems to me they should be localised, but not in the same way the word “category” is. In other words we need separate language strings for “url_category”, “url_section” etc, which should be localized but use only URL-safe characters.
Alex
Offline
Re: [issue] change "categoría" to "categoria" in next TxP release?
Yeah perhaps that’s the best way.
Though dealing with a language that’s not latin based most feel like using english names rather than transliterated localized names, that at times look odd. But remembering all the latin based languages separate language strings for urls should be the best approach for everyone. Thanks.
It would be even better if siteholders were given a way to override those values. Perhaps the localized value could be recorded at the time of installation and then not change when i change localization — means now i’m bound to localization and cannot change it, because if i do, links on my site will change which i do not want to happen at all.
Plugin Composer — admin plugin to write your own plugins
Offline
#8 2006-08-11 02:17:55
- DRTProxy
- New Member
- Registered: 2006-08-11
- Posts: 3
Re: [issue] change "categoría" to "categoria" in next TxP release?
Wow who woulda thought that could be a problem (language barrier) browsers should fix this ;-)
Offline