Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/site/app/views/developers/dashboard.thtml
diff options
context:
space:
mode:
Diffstat (limited to 'site/app/views/developers/dashboard.thtml')
-rw-r--r--site/app/views/developers/dashboard.thtml23
1 files changed, 15 insertions, 8 deletions
diff --git a/site/app/views/developers/dashboard.thtml b/site/app/views/developers/dashboard.thtml
index 14bd92a..4659ece 100644
--- a/site/app/views/developers/dashboard.thtml
+++ b/site/app/views/developers/dashboard.thtml
@@ -40,7 +40,7 @@
<?=$this->renderElement('developers/sidebar', array('addons' => $all_addons));?>
<div id="content-main">
- <h3>Developer Dashboard</h3>
+ <h3><?= ___('devcp_dashboard_header_main') ?></h3>
<div id="summary">
<?php
@@ -62,10 +62,13 @@
echo '<ul class="actionbar index-actions">';
// Edit Add-on
echo '<li class="edit"><a href="'.$html->url('/developers/addon/edit/'.$addon_id).'" class="view">'._('devcp_actionbar_link_edit').'</a>';
- echo '<span class="action-details">'.sprintf('Last edited on %s', strftime(_('date'), strtotime($addon['Addon']['modified']))).'</span></li>';
+ echo '<span class="action-details">'.sprintf(___('devcp_dashboard_last_edited'), strftime(_('date'), strtotime($addon['Addon']['modified']))).'</span></li>';
// Change Status
- echo '<li class="status"><a href="'.$html->url('/developers/addon/status/'.$addon_id).'" class="view">Change Status</a>';
- echo '<span class="action-details">'.sprintf('%s currently %s and %s', $addontypes[$addon['Addon']['addontype_id']], '<span class="inactive-'.$addon['Addon']['inactive'].'">'.($addon['Addon']['inactive'] == 1 ? 'Inactive' : 'Active').'</span>', '<span class="status-'.$addon['Addon']['status'].'">'.$statuses[$addon['Addon']['status']].'</span>').'</span></li>';
+ echo '<li class="status"><a href="'.$html->url('/developers/addon/status/'.$addon_id).'" class="view">'.___('devcp_dashboard_change_status').'</a>';
+ $active = $addon['Addon']['inactive'] == 1 ? ___('devcp_dashboard_inactive') : ___('devcp_dashboard_active');
+ echo '<span class="action-details">'.sprintf(___('devcp_dashboard_addontype_status'), $addontypes[$addon['Addon']['addontype_id']],
+ '<span class="inactive-'.$addon['Addon']['inactive'].'">'.$active.'</span>',
+ '<span class="status-'.$addon['Addon']['status'].'">'.$statuses[$addon['Addon']['status']].'</span>').'</span></li>';
// Statistics Dashboard
echo '<li class="statistics"><a href="'.$html->url('/statistics/addon/'.$addon_id).'" class="view">'._('devcp_actionbar_link_stats').'</a>';
echo '<span class="action-details stats">';
@@ -76,7 +79,7 @@
echo sprintf(_('devcp_statsbar_adu'), $html->number_format($addon['Addon']['updatepings'], 0));
echo '</span></li>';
// Versions and Files
- echo '<li class="versions"><a href="'.$html->url('/developers/versions/'.$addon_id).'" class="view">Versions and Files</a>';
+ echo '<li class="versions"><a href="'.$html->url('/developers/versions/'.$addon_id).'" class="view">'.___('devcp_dashboard_versions').'</a>';
echo '<span class="action-details">';
if (!empty($latestVersion)) {
echo _('devcp_summary_lastversion').' '.$html->link($latestVersion['version'], '/developers/versions/edit/'.$latestVersion['id']).' ('.$this->controller->Amo->describeVersionStatus($latestVersion['File']).')';
@@ -85,7 +88,7 @@
}
}
if ($addon['Addon']['inactive'] != 1) {
- echo '<a href="'.$html->url('/developers/versions/add/'.$addon_id).'">Upload a new version</a>';
+ echo '<a href="'.$html->url('/developers/versions/add/'.$addon_id).'">'.___('devcp_dashboard_versions_new').'</a>';
}
echo '</span></li>';
// Previews
@@ -94,8 +97,8 @@
}
else {
// Admin Disabled Add-on
- echo '<p>Add-on Status: <span class="status-'.STATUS_DISABLED.'">'.$statuses[STATUS_DISABLED].'</span></p>';
- echo '<p>Your add-on was disabled by an administrator and cannot be used. If you have any questions, please e-mail'.ADMIN_EMAIL.'.</p>';
+ echo '<p>'.sprintf(___('devcp_dashboard_disabled_status'), '<span class ="'.STATUS_DISABLED.'">'.$statuses[STATUS_DISABLED].'</span>').'</p>';
+ echo '<p>'.sprintf(___('devcp_dashboard_disabled_questions'), 'amo-admins@mozilla.org').'</p>';
}
?>
</div>
@@ -106,6 +109,10 @@
}
else {
echo '<div class="graybox rounded">';
+ echo '<h4>'.___('devcp_dashboard_header_welcome').'</h4>';
+ echo '<p>'.___('devcp_dashboard_learn').'</p>';
+ echo '<div style="text-align: center;"><a href="'.$html->url('/developers/addon/submit').'" class="action-button rounded">'.___('devcp_dashboard_start').'</a></div>';
+
echo '<h4>Welcome to the Developer Dashboard</h4>';
echo '<p>You don\'t currently have any add-ons hosted on '.SITE_NAME.'. To learn how the process works and submit your first add-on, click Get Started below.</p>';
echo '<div style="text-align: center;"><a href="'.$html->url('/developers/addon/submit').'" class="action-button rounded">Get Started</a></div>';