diff options
Diffstat (limited to 'site/app/views/developers/addon_edit_properties.thtml')
-rw-r--r-- | site/app/views/developers/addon_edit_properties.thtml | 77 |
1 files changed, 39 insertions, 38 deletions
diff --git a/site/app/views/developers/addon_edit_properties.thtml b/site/app/views/developers/addon_edit_properties.thtml index 6850441..5efd28a 100644 --- a/site/app/views/developers/addon_edit_properties.thtml +++ b/site/app/views/developers/addon_edit_properties.thtml @@ -40,16 +40,16 @@ <?=$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>'; } if (!empty($errors)) { - echo '<div class="notice-error rounded"><span>One or more of your changes couldn\'t be saved.</span><br />Please look for the errors below. The rest of your changes were successfully saved.</div>'; + echo '<div class="notice-error rounded">'.___('devcp_notice_changes_error').'</div>'; } ?> - <h2>Edit Add-on Properties</h2> + <h2><?=___('devcp_edit_properties_header')?></h2> <?=$this->renderElement('noscript')?> <?=$this->renderElement('developers/rolecheck')?> <form id="addon-edit-properties-form" action="" method="post" enctype="multipart/form-data"> @@ -74,14 +74,14 @@ 'field' => 'name', 'translations' => $translations['name'], 'type' => 'textbox', - 'displayName' => 'Add-on Name', - 'description' => 'The name of your add-on is displayed everywhere your add-on is listed.' + 'displayName' => ___('devcp_edit_properties_transbox_name_name'), + 'description' => ___('devcp_edit_properties_transbox_name_description'), )); ?> <div class="field graybox rounded spaced" style="width: 600px;"> - <h4>Default Locale</h4> - <p>An add-on's default locale is the main locale in which translations must be present. If translations for your add-on's descriptions are unavailable in a user's selected language, they will fall back to this default locale.</p> + <h4><?=___('devcp_edit_properties_header_default_locale')?></h4> + <p><?=___('devcp_edit_properties_default_locale')?></p> <select name="data[Addon][defaultlocale]"> <?php // Retrieve language arrays from bootstrap. @@ -100,13 +100,13 @@ </div> <div class="field graybox rounded spaced<?=(!empty($errors['icon']) ? ' errors' : '')?>" style="width: 600px;"> - <h4>Add-on Icon</h4> + <h4><?=___('devcp_edit_properties_header_icon')?></h4> <?=(!empty($errors['icon']) ? '<div class="error-message">'.$errors['icon'].'</div>' : '')?> - <p>The add-on icon is a small image that is displayed next to your add-on's name in browse and search results, display pages, and in the add-on installation dialog. The image will automatically be resized to 32 x 32 pixels. Please use one of the following image types: <?=implode(', ', $this->controller->Developers->imageExtensions)?></p> + <p><?=sprintf(___('devcp_edit_properties_icon'), implode(', ', $this->controller->Developers->imageExtensions))?></p> <table width="100%" id="edit-properties-icon-table"> <tr> - <th style="width: 20%;">Current icon:</th> - <th>New icon:</th> + <th style="width: 20%;"><?=___('devcp_edit_properties_current_icon')?></th> + <th><?=___('devcp_edit_properties_new_icon')?></th> </tr> <tr> <td style="text-align: center;"> @@ -114,8 +114,8 @@ $addonIconPath = $this->controller->Image->getAddonIconURL($addon_id); echo '<img id="addon-icon" src="'.$addonIconPath.'" alt="" />'; if (!empty($addon['Addon']['icontype'])) { - echo '<div id="delete-icon-area" class="require-privs"><a href="#" onclick="addon_edit_properties.deleteIcon(); return false;">Remove Icon</a></div>'; - echo '<div id="undelete-icon-area" style="display: none;">Icon will be deleted on save. <a href="#" onclick="addon_edit_properties.undeleteIcon(); return false;">Cancel?</a></div>'; + echo '<div id="delete-icon-area" class="require-privs"><a href="#" onclick="addon_edit_properties.deleteIcon(); return false;">'.___('devcp_edit_properties_remove_icon').'</a></div>'; + echo '<div id="undelete-icon-area" style="display: none;">'.sprintf(___('devcp_edit_properties_undelete'), 'href="#" onclick="addon_edit_properties.undeleteIcon(); return false;"').'</div>'; echo '<input id="delete-icon" type="hidden" name="data[Addon][deleteIcon]" value="0" />'; } ?> @@ -131,8 +131,8 @@ 'field' => 'homepage', 'translations' => $translations['homepage'], 'type' => 'textbox', - 'displayName' => 'Add-on Homepage', - 'description' => 'If your add-on has another homepage, enter its address here. Adding other translations is not necessary unless your website is localized into other languages.' + 'displayName' => ___('devcp_edit_properties_transbox_homepage_name'), + 'description' => ___('devcp_edit_properties_transbox_homepage_description'), )); // Support Email @@ -140,8 +140,8 @@ 'field' => 'supportemail', 'translations' => $translations['supportemail'], 'type' => 'textbox', - 'displayName' => 'Support Email Address', - 'description' => 'If you have an email address for support inquiries, enter it here. Adding other translations is not necessary unless you have different email addresses for different languages.' + 'displayName' => ___('devcp_edit_properties_transbox_supportemail_name'), + 'description' => ___('devcp_edit_properties_transbox_supportemail_description'), )); // Support URL @@ -149,26 +149,27 @@ 'field' => 'supporturl', 'translations' => $translations['supporturl'], 'type' => 'textbox', - 'displayName' => 'Support Website', - 'description' => 'If your add-on has a support website or forum, enter its address here. Adding other translations is not necessary unless your website is localized into other languages.' + 'displayName' => ___('devcp_edit_properties_transbox_supporturl_name'), + 'description' => ___('devcp_edit_properties_transbox_supporturl_description'), )); ?> <div class="field graybox rounded spaced" style="width: 600px;"> - <h4>Other Settings</h4> - <h5>View Source Online</h5> - <p class="smallmargin">The source of your add-on files can be viewed online by any logged in user if you wish.</p> - <label class="indented"><input type="radio" name="data[Addon][viewsource]" value="1" <?=($addon['Addon']['viewsource'] == 0 ? '' : 'checked="checked"')?>/> Allow online source viewing</label> - <label class="indented"><input type="radio" name="data[Addon][viewsource]" value="0" <?=($addon['Addon']['viewsource'] == 0 ? 'checked="checked"' : '')?>/> Do not allow online source viewing</label> + <h4><?=___('devcp_edit_properties_header_other_settings')?></h4> + <h5><?=___('devcp_edit_properties_header_view_source')?></h5> + <p class="smallmargin"><?=___('devcp_edit_properties_view_source')?></p> + <label class="indented"><input type="radio" name="data[Addon][viewsource]" value="1" <?=($addon['Addon']['viewsource'] == 0 ? '' : 'checked="checked"')?>/> <?=___('devcp_edit_properties_view_source_allow')?></label> + <label class="indented"><input type="radio" name="data[Addon][viewsource]" value="0" <?=($addon['Addon']['viewsource'] == 0 ? 'checked="checked"' : '')?>/> <?=___('devcp_edit_properties_view_source_do_not_allow')?></label> <?php if ($addon['Addon']['addontype_id'] != ADDON_SEARCH): ?> - <h5>Add-on Flags</h5> - <p class="smallmargin">These flags are used to filter and classify add-ons.</p> + <h5><?=___('devcp_edit_properties_header_flags')?></h5> + <p class="smallmargin"><?=___('devcp_edit_properties_flags')?></p> <label class="indented"><input type="checkbox" name="data[Addon][prerelease]" value="1" <?=($addon['Addon']['prerelease'] == 1 ? 'checked="checked"' : '')?>/> <?=_('devcp_edit_label_prerelease')?></label> <label class="indented"><input type="checkbox" name="data[Addon][sitespecific]" value="1" <?=($addon['Addon']['sitespecific'] == 1 ? 'checked="checked"' : '')?>/> <?=_('devcp_edit_label_sitespecific')?></label> <label class="indented"><input type="checkbox" name="data[Addon][externalsoftware]" value="1" <?=($addon['Addon']['externalsoftware'] == 1 ? 'checked="checked"' : '')?> /> <?=_('devcp_edit_label_externalsoftware')?></label> - <label class="indented"><input type="checkbox" name="data[Addon][binary]" value="1" <?=($addon['Addon']['binary'] == 1 ? 'checked="checked"' : '')?> /> This add-on contains binary components</label> - + <label class="indented"><input type="checkbox" name="data[Addon][binary]" value="1" <?=($addon['Addon']['binary'] == 1 ? 'checked="checked"' : '')?> /> <?=___('devcp_edit_properties_label_binary')?></label> + <h5><?=___('devcp_edit_properties_header_guid')?></h5> + <p class="smallmargin"><?=___('devcp_edit_properties_guid')?></p> <h5>Add-on GUID</h5> <p class="smallmargin">The GUID of your add-on is specified in its install.rdf and uniquely identifies it. You cannot change your GUID once it is listed on <?=SITE_NAME?>.</p> <label class="indented"><tt><?=$addon['Addon']['guid']?></tt></label> @@ -177,12 +178,12 @@ <?php if ($this->controller->SimpleAcl->actionAllowed('Admin', 'ConfigureAnyAddon', $this->controller->Session->read('User'))): ?> <div class="field graybox rounded spaced" style="width: 600px;"> - <h4>Admin Settings</h4> - <h5>Trusted Add-on?</h5> - <p class="smallmargin">Trusted add-ons can become public without Editor review.</p> - <label class="indented"><input type="radio" name="data[Addon][trusted]" value="1" <?=($addon['Addon']['trusted'] == 1 ? 'checked="checked"' : '')?>/> Trusted</label> - <label class="indented"><input type="radio" name="data[Addon][trusted]" value="0" <?=($addon['Addon']['trusted'] == 1 ? '' : 'checked="checked"')?>/> Not Trusted</label> - <h5>Add-on Type</h5> + <h4><?=___('devcp_edit_properties_header_admin_settings')?></h4> + <h5><?=___('devcp_edit_properties_header_trusted')?></h5> + <p class="smallmargin"><?=___('devcp_edit_properties_trusted')?></p> + <label class="indented"><input type="radio" name="data[Addon][trusted]" value="1" <?=($addon['Addon']['trusted'] == 1 ? 'checked="checked"' : '')?>/> <?=___('devcp_edit_properties_label_trusted')?></label> + <label class="indented"><input type="radio" name="data[Addon][trusted]" value="0" <?=($addon['Addon']['trusted'] == 1 ? '' : 'checked="checked"')?>/> <?=___('devcp_edit_properties_label_not_trusted')?></label> + <h5><?=___('devcp_edit_properties_header_addon_type')?></h5> <select name="data[Addon][addontype_id]"> <?php if (!empty($addontypes)) { @@ -193,8 +194,8 @@ ?> </select> - <h5>Add-on GUID</h5> - <p class="smallmargin">Only change if you understand all of the consequences.</p> + <h5><?=___('devcp_edit_properties_header_guid')?></h5> + <p class="smallmargin"><?=___('devcp_edit_properties_change_guid')?></p> <input type="text" name="data[Addon][guid]" value="<?=$addon['Addon']['guid']?>" size="50" /> <?php if (in_array($addon['Addon']['addontype_id'], array(ADDON_DICT, ADDON_LPAPP))): ?> @@ -208,7 +209,7 @@ </div> <?php endif; ?> - <div class="action-button-container centered" style="width: 600px;"><a href="#" onclick="addon_edit_properties.save(); return false;" class="action-button rounded">Update Properties</a></div> + <div class="action-button-container centered" style="width: 600px;"><a href="#" onclick="addon_edit_properties.save(); return false;" class="action-button rounded"><?=___('devcp_edit_properties_button_update')?></a></div> </form> </div> </div> |