Commit 1b8e404e by Denis Chenu

[feature] Move translation to po files

parent f7248ca3
......@@ -6,7 +6,7 @@ Only partial changelog, [commit history](https://framagit.org/SondagePro-LimeSur
### Feature
- French version
- Translation via po/mo
- Control day of week when sending email by survey
- Allow to disable email validate before try to send
- Batch size by surveys
......
......@@ -68,6 +68,11 @@ Plugin use 2 system for logging :
),
````
## Contribute
Issue and merge request are welcome on [framagit](https://framagit.org/SondagePro-LimeSurvey-plugin/sendMailCron) or [github](https://github.com/SondagesPro/LS-sendMailCron/).
Translation can be done via [Glotpress of Sondages Pro plugin](http://translate.sondages.pro/projects/sendmailcron)
## Home page & Copyright
......
msgid ""
msgstr ""
"Project-Id-Version: sendMailCron\n"
"POT-Creation-Date: 2017-03-16 15:03+0100\n"
"PO-Revision-Date: 2017-03-16 15:04+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.12\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"
#: sendMailCron.php:218
msgid "disabled"
msgstr "désactivé"
#: sendMailCron.php:224
msgid "Leave empty to send all available emails."
msgstr "Laisser vide pour envoyer tous les messages possibles"
#: sendMailCron.php:226
#, php-format
msgid ""
"Leave empty to send all available emails,only limited by global batch size "
"(%s) for all surveys."
msgstr ""
"Laisser vide pour envoyer tous les messages possibles, seulement limité par "
"la taille du lot global (%s) de tous les questionnaires/"
#: sendMailCron.php:235
msgid "Max email to send (invitation + remind) to each participant."
msgstr ""
"Nombre de messages maximum à envoyer (invitation et rappel(s)) à chaque "
"participant"
#: sendMailCron.php:236
#, php-format
msgid "0 to deactivate sending of email, empty to use default (%s)"
msgstr ""
"0 pour désactiver l'envoi de messages, vide pour utiliser le défaut (%s)"
#: sendMailCron.php:244
msgid "Min delay between invitation and first reminder."
msgstr "Délais minimum entre l'invitation et le premier rappel."
#: sendMailCron.php:245 sendMailCron.php:254
#, php-format
msgid "In days, empty for default (%s)"
msgstr "En jours, vide pour le défaut (%s)"
#: sendMailCron.php:253
msgid "Min delay between reminders."
msgstr "Délais minimums entre les rappels"
#: sendMailCron.php:262
msgid "Max email to send (invitation + remind) in one batch for this survey."
msgstr ""
"Nombre maximum de messages à envoyer (invitations et rappels) par lot pour "
"ce questionnaire."
#: sendMailCron.php:271
msgid "Max email to send for invitation in one batch for this survey."
msgstr "Nombre maximum d'invitations par lot pour ce questionnaire."
#: sendMailCron.php:272
msgid "The max email setting can not be exceeded."
msgstr "Le nombre maximum de messages par lot ne sera pas dépassé."
#: sendMailCron.php:280
msgid "Max email to send for reminder in one batch for this survey."
msgstr "Nombre maximum de rappels par lot pour ce questionnaire."
#: sendMailCron.php:281
msgid ""
"The max email setting can not be exceeded. Reminders are sent after "
"invitation."
msgstr ""
"Le nombre maximum de messages par lot ne sera pas dépassé. Les rappels sont "
"envoyés après les invitations."
#: sendMailCron.php:288 sendMailCron.php:291
msgid "All week days"
msgstr "Tous les jours de semaine"
#: sendMailCron.php:298
msgid "Day of week for sending email"
msgstr "Jours de la semaine pour envoyer les messages"
#: sendMailCron.php:300
msgid "Monday"
msgstr "Lundi"
#: sendMailCron.php:301
msgid "Thursday"
msgstr "Mardi"
#: sendMailCron.php:302
msgid "Wednesday"
msgstr "Mercredi"
#: sendMailCron.php:303
msgid "Thuesday"
msgstr "Jeudi"
#: sendMailCron.php:304
msgid "Friday"
msgstr "Vendredi"
#: sendMailCron.php:305
msgid "Saturday"
msgstr "Samedi"
#: sendMailCron.php:306
msgid "Sunday"
msgstr "Dimanche"
#: sendMailCron.php:318
msgid "Only if no moment is set"
msgstr "Seulement si le moment n'est pas indiqué"
#: sendMailCron.php:318
msgid "At all moment"
msgstr "À tous les moments"
#: sendMailCron.php:333
msgid "Moment for emailing"
msgstr "Moment pour l'envoi des messages"
#: sendMailCron.php:343
msgid "all participants"
msgstr "tous les participants"
#: sendMailCron.php:346
msgid "participants who did not started survey."
msgstr "participants qui n'ont pas commencé le questionnaire"
#: sendMailCron.php:347
msgid "participants who started survey."
msgstr "participants qui ont commencé le questionnaire"
#: sendMailCron.php:349
msgid "Send reminders to "
msgstr "Envoi des relance à "
#~ msgid ""
#~ "The max email setting can not be exceeded. Reminders are sent after "
#~ "invitation, using the remainder of sends available."
#~ msgstr ""
#~ "Le nombre maximum de messages par lot ne sera pas dépassé. Les rappels "
#~ "sont envoyé "
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: sendMailCron\n"
"POT-Creation-Date: 2017-03-16 15:02+0100\n"
"PO-Revision-Date: 2017-03-16 14:13+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.12\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"
#: sendMailCron.php:218
msgid "disabled"
msgstr ""
#: sendMailCron.php:224
msgid "Leave empty to send all available emails."
msgstr ""
#: sendMailCron.php:226
#, php-format
msgid ""
"Leave empty to send all available emails,only limited by global batch size "
"(%s) for all surveys."
msgstr ""
#: sendMailCron.php:235
msgid "Max email to send (invitation + remind) to each participant."
msgstr ""
#: sendMailCron.php:236
#, php-format
msgid "0 to deactivate sending of email, empty to use default (%s)"
msgstr ""
#: sendMailCron.php:244
msgid "Min delay between invitation and first reminder."
msgstr ""
#: sendMailCron.php:245 sendMailCron.php:254
#, php-format
msgid "In days, empty for default (%s)"
msgstr ""
#: sendMailCron.php:253
msgid "Min delay between reminders."
msgstr ""
#: sendMailCron.php:262
msgid "Max email to send (invitation + remind) in one batch for this survey."
msgstr ""
#: sendMailCron.php:271
msgid "Max email to send for invitation in one batch for this survey."
msgstr ""
#: sendMailCron.php:272
msgid "The max email setting can not be exceeded."
msgstr ""
#: sendMailCron.php:280
msgid "Max email to send for reminder in one batch for this survey."
msgstr ""
#: sendMailCron.php:281
msgid ""
"The max email setting can not be exceeded. Reminders are sent after "
"invitation."
msgstr ""
#: sendMailCron.php:288 sendMailCron.php:291
msgid "All week days"
msgstr ""
#: sendMailCron.php:298
msgid "Day of week for sending email"
msgstr ""
#: sendMailCron.php:300
msgid "Monday"
msgstr ""
#: sendMailCron.php:301
msgid "Thursday"
msgstr ""
#: sendMailCron.php:302
msgid "Wednesday"
msgstr ""
#: sendMailCron.php:303
msgid "Thuesday"
msgstr ""
#: sendMailCron.php:304
msgid "Friday"
msgstr ""
#: sendMailCron.php:305
msgid "Saturday"
msgstr ""
#: sendMailCron.php:306
msgid "Sunday"
msgstr ""
#: sendMailCron.php:318
msgid "Only if no moment is set"
msgstr ""
#: sendMailCron.php:318
msgid "At all moment"
msgstr ""
#: sendMailCron.php:333
msgid "Moment for emailing"
msgstr ""
#: sendMailCron.php:343
msgid "all participants"
msgstr ""
#: sendMailCron.php:346
msgid "participants who did not started survey."
msgstr ""
#: sendMailCron.php:347
msgid "participants who started survey."
msgstr ""
#: sendMailCron.php:349
msgid "Send reminders to "
msgstr ""
<?php
/**
* A class for language
*
* @author Denis Chenu <denis@sondages.pro>
* @copyright 2016 Denis Chenu <http://www.sondages.pro>
* @license AGPL v3
* @version 0.0.1
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero 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.
*/
class sendMailCronTranslate
{
/**
* @var array[] translation text : 1st key is string, second key is lang
*/
private $aTranslation=array(
'fr'=>array(
"disabled"=>"désactivé",
"no limit"=>"non limité",
"Max email to send (invitation + remind) to each participant."=>"Nombre de messages maximum à envoyer à chaque participant.",
"0 to deactivate sending of email, empty to use default (%s)"=>"0 pour désactiver l'envoi automatique de message, vide pour la valeur par défaut (%s)",
"Min delay between invitation and first reminder."=>"Délai minimum entre l'invitation et la première relance",
"Min delay between reminders."=>"Délai minimum entre les relances",
"In days, empty for default (%s)"=>"En jour, vide pour utiliser la valeur par défaut (%s)",
"Max email to send (invitation + remind) in one batch for this survey."=>"Nombre maximum de messages à envoyer à chaque exécution",
"Leave empty to send all available emails."=>"Laisser vide pour envoyer tous les messages possibles",
"Leave empty to send all available emails,only limited by global batch size (%s) for all surveys."=>"Laisser vide pour envoyer tous les messages possibles, seulement limité par le paramètre global (%s) pour tous les questionnaires.",
"Max email to send for invitation in one batch for this survey."=>"Nombre maximum d'invitation à envoyer à chaque exécution",
"The max email setting can not be exceeded."=>"Le nombre maximum d'envoi ne pourra pas être dépassé",
"Max email to send for reminder in one batch for this survey."=>"Nombre maximum de relance à envoyer à chaque exécution",
"The max email setting can not be exceeded. Reminders are sent after invitation, using the remainder of sends available."=>"Le nombre maximum d'envoi est toujours pris en compte, les relances sont envoyées après les invitations en utilisant le reste des envois disponibles.",
"Day of week for sending email"=>"Jours de la semaine pour l'envoi des message",
"All week days"=>"Tous les jours de la semaine",
"Monday"=>"Lundi",
"Thursday"=>"Mardi",
"Wednesday"=>"Mercredi",
"Thuesday"=>"Jeudi",
"Friday"=>"Vendredi",
"Saturday"=>"Samedi",
"Sunday"=>"Dimanche",
"Send reminders to "=>"Envoi des relances à ",
"all participants"=>"Tous les participants",
"participants who did not started survey."=>"aux participants qui n'ont pas démarré le questionaire",
"participants who started survey."=>"aux participants qui ont démarré le questionnaire",
"Only if no moment is set"=>"Seulement si il n'y a pas de moment d'indiqué",
"At all moment"=>"Pour tous les moments",
"Moment for emailing"=>"Moment pour l'envoi des messages",
),
);
/**
* Quick translate function
*/
public function gT($string)
{
if(isset($this->aTranslation[App()->language][$string])){
return $this->aTranslation[App()->language][$string];
}
return gT($string);
}
}
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 sign in to comment