notif = (title, html) -> close = _ en: 'Close', ja: '閉じる' html = html.replace /#{_ title} #{html} """ textNotif = (title, message) -> notif title, """
#{_ message}"""
app.templates.notifUpdateReady = ->
textNotif
en: """DevDocs has been updated."""
ja: """DevDocsはアップデートされました。"""
,
en: """Reload the page to use the new version."""
ja: """ページ再読み込み すると新しいバージョンが使用できます。"""
app.templates.notifError = ->
textNotif
en: """ Oops, an error occurred. """
ja: """ しまった、エラーが発生しました。 """
,
en: """ Try reloading, and if the problem persists,
resetting the app.
You can also report this issue on GitHub. """
ja: """ 再読み込みしてみてください。それでも問題が起きる場合は、
アプリをリセットしてください。
この問題をGitHubで報告することができます。 """
app.templates.notifQuotaExceeded = ->
textNotif
en: """ The offline database has exceeded its size limitation. """
ja: """ オフラインデータベースはサイズ制限を超過しました。 """
,
en: """ Unfortunately this quota can't be detected programmatically, and the database can't be opened while over the quota, so it had to be reset. """
ja: """ あいにく、この制限を検出するようプログラムできません。また、データベースは制限を超えて開くことができません。そのため、リセットを行ってください。"""
app.templates.notifCookieBlocked = ->
textNotif
en: """ Please enable cookies. """
ja: """ クッキーを有効にしてください。"""
,
en: """ DevDocs will not work properly if cookies are disabled. """
ja: """ クッキーが無効な場合、DevDocsは正確に動きません。"""
app.templates.notifInvalidLocation = ->
textNotif
en: """ DevDocs must be loaded from #{app.config.production_host} """
ja: """ DevDocsは#{app.config.production_host}から読み込む必要があります。 """
,
en: """ Otherwise things are likely to break. """
ja: """ さもないと故障してしまうかもしれません。"""
app.templates.notifImportInvalid = ->
textNotif
en: """ Oops, an error occurred. """
ja: """ しまった、エラーが発生しました。"""
,
en: """ The file you selected is invalid. """
ja: """ 選択したファイルは無効です。 """
app.templates.notifNews = (news) ->
notif 'Changelog', """
→
#{doc.release}" if doc.release
html += 'Disabled:' html += '
→
#{doc.release}" if doc.release
html += """#{__ 'enable'}"""
html += '