Translatability improvements from Matthias Mohr.

This commit is contained in:
Matthias Mohr authored and Andrew McMillan committed 2009-10-30 09:00:41 +13:00
1 parent 4f885d055c
commit 526d4dce6f
6 files changed
+20 -17

No files matched your search

+1 -1
View File
@@ -8,7 +8,7 @@ require_once("interactive-page.php");
$user_no = ( isset($_GET['user_no']) ? intval($_GET['user_no']) : 0 );
if ( !$session->AllowedTo("Admin") && ($user_no == 0 || $user_no != $session->user_no) ) {
$c->messages[] = "You may only review the contents of your own collections in this interface.";
$c->messages[] = i18n('You may only review the contents of your own collections in this interface.');
include("page-header.php");
include("page-footer.php");
exit(0);
+7 -8
View File
@@ -29,10 +29,6 @@ if(isset($_POST['import_from_directory'])){
}
include("page-header.php");
$Tools = new Tools();
$Tools->render();
class Tools {
function render(){
@@ -132,17 +128,17 @@ class Tools {
if ( check_string($ics) ) {
$path = "/".substr($file,0,-4).$path_ics;
dbg_error_log( "importFromDirectory", "importing to $path");
include_once("caldav-PUT-functions.php");
require_once("caldav-PUT-functions.php");
if ( $user = getUserByName(substr($file,0,-4),'importFromDirectory',__LINE__,__FILE__)) {
$user_no = $user->user_no;
}
if(controlRequestContainer(substr($file,0,-4),$user_no, $path,false) === -1)
continue;
import_collection($ics,$user_no,$path,1);
$c->messages[] = sprintf(translate("all events of user %s were deleted and replaced by those from file %s"),substr($file,0,-4),$dir.'/'.$file);
$c->messages[] = sprintf(translate('all events of user %s were deleted and replaced by those from file %s'),substr($file,0,-4),$dir.'/'.$file);
}
else {
$c->messages[] = sprintf(translate("the file %s is not UTF-8 encoded, please check error for more details"),$dir.'/'.$file);
$c->messages[] = sprintf(translate('the file %s is not UTF-8 encoded, please check error for more details'),$dir.'/'.$file);
}
}
}
@@ -151,5 +147,8 @@ class Tools {
}
}
include("page-footer.php");
$Tools = new Tools();
include("page-header.php");
$Tools->render();
include("page-footer.php");