Commit 7229efeb authored by Chenu Denis's avatar Chenu Denis

[fix] English string

[lang] Update fr
parent 268588f5
Pipeline #47180797 failed with stages
in 12 minutes and 40 seconds
......@@ -11,7 +11,7 @@ In the plugin settings : you find different settings, the most important are the
See [Install and activate a plugin for LimeSurvey](http://extensions.sondages.pro/install-and-activate-a-plugin-for-limesurvey.html)
You need [renderMessage](https://framagit.org/SondagePro-LimeSurvey-plugin/renderMessage) plugin.
You need [renderMessage](https://gitlab.com/SondagesPro/coreAndTools/renderMessage) plugin.
### Via GIT
- Go to your LimeSurvey Directory
......@@ -24,10 +24,18 @@ You need [renderMessage](https://framagit.org/SondagePro-LimeSurvey-plugin/rende
## Translation
The plugin use po file for translation, if you need a transation in your language : please, make a pull request.
The file must be in locale/yourlanguagecode/messages.po, a modele.po is on locale directory.
The plugin use po file for translation, if you need translation in your language : you can contibute at [translate.sondages.pro](https://translate.sondages.pro/projects/maintenancemode/).
When it's done : open a issue at [gitlab](https://gitlab.com/SondagesPro/coreAndTools/renderMessage/issues).
## Issues and support
Issue can be reported at [gitlab](https://gitlab.com/SondagesPro/coreAndTools/renderMessage/issues), pull request are welcome.
No support is done at gitlab, professionnal support : [support.sondages.pro](https://support.sondages.pro/).
## Home page & Copyright
- HomePage <http://extension.sondages.pro/>
- Copyright © 2017 Denis Chenu <http://sondages.pro>
......
No preview for this file type
msgid ""
msgstr ""
"Project-Id-Version: maintenaceMode\n"
"POT-Creation-Date: 2017-01-30 18:10+0100\n"
"PO-Revision-Date: 2017-01-30 18:16+0100\n"
"Last-Translator: \n"
"Language-Team: \n"
"Language: fr\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Poedit 1.8.11\n"
"X-Poedit-Basepath: ../..\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
"X-Poedit-KeywordsList: _translate\n"
"X-Poedit-SourceCharset: UTF-8\n"
"X-Poedit-SearchPath-0: .\n"
#: maintenanceMode.php:89
msgid "Date / time for maintenance mode."
msgstr "Date et heure du passage en mode maintenance"
#: maintenanceMode.php:92
msgid "Show warning message delay."
msgstr "Montrer le message d'alerte"
#: maintenanceMode.php:93
msgid "In minutes"
msgstr "En minutes"
#: maintenanceMode.php:96
msgid "Allow only super administrator to admin page."
msgstr "Ne permettre l'accès à l'administration que aux super-administrateurs"
#: maintenanceMode.php:97
msgid "Admin login page are always accessible."
msgstr "La page de connexion est toujours accessible"
#: maintenanceMode.php:100
msgid "Disable public part for administrator users."
msgstr "Désactiver l'accès aux pages publiques aux administrateurs"
#: maintenanceMode.php:101
msgid "Even for Superadministrator(s)."
msgstr "Même pour les super-administrateur(s)"
#: maintenanceMode.php:104
msgid "Maintenance message"
msgstr "Message de maintenance"
#: maintenanceMode.php:106 maintenanceMode.php:168 maintenanceMode.php:283
#: maintenanceMode.php:285
msgid "This website are on maintenance mode."
msgstr "Ce site internet est en maintenance."
#: maintenanceMode.php:110
msgid "Warning message."
msgstr "Message d'alerte"
#: maintenanceMode.php:112 maintenanceMode.php:295
msgid "Warning"
msgstr "Attention"
#: maintenanceMode.php:112 maintenanceMode.php:295
msgid ""
"This website close for maintenance at {DATEFORMATTED} (in {intval(MINUTES)} "
"minutes)."
msgstr ""
"Ce site internet sera en maintenance à {DATEFORMATTED} (dans "
"{intval(MINUTES)} minutes)."
#: maintenanceMode.php:114
msgid ""
"You can use Expression manager : {DATEFORMATTED} was replaced by date in "
"user language format, {DATE} by date in <code>Y-m-d H:i</code> format and "
"{MINUTES} by number of minutes before maintenance."
msgstr ""
"Vous pouvez utiliser le gestionnaire d'expressions. {DATEFORMATTED} sera "
"remplacé par la date formatée en fonction de la langue de l'utilisateur, "
"{DATE} par la date au format <code>Y-m-d H:i</code> et {MINUTES} par le "
"nombre de minutes avant la maintenance."
#: maintenanceMode.php:117
msgid "Disable token emailing during maintenance"
msgstr ""
"Désactiver l'envoie des courriels d'invitations durant la maintenance."
#: maintenanceMode.php:121
msgid "Url to redirect users"
msgstr "Adresse url de redirection des utilisateurs"
#: maintenanceMode.php:122
msgid ""
"Enter complete url only (with http:// or https://). {LANGUAGE} was replace "
"by user language (ISO format if exist in this installation)."
msgstr ""
"Entrez une adresse complète (avec http:// ou https://). {LANGUAGE} sera "
"remplacé par la langue de l'utilisateur (au format ISO si elle existe dans "
"l'installation)."
#: maintenanceMode.php:129
#, php-format
msgid "Actual date/time : %s. Empty disable maintenance mode."
msgstr ""
"Date et heure actuelle : %s. Vide pour désactiver le mode maintenance."
#: maintenanceMode.php:132
msgid "This disable your access"
msgstr "Ceci désactivera votre accès."
#: maintenanceMode.php:146
msgid "You must download renderMessage plugin"
msgstr "Vous devez télécharger le plugin renderMessage"
#: maintenanceMode.php:151
msgid "You must activate renderMessage plugin"
msgstr "Vous devez activer le plugin renderMessage"
#: maintenanceMode.php:205
msgid "Bad url, you must review the redirect url."
msgstr "L'adresse internet de redirection est invalide."
#~ msgid "This website are in instance mode."
#~ msgstr "This site internet est en maintenance."
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: maintenanceMode\n"
"POT-Creation-Date: 2017-01-30 18:09+0100\n"
"PO-Revision-Date: 2017-01-30 18:09+0100\n"
"POT-Creation-Date: 2019-02-12 14:23+0100\n"
"PO-Revision-Date: 2019-02-12 14:22+0100\n"
"Last-Translator: \n"
"Language-Team: \n"
"Language: en\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Poedit 1.8.11\n"
"X-Generator: Poedit 2.2.1\n"
"X-Poedit-Basepath: ..\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Poedit-SourceCharset: UTF-8\n"
"X-Poedit-KeywordsList: _translate\n"
"X-Poedit-KeywordsList: gT\n"
"X-Poedit-SearchPath-0: .\n"
#: maintenanceMode.php:89
#: maintenanceMode.php:97 maintenanceMode.php:146 maintenanceMode.php:230
#: maintenanceMode.php:356 maintenanceMode.php:358
msgid "This website is in maintenance mode."
msgstr ""
#: maintenanceMode.php:129
msgid "Date / time for maintenance mode."
msgstr ""
#: maintenanceMode.php:92
#: maintenanceMode.php:132
msgid "Show warning message delay."
msgstr ""
#: maintenanceMode.php:93
msgid "In minutes"
#: maintenanceMode.php:133
msgid "In minutes or with english string."
msgstr ""
#: maintenanceMode.php:96
#: maintenanceMode.php:136
msgid "Allow only super administrator to admin page."
msgstr ""
#: maintenanceMode.php:97
#: maintenanceMode.php:137
msgid "Admin login page are always accessible."
msgstr ""
#: maintenanceMode.php:100
#: maintenanceMode.php:140
msgid "Disable public part for administrator users."
msgstr ""
#: maintenanceMode.php:101
#: maintenanceMode.php:141
msgid "Even for Superadministrator(s)."
msgstr ""
#: maintenanceMode.php:104
#: maintenanceMode.php:144
msgid "Maintenance message"
msgstr ""
#: maintenanceMode.php:106 maintenanceMode.php:168 maintenanceMode.php:283
#: maintenanceMode.php:285
msgid "This website are on maintenance mode."
#: maintenanceMode.php:148
msgid "Default message was translated according to user language."
msgstr ""
#: maintenanceMode.php:110
#: maintenanceMode.php:151
msgid "Warning message."
msgstr ""
#: maintenanceMode.php:112 maintenanceMode.php:295
#: maintenanceMode.php:153 maintenanceMode.php:370
msgid "Warning"
msgstr ""
#: maintenanceMode.php:112 maintenanceMode.php:295
#: maintenanceMode.php:153 maintenanceMode.php:370
msgid ""
"This website close for maintenance at {DATEFORMATTED} (in {intval(MINUTES)} "
"minutes)."
msgstr ""
#: maintenanceMode.php:114
#: maintenanceMode.php:156
#, php-format
msgid ""
"You can use Expression manager : {DATEFORMATTED} was replaced by date in "
"user language format, {DATE} by date in <code>Y-m-d H:i</code> format and "
"{MINUTES} by number of minutes before maintenance."
"You can use Expression manager : %s was replaced by date in user language "
"format, %s by date in %s format and %s by number of minutes before "
"maintenance."
msgstr ""
#: maintenanceMode.php:117
#: maintenanceMode.php:161
msgid "Disable token emailing during maintenance"
msgstr ""
#: maintenanceMode.php:121
#: maintenanceMode.php:165
msgid "Url to redirect users"
msgstr ""
#: maintenanceMode.php:122
#: maintenanceMode.php:166
msgid ""
"Enter complete url only (with http:// or https://). {LANGUAGE} was replace "
"by user language (ISO format if exist in this installation)."
msgstr ""
#: maintenanceMode.php:129
#: maintenanceMode.php:175
#, php-format
msgid "Actual date/time : %s. Empty disable maintenance mode."
msgstr ""
#: maintenanceMode.php:132
#: maintenanceMode.php:179
msgid "This disable your access"
msgstr ""
#: maintenanceMode.php:146
#: maintenanceMode.php:192
msgid "Only for LimeSurvey 3.0.0 and up version"
msgstr ""
#: maintenanceMode.php:201
msgid "You must download renderMessage plugin"
msgstr ""
#: maintenanceMode.php:151
#: maintenanceMode.php:204
msgid "You must activate renderMessage plugin"
msgstr ""
#: maintenanceMode.php:205
#: maintenanceMode.php:269
msgid "Bad url, you must review the redirect url."
msgstr ""
......@@ -94,7 +94,7 @@ class maintenanceMode extends PluginBase {
if($oUser) {
if(!Permission::model()->hasGlobalPermission('superadmin','read',$oUser->uid)) {
$identity->id = null;
$this->getEvent()->set('result', new LSAuthResult(99, $this->gT("This website are on maintenance mode.")));
$this->getEvent()->set('result', new LSAuthResult(99, $this->gT("This website is in maintenance mode.")));
$this->getEvent()->stop();
}
}
......@@ -143,7 +143,7 @@ class maintenanceMode extends PluginBase {
'messageToShow' => array(
'label'=> $this->gT("Maintenance message"),
'htmlOptions'=>array(
'placeholder'=> $this->gT("This website are on maintenance mode."),
'placeholder'=> $this->gT("This website is in maintenance mode."),
),
'help' => $this->gT("Default message was translated according to user language."),
),
......@@ -227,7 +227,7 @@ class maintenanceMode extends PluginBase {
$done = true;
if($this->_inMaintenance()){
if($this->_accessAllowed()){
$this->_addFlashMessage($this->gT("This website are on maintenance mode."));
$this->_addFlashMessage($this->gT("This website is in maintenance mode."));
return;
}
$this->_endDuToMaintenance();
......@@ -353,9 +353,9 @@ class maintenanceMode extends PluginBase {
$url=str_replace("{LANGUAGE}",$lang,$url);
header('Location: '.$url);
}
$message = $this->get('messageToShow',null,null,$this->gT("This website are on maintenance mode."));
$message = $this->get('messageToShow',null,null,$this->gT("This website is in maintenance mode."));
if(!$message){
$message = $this->gT("This website are on maintenance mode.");
$message = $this->gT("This website is in maintenance mode.");
}
/* rendering quit */
//$this->_render($message);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment