i18n the image labels and title for the asset manager, manage screen.

Also, display the username instead of the userId.
This commit is contained in:
Colin Kuskie 2009-02-06 19:32:05 +00:00
parent 911e30c43c
commit 6be6c0bb11
3 changed files with 20 additions and 6 deletions

View file

@ -287,7 +287,7 @@ sub www_ajaxGetManagerPage {
revisionDate => $asset->get( "revisionDate" ),
childCount => $asset->getChildCount,
assetSize => $asset->get( 'assetSize' ),
lockedBy => $asset->get( 'isLockedBy' ),
lockedBy => ($asset->get( 'isLockedBy' ) ? $asset->lockedBy->username : ''),
actions => $asset->canEdit && $asset->canEditIfLocked,
);

View file

@ -1178,6 +1178,18 @@ Couldn't open %-s because %-s <br />
context => q{Error message in exportAsHtml for an illegal parameter.},
},
'unlocked' => {
message => q{unlocked},
lastUpdated => 0,
context => q{Asset Manager label, when an asset is unlocked.},
},
'locked by' => {
message => q{locked by},
lastUpdated => 0,
context => q{Asset Manager label, as in "locked by admin"},
},
};
1;

View file

@ -151,12 +151,12 @@ WebGUI.AssetManager.formatLockedBy = function ( elCell, oRecord, oColumn, orderN
elCell.innerHTML
= oRecord.getData( 'lockedBy' )
? '<a href="' + WebGUI.AssetManager.appendToUrl(oRecord.getData( 'url' ), 'func=manageRevisions') + '">'
+ '<img src="' + extras + '/assetManager/locked.gif" alt="locked by ' + oRecord.getData( 'lockedBy' ) + '" '
+ 'title="locked by ' + oRecord.getData( 'lockedBy' ) + '" border="0" />'
+ '<img src="' + extras + '/assetManager/locked.gif" alt="' + WebGUI.AssetManager.i18n.get('WebGUI', 'locked by') + ' ' + oRecord.getData( 'lockedBy' ) + '" '
+ 'title="' + WebGUI.AssetManager.i18n.get('WebGUI', 'locked by') + ' ' + oRecord.getData( 'lockedBy' ) + '" border="0" />'
+ '</a>'
: '<a href="' + WebGUI.AssetManager.appendToUrl(oRecord.getData( 'url' ), 'func=manageRevisions') + '">'
+ '<img src="' + extras + '/assetManager/unlocked.gif" alt="unlocked" '
+ 'title="unlocked" border="0" />'
+ '<img src="' + extras + '/assetManager/unlocked.gif" alt="' + WebGUI.AssetManager.i18n.get('WebGUI', 'unlocked') + '" '
+ 'title="' + WebGUI.AssetManager.i18n.get('WebGUI', 'unlocked') +'" border="0" />'
+ '</a>'
;
};
@ -231,7 +231,9 @@ WebGUI.AssetManager.initManager = function (o) {
namespaces : {
'Asset' : [
"edit",
"More"
"More",
"unlocked",
"locked by"
],
'WebGUI' : [
"< prev",