瀏覽代碼

Some changes to make translation easier.

pallo 25 年之前
父節點
當前提交
7b2d02d72c
共有 3 個文件被更改,包括 4 次插入4 次删除
  1. 1 1
      functions/abook_ldap_server.php
  2. 1 1
      functions/abook_local_file.php
  3. 2 2
      functions/addressbook.php

+ 1 - 1
functions/abook_ldap_server.php

@@ -53,7 +53,7 @@
 	 
 	 $this->open(true);
        } else {
-	 $this->set_error(_("Invalid argument to constructor"));
+	 $this->set_error("Invalid argument to constructor");
        }
      }
 

+ 1 - 1
functions/abook_local_file.php

@@ -48,7 +48,7 @@
 
 	 $this->open(true);
        } else {
-	 $this->set_error(_("Invalid argument to constructor"));
+	 $this->set_error("Invalid argument to constructor");
        }
      }
 

+ 2 - 2
functions/addressbook.php

@@ -26,7 +26,7 @@
       $r = $abook->add_backend("local_file", Array("filename" => $filename,
 						   "create"   => true));
       if(!$r) {
-	 print _("Error opening ") ."$filename";
+	 printf(_("Error opening file %s"), $filename);
 	 exit;
       }
      
@@ -201,7 +201,7 @@
 
 	 // Check that specified backend accept new entries
 	 if(!$this->backends[$bnum]->writeable) {
-	    $this->error = _("Addressbook is not writable");
+	    $this->error = _("Addressbook is read-only");
 	    return false;
 	 }