internationalize getName for all Assets, bugfix 1239601
This commit is contained in:
parent
824a473694
commit
e19f50a481
18 changed files with 73 additions and 11 deletions
|
|
@ -172,7 +172,7 @@ Returns the displayable name of this asset.
|
|||
=cut
|
||||
|
||||
sub getName {
|
||||
return "File";
|
||||
return WebGUI::International::get('file',"Asset_File");
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -161,7 +161,7 @@ Returns the displayable name of this asset.
|
|||
=cut
|
||||
|
||||
sub getName {
|
||||
return "Image";
|
||||
return WebGUI::International::get('image',"Asset_Image");
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -204,7 +204,7 @@ Returns the displayable name of this asset.
|
|||
=cut
|
||||
|
||||
sub getName {
|
||||
return "File Pile";
|
||||
return WebGUI::International::get('file pile',"Asset_FilePile");
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
|
|
|
|||
|
|
@ -281,7 +281,7 @@ sub getImageUrl {
|
|||
|
||||
#-------------------------------------------------------------------
|
||||
sub getName {
|
||||
return "Post";
|
||||
return WebGUI::International::get('post',"Asset_Post");
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
|
|
|
|||
|
|
@ -174,7 +174,7 @@ sub getLockUrl {
|
|||
|
||||
#-------------------------------------------------------------------
|
||||
sub getName {
|
||||
return "Thread";
|
||||
return WebGUI::International::get('thread',"Asset_Thread");
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
|
|
|
|||
|
|
@ -125,7 +125,7 @@ Returns the displayable name of this asset.
|
|||
=cut
|
||||
|
||||
sub getName {
|
||||
return "Redirect";
|
||||
return WebGUI::International::get('redirect',"Asset_Redirect");
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -168,7 +168,7 @@ Returns the displayable name of this asset.
|
|||
=cut
|
||||
|
||||
sub getName {
|
||||
return "Snippet";
|
||||
return WebGUI::International::get('snippet',"Asset_Snippet");
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -218,7 +218,7 @@ Returns the displayable name of this asset.
|
|||
=cut
|
||||
|
||||
sub getName {
|
||||
return "Template";
|
||||
return WebGUI::International::get('template',"Asset_Template");
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -616,7 +616,7 @@ sub getIcon {
|
|||
|
||||
#-------------------------------------------------------------------
|
||||
sub getName {
|
||||
return "Collaboration System";
|
||||
return WebGUI::International::get('collaboration system',"Asset_collaboration");
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -120,7 +120,7 @@ Returns the displayable name of this asset.
|
|||
=cut
|
||||
|
||||
sub getName {
|
||||
return "Folder";
|
||||
return WebGUI::International::get("folder","Asset_Folder");
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,13 @@
|
|||
package WebGUI::i18n::English::Asset_Collaboration;
|
||||
|
||||
our $I18N = {
|
||||
|
||||
'collaboration system' => {
|
||||
message => q|Collaboration System|,
|
||||
context => q|label for Asset Manager|,
|
||||
lastUpdated => 1107391162,
|
||||
},
|
||||
|
||||
'preview' => {
|
||||
message => q|preview|,
|
||||
lastUpdated => 0,
|
||||
|
|
|
|||
|
|
@ -62,7 +62,12 @@ The type of the file (PDF, etc.)
|
|||
lastUpdated => 1106762088
|
||||
},
|
||||
|
||||
|
||||
'file' => {
|
||||
message => q|File|,
|
||||
context => q|label for Asset Manager, getName|,
|
||||
lastUpdated => 1121703035,
|
||||
},
|
||||
|
||||
'new file description' => {
|
||||
message => q|Enter the path to a file, or use the "Browse" button to find a file on your local hard drive that you would like to be uploaded.|,
|
||||
lastUpdated => 1119068745
|
||||
|
|
|
|||
|
|
@ -72,6 +72,12 @@ have the following properties:
|
|||
lastUpdated => 1107387324,
|
||||
},
|
||||
|
||||
'file pile' => {
|
||||
message => q|File Pile|,
|
||||
context => q|label for Asset Manager, getName|,
|
||||
lastUpdated => 1121702938,
|
||||
},
|
||||
|
||||
'upload files' => {
|
||||
message => q|Upload Files|,
|
||||
context => q|label for File Pile asset form|,
|
||||
|
|
|
|||
|
|
@ -108,6 +108,11 @@ If this Asset is a File, the URL to the actual file for downloading.
|
|||
lastUpdated => 1106683494,
|
||||
},
|
||||
|
||||
'folder' => {
|
||||
message => q|Folder|,
|
||||
context => q|label for Asset Manager|,
|
||||
lastUpdated => 1121703567,
|
||||
},
|
||||
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -16,6 +16,17 @@ as File Assets. Below are the properties that are specific to Image Assets:</P>
|
|||
lastUpdated => 1119409764,
|
||||
},
|
||||
|
||||
'image' => {
|
||||
message => q|Image|,
|
||||
context => q|label for Asset Manager, getName|,
|
||||
lastUpdated => 1121703104,
|
||||
},
|
||||
|
||||
'new file description' => {
|
||||
message => q|Enter the path to a file, or use the "Browse" button to find a file on your local hard drive that you would like to be uploaded.|,
|
||||
lastUpdated => 1119068745
|
||||
},
|
||||
|
||||
'Thumbnail size description' => {
|
||||
message => q|A thumbnail of the Image will be created and available for use in
|
||||
templates. The longest side of the thumbnail will be set to this size
|
||||
|
|
|
|||
|
|
@ -441,6 +441,17 @@ user subscribed to.
|
|||
lastUpdated => 1031514049
|
||||
},
|
||||
|
||||
'post' => {
|
||||
message => q|Post|,
|
||||
context => q|label for Asset Manager, getName|,
|
||||
lastUpdated => 1121703104,
|
||||
},
|
||||
|
||||
'new file description' => {
|
||||
message => q|Enter the path to a file, or use the "Browse" button to find a file on your local hard drive that you would like to be uploaded.|,
|
||||
lastUpdated => 1119068745
|
||||
},
|
||||
|
||||
};
|
||||
|
||||
1;
|
||||
|
|
|
|||
|
|
@ -30,6 +30,12 @@ The URL where the user will be redirected.
|
|||
lastUpdated => 1119574089,
|
||||
},
|
||||
|
||||
'redirect' => {
|
||||
message => q|Redirect|,
|
||||
context => q|label for Asset Manager, getName|,
|
||||
lastUpdated => 1121703197,
|
||||
},
|
||||
|
||||
};
|
||||
|
||||
1;
|
||||
|
|
|
|||
|
|
@ -166,6 +166,17 @@ The description of the collaboration system that this post is a part of.
|
|||
lastUpdated => 1111768115,
|
||||
},
|
||||
|
||||
'thread' => {
|
||||
message => q|Thread|,
|
||||
context => q|label for Asset Manager, getName|,
|
||||
lastUpdated => 1121703197,
|
||||
},
|
||||
|
||||
'new file description' => {
|
||||
message => q|Enter the path to a file, or use the "Browse" button to find a file on your local hard drive that you would like to be uploaded.|,
|
||||
lastUpdated => 1119068745
|
||||
},
|
||||
|
||||
};
|
||||
|
||||
1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue