Skip to content
This repository has been archived by the owner on Sep 11, 2020. It is now read-only.

Commit

Permalink
Moving enUs references to translate
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Parrish committed Nov 19, 2013
1 parent ee6c529 commit f34f961
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
5 changes: 3 additions & 2 deletions src/views/login-form.eco
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<% translate = window.zooniverse?.translate || require '../lib/translate' %>
<input type="text" name="username" required="required" data-zooniverse-translate="" data-zooniverse-translate-placeholder="username" />
<input type="password" name="password" required="required" data-zooniverse-translate="" data-zooniverse-translate-placeholder="password" />
<button type="submit"><%= enUs.topBar.signIn %></button>
<button name="sign-out"><%= enUs.topBar.signOut %></button>
<button type="submit"><%- translate 'signIn' %></button>
<button name="sign-out"><%- translate 'signOut' %></button>
<div class="error-message"></div>
10 changes: 7 additions & 3 deletions views/login-form.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,17 @@ template = function(__obj) {
}
(function() {
(function() {
__out.push('<input type="text" name="username" required="required" data-zooniverse-translate="" data-zooniverse-translate-placeholder="username" />\n<input type="password" name="password" required="required" data-zooniverse-translate="" data-zooniverse-translate-placeholder="password" />\n<button type="submit">');
var translate, _ref;

__out.push(__sanitize(enUs.topBar.signIn));
translate = ((_ref = window.zooniverse) != null ? _ref.translate : void 0) || require('../lib/translate');

__out.push('\n<input type="text" name="username" required="required" data-zooniverse-translate="" data-zooniverse-translate-placeholder="username" />\n<input type="password" name="password" required="required" data-zooniverse-translate="" data-zooniverse-translate-placeholder="password" />\n<button type="submit">');

__out.push(translate('signIn'));

__out.push('</button>\n<button name="sign-out">');

__out.push(__sanitize(enUs.topBar.signOut));
__out.push(translate('signOut'));

__out.push('</button>\n<div class="error-message"></div>\n');

Expand Down

0 comments on commit f34f961

Please sign in to comment.