Re: [Tiki-devel] Translation for tiki site close page (tiki-error_simple.php)

Jonny Bradley via TikiWiki-devel <[email protected]>
Newsgroups gmane.comp.cms.tiki.devel
Message-ID <[email protected]>
Hi B

The idea is that the site closed message should show without needing the database connection, so looking up the user's theme and language would mean that it's not so "closed".

Could be resigned and improved vastly, for instance, no reason to have the closed message on the url... and i agree having the _local closed sign in the base_files isn't right, but we didn't have the /storage dir then.

Also we should think about making it (like so many things ;) more like WordPress's "site coming soon" option one day.

But not today! :D

jonny




> On 2 Jul 2021, at 00:57, Bsfez Tiki via TikiWiki-devel <[email protected]> wrote:
> 
> Hello,
> 
> Finding out that a few strings are not translated at tiki-error_simple.php used when the Tiki site is closed we work it out adding:
> require_once('tiki-setup.php');
> 
> And a few tra(' ')
> 
> However part of the page is in an external HTML file: themes/base_files/other/site_closed.html and it doesn't allow to translate the single string that is there "Retry".
> 
> if (file_exists('themes/base_files/other/site_closed_local.html')) {
>    $html = file_get_contents('themes/base_files/other/site_closed_local.html');
> } else {
>    $html = file_get_contents('themes/base_files/other/site_closed.html');
> }
> 
> While I understand why it is good to have a "_local" option (I understand to customise it) I’m wondering why it was done that way.
> 
> First isn't wiser to have it in the themes folder instead of the base_files folder ?
> 
> Second I don’t understand why the default display (themes/base_files/other/site_closed.html) is in an external HTML instead of being added in the else so we can use the Tiki translation ?
> 
> Bernard
> _______________________________________________
> TikiWiki-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel



_______________________________________________
TikiWiki-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.