Skip to content

Commit

Permalink
internationalized all templates.
Browse files Browse the repository at this point in the history
  • Loading branch information
toolness committed Dec 5, 2012
1 parent a64b158 commit 80e944c
Show file tree
Hide file tree
Showing 6 changed files with 40 additions and 34 deletions.
24 changes: 15 additions & 9 deletions templates/confirm-dialog.html
Expand Up @@ -3,24 +3,30 @@
<div class="thimble-branding"></div>
<div class="thimble-menu-content">
<div>
<div class="thimble-title">Are you sure you want to publish your page?</div>
<div class="thimble-title">L10N[[[Are you sure you want to publish your page?]]]</div>
<div class="thimble-additionals">
<div class="confirmation-buttons">
<span class="confirmation-button yes-button">Yes</span>
<span class="confirmation-button no-button" data-close-modal>No</span>
<span class="confirmation-button yes-button">L10N[[[Yes]]]</span>
<span class="confirmation-button no-button" data-close-modal>L10N[[[No]]]</span>
</div>
<br>
<div class="public-warning">
A published page is visible to everyone on the Web.
L10N:public-warning[[[
A published page is visible to everyone on the Web.
]]]
</div>
<div class="error-warning">
<strong>Warning:</strong> Your code appears to contain
errors, and the published page may not appear as you intend.
L10N:error-warning[[[
<strong>Warning:</strong> Your code appears to contain
errors, and the published page may not appear as you intend.
]]]
</div>
<div class="development-note">
<strong>Note:</strong> You are using experimental
software and your published page could disappear at
any time.
L10N:development-note[[[
<strong>Note:</strong> You are using experimental
software and your published page could disappear at
any time.
]]]
</div>
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions templates/default-content.html
@@ -1,9 +1,9 @@
<!doctype html>
<html>
<head>
<title>Your Awesome Webpage</title>
<title>L10N:default-content-title[[[Your Awesome Webpage]]]</title>
</head>
<body>
<p>Make something amazing with the web</p>
<p>L10N:default-content-p[[[Make something amazing with the web]]]</p>
</body>
</html>
2 changes: 1 addition & 1 deletion templates/error-dialog.html
@@ -1,6 +1,6 @@
<div class="modal-overlay" style="display: none;">
<div class="thimble-error">
<div class="thimble-title thimble-grey-bar">An error occurred</div>
<div class="thimble-title thimble-grey-bar">L10N[[[An error occurred]]]</div>
<div class="thimble-additionals">
<p class="error-text">error text goes here</p>
</div>
Expand Down
4 changes: 2 additions & 2 deletions templates/help-msg.html
Expand Up @@ -3,8 +3,8 @@
<div class="content">
<%= html %>
<% if (type == "cssSelector") { %>
<span class="selector-matches"> It currently matches <%- matchCount %> element(s).</span>
<span class="selector-matches"> L10N:selector-matches[[[It currently matches <%- matchCount %> element(s).]]]</span>
<% } %>
<a class="learn-more" href="<%- url %>">more…</a>
<a class="learn-more" href="<%- url %>">L10N[[[more…]]]</a>
</div>
<div class="down-arrow"></div>
28 changes: 14 additions & 14 deletions templates/nav-options.html
Expand Up @@ -2,35 +2,35 @@
<div class="editor-pane-nav-options">
<!-- editor, undo, redo, text size, hinting -->
<div class="editor-nav-item nav-item">
<span class="icon">&nbsp;</span>Editor
<span class="icon">&nbsp;</span>L10N[[[Editor]]]
<div class="pane-indicator enabled"></div>
</div>
<div class="nav-item"><div class="breadcrumbs"></div></div>
<div class="undo-nav-item nav-item responsive"
data-restore-help="We've rescued your very recent changes to this page, but you can click this button to undo them."
title="Undo changes">
<span class="icon">&nbsp;</span>Undo</div>
<div class="redo-nav-item nav-item responsive" title="Redo changes">
<span class="icon">&nbsp;</span>Redo
data-restore-help="L10N:data-restore-help[[[We've rescued your very recent changes to this page, but you can click this button to undo them.]]]"
title="L10N[[[Undo changes]]]">
<span class="icon">&nbsp;</span>L10N[[[Undo]]]</div>
<div class="redo-nav-item nav-item responsive" title="L10N[[[Redo changes]]]">
<span class="icon">&nbsp;</span>L10N[[[Redo]]]
</div>
<div class="text-nav-item nav-item responsive enabled" title="Change text size">
<div class="text-nav-item nav-item responsive enabled" title="L10N[[[Change text size]]]">
<span class="icon">&nbsp;</span>Size
<ul class="text-size-options">
<li data-size="small">Small</li>
<li data-size="normal" data-default-size>Normal</li>
<li data-size="large">Large</li>
<li data-size="small">L10N[[[Small]]]</li>
<li data-size="normal" data-default-size>L10N[[[Normal]]]</li>
<li data-size="large">L10N[[[Large]]]</li>
</ul>
</div>
<div class="hints-nav-item nav-item enabled" title="Disable HTML and CSS hints and suggestions">
<div class="checkbox on"></div> <div class="checkbox-label">Show hints</div></div>
<div class="hints-nav-item nav-item enabled" title="L10N[[[Disable HTML and CSS hints and suggestions]]]">
<div class="checkbox on"></div> <div class="checkbox-label">L10N[[[Show hints]]]</div></div>
</div>
<div class="preview-pane-nav-options">
<!-- previous, save draft, publish -->
<div class="preview-nav-item nav-item">
<span class="icon">&nbsp;</span>Preview<span class="preview-title"></span><div class="pane-indicator enabled"></div>
<span class="icon">&nbsp;</span>L10N[[[Preview]]]<span class="preview-title"></span><div class="pane-indicator enabled"></div>
</div>
<div class="nav-item buttons">
<div class="publish-button wm-button wm-button-blue short">Publish</div>
<div class="publish-button wm-button wm-button-blue short">L10N[[[Publish]]]</div>
</div>
</div>
</div>
12 changes: 6 additions & 6 deletions templates/publish-dialog.html
Expand Up @@ -7,7 +7,7 @@
<div class="publication-result accordion">
<div class="thimble-title">
<div class="thimble-branding"></div>
Copy and paste the url for your page
L10N[[[Copy and paste the url for your page]]]
</div>
<div class="accordion-content">
<div class="thimble-url-box">
Expand All @@ -17,7 +17,7 @@
</div>

<div class="accordion collapsed">
<div class="thimble-title">Grab the link to edit your published page</div>
<div class="thimble-title">L10N[[[Grab the link to edit your published page]]]</div>
<div class="accordion-content">
<div class="thimble-url-box">
<a href="#" class="remix"></a>
Expand All @@ -28,13 +28,13 @@

<!-- SHARE YOUR WORK -->
<div class="share-result accordion collapsed">
<div class="thimble-title">Share this via&hellip;</div>
<div class="thimble-title">L10N[[[Share this via&hellip;]]]</div>
<div class="accordion-content">
<div class="thimble-additionals">
<ul>
<li data-medium="twitter">Twitter</li>
<li data-medium="google">Google+</li>
<li data-medium="facebook">Facebook</li>
<li data-medium="twitter">L10N[[[Twitter]]]</li>
<li data-medium="google">L10N[[[Google+]]]</li>
<li data-medium="facebook">L10N[[[Facebook]]]</li>
</ul>
</div>
</div>
Expand Down

0 comments on commit 80e944c

Please sign in to comment.