From 5a465ae8bfcb0379751616d80057fd634d46a145 Mon Sep 17 00:00:00 2001 From: Katrin Fischer Date: Thu, 20 Oct 2016 00:10:52 +0200 Subject: [PATCH] Bug 17469: Add missing sample notices to fr-CA web installer Adds missing notices to the fr-CA web installer: - MEMBERSHIP_EXPIRY - PASSWORD_RESET Renames RESERVESLIP to HOLD_SLIP Add fr-CA installer to xt/sample_letter.t To test: - Verify sample_notices.sql is correct SQL and loads cleanly - Verify xt/sample_letter.t test checks fr-CA now and runs all tests successfully Signed-off-by: Katrin Fischer --- installer/data/mysql/fr-CA/obligatoire/sample_notices.sql | 7 ++++++- xt/sample_notices.t | 1 + 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/installer/data/mysql/fr-CA/obligatoire/sample_notices.sql b/installer/data/mysql/fr-CA/obligatoire/sample_notices.sql index 52d3019..54b6823 100644 --- a/installer/data/mysql/fr-CA/obligatoire/sample_notices.sql +++ b/installer/data/mysql/fr-CA/obligatoire/sample_notices.sql @@ -9,7 +9,7 @@ INSERT INTO `letter` (module, code, branchcode, name, is_html, title, content, m ('circulation','PREDUE','','Document à rendre bientôt',0,'Document à rendre bientôt','Bonjour <> <>,\r\n\r\nNous souhaitons vous informer que le prêt de ce document arrive bientôt à expiration :\r\n\r\n<>, <> (<>)\r\n\r\nMerci.\r\n\r\n<>','email'), ('circulation','PREDUEDGST','','Document à rendre bientôt (Résumé)',0,'Document(s) à rendre bientôt','Bonjour <> <>,\r\n\r\nVous avez <> document(s) dont le prêt arrive bientôt à expiration.\r\n\r\n<>','email'), ('circulation','RENEWAL','','Renouvellements',0,'Renouvellements','Bonjour <> <>,\r\n\r\nVous avez renouvelé les documents suivants :\r\n----\r\n<>\r\n----\r\nMerci.\r\n\r\n<>.','email'), -('circulation','RESERVESLIP','','Ticket de réservation',1,'Ticket de réservation','
Date : <>
\r\n\r\n

Transfert / Réservation disponible à <>

\r\n\r\n

<>, <>

\r\n\r\n
    \r\n
  • <>
  • \r\n
  • <>
  • \r\n
  • <>
    \r\n <>
    \r\n <> <>\r\n
  • \r\n
  • <>
  • \r\n
\r\n
\r\n

DOCUMENT RÉSERVÉ

\r\n

<>

\r\n
<>
\r\n
    \r\n
  • <>
  • \r\n
  • <>
  • \r\n
  • <>
  • \r\n
\r\n

Notes :\r\n

<>
\r\n

\r\n','email'), +('circulation','HOLD_SLIP','','Ticket de réservation',1,'Ticket de réservation','
Date : <>
\r\n\r\n

Transfert / Réservation disponible à <>

\r\n\r\n

<>, <>

\r\n\r\n
    \r\n
  • <>
  • \r\n
  • <>
  • \r\n
  • <>
    \r\n <>
    \r\n <> <>\r\n
  • \r\n
  • <>
  • \r\n
\r\n
\r\n

DOCUMENT RÉSERVÉ

\r\n

<>

\r\n
<>
\r\n
    \r\n
  • <>
  • \r\n
  • <>
  • \r\n
  • <>
  • \r\n
\r\n

Notes :\r\n

<>
\r\n

\r\n','email'), ('circulation','TRANSFERSLIP','','Ticket de transfert',1,'Ticket de transfert','
Date : <>
\r\n\r\n

Transfert à <>

\r\n\r\n

DOCUMENT

\r\n

<>

\r\n
<>
\r\n
    \r\n
  • <>
  • \r\n
  • <>
  • \r\n
','email'), ('claimacquisition','ACQCLAIM','','Réclamation d\'une commande',0,'Document non reçu','<>\r\n<>\r\n<>\r\n<>\r\n<>\r\n<>\r\n\r\nBonjour,\r\n\r\nLa commande suivante n\'a pas été reçue par notre service d\'acquisitions.\r\n\r\nCommande n. <> (<>) (<> exemplaire(s) commandé(s)) ($<> / unité).\r\n\r\nMerci de faire le nécessaire pour nous la faire parvenir rapidement.\r\n\r\nEn cas de problème, veuillez nous contacter à l\'adresse ci-dessous.\r\n\r\nCordialement,\r\n\r\n<>\r\n<>\r\n<>\r\n<>\r\n<> <>\r\n<>\r\n<>\r\n','email'), ('members','ACCTDETAILS','','Modèle de message pour les détails d\'un compte lecteur - DEFAULT',0,'Votre compte Koha','Bonjour <> <>,\r\n\r\nLes informations pour vous connecter à votre compte lecteur sont :\r\n\r\nIdentifiant : <>\r\nMot de passe: <>\r\n\r\nSi vous rencontrez des problèmes ou avez des questions concernant votre compte, veuillez contacter l\'administrateur de Koha.\r\n\r\nMerci, \r\nL\'administrateur de Koha\r\nkohaadmin@yoursite.org','email'), @@ -44,3 +44,8 @@ INSERT INTO letter ( module, code, branchcode, name, is_html, title, content, me "<>" par <>, <>, Code-barres : <> Amendes : <> ', 'print' ); + +INSERT INTO `letter` (module, code, branchcode, name, is_html, title, content, message_transport_type) +VALUES ('members','PASSWORD_RESET','','Online password reset',1,'Koha password recovery','\r\n

This email has been sent in response to your password recovery request for the account <>.\r\n

\r\n

\r\nYou can now create your new password using the following link:\r\n
>\"><>\r\n

\r\n

This link will be valid for 2 days from this email\'s reception, then you must reapply if you do not change your password.

\r\n

Thank you.

\r\n\r\n','email'), +('members','MEMBERSHIP_EXPIRY','','Account expiration','Account expiration','Dear <> <> <>,.\r\n\r\nYour library card will expire soon, on:\r\n\r\n<>\r\n\r\nThank you,\r\n\r\nLibrarian\r\n\r\n<>','email'); + diff --git a/xt/sample_notices.t b/xt/sample_notices.t index 083b39a..2653407 100755 --- a/xt/sample_notices.t +++ b/xt/sample_notices.t @@ -25,6 +25,7 @@ my $root_dir = 'installer/data/mysql'; my $base_notices_file = "en/mandatory/sample_notices.sql"; my @trans_notices_files = qw( fr-FR/1-Obligatoire/sample_notices.sql + fr-CA/obligatoire/sample_notices.sql de-DE/mandatory/sample_notices.sql es-ES/mandatory/sample_notices.sql it-IT/necessari/notices.sql -- 2.7.4