-
Notifications
You must be signed in to change notification settings - Fork 265
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Also fixes regex in PatternScanner to handle `theme_t "foo"` being marked as a translation. - Fixes #572
- Loading branch information
1 parent
9e765a4
commit 80f9ab0
Showing
11 changed files
with
465 additions
and
270 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
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 was deleted.
Oops, something went wrong.
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 @@ | ||
// This is javascript file | ||
<% # i18n-tasks-use t('hello.world.from_javascript') %> |
27 changes: 27 additions & 0 deletions
27
spec/fixtures/used_keys/app/views/application/index.text.erb
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,27 @@ | ||
<%= t('text.a') %> | ||
<% what = t 'text.a' %> | ||
I18n.t("text.this_should_not") | ||
|
||
<% # i18n-tasks-use t('comment.absolute.attribute') %> | ||
<%= Translate.absolute.attribute %> | ||
<%= MeetingNote.model_name.human(count: 1) %> | ||
<%= AgendaItem.human_attribute_name(:title) %> | ||
<%= t('with_parameter', parameter: "erb is the best") %> | ||
<%= t 'with_scope', scope: "scope_a.scope_b", default: t(".nested_call") %> | ||
<% # https://github.com/glebm/i18n-tasks/issues/424 %> | ||
<%= link_to(edit_foo_path(foo), title: t(".edit")) do %> | ||
<i class="fa fa-edit icon-fa"></i> | ||
<% end %> | ||
<% # https://github.com/glebm/i18n-tasks/issues/426 %> | ||
<%= render Blacklight::System::ModalComponent.new do |component| %> | ||
<% component.title { t('blacklight.tools.citation') } %> | ||
<%= render Blacklight::Document::CitationComponent.with_collection(@documents) if @documents.present? %> | ||
<% end %> | ||
<% # https://github.com/glebm/i18n-tasks/issues/572 %> | ||
<%= theme_t "ignore.this.one" %> |
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
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
Oops, something went wrong.