Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Jérome Perrin
gitlab-ce
Commits
4471d7b8
Commit
4471d7b8
authored
Apr 20, 2017
by
Ruben Davila
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Some small fixes for the current I18n implementation
parent
086700fa
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
4 deletions
+5
-4
app/controllers/projects/cycle_analytics_controller.rb
app/controllers/projects/cycle_analytics_controller.rb
+1
-0
config/initializers/fast_gettext.rb
config/initializers/fast_gettext.rb
+1
-1
lib/gitlab/i18n.rb
lib/gitlab/i18n.rb
+3
-3
No files found.
app/controllers/projects/cycle_analytics_controller.rb
View file @
4471d7b8
...
...
@@ -4,6 +4,7 @@ class Projects::CycleAnalyticsController < Projects::ApplicationController
include
CycleAnalyticsParams
before_action
:authorize_read_cycle_analytics!
before_action
:set_locale
,
only: :show
def
show
@cycle_analytics
=
::
CycleAnalytics
.
new
(
@project
,
options
(
cycle_analytics_params
))
...
...
config/initializers/fast_gettext.rb
View file @
4471d7b8
FastGettext
.
add_text_domain
'gitlab'
,
path:
'locale'
,
type: :po
FastGettext
.
default_available_locales
=
Gitlab
::
I18n
::
AVAILABLE_LANGUAGES
.
keys
FastGettext
.
default_text_domain
=
'gitlab'
FastGettext
.
default_available_locales
=
Gitlab
::
I18n
::
AVAILABLE_LANGUAGES
.
keys
lib/gitlab/i18n.rb
View file @
4471d7b8
module
Gitlab
module
I18n
AVAILABLE_LANGUAGES
=
{
'en'
=>
'English'
,
'es'
=>
'Spanish'
,
'de'
=>
'Deutsch'
'en'
=>
N_
(
'English'
)
,
'es'
=>
N_
(
'Spanish'
)
,
'de'
=>
N_
(
'Deutsch'
)
}.
freeze
end
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment