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
7199e882
Commit
7199e882
authored
Sep 03, 2017
by
Bob Van Landuyt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Only require `simple_po_parser` in rake task that needs it
That way we don't need to install it in production, since it's really not needed there.
parent
a3af6830
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
2 deletions
+2
-2
po_linter.rb
lib/gitlab/i18n/po_linter.rb
+0
-2
gettext.rake
lib/tasks/gettext.rake
+1
-0
po_linter_spec.rb
spec/lib/gitlab/i18n/po_linter_spec.rb
+1
-0
No files found.
lib/gitlab/i18n/po_linter.rb
View file @
7199e882
require
'simple_po_parser'
module
Gitlab
module
I18n
class
PoLinter
...
...
lib/tasks/gettext.rake
View file @
7199e882
require
"gettext_i18n_rails/tasks"
require
'simple_po_parser'
namespace
:gettext
do
# Customize list of translatable files
...
...
spec/lib/gitlab/i18n/po_linter_spec.rb
View file @
7199e882
require
'spec_helper'
require
'simple_po_parser'
describe
Gitlab
::
I18n
::
PoLinter
do
let
(
:linter
)
{
described_class
.
new
(
po_path
)
}
...
...
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