Combine the `exception` and `cant_open` error messages

i18n
Jed Fox 7 years ago
parent 3bd91c9327
commit d9a11c28c7

@ -36,13 +36,11 @@ app.templates.offlineError = (reason, exception) ->
when 'private_mode' when 'private_mode'
""" Your browser appears to be running in private mode.<br> """ Your browser appears to be running in private mode.<br>
This prevents DevDocs from caching documentations for offline access.""" This prevents DevDocs from caching documentations for offline access."""
when 'exception' when 'exception', 'cant_open'
""" An error occurred when trying to open the IndexedDB database:<br> """ An error occurred when trying to open the IndexedDB database:<br>
<code class="_label">#{exception.name}: #{exception.message}</code> """ <code class="_label">#{exception.name}: #{exception.message}</code>#{"""<br>
when 'cant_open' This could be because you're browsing in private mode or have disallowed offline storage on the domain.
""" An error occurred when trying to open the IndexedDB database:<br> """ if reason is 'cant_open' else ''} """
<code class="_label">#{exception.name}: #{exception.message}</code><br>
This could be because you're browsing in private mode or have disallowed offline storage on the domain. """
when 'version' when 'version'
""" The IndexedDB database was modified with a newer version of the app.<br> """ The IndexedDB database was modified with a newer version of the app.<br>
<a href="#" data-behavior="reload">Reload the page</a> to use offline mode. """ <a href="#" data-behavior="reload">Reload the page</a> to use offline mode. """

Loading…
Cancel
Save