History

Use double quotes for human-readable strings

Jed Fox committed 8 years ago

Commit 37ab15d1 parent 071cd051 file · +11 −9Browse files

Unified · Split

assets/javascripts/templates/error_tmpl.coffee+11−9
@@ -3,7 +3,7 @@ error = (title, text = '', links = '') -> · 2 unmodified lines
3 links = """<p class="_error-links">#{_ links}</p>""" if links3 links = """<p class="_error-links">#{_ links}</p>""" if links
4 """<div class="_error"><h1 class="_error-title">#{_ title}</h1>#{text}#{links}</div>"""4 """<div class="_error"><h1 class="_error-title">#{_ title}</h1>#{text}#{links}</div>"""
5 5
6back = -> "<a href='#' data-behavior='back' class='_error-link'>#{_ en: 'Go back', ja: '戻る'}</a>"6back = -> "<a href='#' data-behavior='back' class='_error-link'>#{_ en: "Go back", ja: "戻る"}</a>"
7 7
8app.templates.notFoundPage = ->8app.templates.notFoundPage = ->
9 error(9 error(
@@ -26,13 +26,15 @@ app.templates.pageLoadError = -> · 16 unmodified lines
26 ja: """ サーバーを誤っています。(アプリを再度読み込んでください)または、オフラインです。<br>26 ja: """ サーバーを誤っています。(アプリを再度読み込んでください)または、オフラインです。<br>
27 この表示が続くようであれば、プロキシの制限やファイヤーウォールでクロスドメインリクエストがブロックされています。 """27 この表示が続くようであれば、プロキシの制限やファイヤーウォールでクロスドメインリクエストがブロックされています。 """
28 ,28 ,
29 """ #{back()}29 """
30 &middot;30 #{back()}
31 <a href="/##{location.pathname}" target="_top" class="_error-link">31 &middot;
32 #{_ en: 'Reload', ja: '再読み込み'}32 <a href="/##{location.pathname}" target="_top" class="_error-link">
33 </a>33 #{_ en: "Reload", ja: "再読み込み"}
34 &middot;34 </a>
35 <a href="#" class="_error-link" data-retry>Retry</a> """35 &middot;
36 <a href="#" class="_error-link" data-retry>Retry</a>
37 """
36 )38 )
37 39
38 40
@@ -91,7 +93,7 @@ app.templates.offlineError = (reason, exception) -> · 52 unmodified lines
91 en: """ The IndexedDB database appears to be corrupted. Try <a href="#" data-behavior="reset">resetting the app</a>. """93 en: """ The IndexedDB database appears to be corrupted. Try <a href="#" data-behavior="reset">resetting the app</a>. """
92 ja: """IndexedDBデータベースに誤りがあります。 <a href="#" data-behavior="reset">アプリをリセット</a>してみてください。 """94 ja: """IndexedDBデータベースに誤りがあります。 <a href="#" data-behavior="reset">アプリをリセット</a>してみてください。 """
93 95
94 error 'Offline mode is unavailable.', reason96 error "Offline mode is unavailable.", reason
95 97
96app.templates.unsupportedBrowser =98app.templates.unsupportedBrowser =
97 en: """99 en: """