forked from gsamokovarov/web-console
-
Notifications
You must be signed in to change notification settings - Fork 178
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use I18n module for system messages instead of hard-coded value
- Loading branch information
1 parent
ad17a5a
commit fb55d48
Showing
5 changed files
with
21 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
en: | ||
errors: | ||
unavailable_session: | | ||
Session %{id} is is no longer available in memory. | ||
If you happen to run on a multi-process server (like Unicorn or Puma) the process | ||
this request hit doesn't store %{id} in memory. Consider turning the number of | ||
processes/workers to one (1) or using a different server in development. | ||
unacceptable_request: | | ||
A supported version is expected in the Accept header. | ||
connection_refused: | | ||
Oops! Failed to connect to the Web Console middleware. | ||
Please make sure a rails development server is running. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
require 'active_support/core_ext/string/access' | ||
I18n.load_path += Dir[ File.expand_path('../config/locales/*.yml', __FILE__) ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters