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:
parent
911e30c43c
commit
6be6c0bb11
3 changed files with 20 additions and 6 deletions
|
|
@ -287,7 +287,7 @@ sub www_ajaxGetManagerPage {
|
||||||
revisionDate => $asset->get( "revisionDate" ),
|
revisionDate => $asset->get( "revisionDate" ),
|
||||||
childCount => $asset->getChildCount,
|
childCount => $asset->getChildCount,
|
||||||
assetSize => $asset->get( 'assetSize' ),
|
assetSize => $asset->get( 'assetSize' ),
|
||||||
lockedBy => $asset->get( 'isLockedBy' ),
|
lockedBy => ($asset->get( 'isLockedBy' ) ? $asset->lockedBy->username : ''),
|
||||||
actions => $asset->canEdit && $asset->canEditIfLocked,
|
actions => $asset->canEdit && $asset->canEditIfLocked,
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1178,6 +1178,18 @@ Couldn't open %-s because %-s <br />
|
||||||
context => q{Error message in exportAsHtml for an illegal parameter.},
|
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;
|
1;
|
||||||
|
|
|
||||||
|
|
@ -151,12 +151,12 @@ WebGUI.AssetManager.formatLockedBy = function ( elCell, oRecord, oColumn, orderN
|
||||||
elCell.innerHTML
|
elCell.innerHTML
|
||||||
= oRecord.getData( 'lockedBy' )
|
= oRecord.getData( 'lockedBy' )
|
||||||
? '<a href="' + WebGUI.AssetManager.appendToUrl(oRecord.getData( 'url' ), 'func=manageRevisions') + '">'
|
? '<a href="' + WebGUI.AssetManager.appendToUrl(oRecord.getData( 'url' ), 'func=manageRevisions') + '">'
|
||||||
+ '<img src="' + extras + '/assetManager/locked.gif" alt="locked by ' + oRecord.getData( 'lockedBy' ) + '" '
|
+ '<img src="' + extras + '/assetManager/locked.gif" alt="' + WebGUI.AssetManager.i18n.get('WebGUI', 'locked by') + ' ' + oRecord.getData( 'lockedBy' ) + '" '
|
||||||
+ 'title="locked by ' + oRecord.getData( 'lockedBy' ) + '" border="0" />'
|
+ 'title="' + WebGUI.AssetManager.i18n.get('WebGUI', 'locked by') + ' ' + oRecord.getData( 'lockedBy' ) + '" border="0" />'
|
||||||
+ '</a>'
|
+ '</a>'
|
||||||
: '<a href="' + WebGUI.AssetManager.appendToUrl(oRecord.getData( 'url' ), 'func=manageRevisions') + '">'
|
: '<a href="' + WebGUI.AssetManager.appendToUrl(oRecord.getData( 'url' ), 'func=manageRevisions') + '">'
|
||||||
+ '<img src="' + extras + '/assetManager/unlocked.gif" alt="unlocked" '
|
+ '<img src="' + extras + '/assetManager/unlocked.gif" alt="' + WebGUI.AssetManager.i18n.get('WebGUI', 'unlocked') + '" '
|
||||||
+ 'title="unlocked" border="0" />'
|
+ 'title="' + WebGUI.AssetManager.i18n.get('WebGUI', 'unlocked') +'" border="0" />'
|
||||||
+ '</a>'
|
+ '</a>'
|
||||||
;
|
;
|
||||||
};
|
};
|
||||||
|
|
@ -231,7 +231,9 @@ WebGUI.AssetManager.initManager = function (o) {
|
||||||
namespaces : {
|
namespaces : {
|
||||||
'Asset' : [
|
'Asset' : [
|
||||||
"edit",
|
"edit",
|
||||||
"More"
|
"More",
|
||||||
|
"unlocked",
|
||||||
|
"locked by"
|
||||||
],
|
],
|
||||||
'WebGUI' : [
|
'WebGUI' : [
|
||||||
"< prev",
|
"< prev",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue