Adding .notranslate classes to haml files to have transifex better handling dynamic text. See issue #908

This commit is contained in:
CamilleM 2016-03-26 23:32:43 +01:00
parent ac7149fbe5
commit d11ea33cf0
7 changed files with 26 additions and 16 deletions

View file

@ -14,23 +14,26 @@
%p
- if @program.event_types.any?
You can submit proposals for
= "#{event_types(@conference)}."
%span.notranslate
= "#{event_types(@conference)}."
- if @program.tracks.any?
Proposals should fit in one of the
= "#{pluralize(@program.tracks.count, 'track')}:"
= "#{tracks(@conference)}."
%span.notranslate
= "#{pluralize(@program.tracks.count, 'track')}:"
= "#{tracks(@conference)}."
The submission period has begun
%em
%em.notranslate
= @program.cfp.start_date.strftime('%A, %B %-d. %Y')
and closes
%em
%em.notranslate
= @program.cfp.end_date.strftime('%A, %B %-d. %Y.')
- if @program.cfp_open?
That means you have only
%b= pluralize(@program.cfp.remaining_days, 'day')
%b.notranslate= pluralize(@program.cfp.remaining_days, 'day')
left!
Remember
= @conference.short_title
%span.notranslate
= @conference.short_title
will only be as good as the sessions you present. Submit early, submit often!
- else
The submission period is closed.

View file

@ -4,7 +4,8 @@
%h2.text-center
Program
%p.lead.text-center
= @conference.short_title
%span.notranslate
= @conference.short_title
has the most awesome program ever!
- if @conference.splashpage and @conference.program.tracks.any? and @conference.splashpage.include_tracks
See rock-star speakers cover the topics of

View file

@ -8,7 +8,8 @@
%h2 Sponsors
%p.lead
whom without,
= @conference.short_title
%span.notranslate
= @conference.short_title
wouldn't be possible!
- @conference.sponsorship_levels.each do |sponsorship_level|
-if sponsorship_level.sponsors.any?

View file

@ -11,7 +11,8 @@
%p.text-right
%button{ type: 'button', class: 'btn btn-link btn-sm', 'data-toggle' => 'collapse', 'data-target' => '#antiquated', 'aria-expanded' => 'true', 'aria-controls' => 'antiquated'}
Older conferences
= "(#{@antiquated.count})"
%span.notranslate
= "(#{@antiquated.count})"
%i.fa.fa-chevron-right
%i.fa.fa-chevron-down{ style: 'display: none' }
#antiquated.collapse