Fix missing translation of page "disabled" and "offline".
This commit is contained in:
parent
61c77467ec
commit
33139dd57a
@ -33,5 +33,5 @@ NETWORK:
|
|||||||
# If the browser is unable to retrieve the original content, the fallback resource will be used.
|
# If the browser is unable to retrieve the original content, the fallback resource will be used.
|
||||||
# In the example above, we display a static image in case the dynamic one is unavailable.
|
# In the example above, we display a static image in case the dynamic one is unavailable.
|
||||||
FALLBACK:
|
FALLBACK:
|
||||||
#/ public/offline.php
|
#/ public/notice.php
|
||||||
#theme/amarok/img/* theme/eldy/img/
|
#theme/eldy/img/* theme/md/img/*
|
||||||
|
|||||||
@ -1,29 +0,0 @@
|
|||||||
<?php
|
|
||||||
/* Copyright (C) 2011 Laurent Destailleur <eldy@users.sourceforge.net>
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License
|
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
* or see http://www.gnu.org/
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* \file htdocs/disabled.php
|
|
||||||
* \brief Page to use to replace index.php to disable all software
|
|
||||||
*/
|
|
||||||
?>
|
|
||||||
<html>
|
|
||||||
<body>
|
|
||||||
This feature has been disabled on this test server.<br>
|
|
||||||
Cette fonctionnalité a été désactivée sur ce serveur de test.<br>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
50
htdocs/public/notice.php
Normal file
50
htdocs/public/notice.php
Normal file
@ -0,0 +1,50 @@
|
|||||||
|
<?php
|
||||||
|
/* Copyright (C) 2016 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation; either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* \file htdocs/public/notice.php
|
||||||
|
* \brief Dolibarr page to show a notice.
|
||||||
|
* Default notice is a message to say network connection is off.
|
||||||
|
* You can also call this page with URL:
|
||||||
|
* /public/notice.php?lang=xx_XX&transkey=translation_key (key must be inside file main.lang, error.lang or other.lang)
|
||||||
|
* /public/notice.php?transphrase=url_encoded_sentence_to_show
|
||||||
|
*/
|
||||||
|
|
||||||
|
define('NOCSRFCHECK',1);
|
||||||
|
define('NOLOGIN',1);
|
||||||
|
|
||||||
|
require '../main.inc.php';
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* View
|
||||||
|
*/
|
||||||
|
|
||||||
|
if (! GETPOST('transkey') && ! GETPOST('transphrase'))
|
||||||
|
{
|
||||||
|
print 'Sorry, it seems your internet connexion is off.<br>';
|
||||||
|
print 'You need to be connected to network to use this software.<br>';
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$langs->load("error");
|
||||||
|
$langs->load("other");
|
||||||
|
|
||||||
|
if (GETPOST('transphrase')) print GETPOST('transphrase');
|
||||||
|
if (GETPOST('transkey')) print $langs->trans(GETPOST('transkey'));
|
||||||
|
}
|
||||||
|
|
||||||
@ -1,37 +0,0 @@
|
|||||||
<?php
|
|
||||||
/* Copyright (C) 2001-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
|
||||||
* Copyright (C) 2004-2012 Laurent Destailleur <eldy@users.sourceforge.net>
|
|
||||||
* Copyright (C) 2005-2012 Regis Houssin <regis@dolibarr.fr>
|
|
||||||
* Copyright (C) 2011-2012 Juanjo Menent <jmenent@2byte.es>
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License
|
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* \file htdocs/public/offline.php
|
|
||||||
* \brief Dolibarr offline page
|
|
||||||
*/
|
|
||||||
|
|
||||||
define('NOCSRFCHECK',1);
|
|
||||||
define('NOLOGIN',1);
|
|
||||||
|
|
||||||
require '../main.inc.php';
|
|
||||||
|
|
||||||
/**
|
|
||||||
* View
|
|
||||||
*/
|
|
||||||
|
|
||||||
print 'Sorry, it seems your internet connexion is off.<br>';
|
|
||||||
print 'You need to be connected to network to use this software.<br>';
|
|
||||||
|
|
||||||
Loading…
Reference in New Issue
Block a user