BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
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
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
4 deletions
+5
-4
cycle_analytics_controller.rb
app/controllers/projects/cycle_analytics_controller.rb
+1
-0
fast_gettext.rb
config/initializers/fast_gettext.rb
+1
-1
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
...
@@ -4,6 +4,7 @@ class Projects::CycleAnalyticsController < Projects::ApplicationController
include
CycleAnalyticsParams
include
CycleAnalyticsParams
before_action
:authorize_read_cycle_analytics!
before_action
:authorize_read_cycle_analytics!
before_action
:set_locale
,
only: :show
def
show
def
show
@cycle_analytics
=
::
CycleAnalytics
.
new
(
@project
,
options
(
cycle_analytics_params
))
@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
.
add_text_domain
'gitlab'
,
path:
'locale'
,
type: :po
FastGettext
.
default_available_locales
=
Gitlab
::
I18n
::
AVAILABLE_LANGUAGES
.
keys
FastGettext
.
default_text_domain
=
'gitlab'
FastGettext
.
default_text_domain
=
'gitlab'
FastGettext
.
default_available_locales
=
Gitlab
::
I18n
::
AVAILABLE_LANGUAGES
.
keys
lib/gitlab/i18n.rb
View file @
4471d7b8
module
Gitlab
module
Gitlab
module
I18n
module
I18n
AVAILABLE_LANGUAGES
=
{
AVAILABLE_LANGUAGES
=
{
'en'
=>
'English'
,
'en'
=>
N_
(
'English'
)
,
'es'
=>
'Spanish'
,
'es'
=>
N_
(
'Spanish'
)
,
'de'
=>
'Deutsch'
'de'
=>
N_
(
'Deutsch'
)
}.
freeze
}.
freeze
end
end
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