Elxis CMS Forum

Support => Elxis 4.x/5.x DEV => Topic started by: seadhna on September 28, 2020, 15:32:09

Title: Temporarily hide a language?
Post by: seadhna on September 28, 2020, 15:32:09
Hi there, is it possible to temporarily remove a language in the Site Settings in order to unpublish an entire lang version of the site content, but then add it back and have everything restored? i.e. I am wondering - if I remove a language from the 'site languages' under 'locale' in the site settings, does all the content in that language just get hidden or does all that content get deleted?
Title: Re: Temporarily hide a language?
Post by: webgift on October 03, 2020, 16:13:32
Please share the condition where you could hide/show the particular language.
Don't think that you could actually add/remove a language.
Title: Re: Temporarily hide a language?
Post by: seadhna on October 05, 2020, 16:21:22
Hi webgift, I think maybe you don't understand the question? It's very easy to add or remove a language under 'Site Settings' as I describe.
Title: Re: Temporarily hide a language?
Post by: webgift on October 05, 2020, 17:10:58
Hello seadhna,
Hi there, is it possible to temporarily remove a language in the Site Settings ...

Still can not understand the condition you need something like that. The content
won't be deleted when uncheck the language from there.
Title: Re: Temporarily hide a language?
Post by: datahell on October 05, 2020, 19:05:12
If you want to delete the translations to a specific language you can do it from the translations manager, or if the content is large enough connect to your database via the PHP My Admin and execute a query like that:

DELETE from `elx_translations` WHERE `language` = 'XX';

Where "XX" is the language you want to delete. Example: en, es, de, it, ru, etc...

Be careful: This action is not reversible!
Title: Re: Temporarily hide a language?
Post by: seadhna on October 06, 2020, 10:08:54
If the content won't be deleted that is good! I am hoping that's the case. But I am afraid to remove the language from the 'Site Settings' without confirming with you guys. The situation is this: an English-language version of the site is launching a certain time, but a German-language version of the site does not launch until a few days later. So I am wondering how to HIDE the German-language content without deleting it. I definitely do not want to delete anything. Just hide it.
Title: Re: Temporarily hide a language?
Post by: datahell on October 06, 2020, 20:49:30
Don't worry, the translations wont get delete if you unpublish a language from Elxis general settings. However if the language is not published you will not be able to add new translations to that language (German in your case). You will have to enable the language for a while, add your translation, and unpublish it again when finish.
Title: Re: Temporarily hide a language?
Post by: seadhna on October 09, 2020, 17:58:47
Great - thanks!
Title: Re: Temporarily hide a language?
Post by: seadhna on October 12, 2020, 11:47:34
Just to flag, I got a nasty shock when I implemented this: any pages I edited in English while the other language was unpublished - the other language got deleted. When I republished the language, all that content was gone. Only pages I hadn't edited while the language was unpublished remained unharmed. Just something to be aware of - anyone who reads this.