Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/site/app/views/developers/addon_edit_categories.thtml
diff options
context:
space:
mode:
Diffstat (limited to 'site/app/views/developers/addon_edit_categories.thtml')
-rw-r--r--site/app/views/developers/addon_edit_categories.thtml28
1 files changed, 14 insertions, 14 deletions
diff --git a/site/app/views/developers/addon_edit_categories.thtml b/site/app/views/developers/addon_edit_categories.thtml
index e9ab173..20e5e22 100644
--- a/site/app/views/developers/addon_edit_categories.thtml
+++ b/site/app/views/developers/addon_edit_categories.thtml
@@ -40,13 +40,13 @@
<?=$this->renderElement('developers/sidebar', array('addons' => $all_addons, 'extra' => 'developers/editbox'));?>
<div id="content-main" class="<?=($author_role >= AUTHOR_ROLE_DEV ? 'privs' : 'no-privs')?>">
- <?=$this->renderElement('developers/addonheader', array('title' => "Edit {$addon_name}", 'addon_id' => $addon_id));?>
+ <?=$this->renderElement('developers/addonheader', array('title' => sprintf(___('devcp_title_edit_addon'), $addon_name), 'addon_id' => $addon_id));?>
<?php
if (!empty($success)) {
- echo '<div class="notice-success rounded"><span>Your changes have been saved.</span><br />Please note that some changes may take several hours to appear in all areas of the website.</div>';
+ echo '<div class="notice-success rounded">'.___('devcp_notice_changes_saved').'</div>';
}
?>
- <h2>Manage Add-on Categories</h2>
+ <h2><?=___('devcp_edit_categories_header_manage')?></h2>
<?=$this->renderElement('noscript')?>
<?=$this->renderElement('developers/rolecheck')?>
<?php
@@ -58,15 +58,15 @@
echo '<div class="edit-categories-box field graybox rounded spaced app-'.$application_id.'">';
echo '<h4 style="border-bottom: none;">'.$html->image('app-icons/'.strtolower($applications[$application_id]).'_small.png', array('alt' => $applications[$application_id]));
- echo sprintf('%s Categories', $applications[$application_id]).'</h4>';
+ echo sprintf(___('devcp_edit_categories_header_application'), $applications[$application_id]).'</h4>';
if (!empty($tags)) {
- echo '<p>'.sprintf('Select up to three %s categories for your add-on', $applications[$application_id]).':</p>';
+ echo '<p>'.sprintf(___('devcp_edit_categories_select_application_categories'), $applications[$application_id]).':</p>';
echo '<table style="width: 100%;"><tr><td style="width: 50%;">';
for ($i = 1; $i <= 3; $i++) {
$selected = false;
- echo '<label>'.sprintf('Category %s', $i).':&nbsp;';
+ echo '<label>'.sprintf(___('devcp_edit_categories_label_category_num'), $i).':&nbsp;';
echo '<select name="data[Tag]['.$application_id.'][]"'.($otherSelected ? ' disabled="disabled"' : '').'>';
- echo '<option value="" style="color: gray;">(none selected)</option>';
+ echo '<option value="" style="color: gray;">'.___('devcp_edit_authors_option_empty').'</option>';
foreach ($tags as $tag_id => $tag_name) {
if ($otherTags[$application_id] == $tag_id)
continue;
@@ -83,25 +83,25 @@
echo '</select></label>';
}
if (!empty($otherTags[$application_id])) {
- echo '<label onmouseover="addon_edit_categories.updateDescription('.$application_id.', \''.$html->entities('<strong>'.$sortedTags[$application_id][$otherTags[$application_id]].'</strong><br />Place your add-on into this category only if it does not fit into any other available categories.').'\');">';
+ echo '<label onmouseover="addon_edit_categories.updateDescription('.$application_id.', \''.$html->entities('<strong>'.$sortedTags[$application_id][$otherTags[$application_id]].'</strong><br />'.___('devcp_edit_categories_other')).'\');">';
echo '<input type="checkbox" name="data[Tag]['.$application_id.'][]" value="'.$otherTags[$application_id].'" onclick="addon_edit_categories.toggleDropdowns(this, '.$application_id.');"'.($otherSelected ? ' checked="checked"' : '').' />&nbsp;';
- echo 'My add-on doesn\'t fit into any available categories.';
+ echo ___('devcp_edit_categories_does_not_fit');
echo '</label>';
}
- echo '</td><td id="edit-categories-descriptions'.$application_id.'" style="border-left: 1px solid #CCCCCC;">Hover over a category to see its description.</td></tr></table>';
+ echo '</td><td id="edit-categories-descriptions'.$application_id.'" style="border-left: 1px solid #CCCCCC;">'.___('devcp_edit_categories_hover').'</td></tr></table>';
}
else {
- echo '<p>'.'No categories are available for this add-on type and application.'.'</p>';
+ echo '<p>'.___('devcp_edit_categories_none_available').'</p>';
}
echo '</div>';
}
- echo '<div class="action-button-container centered"><a href="#" onclick="addon_edit_categories.save(); return false;" class="action-button rounded">Update Categories</a></div>';
+ echo '<div class="action-button-container centered"><a href="#" onclick="addon_edit_categories.save(); return false;" class="action-button rounded">'.___('devcp_edit_categories_button_update').'</a></div>';
echo '</form>';
}
else {
- echo '<p>'.'No categories are available for this add-on type and application.'.'</p>';
+ echo '<p>'.___('devcp_edit_categories_none_available').'</p>';
}
?>
</div>
-</div> \ No newline at end of file
+</div>