advanced search i18n

This commit is contained in:
Emi Matchu 2014-04-02 22:06:45 -05:00
parent 369ea7d1bd
commit ad1aa8e42c
3 changed files with 63 additions and 22 deletions

View file

@ -98,8 +98,7 @@
%h2= t '.search.header' %h2= t '.search.header'
%input{:name => "query", :type => "search"}/ %input{:name => "query", :type => "search"}/
%input{:type => "submit", :value => t('.search.form.submit')}/ %input{:type => "submit", :value => t('.search.form.submit')}/
-# TODO: i18n %a#preview-search-advanced-link{href: 'javascript:void(0)'}= t '.search.advanced.header'
%a#preview-search-advanced-link{href: 'javascript:void(0)'} Advanced Search
%a#preview-search-form-clear{:href => "#"}= t '.search.form.clear' %a#preview-search-form-clear{:href => "#"}= t '.search.form.clear'
#preview-search-form-pagination #preview-search-form-pagination
#preview-search-form-loading= t '.search.loading' #preview-search-form-loading= t '.search.loading'
@ -109,50 +108,48 @@
%ul %ul
%form#preview-search-advanced %form#preview-search-advanced
%header %header
%h2 Advanced Search %h2= t '.search.advanced.header'
%button{type: 'submit'} Search, advancedly! %button{type: 'submit'}= t '.search.advanced.submit'
%a#preview-search-basic-link{href: 'javascript:void(0)'} Never mind. %a#preview-search-basic-link{href: 'javascript:void(0)'}= t '.search.advanced.back'
-# TODO: i18n
%div#preview-search-advanced-main %div#preview-search-advanced-main
%div %div
%ul %ul
%li.text %li.text
%label{for: 'advanced-search-name-require'} Name contains %label{for: 'advanced-search-name-require'}= t '.search.advanced.name.require'
%input{type: 'text', id: 'advanced-search-name-require'} %input{type: 'text', id: 'advanced-search-name-require'}
%li.text %li.text
%label{for: 'advanced-search-name-exclude'} Name doesn't contain %label{for: 'advanced-search-name-exclude'}= t '.search.advanced.name.exclude'
%input{type: 'text', id: 'advanced-search-name-exclude'} %input{type: 'text', id: 'advanced-search-name-exclude'}
%div %div
%ul %ul
%li.select %li.select
%label{for: 'advanced-search-nc'} Only include %label{for: 'advanced-search-nc'}= t '.search.advanced.nc.label'
%select{id: 'advanced-search-nc'} %select{id: 'advanced-search-nc'}
%option{value: ''} NC and NP items %option{value: ''}= t '.search.advanced.nc.any'
%option{value: 'nc'} Neocash items %option{value: 'nc'}= t '.search.advanced.nc.nc'
%option{value: 'np'} Neopoint items %option{value: 'np'}= t '.search.advanced.nc.np'
%li.select %li.select
%label{for: 'advanced-search-occupies'} Occupies %label{for: 'advanced-search-occupies'}= t '.search.advanced.occupies.label'
%select{id: 'advanced-search-occupies'} %select{id: 'advanced-search-occupies'}
%option{value: ''} any zone %option{value: ''}= t '.search.advanced.occupies.any'
%li.select %li.select
%label{for: 'advanced-search-restricts'} Restricts %label{for: 'advanced-search-restricts'}= t '.search.advanced.restricts.label'
%select{id: 'advanced-search-restricts'} %select{id: 'advanced-search-restricts'}
%option{value: ''} any or no zones %option{value: ''}= t '.search.advanced.restricts.any'
%div %div
%ul %ul
%li.checkbox %li.checkbox
%input{type: 'checkbox', id: 'advanced-search-species'} %input{type: 'checkbox', id: 'advanced-search-species'}
%label{for: 'advanced-search-species'} %label{for: 'advanced-search-species'}
Fits the = t '.search.advanced.species_html',
%span species: content_tag('span', '')
(the current species)
%li.checkbox.must-log-in %li.checkbox.must-log-in
%input{type: 'checkbox', id: 'advanced-search-owns', disabled: true} %input{type: 'checkbox', id: 'advanced-search-owns', disabled: true}
%label{for: 'advanced-search-owns'} Only include items you own %label{for: 'advanced-search-owns'}= t '.search.advanced.owns'
%li.checkbox.must-log-in %li.checkbox.must-log-in
%input{type: 'checkbox', id: 'advanced-search-wants', disabled: true} %input{type: 'checkbox', id: 'advanced-search-wants', disabled: true}
%label{for: 'advanced-search-wants'} Only include items you want %label{for: 'advanced-search-wants'}= t '.search.advanced.wants'
= link_to 'Log in to use these filters.', login_path_with_return_to, = link_to t('.search.advanced.login'), login_path_with_return_to,
id: 'advanced-search-log-in-link' id: 'advanced-search-log-in-link'
#no-assets-full-message= t '.sidebar.closet.no_data.description' #no-assets-full-message= t '.sidebar.closet.no_data.description'

View file

@ -571,6 +571,28 @@ en-MEEP:
clear: unmeep clear: unmeep
loading: Meeping… loading: Meeping…
no_results_html: No meepits for "%{query}" no_results_html: No meepits for "%{query}"
advanced:
header: Advanced Meep
submit: Meep, advancedly!
back: Never meep.
name:
require: Name meeps
exclude: Name doesn't meep
nc:
label: Only meep
any: NC and NP meepits
nc: Neocash meepits
np: Neopoint meepits
occupies:
label: Occumeeps
any: any zeepit
restricts:
label: Restreects
any: any or no zeepits
species_html: Meeps the %{species} (the current meepit)
owns: Only include meepits you own.
wants: Only include meepits you want.
login: Meep in to use these filters.
userbar: userbar:
session_message: session_message:
signed_in: signed_in:

View file

@ -617,6 +617,28 @@ en:
clear: clear clear: clear
loading: Loading… loading: Loading…
no_results_html: No results for "%{query}" no_results_html: No results for "%{query}"
advanced:
header: Advanced Search
submit: Search, advancedly!
back: Never mind.
name:
require: Name contains
exclude: Name doesn't contain
nc:
label: Only include
any: NC and NP items
nc: Neocash items
np: Neopoint items
occupies:
label: Occupies
any: any zone
restricts:
label: Restricts
any: any or no zones
species_html: Fits the %{species} (the current species)
owns: Only include items you own.
wants: Only include items you want.
login: Log in to use these filters.
userbar: userbar:
session_message: session_message:
signed_in: signed_in: