diff options
Diffstat (limited to 'site/app/views/developers/uploader.thtml')
-rw-r--r-- | site/app/views/developers/uploader.thtml | 55 |
1 files changed, 28 insertions, 27 deletions
diff --git a/site/app/views/developers/uploader.thtml b/site/app/views/developers/uploader.thtml index 7a16fc2..6d5c425 100644 --- a/site/app/views/developers/uploader.thtml +++ b/site/app/views/developers/uploader.thtml @@ -47,14 +47,14 @@ echo '<div id="content-main" class="'.($type != 'new' && $author_role < AUTHOR_ROLE_DEV ? 'no-privs' : 'privs').'">'; if ($type == 'new') { - $title = 'Submit New Add-on'; + $title = ___('devcp_uploader_title_submit'); $addon_id = 0; } elseif ($type == 'update') { - $title = sprintf('Update %s', $addon_name); + $title = sprintf(___('devcp_uploader_title_update'), $addon_name); } elseif ($type == 'file') { - $title = sprintf('Add File to %s', "{$addon_name} {$version}"); + $title = sprintf(___('devcp_uploader_title_file'), $addon_name, $version); } echo $this->renderElement('developers/addonheader', array('title' => $title, 'addon_id' => $addon_id)); ?> @@ -63,6 +63,10 @@ <div id="submission-area" class="rounded graybox"> <?php if ($type == 'new'): ?> <div id="step-intro"> + <h3><?=___('devcp_uploader_header_how')?></h3> + <?=___('devcp_uploader_how')?> + <div style="text-align: center;"><a href="#" onclick="upload.showAgreement(); return false;" class="action-button rounded"><?=___('devcp_uploader_a_start')?></a></div> + <h3>How does it all work?</h3> <p>Thanks for your interest in submitting your add-on to <?=SITE_NAME?>. Hosting your add-on on <?=SITE_NAME?> is the easiest way to handle distribution of your add-on. Here's what you'll get:</p> <ul> @@ -87,16 +91,16 @@ <?php endif; ?> <div id="file-upload"<?=($type == 'new' ? ' style="display: none;"' : '')?>> - <h3>Upload Your File</h3> - <p>Upload your add-on file using the form below. If you have multiple, platform-specific files to upload, choose a single file and then upload the others using the Versions and Files Manager.</p> + <h3><?=___('devcp_uploader_header_upload')?></h3> + <p><?=___('devcp_uploader_p_upload')?> <br /> <form id="upload-form" method="post" enctype="multipart/form-data" action="<?=$html->url('/developers/json/fileupload/'.$type)?>" target="upload-frame" onsubmit="return upload.uploadFile();"> <?=$html->hiddenSession();?> <?=(!empty($addon_id) ? '<input type="hidden" name="data[Addon][id]" value="'.$addon_id.'" />' : '')?> <?=(!empty($version_id) ? '<input type="hidden" name="data[Version][id]" value="'.$version_id.'" />' : '')?> - <label>Add-on File: <input id="upload-field" type="file" name="file" /></label><br /> - Supported Platforms: <label><input type="radio" name="platformtype" onclick="upload.platformAll();" checked /> All</label> - <label><input type="radio" name="platformtype" onclick="upload.platformSpecific();" /> Specific:</label> + <label><?=___('devcp_uploader_label_upload_field')?><input id="upload-field" type="file" name="file" /></label><br /> + <?=___('devcp_uploader_label_platformtype')?> <label><input type="radio" name="platformtype" onclick="upload.platformAll();" checked /> <?=___('devcp_uploader_platformtype_all')?></label> + <label><input type="radio" name="platformtype" onclick="upload.platformSpecific();" /> <?=___('devcp_uploader_platformtype_specific')?></label> <?php $platforms = $this->controller->Platform->getNames(); foreach ($platforms as $platform_id => $platform_name) { @@ -107,13 +111,13 @@ <div class="submit"> <input type="submit" value="Upload File" class="require-privs" /> </div> - <div id="upload-loading"><?=$html->image('ajax_loading.gif')?> Uploading file...</div> + <div id="upload-loading"><?=$html->image('ajax_loading.gif')?> <?=___('devcp_uploader_ajax_loading')?></div> </form> <div id="upload-error" class="redbox-tr"><div class="redbox-tl"> <div id="upload-error-content"> - <h4>Oops! There seems to be a problem with this file...</h4> + <h4><?=___('devcp_uploader_header_error')?></h4> <p id="upload-error-text" class="smallmargin"></p> - <p class="smallmargin">Please correct this problem and upload your file again.</p> + <p class="smallmargin"><?=___('devcp_uploader_error_correct')?></p> </div> <div class="redbox-br"><div class="redbox-bl"></div></div> </div></div> @@ -124,33 +128,30 @@ <div id="upload-success" class="greenbox-tr"><div class="greenbox-tl"> <?php if ($type == 'new'): ?> <div id="addon-created-content"> - <h3>Add-on Created!</h3> + <h3><?=___('devcp_uploader_header_created')?> <div id="created-results"> - <p>Your add-on listing has been successfully created. The basic information obtained from your uploaded file has been stored, but there's a lot more to your listing that can be customized.</p> - <p>Your add-on is currently marked as <strong>Incomplete</strong>. In order to complete your add-on, you'll need to make sure it has an accurate name, summary, and description, as well as at least one selected category. You can edit your add-on's information using the link below and check the status of your add-on at any time on the <a id="status-link" href="<?=$html->url('/developers/addon/status/')?>">status page</a>.</p> - - <div class="action-button-container centered"><a id="complete-link" href="<?=$html->url('/developers/addon/edit/')?>" class="action-button rounded">Edit My Add-on</a></div> - <div style="text-align: center;"><a href="<?=$html->url('/developers')?>">I'll complete my add-on later.</a></div> + <?=sprintf(___('devcp_uploader_created_results'), 'href="/developers/addon/status/" id="status-link"')?> + <div class="action-button-container centered"><a id="complete-link" href="<?=$html->url('/developers/addon/edit/')?>" class="action-button rounded"><?=___('devcp_uploader_button_edit')?></a></div> + <div style="text-align: center;"><a href="<?=$html->url('/developers')?>"><?=___('devcp_uploader_button_later')?></a></div> </div> </div><!-- /#addon-created-content --> <?php elseif ($type == 'update'): ?> <div id="version-created-content"> - <h3>Version <span id="new-version-number"></span> Created!</h3> + <h3><?=sprintf(___('devcp_uploader_header_update_created'), '<span id="new-version-number"></span>')?></h3> <div id="created-results"> - <p>Your new version has been created and is currently marked as <span id="new-file-status"></span>.</p> - <p id="pending-message">The new version will be available to the public as soon as an editor is able to review it. There are currently <span id="queue-count"></span> other add-ons in the queue. Want to be reviewed faster? Consider <a href="http://wiki.sugarlabs.org/go/ActivityTeam/aslo">becoming an editor</a>.</p> - <p>View your new version in the <a id="version-link" href="<?=$html->url('/developers/versions/edit/')?>">Versions and Files page</a>, check out your add-on's <a href="<?=$html->url('/developers/addon/status/'.$addon_id)?>">current status</a>, or <b>add release notes</b> by clicking the button below (highly recommended).</p> - - <div class="action-button-container centered"><a id="complete-link" href="<?=$html->url('/developers/versions/edit/')?>" class="action-button rounded">Add Release Notes</a></div> + <p><?=sprintf(___('devcp_uploader_p_update_created'), '<span id="new-file-status"></span>')?></p> + <p id="pending-message"><?=sprintf(___('devcp_uploader_p_pending_version'), '<span id="queue-count"></span>', 'href="https://wiki.mozilla.org/Update:Editors"')?></p> + <p><?=sprintf(___('devcp_uploader_p_update_version'), '/developers/versions/edit/', '/developers/addon/status/'.$addon_id)?> + <div class="action-button-container centered"><a id="complete-link" href="<?=$html->url('/developers/versions/edit/')?>" class="action-button rounded"><?=___('devcp_uploader_button_release')?></a></div> </div> </div><!-- /#version-created-content --> <?php elseif ($type == 'file'): ?> <div id="file-created-content"> - <h3>File Added!</h3> + <h3><?=___('devcp_uploader_header_file_added')?></h3> <div id="created-results"> - <p>Your new file has been added to version <?=$version?> and is currently marked as <span id="new-file-status"></span>.</p> - <p id="pending-message">The new version will be available to the public as soon as an editor is able to review it. There are currently <span id="queue-count"></span> other add-ons in the queue. Want to be reviewed faster? Consider <a href="http://wiki.sugarlabs.org/go/ActivityTeam/aslo">becoming an editor</a>.</p> - <p>View your new file in the <a href="<?=$html->url('/developers/versions/edit/'.$version_id)?>">Versions and Files page</a>, or check out your add-on's <a href="<?=$html->url('/developers/addon/status/'.$addon_id)?>">current status</a>.</p> + <p><?=sprintf(___('devcp_uploader_file_created'), $version, '<span id="new-file-status"></span>')?></p> + <p id="pending-message"><?=sprintf(___('devcp_uploader_p_pending_file'), '<span id="queue-count"></span>', 'href="https://wiki.mozilla.org/Update:Editors"')?></p> + <p><?=sprintf(___('devcp_uploader_p_update_file'), '/developers/versions/edit/', '/developers/addon/status/'.$addon_id)?> </div> </div><!-- /#file-created-content --> <?php endif; ?> |