Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use translation for search gem string #1516

Merged
merged 2 commits into from Dec 24, 2016
Merged

Conversation

spk
Copy link
Contributor

@spk spk commented Dec 18, 2016

Use I18n for "Search gems" string

@@ -36,17 +36,17 @@
<div class="header__nav-links-wrap">
<% if request.path_info == "/" %>
<%= form_tag search_url, :id => "main-search", :class => "header__search-wrap--home", :method => :get do %>
<%= search_field_tag :query, params[:query], :placeholder => "Search Gems&hellip;".html_safe, :class => "header__search" %>
<%= search_field_tag :query, params[:query], :placeholder => t('layouts.application.header.search_gem').html_safe, :class => "header__search" %>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @spk , I think this would work without layouts.application as well.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @sonalkr132 , indeed fixed in 1702929

@dwradcliffe dwradcliffe merged commit a7b449a into rubygems:master Dec 24, 2016
@spk spk deleted the use-i18n-search branch December 26, 2016 09:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants