Last active
August 29, 2015 14:06
-
-
Save twetzel/dbe80acb9ce6231a679b to your computer and use it in GitHub Desktop.
Revisions
-
twetzel revised this gist
Sep 3, 2014 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
LoadingSorry, something went wrong. Reload?Sorry, we cannot display this file.Sorry, this file is invalid so it cannot be displayed. -
twetzel revised this gist
Sep 3, 2014 . 1 changed file with 8 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,13 @@ .. # override default helper to get site-wide variables def t(*args) options = args.extract_options! key = args.first raw( I18n.t(key, options.merge({ app_name: CONFIG[:app_name] })) ) end # little helper to make nested translation editable def pt(*args) if !Rails.env.production? && session[:tranlating_mode] options = args.extract_options! -
twetzel revised this gist
Sep 3, 2014 . 1 changed file with 2 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -3,4 +3,5 @@ <%= t( "signup_form.work_for_with", for: "<span class='crossed' data-text='#{t("signup_form.with")}'>#{t("signup_form.for")}</span>") %> <%= pt("signup_form.with") %> <%= pt("signup_form.for") %> </h2> .. -
twetzel created this gist
Sep 3, 2014 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,10 @@ .no_view_translation { display: none; position: relative; margin: 0; padding: 0; } body.tranlating_phrase .no_view_translation { display: block; width: auto; height: auto; opacity: .5; } This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,5 @@ en: signup_form: work_for_with: "Work %{for} %{app_name}" for: "for" with: "with" This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,6 @@ .. <h2 class="loud"> <%= t( "signup_form.work_for_with", for: "<span class='crossed' data-text='#{t("signup_form.with")}'>#{t("signup_form.for")}</span>") %> <%= pt("signup_form.with") %> <%= pt("signup_form.for") %> </h2> This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,13 @@ .. def pt(*args) if !Rails.env.production? && session[:tranlating_mode] options = args.extract_options! key = args.first content_tag :span, I18n.t(key, options.merge({ app_name: CONFIG[:app_name] })), class: "no_view_translation" else "" end end ..