Skip to content

Commit

Permalink
Add missing translatable strings to achieve fully internationalized i…
Browse files Browse the repository at this point in the history
…nterface
  • Loading branch information
Bernd Matzner authored and acliss19xx committed Oct 1, 2012
1 parent 2e48a84 commit a6ea8e8
Show file tree
Hide file tree
Showing 24 changed files with 43 additions and 45 deletions.
2 changes: 1 addition & 1 deletion web/concrete/core/models/attribute/key.php
Expand Up @@ -9,7 +9,7 @@ public function getSearchIndexFieldDefinition() {
/**
* Returns the name for this attribute key
*/
public function getAttributeKeyName() { return $this->akName;}
public function getAttributeKeyName() { return t($this->akName);}

/**
* Returns the handle for this attribute key
Expand Down
2 changes: 1 addition & 1 deletion web/concrete/core/models/attribute/set.php
Expand Up @@ -35,7 +35,7 @@ public static function getListByPackage($pkg) {

public function getAttributeSetID() {return $this->asID;}
public function getAttributeSetHandle() {return $this->asHandle;}
public function getAttributeSetName() {return $this->asName;}
public function getAttributeSetName() {return t($this->asName);}
public function getPackageID() {return $this->pkgID;}
public function getPackageHandle() {return PackageList::getHandle($this->pkgID);}
public function getAttributeSetKeyCategoryID() {return $this->akCategoryID;}
Expand Down
4 changes: 2 additions & 2 deletions web/concrete/core/models/attribute/type.php
Expand Up @@ -4,7 +4,7 @@ class Concrete5_Model_AttributeType extends Object {

public function getAttributeTypeID() {return $this->atID;}
public function getAttributeTypeHandle() {return $this->atHandle;}
public function getAttributeTypeName() {return $this->atName;}
public function getAttributeTypeName() {return t($this->atName);}
public function getController() {return $this->controller;}

public static function getByID($atID) {
Expand Down Expand Up @@ -258,4 +258,4 @@ public function install() {
$at = parent::add($this->atHandle, $this->atName);
}

}
}
4 changes: 2 additions & 2 deletions web/concrete/core/models/block.php
Expand Up @@ -674,7 +674,7 @@ function getBlockCollectionID() {
}

function getBlockTypeName() {
return $this->btName;
return t($this->btName);
}

function getBlockTypeHandle() {
Expand Down Expand Up @@ -733,7 +733,7 @@ function getBlockUserID() {
}

function getBlockName() {
return $this->bName;
return t($this->bName);
}

/**
Expand Down
5 changes: 2 additions & 3 deletions web/concrete/core/models/block_types.php
Expand Up @@ -468,7 +468,7 @@ public function canUnInstall() {
* @return string
*/
function getBlockTypeDescription() {
return $this->btDescription;
return t($this->btDescription);
}

/**
Expand Down Expand Up @@ -985,7 +985,7 @@ function getBlockAddAction(&$a, $alternateHandler = null) {


function getBlockTypeName() {
return $this->btName;
return t($this->btName);
}

function isInstalled() {
Expand Down Expand Up @@ -1017,4 +1017,3 @@ function hasCustomAddTemplate() {
}

}

4 changes: 2 additions & 2 deletions web/concrete/core/models/collection_types.php
Expand Up @@ -582,7 +582,7 @@ public function getCollectionTypeIconImage() {


public function getCollectionTypeID() { return $this->ctID; }
public function getCollectionTypeName() { return $this->ctName; }
public function getCollectionTypeName() { return t($this->ctName); }
public function getCollectionTypeHandle() { return $this->ctHandle; }
public function isCollectionTypeIncludedInComposer() {return $this->ctIncludeInComposer;}
public function isCollectionTypeInternal() {return $this->ctIsInternal;}
Expand All @@ -602,4 +602,4 @@ public function getPackageHandle() {
return PackageList::getHandle($this->pkgID);
}

}
}
4 changes: 2 additions & 2 deletions web/concrete/core/models/collection_version.php
Expand Up @@ -114,7 +114,7 @@ function isMostRecent() {return $this->cvIsMostRecent;}
function isNew() {return $this->cvIsNew;}
function getVersionID() {return $this->cvID;}
function getCollectionID() {return $this->cID;}
function getVersionName() {return $this->cvName;}
function getVersionName() {return t($this->cvName);}
function getVersionComments() {return $this->cvComments;}
function getVersionAuthorUserID() {return $this->cvAuthorUID;}
function getVersionApproverUserID() {return $this->cvApproverUID;}
Expand Down Expand Up @@ -400,4 +400,4 @@ function getVersionListCount() {

}

?>
?>
3 changes: 1 addition & 2 deletions web/concrete/core/models/file_set.php
Expand Up @@ -150,7 +150,7 @@ public function getFileSetID() {
}
public function overrideGlobalPermissions() {return $this->fsOverrideGlobalPermissions;}

public function getFileSetName() {return $this->fsName;}
public function getFileSetName() {return t($this->fsName);}

/**
* Creats a new fileset if set doesn't exists
Expand Down Expand Up @@ -344,4 +344,3 @@ public static function add($name, $searchRequest, $searchColumnsObject) {

}


2 changes: 1 addition & 1 deletion web/concrete/core/models/file_storage_location.php
Expand Up @@ -38,6 +38,6 @@ public function getByID($id) {
}

public function getID() {return $this->fslID;}
public function getName() {return $this->fslName;}
public function getName() {return t($this->fslName);}
public function getDirectory() {return $this->fslDirectory;}
}
4 changes: 2 additions & 2 deletions web/concrete/core/models/file_version.php
Expand Up @@ -18,7 +18,7 @@ public function getPrefix() {return $this->fvPrefix;}
public function getFileName() {return $this->fvFilename;}
public function getTitle() {return $this->fvTitle;}
public function getTags() {return $this->fvTags;}
public function getDescription() {return $this->fvDescription;}
public function getDescription() {return t($this->fvDescription);}
public function isApproved() {return $this->fvIsApproved;}

public function getGenericTypeText() {
Expand Down Expand Up @@ -581,4 +581,4 @@ public static function cleanTags($tagsStr){
//the leading and trailing line break char is for searching: fvTag like %\ntag\n%
return "\n".join("\n",$cleanTags)."\n";
}
}
}
4 changes: 2 additions & 2 deletions web/concrete/core/models/group_set.php
Expand Up @@ -44,7 +44,7 @@ public static function getListByPackage($pkg) {
}

public function getGroupSetID() {return $this->gsID;}
public function getGroupSetName() {return $this->gsName;}
public function getGroupSetName() {return t($this->gsName);}
public function getPackageID() {return $this->pkgID;}

public function updateGroupSetName($gsName) {
Expand Down Expand Up @@ -108,4 +108,4 @@ public function removeGroup(Group $g) {
$db->Execute('delete from GroupSetGroups where gsID = ? and gID = ?', array($this->getGroupSetID(), $g->getGroupID()));
}

}
}
6 changes: 3 additions & 3 deletions web/concrete/core/models/groups.php
Expand Up @@ -199,11 +199,11 @@ function getGroupID() {
}

function getGroupName() {
return $this->gName;
return t($this->gName);
}

function getGroupDescription() {
return $this->gDescription;
return t($this->gDescription);
}

/**
Expand Down Expand Up @@ -309,4 +309,4 @@ public function setGroupExpirationByInterval($days, $hours, $minutes, $action) {

}

?>
?>
6 changes: 3 additions & 3 deletions web/concrete/core/models/job.php
Expand Up @@ -34,8 +34,8 @@ function run(){
throw new Exception(t('Error: The Job::run() method must be overridden by your child Job class.'));
}

public function getJobName() {return $this->jName;}
public function getJobDescription() {return $this->jDescription;}
public function getJobName() {return t($this->jName);}
public function getJobDescription() {return t($this->jDescription);}
public function getJobHandle() {return $this->jHandle;}
public function getPackageHandle() {
return PackageList::getHandle($this->pkgID);
Expand Down Expand Up @@ -342,4 +342,4 @@ public static function clearLog() {

}

?>
?>
4 changes: 2 additions & 2 deletions web/concrete/core/models/layout_preset.php
Expand Up @@ -16,7 +16,7 @@ class Concrete5_Model_LayoutPreset extends Object{
protected $layoutID=0;

public function getLayoutPresetID(){ return $this->lpID; }
public function getLayoutPresetName(){ return $this->lpName; }
public function getLayoutPresetName(){ return t($this->lpName); }
public function getLayoutID(){ return $this->layoutID; }
public function getLayoutObject() { return Layout::getById($this->layoutID); }

Expand Down Expand Up @@ -53,4 +53,4 @@ public function add($lpName, $layout) {
$db = Loader::db();
$db->Execute('insert into LayoutPresets (lpName, layoutID) values (?, ?)', array( $lpName, $layout->getLayoutID() ) );
}
}
}
4 changes: 2 additions & 2 deletions web/concrete/core/models/page_theme.php
Expand Up @@ -631,13 +631,13 @@ protected function install($dir, $ptHandle, $pkgID) {
}

public function getThemeID() {return $this->ptID;}
public function getThemeName() {return $this->ptName;}
public function getThemeName() {return t($this->ptName);}
public function getPackageID() {return $this->pkgID;}
public function getPackageHandle() {
return PackageList::getHandle($this->pkgID);
}
public function getThemeHandle() {return $this->ptHandle;}
public function getThemeDescription() {return $this->ptDescription;}
public function getThemeDescription() {return t($this->ptDescription);}
public function getThemeDirectory() {return $this->ptDirectory;}
public function getThemeURL() {return $this->ptURL;}
public function getThemeEditorCSS() {return $this->ptURL . '/' . PageTheme::FILENAME_TYPOGRAPHY_CSS;}
Expand Down
Expand Up @@ -8,7 +8,7 @@ public function getAccessEntityTypeObject() {
}
public function getAccessEntityTypeHandle() {return $this->petHandle;}
public function getAccessEntityID() {return $this->peID;}
public function getAccessEntityLabel() {return $this->label;}
public function getAccessEntityLabel() {return t($this->label);}
abstract public function getAccessEntityUsers(PermissionAccess $pa);
abstract public function getAccessEntityTypeLinkHTML();
abstract public static function getAccessEntitiesForUser($user);
Expand Down
2 changes: 1 addition & 1 deletion web/concrete/core/models/permission/access/entity/type.php
Expand Up @@ -4,7 +4,7 @@ class Concrete5_Model_PermissionAccessEntityType extends Object {

public function getAccessEntityTypeID() {return $this->petID;}
public function getAccessEntityTypeHandle() {return $this->petHandle;}
public function getAccessEntityTypeName() {return $this->petName;}
public function getAccessEntityTypeName() {return t($this->petName);}
public function getAccessEntityTypeClass() {
$class = Loader::helper('text')->camelcase($this->petHandle) . 'PermissionAccessEntity';
return $class;
Expand Down
4 changes: 2 additions & 2 deletions web/concrete/core/models/permission/key.php
Expand Up @@ -27,7 +27,7 @@ public function permissionKeyHasCustomClass() {return $this->pkHasCustomClass;}
/**
* Returns the name for this permission key
*/
public function getPermissionKeyName() { return $this->pkName;}
public function getPermissionKeyName() { return t($this->pkName);}

/**
* Returns the handle for this permission key
Expand All @@ -37,7 +37,7 @@ public function getPermissionKeyHandle() { return $this->pkHandle;}
/**
* Returns the description for this permission key
*/
public function getPermissionKeyDescription() { return $this->pkDescription;}
public function getPermissionKeyDescription() { return t($this->pkDescription);}

/**
* Returns the ID for this permission key
Expand Down
4 changes: 2 additions & 2 deletions web/concrete/core/models/system/antispam/library.php
Expand Up @@ -3,7 +3,7 @@
class Concrete5_Model_SystemAntispamLibrary extends Object {

public function getSystemAntispamLibraryHandle() { return $this->saslHandle;}
public function getSystemAntispamLibraryName() { return $this->saslName;}
public function getSystemAntispamLibraryName() { return t($this->saslName);}
public function isSystemAntispamLibraryActive() { return $this->saslIsActive;}
public function getPackageID() { return $this->pkgID;}
public function getPackageHandle() {
Expand Down Expand Up @@ -137,4 +137,4 @@ public function getController() {
return $cl;
}

}
}
4 changes: 2 additions & 2 deletions web/concrete/core/models/system/captcha/library.php
Expand Up @@ -3,7 +3,7 @@
class Concrete5_Model_SystemCaptchaLibrary extends Object {

public function getSystemCaptchaLibraryHandle() { return $this->sclHandle;}
public function getSystemCaptchaLibraryName() { return $this->sclName;}
public function getSystemCaptchaLibraryName() { return t($this->sclName);}
public function isSystemCaptchaLibraryActive() { return $this->sclIsActive;}
public function getPackageID() { return $this->pkgID;}
public function getPackageHandle() {
Expand Down Expand Up @@ -130,4 +130,4 @@ public function getController() {
return $cl;
}

}
}
4 changes: 2 additions & 2 deletions web/concrete/core/models/system_notification.php
Expand Up @@ -14,7 +14,7 @@ class Concrete5_Model_SystemNotification extends Object {
public function getSystemNotificationURL() {return $this->snURL;}
public function getSystemNotificationAlternateURL() {return $this->snURL2;}
public function getSystemNotificationTitle() {return $this->snTitle;}
public function getSystemNotificationDescription() {return $this->snDescription;}
public function getSystemNotificationDescription() {return t($this->snDescription);}
public function getSystemNotificationBody() {return $this->snBody;}
public function getSystemNotificationDateTime() {return $this->snDateTime;}
public function isSystemNotificationNew() {return $this->snIsNew;}
Expand Down Expand Up @@ -57,4 +57,4 @@ public static function getByID($snID) {
}
}

}
}
4 changes: 2 additions & 2 deletions web/concrete/core/models/workflow/model.php
Expand Up @@ -16,7 +16,7 @@ abstract class Concrete5_Model_Workflow extends Object {
public function getAllowedTasks() {return $this->allowedTasks;}

public function getWorkflowID() {return $this->wfID;}
public function getWorkflowName() {return $this->wfName;}
public function getWorkflowName() {return t($this->wfName);}
public function getWorkflowTypeObject() {
return WorkflowType::getByID($this->wftID);
}
Expand Down Expand Up @@ -110,4 +110,4 @@ public function getPermissionAccessObject() {
public function validateTrigger(WorkflowRequest $req) {
return true;
}
}
}
4 changes: 2 additions & 2 deletions web/concrete/core/models/workflow/progress/action.php
Expand Up @@ -54,7 +54,7 @@ public function getWorkflowProgressActionStyleInnerButtonRightHTML() {
return $this->wrActionStyleInnerButtonRight;
}
public function getWorkflowProgressActionLabel() {
return $this->wrActionLabel;
return t($this->wrActionLabel);
}
public function getWorkflowProgressActionTask() {
return $this->wrActionTask;
Expand All @@ -80,4 +80,4 @@ public function __construct() {
$this->setWorkflowProgressActionTask('approve');
}

}
}
2 changes: 1 addition & 1 deletion web/concrete/core/models/workflow/type.php
Expand Up @@ -4,7 +4,7 @@ class Concrete5_Model_WorkflowType extends Object {

public function getWorkflowTypeID() {return $this->wftID;}
public function getWorkflowTypeHandle() {return $this->wftHandle;}
public function getWorkflowTypeName() {return $this->wftName;}
public function getWorkflowTypeName() {return t($this->wftName);}

public static function getByID($wftID) {
$db = Loader::db();
Expand Down

0 comments on commit a6ea8e8

Please sign in to comment.