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
33 links = """<p class="_error-links">#{_ links}</p>""" if links
44 """<div class="_error"><h1 class="_error-title">#{_ title}</h1>#{text}#{links}</div>"""
55
6−back = -> "<a href='#' data-behavior='back' class='_error-link'>#{_ en: 'Go back', ja: '戻る'}</a>"
6+back = -> "<a href='#' data-behavior='back' class='_error-link'>#{_ en: "Go back", ja: "戻る"}</a>"
77
88 app.templates.notFoundPage = ->
99 error(
@@ -26,13 +26,15 @@ app.templates.pageLoadError = -> · 16 unmodified lines
2626 ja: """ サーバーを誤っています。(アプリを再度読み込んでください)または、オフラインです。<br>
2727 この表示が続くようであれば、プロキシの制限やファイヤーウォールでクロスドメインリクエストがブロックされています。 """
2828 ,
29− """ #{back()}
30− &middot;
31− <a href="/##{location.pathname}" target="_top" class="_error-link">
32− #{_ en: 'Reload', ja: '再読み込み'}
33− </a>
34− &middot;
35− <a href="#" class="_error-link" data-retry>Retry</a> """
29+ """
30+ #{back()}
31+ &middot;
32+ <a href="/##{location.pathname}" target="_top" class="_error-link">
33+ #{_ en: "Reload", ja: "再読み込み"}
34+ </a>
35+ &middot;
36+ <a href="#" class="_error-link" data-retry>Retry</a>
37+ """
3638 )
3739
3840
@@ -91,7 +93,7 @@ app.templates.offlineError = (reason, exception) -> · 52 unmodified lines
9193 en: """ The IndexedDB database appears to be corrupted. Try <a href="#" data-behavior="reset">resetting the app</a>. """
9294 ja: """IndexedDBデータベースに誤りがあります。 <a href="#" data-behavior="reset">アプリをリセット</a>してみてください。 """
9395
94− error 'Offline mode is unavailable.', reason
96+ error "Offline mode is unavailable.", reason
9597
9698 app.templates.unsupportedBrowser =
9799 en: """