[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] CVS: sitemgr/inc class.Admin_ManageCategories_UI.inc.
From: |
Patrick Walsh <address@hidden> |
Subject: |
[Phpgroupware-cvs] CVS: sitemgr/inc class.Admin_ManageCategories_UI.inc.php,1.5.2.1,1.5.2.2 class.Common_UI.inc.php,1.6.2.1,1.6.2.2 class.MainMenu_UI.inc.php,1.3,1.3.2.1 class.admin_ManageSiteContent_UI.inc.php,1.1.1.1.2.1,1.1.1.1.2.2 class.contributor_ManagePage_UI.inc.php,1.7.2.1,1.7.2.2 |
Date: |
Thu, 17 Oct 2002 00:17:42 -0400 |
Update of /cvsroot/phpgroupware/sitemgr/inc
In directory subversions:/tmp/cvs-serv15676/inc
Modified Files:
Tag: Version-0_9_14-branch
class.Admin_ManageCategories_UI.inc.php
class.Common_UI.inc.php class.MainMenu_UI.inc.php
class.admin_ManageSiteContent_UI.inc.php
class.contributor_ManagePage_UI.inc.php
Log Message:
Michael Totscnig's language patches...
Index: class.Admin_ManageCategories_UI.inc.php
===================================================================
RCS file:
/cvsroot/phpgroupware/sitemgr/inc/class.Admin_ManageCategories_UI.inc.php,v
retrieving revision 1.5.2.1
retrieving revision 1.5.2.2
diff -C2 -r1.5.2.1 -r1.5.2.2
*** class.Admin_ManageCategories_UI.inc.php 16 Oct 2002 20:14:06 -0000
1.5.2.1
--- class.Admin_ManageCategories_UI.inc.php 17 Oct 2002 04:17:14 -0000
1.5.2.2
***************
*** 58,62 ****
if (!$this->acl->is_admin())
{
! echo "You must be an admin to edit categories.";
$common_ui->DisplayFooter();
}
--- 58,62 ----
if (!$this->acl->is_admin())
{
! echo lang('You must be an admin to edit
categories.');
$common_ui->DisplayFooter();
}
***************
*** 93,97 ****
}
!
$this->t->set_var('category_manager','Category Manager');
$this->t->set_file('ManageCategories',
'manage_categories.tpl');
$this->t->set_block('ManageCategories',
'CategoryBlock', 'CBlock');
--- 93,99 ----
}
!
$this->t->set_var(Array('category_manager' => lang('Category Manager'),
! 'lang_catname'
=> lang('Category Name'),
! 'lang_goto' =>
lang('Go to Page Manager')));
$this->t->set_file('ManageCategories',
'manage_categories.tpl');
$this->t->set_block('ManageCategories',
'CategoryBlock', 'CBlock');
***************
*** 122,126 ****
'menuaction=sitemgr.Admin_ManageCategories_UI._manageCategories').
'"
method="POST">
! <input
type="submit" name="btnEditCategory" value="Edit">
<input
type="hidden" name="category_id" value="'.$category_id.'">
</form>');
--- 124,128 ----
'menuaction=sitemgr.Admin_ManageCategories_UI._manageCategories').
'"
method="POST">
! <input
type="submit" name="btnEditCategory" value="' . lang('Edit') .'">
<input
type="hidden" name="category_id" value="'.$category_id.'">
</form>');
***************
*** 131,135 ****
'menuaction=sitemgr.Admin_ManageCategories_UI._manageCategories').
'"
method="POST">
! <input
type=submit name=btnDelete value = "Delete">
<input type=
hidden name = "category_id" value="'. $category_id .'">
</form>');
--- 133,137 ----
'menuaction=sitemgr.Admin_ManageCategories_UI._manageCategories').
'"
method="POST">
! <input
type=submit name=btnDelete value="' . lang('Delete') .'">
<input type=
hidden name = "category_id" value="'. $category_id .'">
</form>');
***************
*** 147,151 ****
'menuaction=sitemgr.Admin_ManageCategories_UI._manageCategories').
'" method="POST">
! <input type=submit
name=btnAddCategory value = "Add a category">
</form>'
);
--- 149,153 ----
'menuaction=sitemgr.Admin_ManageCategories_UI._manageCategories').
'" method="POST">
! <input type=submit
name=btnAddCategory value = "' . lang('Add a category') .'">
</form>'
);
***************
*** 176,180 ****
if($error)
{
! $this->t->set_var('error_msg','You failed to
fill in one or more required fields');
$this->cat->name = $catname;
$this->cat->description = $catdesc;
--- 178,182 ----
if($error)
{
! $this->t->set_var('error_msg',lang('You failed
to fill in one or more required fields.'));
$this->cat->name = $catname;
$this->cat->description = $catdesc;
***************
*** 187,191 ****
$permissionlist =
$this->acl->get_group_permission_list($cat_id);
//print_r($permissionlist);
! $this->t->set_var('add_edit','Edit
Category');
}
else
--- 189,193 ----
$permissionlist =
$this->acl->get_group_permission_list($cat_id);
//print_r($permissionlist);
! $this->t->set_var('add_edit',lang('Edit
Category'));
}
else
***************
*** 193,197 ****
$this->cat->name = '';
$this->cat->description = '';
! $this->t->set_var('add_edit','Add
Category');
$permissionlist = array();
}
--- 195,199 ----
$this->cat->name = '';
$this->cat->description = '';
! $this->t->set_var('add_edit',lang('Add
Category'));
$permissionlist = array();
}
***************
*** 206,211 ****
'old_parent' => $this->cat->parent,
'actionurl' =>
$GLOBALS['phpgw']->link('/index.php',
!
'menuaction=sitemgr.Admin_ManageCategories_UI._manageCategories')
));
$this->t->set_file('EditCategory', 'edit_category.tpl');
$this->t->set_block('EditCategory','GroupBlock',
'GBlock');
--- 208,227 ----
'old_parent' => $this->cat->parent,
'actionurl' =>
$GLOBALS['phpgw']->link('/index.php',
!
'menuaction=sitemgr.Admin_ManageCategories_UI._manageCategories'),
! 'lang_basic' => lang('Basic Settings'),
! 'lang_catname' => lang('Category Name'),
! 'lang_catsort' => lang('Sort Order'),
! 'lang_catparent' => lang('Parent'),
! 'lang_catdesc' => lang('Category Description'),
! 'lang_groupaccess' => lang('Group Access
Permissions'),
! 'lang_groupname' => lang('Group Name'),
! 'lang_readperm' => lang('Read Permission'),
! 'lang_writeperm' => lang('Write Permission'),
! 'lang_useraccess' => lang('Individual Access
Permission'),
! 'lang_username' => lang('User Name'),
! 'lang_reset' => lang('Reset'),
! 'lang_save' => lang('Save')
));
+
$this->t->set_file('EditCategory', 'edit_category.tpl');
$this->t->set_block('EditCategory','GroupBlock',
'GBlock');
***************
*** 256,260 ****
else
{
! $this->t->set_var('groupname',"No groups
defined");
}
--- 272,276 ----
else
{
! $this->t->set_var('groupname',lang("No groups
defined."));
}
***************
*** 304,308 ****
else
{
! $this->t->set_var('username',"No users
defined.");
}
--- 320,324 ----
else
{
! $this->t->set_var('username',lang("No users
defined."));
}
***************
*** 351,356 ****
$cat = $this->cat_bo->getCategory($cat_id);
$this->t->set_file('ConfirmDelete','confirmdelete.tpl');
! $this->t->set_var('category',$cat->name);
$this->t->set_var('category_id',$cat_id);
$this->t->set_var('actionurl',
$GLOBALS['phpgw']->link('/index.php',
--- 367,374 ----
$cat = $this->cat_bo->getCategory($cat_id);
$this->t->set_file('ConfirmDelete','confirmdelete.tpl');
! $this->t->set_var('deleteheader',lang('Are you
sure you want to delete the category %1 and all of its associated pages? You
cannot retrieve the deleted pages if you continue.',$cat->name));
$this->t->set_var('category_id',$cat_id);
+ $this->t->set_var('lang_yes',lang('Yes, please
delete it'));
+ $this->t->set_var('lang_no',lang('Cancel the
delete'));
$this->t->set_var('actionurl',
$GLOBALS['phpgw']->link('/index.php',
Index: class.Common_UI.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/sitemgr/inc/class.Common_UI.inc.php,v
retrieving revision 1.6.2.1
retrieving revision 1.6.2.2
diff -C2 -r1.6.2.1 -r1.6.2.2
*** class.Common_UI.inc.php 16 Oct 2002 20:14:06 -0000 1.6.2.1
--- class.Common_UI.inc.php 17 Oct 2002 04:17:14 -0000 1.6.2.2
***************
*** 85,89 ****
$this->prefs_so->setPreference($name,$_POST[$name]);
}
! echo '<p><b>Changes Saved.</b></p>';
}
--- 85,89 ----
$this->prefs_so->setPreference($name,$_POST[$name]);
}
! echo '<p><b>' . lang('Changes Saved.')
. '</b></p>';
}
***************
*** 91,94 ****
--- 91,99 ----
$this->t->set_var('formaction',$GLOBALS['phpgw']->link(
'/index.php','menuaction=sitemgr.Common_UI.DisplayPrefs'));
+ $this->t->set_var(Array('setup_instructions' =>
lang('SiteMgr Setup Instructions'),
+ 'options' =>
lang('SiteMgr Options'),
+ 'lang_save' =>
lang('Save')
+ ));
+
$this->t->set_block('sitemgr_prefs','PrefBlock','PBlock');
reset($preferences);
***************
*** 112,116 ****
if ($inputbox)
{
!
$this->PrefBlock($details['title'],$inputbox,$details['note']);
}
}
--- 117,121 ----
if ($inputbox)
{
!
$this->PrefBlock(lang($details['title']),$inputbox,$details['note']);
}
}
***************
*** 119,123 ****
else
{
! echo "You must be an administrator to setup the
Site Manager.<br><br>";
}
$this->DisplayFooter();
--- 124,128 ----
else
{
! echo lang("You must be an administrator to
setup the Site Manager.") . "<br><br>";
}
$this->DisplayFooter();
***************
*** 164,168 ****
if (!is_array($options) || count($options)==0)
{
! return 'No options available.';
}
$val = $this->prefs_so->getPreference($name);
--- 169,173 ----
if (!is_array($options) || count($options)==0)
{
! return lang('No options available.');
}
$val = $this->prefs_so->getPreference($name);
***************
*** 206,209 ****
--- 211,218 ----
);
$this->t->set_var('sitemgr-site',
$GLOBALS['phpgw']->link('/sitemgr-link/'));
+ $this->t->set_var(Array('sitemgr_administration' =>
lang('Web Content Manager Administration'),
+ 'view_menu' => lang('View
Administrative Menu'),
+ 'view_site' => lang('View
Generated Site')
+ ));
$this->t->pfp('out','sitemgr_header');
}
Index: class.MainMenu_UI.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/sitemgr/inc/class.MainMenu_UI.inc.php,v
retrieving revision 1.3
retrieving revision 1.3.2.1
diff -C2 -r1.3 -r1.3.2.1
*** class.MainMenu_UI.inc.php 11 Sep 2002 22:39:28 -0000 1.3
--- class.MainMenu_UI.inc.php 17 Oct 2002 04:17:14 -0000 1.3.2.1
***************
*** 33,43 ****
if ($this->acl->is_admin())
{
! $this->t->set_var('menutitle','Administrative
Menu');
$catbo = CreateObject('sitemgr.Categories_BO');
if ($catbo->needUpdateCategories())
{
$updatemsg = $catbo->updateCategories();
! $updatemsg = "\n".'<br><b>Updating to
new category system:</b><br>'.
!
$updatemsg.'<br><b>Done.</b><br>';
$this->t->set_var('updatecats',$updatemsg);
}
--- 33,48 ----
if ($this->acl->is_admin())
{
! $this->t->set_var(Array('menutitle' =>
lang('Administrative Menu'),
! 'lang_configure' =>
lang('Configure SiteMgr'),
! 'lang_check' =>
lang('check here after every upgrade'),
! 'lang_editheadfoot' =>
lang('Edit Site Header and Footer'),
! 'lang_managecat' =>
lang('Manage Categories'),
! 'lang_managepage' =>
lang('Manage Pages')));
$catbo = CreateObject('sitemgr.Categories_BO');
if ($catbo->needUpdateCategories())
{
$updatemsg = $catbo->updateCategories();
! $updatemsg = "\n".'<br><b>' .
lang('Updating to new category system') . ':</b><br>'.
! $updatemsg.'<br><b>' .
lang('Done') . '</b><br>';
$this->t->set_var('updatecats',$updatemsg);
}
***************
*** 50,54 ****
else
{
! $this->t->set_var('menutitle','Contributor
Menu');
}
--- 55,59 ----
else
{
! $this->t->set_var('menutitle',lang('Contributor
Menu'));
}
Index: class.admin_ManageSiteContent_UI.inc.php
===================================================================
RCS file:
/cvsroot/phpgroupware/sitemgr/inc/class.admin_ManageSiteContent_UI.inc.php,v
retrieving revision 1.1.1.1.2.1
retrieving revision 1.1.1.1.2.2
diff -C2 -r1.1.1.1.2.1 -r1.1.1.1.2.2
*** class.admin_ManageSiteContent_UI.inc.php 16 Oct 2002 20:14:06 -0000
1.1.1.1.2.1
--- class.admin_ManageSiteContent_UI.inc.php 17 Oct 2002 04:17:14 -0000
1.1.1.1.2.2
***************
*** 58,62 ****
$this->headerfooterbo->SetSiteHeader($header);
$this->headerfooterbo->SetSiteFooter($footer);
!
$this->t->set_var('message','<b>Saved.</b> <a
href="'.$GLOBALS['phpgw']->link('/index.php','menuaction=sitemgr.MainMenu_UI.DisplayMenu').'">Return
to main menu.</a><br>');
//$this->headerfooterbo->SetTheme($this->theme);
}
--- 58,62 ----
$this->headerfooterbo->SetSiteHeader($header);
$this->headerfooterbo->SetSiteFooter($footer);
! $this->t->set_var('message','<b>'
.lang('Saved') . '</b>. <a
href="'.$GLOBALS['phpgw']->link('/index.php','menuaction=sitemgr.MainMenu_UI.DisplayMenu').'">'
. lang('Return to main menu.') . '</a><br>');
//$this->headerfooterbo->SetTheme($this->theme);
}
***************
*** 68,72 ****
(
'header' => $this->header,
! 'footer' => $this->footer
));
--- 68,77 ----
(
'header' => $this->header,
! 'footer' => $this->footer,
! 'site_format_manager' => lang('Site
Format Manager'),
! 'header_editor' => lang('Header
Editor'),
! 'footer_editor' => lang('Footer
Editor'),
! 'lang_reset' => lang('Reset'),
! 'lang_save' => lang('Save')
));
***************
*** 81,85 ****
else
{
! echo "You must be an admin to edit the site
header and footer.<br><br>";
}
$common_ui->DisplayFooter();
--- 86,90 ----
else
{
! echo lang("You must be an admin to edit the
site header and footer.") ."<br><br>";
}
$common_ui->DisplayFooter();
Index: class.contributor_ManagePage_UI.inc.php
===================================================================
RCS file:
/cvsroot/phpgroupware/sitemgr/inc/class.contributor_ManagePage_UI.inc.php,v
retrieving revision 1.7.2.1
retrieving revision 1.7.2.2
diff -C2 -r1.7.2.1 -r1.7.2.2
*** class.contributor_ManagePage_UI.inc.php 16 Oct 2002 20:14:06 -0000
1.7.2.1
--- class.contributor_ManagePage_UI.inc.php 17 Oct 2002 04:17:14 -0000
1.7.2.2
***************
*** 91,95 ****
$this->page->content=$cmain;
}
! $this->t->set_var('add_edit','Edit Page');
$this->t->set_var('move_to',$this->getParentOptions($this->page->cat_id));
}
--- 91,95 ----
$this->page->content=$cmain;
}
! $this->t->set_var('add_edit',lang('Edit Page'));
$this->t->set_var('move_to',$this->getParentOptions($this->page->cat_id));
}
***************
*** 102,107 ****
$this->page->sort_order = $sort_order;
$this->page->cat_id = $category_id;
! $this->t->set_var('add_edit','Add Page');
! $move_msg = 'Cannot move page until it has been
saved.';
$move_msg .= '<INPUT TYPE="hidden"
name="parent" value="'.
$category_id.'">';
--- 102,107 ----
$this->page->sort_order = $sort_order;
$this->page->cat_id = $category_id;
! $this->t->set_var('add_edit',lang('Add Page'));
! $move_msg = lang('Cannot move page until it has
been saved.');
$move_msg .= '<INPUT TYPE="hidden"
name="parent" value="'.
$category_id.'">';
***************
*** 125,129 ****
'sort_order'=>$this->page->sort_order,
'pageid'=>$page_id,
! 'category_id' => $category_id
));
--- 125,140 ----
'sort_order'=>$this->page->sort_order,
'pageid'=>$page_id,
! 'category_id' => $category_id,
! 'lang_name' => lang('Name'),
! 'lang_title' => lang('Title'),
! 'lang_subtitle' => lang('Subtitle'),
! 'lang_sort' => lang('Sort order'),
! 'lang_move' => lang('Move to'),
! 'lang_maincontent' => lang('Main content'),
! 'lang_hide' => lang('Check to hide from
condensed site index.'),
! 'lang_required' => lang('Required Fields'),
! 'lang_goback' => lang('Go back to Page
Manager'),
! 'lang_reset' => lang('Reset'),
! 'lang_save' => lang('Save')
));
***************
*** 162,166 ****
if ($name == '' || $title == '' || $main == '')
{
! $this->t->set_var('message','You failed
to fill in one or more required fields.');
$this->_editPage($category_id,$pageid,$name,$title,$subtitle,$main);
exit;
--- 173,177 ----
if ($name == '' || $title == '' || $main == '')
{
! $this->t->set_var('message',lang('You
failed to fill in one or more required fields.'));
$this->_editPage($category_id,$pageid,$name,$title,$subtitle,$main);
exit;
***************
*** 176,180 ****
if(!$this->page->id)
{
! $save_msg = 'You don\'t have
permission to write in the category';
}
}
--- 187,191 ----
if(!$this->page->id)
{
! $save_msg = lang("You don't
have permission to write in the category");
}
}
***************
*** 201,205 ****
if (!is_string($save_msg))
{
! echo('<p><b><font color="red">Page
saved.</font></b></p>');
}
else
--- 212,216 ----
if (!is_string($save_msg))
{
! echo('<p><b><font color="red">' .
lang('Page saved.') . '</font></b></p>');
}
else
***************
*** 214,218 ****
if($btnPrev)
{
! echo 'Go back to the category manager';
$btnEditPage = False;
$btnPrev = False;
--- 225,229 ----
if($btnPrev)
{
! echo lang('Go back to the category manager.');
$btnEditPage = False;
$btnPrev = False;
***************
*** 236,239 ****
--- 247,251 ----
$this->t->set_block('ManagePage', 'PageBlock',
'PBlock');
$this->t->set_block('ManagePage',
'CategoryBlock', 'CBlock');
+ $this->t->set_var('page_manager', lang('Page
Manager'));
$this->cat_list =
$this->categorybo->getPermittedCategoryIDWriteList();
***************
*** 252,256 ****
$this->page_id
=$this->page_list[$j];
$this->page =
$this->pagebo->getPage($this->page_id);
!
$page_description = '<b>Name: </b>'.$this->page->name.'<br><b>Title:
</b>'.$this->page->title;
$this->t->set_var('page', $page_description);
$this->t->set_var('edit',
--- 264,268 ----
$this->page_id
=$this->page_list[$j];
$this->page =
$this->pagebo->getPage($this->page_id);
!
$page_description = '<b>' . lang('Name') . ': </b>'.$this->page->name.'<br><b>'
. lang('Title') . ': </b>'.$this->page->title;
$this->t->set_var('page', $page_description);
$this->t->set_var('edit',
***************
*** 259,263 ****
'menuaction=sitemgr.contributor_ManagePage_UI._managePage').
'" method="POST">
! <input
type="submit" name="btnEditPage" value = "Edit">
<input
type="hidden" name="category_id" value="'.
$this->cat_id.'">
--- 271,275 ----
'menuaction=sitemgr.contributor_ManagePage_UI._managePage').
'" method="POST">
! <input
type="submit" name="btnEditPage" value="' . lang('Edit') .'">
<input
type="hidden" name="category_id" value="'.
$this->cat_id.'">
***************
*** 272,276 ****
'menuaction=sitemgr.contributor_ManagePage_UI._managePage').
'" method="POST">
! <input
type="submit" name="btnDelete" value="Delete">
<input
type="hidden" name="pageid" value="'.$this->page_id.'">
<input
type="hidden" name="category_id" value="'.
--- 284,288 ----
'menuaction=sitemgr.contributor_ManagePage_UI._managePage').
'" method="POST">
! <input
type="submit" name="btnDelete" value="' . lang('Delete') .'">
<input
type="hidden" name="pageid" value="'.$this->page_id.'">
<input
type="hidden" name="category_id" value="'.
***************
*** 284,288 ****
else
{
! $this->t->set_var('msg'
, 'This category has no pages.');
}
$this->t->set_var('number',
$i+1);
--- 296,300 ----
else
{
! $this->t->set_var('msg'
, lang('This category has no pages.'));
}
$this->t->set_var('number',
$i+1);
***************
*** 293,297 ****
'menuaction=sitemgr.contributor_ManagePage_UI._managePage').
'" method="POST">
! <input type=submit
name="btnAddPage" value ="Add new page to this category">
<input type=hidden
name="category_id" value ="'.$this->cat_id .'">
</form>');
--- 305,309 ----
'menuaction=sitemgr.contributor_ManagePage_UI._managePage').
'" method="POST">
! <input type=submit
name="btnAddPage" value="' . lang('Add new page to this category') . '">
<input type=hidden
name="category_id" value ="'.$this->cat_id .'">
</form>');
***************
*** 303,307 ****
else
{
! echo 'I\'m sorry, you do not have write
permissions for any site categories.<br><br>';
}
}
--- 315,319 ----
else
{
! echo lang("I'm sorry, you do not have
write permissions for any site categories.") . '<br><br>';
}
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] CVS: sitemgr/inc class.Admin_ManageCategories_UI.inc.php,1.5.2.1,1.5.2.2 class.Common_UI.inc.php,1.6.2.1,1.6.2.2 class.MainMenu_UI.inc.php,1.3,1.3.2.1 class.admin_ManageSiteContent_UI.inc.php,1.1.1.1.2.1,1.1.1.1.2.2 class.contributor_ManagePage_UI.inc.php,1.7.2.1,1.7.2.2,
Patrick Walsh <address@hidden> <=
- Prev by Date:
[Phpgroupware-cvs] CVS: property/inc class.boXport.inc.php,NONE,1.1 class.invoice.inc.php,NONE,1.1 class.soXport.inc.php,NONE,1.1 class.uiXport.inc.php,NONE,1.1
- Next by Date:
[Phpgroupware-cvs] CVS: felamimail/templates/default sieveForm.tpl,NONE,1.1.2.1
- Previous by thread:
[Phpgroupware-cvs] CVS: property/inc class.boXport.inc.php,NONE,1.1 class.invoice.inc.php,NONE,1.1 class.soXport.inc.php,NONE,1.1 class.uiXport.inc.php,NONE,1.1
- Next by thread:
[Phpgroupware-cvs] CVS: felamimail/templates/default sieveForm.tpl,NONE,1.1.2.1
- Index(es):