X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=functions%2Fabook_local_file.php;h=a7d4836a06a17cac59f6b2d22d4a856f3773b646;hp=6dca53eb0a99e07315997449e8c6461e60aac156;hb=4b4abf93a9624311afef0c385023724ee46a2b60;hpb=7390e24059ba28045540f784dccc24f05171af4c diff --git a/functions/abook_local_file.php b/functions/abook_local_file.php index 6dca53eb..a7d4836a 100644 --- a/functions/abook_local_file.php +++ b/functions/abook_local_file.php @@ -1,10 +1,10 @@ listing) + return array(); + /* Make regexp from glob'ed expression * May want to quote other special characters like (, ), -, [, ], etc. */ $expr = str_replace('?', '.', $expr); @@ -357,8 +361,8 @@ class abook_local_file extends addressbook_backend { /* See if user exists already */ $ret = $this->lookup($userdata['nickname']); if(!empty($ret)) { - return $this->set_error(sprintf(_("User %s already exists"), - '"' . $ret['nickname'] . '"')); + // i18n: don't use html formating in translation + return $this->set_error(sprintf(_("User \"%s\" already exists"),$ret['nickname'])); } /* Here is the data to write */ @@ -450,8 +454,8 @@ class abook_local_file extends addressbook_backend { /* See if user exists */ $ret = $this->lookup($alias); if(empty($ret)) { - return $this->set_error(sprintf(_("User %s does not exist"), - '"' . $alias . '"')); + // i18n: don't use html formating in translation + return $this->set_error(sprintf(_("User \"%s\" does not exist"),$alias)); } /* Lock the file to make sure we're the only process working