Added a new i18n tag for N/A in Project Manager.
Finished dashboard (main view) document.
This commit is contained in:
parent
d4689365c3
commit
fbb242fc5d
3 changed files with 135 additions and 2 deletions
|
|
@ -371,8 +371,8 @@ sub view {
|
|||
$hash->{'project.view.url'} = $self->getUrl("func=viewProject;projectId=".$projectId);
|
||||
$hash->{'project.name.data'} = $project->{name};
|
||||
$hash->{'project.description.data'} = $project->{description};
|
||||
$hash->{'project.startDate.data'} = $project->{startDate}?$datetime->epochToSet($project->{startDate}):"N/A";
|
||||
$hash->{'project.endDate.data'} = $project->{endDate}?$datetime->epochToSet($project->{endDate}):"N/A";
|
||||
$hash->{'project.startDate.data'} = $project->{startDate}?$datetime->epochToSet($project->{startDate}):$i18n->get("N_A");
|
||||
$hash->{'project.endDate.data'} = $project->{endDate}?$datetime->epochToSet($project->{endDate}):$i18n->get("N_A");
|
||||
$hash->{'project.cost.data.int'} = WebGUI::Utility::commify(int($project->{targetBudget}));
|
||||
$hash->{'project.cost.data.float'} = WebGUI::Utility::commify($project->{targetBudget});
|
||||
$hash->{'project.complete.data.int'} = int($project->{percentComplete});
|
||||
|
|
|
|||
|
|
@ -146,6 +146,53 @@ our $HELP = {
|
|||
{
|
||||
'name' => 'canEditProjects',
|
||||
},
|
||||
{
|
||||
'name' => 'project.delete.warning',
|
||||
},
|
||||
{
|
||||
'name' => 'noProjects',
|
||||
},
|
||||
{
|
||||
'name' => 'project.loop',
|
||||
'variables' => [
|
||||
{
|
||||
'name' => 'project.view.url',
|
||||
},
|
||||
{
|
||||
'name' => 'project.name.data',
|
||||
},
|
||||
{
|
||||
'name' => 'project.description.data',
|
||||
},
|
||||
{
|
||||
'name' => 'project.startDate.data',
|
||||
},
|
||||
{
|
||||
'name' => 'project.cost.data.int',
|
||||
},
|
||||
{
|
||||
'name' => 'project.cost.data.float',
|
||||
},
|
||||
{
|
||||
'name' => 'project.complete.data.int',
|
||||
},
|
||||
{
|
||||
'name' => 'project.complete.data.float',
|
||||
},
|
||||
{
|
||||
'name' => 'project.edit.url',
|
||||
},
|
||||
{
|
||||
'name' => 'project.edit.title',
|
||||
},
|
||||
{
|
||||
'name' => 'project.delete.url',
|
||||
},
|
||||
{
|
||||
'name' => 'project.delete.title',
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
fields => [ ],
|
||||
related => [
|
||||
|
|
|
|||
|
|
@ -268,6 +268,12 @@ our $I18N = {
|
|||
context => q|Abbreviation for predecessor|,
|
||||
},
|
||||
|
||||
'N_A' => {
|
||||
message => q|N/A|,
|
||||
context => q|This is the abbreviation for Not Available. The translated version should be short.|,
|
||||
lastUpdated => 1168969700
|
||||
},
|
||||
|
||||
'add task label' => {
|
||||
message => q|Add Task|,
|
||||
lastUpdated => 0
|
||||
|
|
@ -923,6 +929,86 @@ be useful, others may not.|,
|
|||
lastUpdated => 1168925749,
|
||||
},
|
||||
|
||||
'project.delete.warning' => {
|
||||
message => q|An internationalized message used in the default template as a javascript pop-up.|,
|
||||
lastUpdated => 1168969193,
|
||||
},
|
||||
|
||||
'noProjects' => {
|
||||
message => q|A conditional that is true if there are no project in the Project Manager.|,
|
||||
lastUpdated => 1168969193,
|
||||
},
|
||||
|
||||
'project.loop' => {
|
||||
message => q|A loop containing all projects that the current user is allowed to see.|,
|
||||
lastUpdated => 1168969193,
|
||||
},
|
||||
|
||||
'project.view.url' => {
|
||||
message => q|A URL to go to the screen to view this project.|,
|
||||
lastUpdated => 1168969193,
|
||||
},
|
||||
|
||||
'project.name.data' => {
|
||||
message => q|The name of this project.|,
|
||||
lastUpdated => 1168969193,
|
||||
},
|
||||
|
||||
'project.description.data' => {
|
||||
message => q|This project's description.|,
|
||||
lastUpdated => 1168969193,
|
||||
},
|
||||
|
||||
'project.startDate.data' => {
|
||||
message => q|The project's starting date in YYYY-MM-DD format. If no start date has been set, then it will have a short internationalized message.|,
|
||||
lastUpdated => 1168969193,
|
||||
},
|
||||
|
||||
'project.endDate.data' => {
|
||||
message => q|The project's starting date in YYYY-MM-DD format. If no start date has been set, then it will have a short internationalized message.|,
|
||||
lastUpdated => 1168969193,
|
||||
},
|
||||
|
||||
'project.cost.data.int' => {
|
||||
message => q|The project's cost as an integer (whole number) with commas inserted.|,
|
||||
lastUpdated => 1168969193,
|
||||
},
|
||||
|
||||
'project.cost.data.float' => {
|
||||
message => q|The project's cost with commas inserted.|,
|
||||
lastUpdated => 1168969193,
|
||||
},
|
||||
|
||||
'project.complete.data.int' => {
|
||||
message => q|Pecentage completion for the project, as an integer.|,
|
||||
lastUpdated => 1168969193,
|
||||
},
|
||||
|
||||
'project.complete.data.float' => {
|
||||
message => q|Pecentage completion for the project, as a floating number with two decimal places of accuracy.|,
|
||||
lastUpdated => 1168969193,
|
||||
},
|
||||
|
||||
'project.edit.url' => {
|
||||
message => q|If the current user has permission to edit projects, then this variable will have a URL to edit the project.|,
|
||||
lastUpdated => 1168969193,
|
||||
},
|
||||
|
||||
'project.edit.title' => {
|
||||
message => q|An internationalized label "Edit Project".|,
|
||||
lastUpdated => 1168969193,
|
||||
},
|
||||
|
||||
'project.delete.url' => {
|
||||
message => q|If the current user has permission to edit projects, then this variable will have a URL to delete the project.|,
|
||||
lastUpdated => 1168969193,
|
||||
},
|
||||
|
||||
'project.delete.title' => {
|
||||
message => q|An internationalized label "Delete Project".|,
|
||||
lastUpdated => 1168969193,
|
||||
},
|
||||
|
||||
};
|
||||
|
||||
1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue