Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-02-12 11:49:36

Zubrik
Member
Registered: 2005-07-28
Posts: 65

URL's with accents - How can I get rid of them?

Hello,

I’m using the Spanish version of TXP. I have a list of links to the sections in my site, and TXP creates the following type of URL’s:

http://www.mysite.com/categoría/mycategory and there I can see all the articles in that category.

The problem is that I don’t want TXP to write “categoría” like that, with an accent on the i. I don’t want my url’s to have accents.

Is there a way to change this?

Thank you.

Offline

#2 2006-02-12 11:56:34

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,122
Website GitHub Mastodon Twitter

Re: URL's with accents - How can I get rid of them?

For categories you have the option to write the url word/phrase of the category and what appears in the front end
Go to organise.
Click on the category name

In the screen which appears you will see 2 text fields
Article category name ( the url)
Article category title (is what appears in the page)


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#3 2006-02-12 12:05:27

Zubrik
Member
Registered: 2005-07-28
Posts: 65

Re: URL's with accents - How can I get rid of them?

Ok, I understand what you’re saying, but the problem is not the accent in the title of the category, but in the “directory” that appears before it in the URL.

I have this on my page:

<code><txp:category_list wraptag=“ul” break=“li” /></code>, which outputs a list with the titles of my categories, and the links I get look like this:

http://www.mysite.com/categoría/mycategory

I want to get rid of the accent in the “categoría” directory.

Offline

#4 2006-02-12 12:57:34

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: URL's with accents - How can I get rid of them?

It’s in the language file: /textpattern/lang/xx-xx.txt (I don’t know what the name of the spanish file is).
Look for category => categoría and change it there. Then don’t forget to re-install the file (admin > preferences > manage languages > install from file (bottom of page).

Offline

#5 2006-02-12 16:32:16

Zubrik
Member
Registered: 2005-07-28
Posts: 65

Re: URL's with accents - How can I get rid of them?

I look inside the textpattern/lang directory of my site, and I only have two files: README and en-gb.txt. Where is the spanish language file supposed to be?

Offline

#6 2006-02-12 17:08:05

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,122
Website GitHub Mastodon Twitter

Re: URL's with accents - How can I get rid of them?

You can download the language files from <a href=“http://rpc.textpattern.com/lang/”>here</a> and upload them via ftp to your languages folder


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#7 2006-02-12 17:41:29

Zubrik
Member
Registered: 2005-07-28
Posts: 65

Re: URL's with accents - How can I get rid of them?

> doggiez wrote:

> It’s in the language file: /textpattern/lang/xx-xx.txt (I don’t know what the name of the spanish file is).
Look for category => categoría and change it there. Then don’t forget to re-install the file (admin > preferences > manage languages > install from file (bottom of page).

I have the txt file, however i can’t find the category => categoría text anywhere in the file.

Thanks for your help, anyway

Offline

#8 2006-02-12 18:46:35

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: URL's with accents - How can I get rid of them?

It’s in es-es.txt on line 453.

Offline

#9 2006-02-12 19:13:57

Zubrik
Member
Registered: 2005-07-28
Posts: 65

Re: URL's with accents - How can I get rid of them?

Thank you very much!

Offline

Board footer

Powered by FluxBB