aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rwxr-xr-xinc/poche/Poche.class.php8
-rwxr-xr-xinc/poche/Routing.class.php2
-rwxr-xr-xinc/poche/config.inc.default.php3
-rw-r--r--locale/en_US.utf8/LC_MESSAGES/en_US.utf8.mobin17302 -> 17420 bytes
-rw-r--r--locale/en_US.utf8/LC_MESSAGES/en_US.utf8.po3
-rw-r--r--locale/fr_FR.utf8/LC_MESSAGES/fr_FR.utf8.mobin22690 -> 22813 bytes
-rw-r--r--locale/fr_FR.utf8/LC_MESSAGES/fr_FR.utf8.po3
7 files changed, 14 insertions, 5 deletions
diff --git a/inc/poche/Poche.class.php b/inc/poche/Poche.class.php
index cd7578e3..a91a3f8f 100755
--- a/inc/poche/Poche.class.php
+++ b/inc/poche/Poche.class.php
@@ -93,7 +93,9 @@ class Poche
93 _('This is an automatically generated message, no one will answer if you respond to it.'); 93 _('This is an automatically generated message, no one will answer if you respond to it.');
94 94
95 // if external (public) registration 95 // if external (public) registration
96 $body = "Hi, " . $newUsername . "\r\n\r\nYou've just created a wallabag account on " . Tools::getPocheUrl() . ".\r\nHave fun with it !"; 96 $body = sprintf(_('Hi, %1$s'), $newUsername) . "\r\n\r\n" .
97 sprintf(_('You\'ve just created a wallabag account on %1$s.'), Tools::getPocheUrl()) .
98 "\r\n\r\n" . _("Have fun with it !");
97 $body = $internalRegistration ? $body_internal : $body; 99 $body = $internalRegistration ? $body_internal : $body;
98 100
99 $body = wordwrap($body, 70, "\r\n"); // cut lines with more than 70 caracters (MIME standard) 101 $body = wordwrap($body, 70, "\r\n"); // cut lines with more than 70 caracters (MIME standard)
@@ -117,7 +119,9 @@ class Poche
117 $this->messages->add('i', _('The user was created, but no email was sent because email was not filled in')); 119 $this->messages->add('i', _('The user was created, but no email was sent because email was not filled in'));
118 } 120 }
119 Tools::logm('The new user ' . $newUsername . ' has been installed'); 121 Tools::logm('The new user ' . $newUsername . ' has been installed');
120 $this->messages->add('s', sprintf(_('The new user %s has been installed. Do you want to <a href="?logout">logout ?</a>'), $newUsername)); 122 if (\Session::isLogged()) {
123 $this->messages->add('s', sprintf(_('The new user %s has been installed. Do you want to <a href="?logout">logout ?</a>'), $newUsername));
124 }
121 Tools::redirect(); 125 Tools::redirect();
122 } 126 }
123 else { 127 else {
diff --git a/inc/poche/Routing.class.php b/inc/poche/Routing.class.php
index e9b67771..177b74d5 100755
--- a/inc/poche/Routing.class.php
+++ b/inc/poche/Routing.class.php
@@ -72,7 +72,7 @@ class Routing
72 Tools::logm('register'); 72 Tools::logm('register');
73 $tplFile = Tools::getTplFile('register'); 73 $tplFile = Tools::getTplFile('register');
74 } elseif (ALLOW_REGISTER && isset($_GET['register'])){ 74 } elseif (ALLOW_REGISTER && isset($_GET['register'])){
75 $this->wallabag->createNewUser($_POST['newusername'], $_POST['password4newuser']); 75 $this->wallabag->createNewUser($_POST['newusername'], $_POST['password4newuser'], $_POST['newuseremail']);
76 Tools::redirect(); 76 Tools::redirect();
77 } elseif(isset($_SERVER['PHP_AUTH_USER'])) { 77 } elseif(isset($_SERVER['PHP_AUTH_USER'])) {
78 if($this->wallabag->store->userExists($_SERVER['PHP_AUTH_USER'])) { 78 if($this->wallabag->store->userExists($_SERVER['PHP_AUTH_USER'])) {
diff --git a/inc/poche/config.inc.default.php b/inc/poche/config.inc.default.php
index e569dddd..7c27856d 100755
--- a/inc/poche/config.inc.default.php
+++ b/inc/poche/config.inc.default.php
@@ -33,8 +33,6 @@
33@define ('MODE_DEMO', FALSE); 33@define ('MODE_DEMO', FALSE);
34@define ('DEBUG_POCHE', FALSE); 34@define ('DEBUG_POCHE', FALSE);
35 35
36@define ('ALLOW_REGISTER', TRUE);
37
38//default level of error reporting in application. Developers should override it in their config.inc.php: set to E_ALL. 36//default level of error reporting in application. Developers should override it in their config.inc.php: set to E_ALL.
39@define ('ERROR_REPORTING', E_ALL & ~E_NOTICE); 37@define ('ERROR_REPORTING', E_ALL & ~E_NOTICE);
40 38
@@ -63,6 +61,7 @@
63 61
64// registration 62// registration
65@define ('SEND_CONFIRMATION_EMAIL', TRUE); // TO BE CHANGED DEPENDING ON POLL 63@define ('SEND_CONFIRMATION_EMAIL', TRUE); // TO BE CHANGED DEPENDING ON POLL
64@define ('ALLOW_REGISTER', TRUE);
66 65
67// display or not print link in article view 66// display or not print link in article view
68@define ('SHOW_PRINTLINK', '1'); 67@define ('SHOW_PRINTLINK', '1');
diff --git a/locale/en_US.utf8/LC_MESSAGES/en_US.utf8.mo b/locale/en_US.utf8/LC_MESSAGES/en_US.utf8.mo
index 02523125..4341e50e 100644
--- a/locale/en_US.utf8/LC_MESSAGES/en_US.utf8.mo
+++ b/locale/en_US.utf8/LC_MESSAGES/en_US.utf8.mo
Binary files differ
diff --git a/locale/en_US.utf8/LC_MESSAGES/en_US.utf8.po b/locale/en_US.utf8/LC_MESSAGES/en_US.utf8.po
index 75dad661..37d926f1 100644
--- a/locale/en_US.utf8/LC_MESSAGES/en_US.utf8.po
+++ b/locale/en_US.utf8/LC_MESSAGES/en_US.utf8.po
@@ -673,6 +673,9 @@ msgstr "Hi, %1$s"
673msgid "Someone just created a wallabag account for you on %1$s." 673msgid "Someone just created a wallabag account for you on %1$s."
674msgstr "Someone just created a wallabag account for you on %1$s." 674msgstr "Someone just created a wallabag account for you on %1$s."
675 675
676msgid "You've just created a wallabag account on %1$s"
677msgstr "You've just created a wallabag account on %1$s"
678
676msgid "Your login is %1$s." 679msgid "Your login is %1$s."
677msgstr "Your login is %1$s." 680msgstr "Your login is %1$s."
678 681
diff --git a/locale/fr_FR.utf8/LC_MESSAGES/fr_FR.utf8.mo b/locale/fr_FR.utf8/LC_MESSAGES/fr_FR.utf8.mo
index b3b2f6fe..1004c1a0 100644
--- a/locale/fr_FR.utf8/LC_MESSAGES/fr_FR.utf8.mo
+++ b/locale/fr_FR.utf8/LC_MESSAGES/fr_FR.utf8.mo
Binary files differ
diff --git a/locale/fr_FR.utf8/LC_MESSAGES/fr_FR.utf8.po b/locale/fr_FR.utf8/LC_MESSAGES/fr_FR.utf8.po
index 948a8356..e0ee574e 100644
--- a/locale/fr_FR.utf8/LC_MESSAGES/fr_FR.utf8.po
+++ b/locale/fr_FR.utf8/LC_MESSAGES/fr_FR.utf8.po
@@ -800,6 +800,9 @@ msgid "Someone just created a wallabag account for you on %1$s."
800msgstr "" 800msgstr ""
801"Quelqu'un vient juste de créer un compte wallabag pour vous à l'adresse %1$s." 801"Quelqu'un vient juste de créer un compte wallabag pour vous à l'adresse %1$s."
802 802
803msgid "You've just created a wallabag account on %1$s"
804msgstr "Vous venez juste de vous créer un compte wallabag sur %1$s"
805
803msgid "Your login is %1$s." 806msgid "Your login is %1$s."
804msgstr "Votre identifiant is %1$s." 807msgstr "Votre identifiant is %1$s."
805 808