Commit b98235f2c083f6bb24f41092a03b986acfe9255c
1 parent
06fa740e
Allow for action names to be translated.
git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@4966 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
12 changed files
with
120 additions
and
33 deletions
plugins/ktcore/KTDocumentActions.php
| ... | ... | @@ -13,21 +13,27 @@ require_once(KT_LIB_DIR . "/browse/PartialQuery.inc.php"); |
| 13 | 13 | |
| 14 | 14 | // {{{ KTDocumentDetailsAction |
| 15 | 15 | class KTDocumentDetailsAction extends KTDocumentAction { |
| 16 | - var $sDisplayName = 'Display Details'; | |
| 17 | 16 | var $sName = 'ktcore.actions.document.displaydetails'; |
| 18 | 17 | |
| 19 | 18 | function do_main() { |
| 20 | 19 | redirect(generateControllerLink('viewDocument',sprintf(_('fDocumentId=%d'),$this->oDocument->getId()))); |
| 21 | 20 | exit(0); |
| 22 | 21 | } |
| 22 | + | |
| 23 | + function getDisplayName() { | |
| 24 | + return _('Display Details'); | |
| 25 | + } | |
| 23 | 26 | } |
| 24 | 27 | // }}} |
| 25 | 28 | |
| 26 | 29 | // {{{ KTDocumentViewAction |
| 27 | 30 | class KTDocumentViewAction extends KTDocumentAction { |
| 28 | - var $sDisplayName = 'Download'; | |
| 29 | 31 | var $sName = 'ktcore.actions.document.view'; |
| 30 | 32 | |
| 33 | + function getDisplayName() { | |
| 34 | + return _('Download'); | |
| 35 | + } | |
| 36 | + | |
| 31 | 37 | function customiseInfo($aInfo) { |
| 32 | 38 | $aInfo['alert'] = _("This will download a copy of the document and is not the same as Checking Out a document. Changes to this downloaded file will not be managed in the DMS."); |
| 33 | 39 | return $aInfo; |
| ... | ... | @@ -53,11 +59,14 @@ class KTDocumentViewAction extends KTDocumentAction { |
| 53 | 59 | |
| 54 | 60 | // {{{ KTDocumentCheckOutAction |
| 55 | 61 | class KTDocumentCheckOutAction extends KTDocumentAction { |
| 56 | - var $sDisplayName = 'Checkout'; | |
| 57 | 62 | var $sName = 'ktcore.actions.document.checkout'; |
| 58 | 63 | |
| 59 | 64 | var $_sShowPermission = "ktcore.permissions.write"; |
| 60 | 65 | |
| 66 | + function getDisplayName() { | |
| 67 | + return _('Checkout'); | |
| 68 | + } | |
| 69 | + | |
| 61 | 70 | function getInfo() { |
| 62 | 71 | if ($this->oDocument->getIsCheckedOut()) { |
| 63 | 72 | return null; |
| ... | ... | @@ -134,11 +143,14 @@ class KTDocumentCheckOutAction extends KTDocumentAction { |
| 134 | 143 | |
| 135 | 144 | // {{{ KTDocumentCheckInAction |
| 136 | 145 | class KTDocumentCheckInAction extends KTDocumentAction { |
| 137 | - var $sDisplayName = 'Checkin'; | |
| 138 | 146 | var $sName = 'ktcore.actions.document.checkin'; |
| 139 | 147 | |
| 140 | 148 | var $_sShowPermission = "ktcore.permissions.write"; |
| 141 | 149 | |
| 150 | + function getDisplayName() { | |
| 151 | + return _('Checkin'); | |
| 152 | + } | |
| 153 | + | |
| 142 | 154 | function getInfo() { |
| 143 | 155 | if (!$this->oDocument->getIsCheckedOut()) { |
| 144 | 156 | return null; |
| ... | ... | @@ -212,11 +224,14 @@ class KTDocumentCheckInAction extends KTDocumentAction { |
| 212 | 224 | |
| 213 | 225 | // {{{ KTDocumentCheckInAction |
| 214 | 226 | class KTDocumentCancelCheckOutAction extends KTDocumentAction { |
| 215 | - var $sDisplayName = 'Cancel Checkout'; | |
| 216 | 227 | var $sName = 'ktcore.actions.document.cancelcheckout'; |
| 217 | 228 | |
| 218 | 229 | var $_sShowPermission = "ktcore.permissions.write"; |
| 219 | 230 | |
| 231 | + function getDisplayName() { | |
| 232 | + return _('Cancel Checkout'); | |
| 233 | + } | |
| 234 | + | |
| 220 | 235 | function getInfo() { |
| 221 | 236 | if (!$this->oDocument->getIsCheckedOut()) { |
| 222 | 237 | return null; |
| ... | ... | @@ -293,11 +308,14 @@ class KTDocumentCancelCheckOutAction extends KTDocumentAction { |
| 293 | 308 | |
| 294 | 309 | // {{{ KTDocumentEditAction |
| 295 | 310 | class KTDocumentEditAction extends KTDocumentAction { |
| 296 | - var $sDisplayName = 'Edit metadata'; | |
| 297 | 311 | var $sName = 'ktcore.actions.document.edit'; |
| 298 | 312 | |
| 299 | 313 | var $_sShowPermission = "ktcore.permissions.write"; |
| 300 | 314 | |
| 315 | + function getDisplayName() { | |
| 316 | + return _('Edit metadata'); | |
| 317 | + } | |
| 318 | + | |
| 301 | 319 | function getURL() { |
| 302 | 320 | return generateControllerLink("editDocument", sprintf("fDocumentId=%d", $this->oDocument->getID())); |
| 303 | 321 | } |
| ... | ... | @@ -306,11 +324,14 @@ class KTDocumentEditAction extends KTDocumentAction { |
| 306 | 324 | |
| 307 | 325 | // {{{ KTDocumentDeleteAction |
| 308 | 326 | class KTDocumentDeleteAction extends KTDocumentAction { |
| 309 | - var $sDisplayName = 'Delete'; | |
| 310 | 327 | var $sName = 'ktcore.actions.document.delete'; |
| 311 | 328 | |
| 312 | 329 | var $_sShowPermission = "ktcore.permissions.write"; |
| 313 | 330 | |
| 331 | + function getDisplayName() { | |
| 332 | + return _('Delete'); | |
| 333 | + } | |
| 334 | + | |
| 314 | 335 | function getInfo() { |
| 315 | 336 | if ($this->oDocument->getIsCheckedOut()) { |
| 316 | 337 | return null; |
| ... | ... | @@ -379,11 +400,14 @@ class KTDocumentMoveColumn extends TitleColumn { |
| 379 | 400 | |
| 380 | 401 | // {{{ KTDocumentMoveAction |
| 381 | 402 | class KTDocumentMoveAction extends KTDocumentAction { |
| 382 | - var $sDisplayName = 'Move'; | |
| 383 | 403 | var $sName = 'ktcore.actions.document.move'; |
| 384 | 404 | |
| 385 | 405 | var $_sShowPermission = "ktcore.permissions.write"; |
| 386 | 406 | |
| 407 | + function getDisplayName() { | |
| 408 | + return _('Move'); | |
| 409 | + } | |
| 410 | + | |
| 387 | 411 | function getInfo() { |
| 388 | 412 | if ($this->oDocument->getIsCheckedOut()) { |
| 389 | 413 | return null; |
| ... | ... | @@ -568,11 +592,14 @@ class KTDocumentCopyColumn extends TitleColumn { |
| 568 | 592 | |
| 569 | 593 | // {{{ KTDocumentMoveAction |
| 570 | 594 | class KTDocumentCopyAction extends KTDocumentAction { |
| 571 | - var $sDisplayName = 'Copy'; | |
| 572 | 595 | var $sName = 'ktcore.actions.document.copy'; |
| 573 | 596 | |
| 574 | 597 | var $_sShowPermission = "ktcore.permissions.read"; |
| 575 | 598 | |
| 599 | + function getDisplayName() { | |
| 600 | + return _('Copy'); | |
| 601 | + } | |
| 602 | + | |
| 576 | 603 | function getInfo() { |
| 577 | 604 | if ($this->oDocument->getIsCheckedOut()) { |
| 578 | 605 | return null; |
| ... | ... | @@ -726,9 +753,12 @@ class KTDocumentCopyAction extends KTDocumentAction { |
| 726 | 753 | |
| 727 | 754 | // {{{ KTDocumentHistoryAction |
| 728 | 755 | class KTDocumentTransactionHistoryAction extends KTDocumentAction { |
| 729 | - var $sDisplayName = 'Transaction History'; | |
| 730 | 756 | var $sName = 'ktcore.actions.document.transactionhistory'; |
| 731 | 757 | |
| 758 | + function getDisplayName() { | |
| 759 | + return _('Transaction History'); | |
| 760 | + } | |
| 761 | + | |
| 732 | 762 | function getURL() { |
| 733 | 763 | return generateControllerLink("viewDocument", sprintf("action=history&fDocumentId=%d", $this->oDocument->getID())); |
| 734 | 764 | } |
| ... | ... | @@ -737,9 +767,12 @@ class KTDocumentTransactionHistoryAction extends KTDocumentAction { |
| 737 | 767 | |
| 738 | 768 | // {{{ KTDocumentHistoryAction |
| 739 | 769 | class KTDocumentVersionHistoryAction extends KTDocumentAction { |
| 740 | - var $sDisplayName = 'Version History'; | |
| 741 | 770 | var $sName = 'ktcore.actions.document.versionhistory'; |
| 742 | 771 | |
| 772 | + function getDisplayName() { | |
| 773 | + return _('Version History'); | |
| 774 | + } | |
| 775 | + | |
| 743 | 776 | function getURL() { |
| 744 | 777 | return generateControllerLink("viewDocument", sprintf("action=versionhistory&fDocumentId=%d", $this->oDocument->getID())); |
| 745 | 778 | } |
| ... | ... | @@ -748,10 +781,13 @@ class KTDocumentVersionHistoryAction extends KTDocumentAction { |
| 748 | 781 | |
| 749 | 782 | // {{{ KTDocumentArchiveAction |
| 750 | 783 | class KTDocumentArchiveAction extends KTDocumentAction { |
| 751 | - var $sDisplayName = 'Archive'; | |
| 752 | 784 | var $sName = 'ktcore.actions.document.archive'; |
| 753 | 785 | var $_sShowPermission = "ktcore.permissions.write"; |
| 754 | 786 | |
| 787 | + function getDisplayName() { | |
| 788 | + return _('Archive'); | |
| 789 | + } | |
| 790 | + | |
| 755 | 791 | function getInfo() { |
| 756 | 792 | if ($this->oDocument->getIsCheckedOut()) { |
| 757 | 793 | return null; |
| ... | ... | @@ -819,12 +855,15 @@ class KTDocumentArchiveAction extends KTDocumentAction { |
| 819 | 855 | |
| 820 | 856 | // {{{ KTDocumentWorkflowAction |
| 821 | 857 | class KTDocumentWorkflowAction extends KTDocumentAction { |
| 822 | - var $sDisplayName = 'Workflow'; | |
| 823 | 858 | var $sName = 'ktcore.actions.document.workflow'; |
| 824 | 859 | var $_sShowPermission = "ktcore.permissions.write"; |
| 825 | 860 | |
| 826 | 861 | var $sHelpPage = 'ktcore/workflow.html'; |
| 827 | 862 | |
| 863 | + function getDisplayName() { | |
| 864 | + return _('Workflow'); | |
| 865 | + } | |
| 866 | + | |
| 828 | 867 | function do_main() { |
| 829 | 868 | $this->oPage->setBreadcrumbDetails(_("workflow")); |
| 830 | 869 | $oTemplate =& $this->oValidator->validateTemplate("ktcore/workflow/documentWorkflow"); | ... | ... |
plugins/ktcore/KTFolderActions.php
| ... | ... | @@ -15,11 +15,14 @@ require_once(KT_LIB_DIR . '/plugins/pluginregistry.inc.php'); |
| 15 | 15 | require_once(KT_LIB_DIR . '/roles/Role.inc'); |
| 16 | 16 | |
| 17 | 17 | class KTFolderAddFolderAction extends KTFolderAction { |
| 18 | - var $sDisplayName = 'Add a Folder'; | |
| 19 | 18 | var $sName = 'ktcore.actions.folder.addFolder'; |
| 20 | 19 | |
| 21 | 20 | var $_sShowPermission = "ktcore.permissions.addFolder"; |
| 22 | 21 | |
| 22 | + function getDisplayName() { | |
| 23 | + return _('Add a Folder'); | |
| 24 | + } | |
| 25 | + | |
| 23 | 26 | function do_main() { |
| 24 | 27 | $this->oPage->setBreadcrumbDetails(_("add folder")); |
| 25 | 28 | $oTemplate =& $this->oValidator->validateTemplate('ktcore/action/addFolder'); |
| ... | ... | @@ -54,13 +57,16 @@ class KTFolderAddFolderAction extends KTFolderAction { |
| 54 | 57 | } |
| 55 | 58 | |
| 56 | 59 | class KTFolderPermissionsAction extends KTFolderAction { |
| 57 | - var $sDisplayName = 'Permissions'; | |
| 58 | 60 | var $sName = 'ktcore.actions.folder.permissions'; |
| 59 | 61 | |
| 60 | 62 | var $_sShowPermission = "ktcore.permissions.write"; |
| 61 | 63 | var $_bAdminAlwaysAvailable = true; |
| 62 | 64 | var $bAutomaticTransaction = true; |
| 63 | 65 | |
| 66 | + function getDisplayName() { | |
| 67 | + return _('Permissions'); | |
| 68 | + } | |
| 69 | + | |
| 64 | 70 | function do_main() { |
| 65 | 71 | $this->oPage->setBreadcrumbDetails(_("viewing permissions")); |
| 66 | 72 | $oTemplating = new KTTemplating; | ... | ... |
plugins/ktcore/KTPermissions.php
| ... | ... | @@ -18,10 +18,13 @@ require_once(KT_LIB_DIR . "/permissions/permissiondescriptor.inc.php"); |
| 18 | 18 | require_once(KT_LIB_DIR . "/permissions/permissionutil.inc.php"); |
| 19 | 19 | |
| 20 | 20 | class KTDocumentPermissionsAction extends KTDocumentAction { |
| 21 | - var $sDisplayName = 'Permissions'; | |
| 22 | 21 | var $sName = 'ktcore.actions.document.permissions'; |
| 23 | 22 | var $_bAdminAlwaysAvailable = true; |
| 24 | 23 | |
| 24 | + function getDisplayName() { | |
| 25 | + return _('Permissions'); | |
| 26 | + } | |
| 27 | + | |
| 25 | 28 | function do_main() { |
| 26 | 29 | $this->oPage->setBreadcrumbDetails("permissions"); |
| 27 | 30 | |
| ... | ... | @@ -77,12 +80,15 @@ class KTDocumentPermissionsAction extends KTDocumentAction { |
| 77 | 80 | } |
| 78 | 81 | |
| 79 | 82 | class KTRoleAllocationPlugin extends KTFolderAction { |
| 80 | - var $sDisplayName = 'Allocate Roles'; | |
| 81 | 83 | var $sName = 'ktcore.actions.folder.roles'; |
| 82 | 84 | |
| 83 | 85 | var $_sShowPermission = "ktcore.permissions.write"; |
| 84 | 86 | var $bAutomaticTransaction = true; |
| 85 | 87 | |
| 88 | + function getDisplayName() { | |
| 89 | + return _('Allocate Roles'); | |
| 90 | + } | |
| 91 | + | |
| 86 | 92 | function do_main() { |
| 87 | 93 | $this->oPage->setTitle(_("Allocate Roles")); |
| 88 | 94 | $this->oPage->setBreadcrumbDetails(_("Allocate Roles")); | ... | ... |
plugins/ktcore/folder/BulkImport.php
| ... | ... | @@ -13,12 +13,15 @@ require_once(KT_LIB_DIR . "/widgets/fieldsetDisplay.inc.php"); |
| 13 | 13 | require_once(KT_LIB_DIR . "/validation/dispatchervalidation.inc.php"); |
| 14 | 14 | |
| 15 | 15 | class KTBulkImportFolderAction extends KTFolderAction { |
| 16 | - var $sDisplayName = 'Bulk import'; | |
| 17 | 16 | var $sName = 'ktcore.actions.folder.bulkImport'; |
| 18 | 17 | |
| 19 | 18 | var $_sShowPermission = "ktcore.permissions.write"; |
| 20 | 19 | var $bAutomaticTransaction = true; |
| 21 | 20 | |
| 21 | + function getDisplayName() { | |
| 22 | + return _('Bulk import'); | |
| 23 | + } | |
| 24 | + | |
| 22 | 25 | function do_main() { |
| 23 | 26 | $this->oPage->setBreadcrumbDetails(_("bulk import")); |
| 24 | 27 | $oTemplate =& $this->oValidator->validateTemplate('ktcore/folder/bulkImport'); | ... | ... |
plugins/ktcore/folder/BulkUpload.php
| ... | ... | @@ -11,12 +11,15 @@ require_once(KT_LIB_DIR . "/widgets/fieldsetDisplay.inc.php"); |
| 11 | 11 | require_once(KT_LIB_DIR . "/validation/dispatchervalidation.inc.php"); |
| 12 | 12 | |
| 13 | 13 | class KTBulkUploadFolderAction extends KTFolderAction { |
| 14 | - var $sDisplayName = 'Bulk upload'; | |
| 15 | 14 | var $sName = 'ktcore.actions.folder.bulkUpload'; |
| 16 | 15 | |
| 17 | 16 | var $_sShowPermission = "ktcore.permissions.write"; |
| 18 | 17 | var $bAutomaticTransaction = true; |
| 19 | 18 | |
| 19 | + function getDisplayName() { | |
| 20 | + return _('Bulk upload'); | |
| 21 | + } | |
| 22 | + | |
| 20 | 23 | function check() { |
| 21 | 24 | $res = parent::check(); |
| 22 | 25 | if (empty($res)) { | ... | ... |
plugins/ktcore/folder/addDocument.php
| ... | ... | @@ -10,14 +10,14 @@ require_once(KT_LIB_DIR . "/documentmanagement/observers.inc.php"); |
| 10 | 10 | require_once(KT_LIB_DIR . "/documentmanagement/documentutil.inc.php"); |
| 11 | 11 | |
| 12 | 12 | class KTFolderAddDocumentAction extends KTFolderAction { |
| 13 | - var $sDisplayName = 'Add Document'; | |
| 14 | 13 | var $sName = 'ktcore.actions.folder.addDocument'; |
| 15 | - | |
| 16 | 14 | var $_sShowPermission = "ktcore.permissions.write"; |
| 17 | - | |
| 18 | - | |
| 19 | 15 | var $oDocumentType = null; |
| 20 | 16 | |
| 17 | + function getDisplayName() { | |
| 18 | + return _('Add Document'); | |
| 19 | + } | |
| 20 | + | |
| 21 | 21 | function check() { |
| 22 | 22 | $res = parent::check(); |
| 23 | 23 | if (empty($res)) { | ... | ... |
plugins/ktstandard/KTBulkExportPlugin.php
| ... | ... | @@ -14,10 +14,13 @@ class KTBulkExportPlugin extends KTPlugin { |
| 14 | 14 | require_once(KT_LIB_DIR . '/actions/folderaction.inc.php'); |
| 15 | 15 | |
| 16 | 16 | class KTBulkExportAction extends KTFolderAction { |
| 17 | - var $sDisplayName = 'Bulk Export'; | |
| 18 | 17 | var $sName = 'ktstandard.bulkexport.action'; |
| 19 | 18 | var $sPermissionName = "ktcore.permissions.read"; |
| 20 | 19 | |
| 20 | + function getDisplayName() { | |
| 21 | + return _('Bulk Export'); | |
| 22 | + } | |
| 23 | + | |
| 21 | 24 | function do_main() { |
| 22 | 25 | $this->oPage->template = "kt3/minimal_page"; |
| 23 | 26 | $this->handleOutput(""); | ... | ... |
plugins/ktstandard/KTDiscussion.php
| ... | ... | @@ -61,9 +61,12 @@ class KTCommentListRenderer { |
| 61 | 61 | } |
| 62 | 62 | |
| 63 | 63 | class KTDocumentDiscussionAction extends KTDocumentAction { |
| 64 | - var $sDisplayName = 'Discussion'; | |
| 65 | 64 | var $sName = 'ktcore.actions.document.discussion'; |
| 66 | 65 | |
| 66 | + function getDisplayName() { | |
| 67 | + return _('Discussion'); | |
| 68 | + } | |
| 69 | + | |
| 67 | 70 | function do_main() { |
| 68 | 71 | $this->oPage->setBreadcrumbDetails(_("discussion")); |
| 69 | 72 | $oTemplate =& $this->oValidator->validateTemplate('ktstandard/action/discussion'); | ... | ... |
plugins/ktstandard/KTDocumentLinks.php
| ... | ... | @@ -46,9 +46,12 @@ class KTDocumentLinks extends KTPlugin { |
| 46 | 46 | } |
| 47 | 47 | |
| 48 | 48 | class KTDocumentLinkAction extends KTDocumentAction { |
| 49 | - var $sDisplayName = 'Links'; | |
| 50 | 49 | var $sName = 'ktcore.actions.document.link'; |
| 51 | 50 | |
| 51 | + function getDisplayName() { | |
| 52 | + return _('Links'); | |
| 53 | + } | |
| 54 | + | |
| 52 | 55 | // display existing links |
| 53 | 56 | function do_main() { |
| 54 | 57 | $oTemplate =& $this->oValidator->validateTemplate('ktstandard/action/document_links'); | ... | ... |
plugins/ktstandard/KTEmail.php
| ... | ... | @@ -201,9 +201,12 @@ function validateEmailAddress($sEmailAddress) { |
| 201 | 201 | } |
| 202 | 202 | |
| 203 | 203 | class KTDocumentEmailAction extends KTDocumentAction { |
| 204 | - var $sDisplayName = 'Email'; | |
| 205 | 204 | var $sName = 'ktcore.actions.document.email'; |
| 206 | 205 | |
| 206 | + function getDisplayName() { | |
| 207 | + return _('Email'); | |
| 208 | + } | |
| 209 | + | |
| 207 | 210 | function do_main() { |
| 208 | 211 | $oTemplate =& $this->oValidator->validateTemplate('ktstandard/action/email'); |
| 209 | 212 | $fields = array(); | ... | ... |
plugins/ktstandard/KTSubscriptions.php
| ... | ... | @@ -94,7 +94,11 @@ class KTSubscriptionPortlet extends KTPortlet { |
| 94 | 94 | // {{{ KTDocumentSubscriptionAction |
| 95 | 95 | class KTDocumentSubscriptionAction extends KTDocumentAction { |
| 96 | 96 | var $sName = 'ktstandard.subscription.documentsubscription'; |
| 97 | - var $sDisplayName = 'Subscribe to document'; | |
| 97 | + | |
| 98 | + function getDisplayName() { | |
| 99 | + return _('Subscribe to document'); | |
| 100 | + } | |
| 101 | + | |
| 98 | 102 | function getInfo() { |
| 99 | 103 | if (Subscription::exists($this->oUser->getID(), $this->oDocument->getID(), SubscriptionEvent::subTypes('Document'))) { |
| 100 | 104 | return null; |
| ... | ... | @@ -124,7 +128,11 @@ class KTDocumentSubscriptionAction extends KTDocumentAction { |
| 124 | 128 | // {{{ KTDocumentUnsubscriptionAction |
| 125 | 129 | class KTDocumentUnsubscriptionAction extends KTDocumentAction { |
| 126 | 130 | var $sName = 'ktstandard.subscription.documentunsubscription'; |
| 127 | - var $sDisplayName = 'Unsubscribe from document'; | |
| 131 | + | |
| 132 | + function getDisplayName() { | |
| 133 | + return _('Unsubscribe from document'); | |
| 134 | + } | |
| 135 | + | |
| 128 | 136 | function getInfo() { |
| 129 | 137 | if (Subscription::exists($this->oUser->getID(), $this->oDocument->getID(), SubscriptionEvent::subTypes('Document'))) { |
| 130 | 138 | return parent::getInfo(); |
| ... | ... | @@ -236,7 +244,11 @@ class KTArchiveSubscriptionTrigger { |
| 236 | 244 | // {{{ KTFolderSubscriptionAction |
| 237 | 245 | class KTFolderSubscriptionAction extends KTFolderAction { |
| 238 | 246 | var $sName = 'ktstandard.subscription.foldersubscription'; |
| 239 | - var $sDisplayName = 'Subscribe to folder'; | |
| 247 | + | |
| 248 | + function getDisplayName() { | |
| 249 | + return _('Subscribe to folder'); | |
| 250 | + } | |
| 251 | + | |
| 240 | 252 | function getInfo() { |
| 241 | 253 | if (Subscription::exists($this->oUser->getID(), $this->oFolder->getID(), SubscriptionEvent::subTypes('Folder'))) { |
| 242 | 254 | // KTFolderUnsubscriptionAction will display instead. |
| ... | ... | @@ -267,7 +279,10 @@ class KTFolderSubscriptionAction extends KTFolderAction { |
| 267 | 279 | // {{{ KTFolderUnsubscriptionAction |
| 268 | 280 | class KTFolderUnsubscriptionAction extends KTFolderAction { |
| 269 | 281 | var $sName = 'ktstandard.subscription.folderunsubscription'; |
| 270 | - var $sDisplayName = 'Unsubscribe from folder'; | |
| 282 | + | |
| 283 | + function getDisplayName() { | |
| 284 | + return _('Unsubscribe from folder'); | |
| 285 | + } | |
| 271 | 286 | |
| 272 | 287 | function getInfo() { |
| 273 | 288 | if (Subscription::exists($this->oUser->getID(), $this->oFolder->getID(), SubscriptionEvent::subTypes('Folder'))) { | ... | ... |
plugins/ktstandard/workflow/FolderAssociator.php
| ... | ... | @@ -51,11 +51,14 @@ class FolderWorkflowAssociator extends KTWorkflowAssociationHandler { |
| 51 | 51 | } |
| 52 | 52 | |
| 53 | 53 | class FolderWorkflowAssignmentFolderAction extends KTFolderAction { |
| 54 | - var $sDisplayName = 'Configure Workflows'; | |
| 55 | 54 | var $sName = 'ktstandard.workflowassociation.folder.action'; |
| 56 | 55 | |
| 57 | 56 | var $_sShowPermission = "ktcore.permissions.addFolder"; |
| 58 | 57 | |
| 58 | + function getDisplayName() { | |
| 59 | + return _('Configure Workflows'); | |
| 60 | + } | |
| 61 | + | |
| 59 | 62 | function do_main() { |
| 60 | 63 | $this->oPage->setBreadcrumbDetails(_("Configure Workflows for Folder")); |
| 61 | 64 | $this->oPage->setTitle(_("Configure Workflows for Folder")); |
| ... | ... | @@ -124,4 +127,4 @@ $oPluginRegistry =& KTPluginRegistry::getSingleton(); |
| 124 | 127 | $oPluginRegistry->registerPlugin('KTFolderWorkflowAssociationPlugin', 'ktstandard.workflowassociation.folder.plugin', __FILE__); |
| 125 | 128 | |
| 126 | 129 | |
| 127 | -?> | |
| 128 | 130 | \ No newline at end of file |
| 131 | +?> | ... | ... |