Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-09-01 20:34:01

pepebe
Member
From: Mannheim, Germany
Registered: 2005-02-07
Posts: 74

How to remove a language

Today I accidentally hit “Čeština” in the preferenes/language settings. I would like to get rid of those entries in my database and of cource a few lines of SQL could solve that problem, but is there any other way to do that? If I do that, are there any special things I have to take care off?

Furthermore I think it would be a good idea to have some kind of remove button that would assist a user in this task because I don’t think, that many txp users have the necessary skills to do that…

Thanks for your input.

pepebe

Last edited by pepebe (2008-09-01 20:34:45)

Offline

#2 2008-09-02 05:30:38

net-carver
Archived Plugin Author
Registered: 2006-03-08
Posts: 1,648

Re: How to remove a language

pepebe

Well, here’s some SQL that will do it for you…

DELETE FROM `txp_lang` WHERE `lang`='cs-cz';

… will have to wait and see if the Devs will add a delete function to the language prefs.


Steve

Offline

#3 2008-09-03 13:15:43

pepebe
Member
From: Mannheim, Germany
Registered: 2005-02-07
Posts: 74

Re: How to remove a language

Thanks net-carver,

this is exactly what I had on my mind. ;)

I think there should be “remove button” to get rid of a language pack as well as some kind of “are you sure?” dialogue BEFORE a language is installed.

pepebe

Offline

#4 2008-09-03 13:31:49

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,453
Website GitHub

Re: How to remove a language

pepebe wrote:

I think there should be “remove button” to get rid of a language pack

I tentatively second this, as I’ve been over-zealous with the mouse before and installed one I didn’t need. Mind you, if I’d been more careful… :-)

as well as some kind of “are you sure?” dialogue BEFORE a language is installed.

fwiw, I think the remove button with an ‘are you sure’ would be enough to cater for those times one needs it (especially if it’s as simple as net-carver’s solution). I would speculate that adding an ‘are you sure’ when installing a language is just an extra hassle for people that want to offer many languages by running down the list and clicking each one when they start the site. Plus, it’s more in line with other panels in TXP.

EDIT: shouldn’t be too hard as a plugin if the core answer is no!

Last edited by Bloke (2008-09-03 13:32:30)


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#5 2008-09-03 13:44:50

net-carver
Archived Plugin Author
Registered: 2006-03-08
Posts: 1,648

Re: How to remove a language

pepebe / Stef

Why not post a new topic in the feature request thread to raise visibility a little?


Steve

Offline

Board footer

Powered by FluxBB