Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mariovisic/459239 to your computer and use it in GitHub Desktop.
Save mariovisic/459239 to your computer and use it in GitHub Desktop.
From 854c3f56eb23941bca3f56e6cab836709e5c4d0d Mon Sep 17 00:00:00 2001
From: Mario Visic <mario.visic@squaretalent.com>
Date: Wed, 30 Jun 2010 23:21:50 +0200
Subject: [PATCH] Removed a hard coded string and replaced with translation, fixes issue #103
---
app/views/admin/pages/edit.html.haml | 2 +-
config/locales/en.yml | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/app/views/admin/pages/edit.html.haml b/app/views/admin/pages/edit.html.haml
index c64d77e..48b9136 100644
--- a/app/views/admin/pages/edit.html.haml
+++ b/app/views/admin/pages/edit.html.haml
@@ -4,7 +4,7 @@
- main.edit_header do
%h1= t('edit_page')
- main.edit_form do
- - form_for :page, @page, :url => admin_page_path(@page), :html => {:method => :put, :multipart => true, :id => 'edit_page', 'data-onsubmit_status'=>"Saving Changes&#8230;"} do |fields|
+ - form_for :page, @page, :url => admin_page_path(@page), :html => {:method => :put, :multipart => true, :id => 'edit_page', 'data-onsubmit_status'=> t('saving_changes')} do |fields|
= render :partial => "fields", :object => fields
- main.edit_popups do
= render :partial => "popups"
diff --git a/config/locales/en.yml b/config/locales/en.yml
index 345e01d..4896785 100644
--- a/config/locales/en.yml
+++ b/config/locales/en.yml
@@ -133,7 +133,7 @@ en:
validation_errors: "Validation errors occurred while processing this form. Please take a moment to review the form and correct any input errors before continuing."
reviewed: 'Reviewed'
roles: 'Roles'
- saving_changes: Saving Changes
+ saving_changes: 'Saving Changes&#8230;'
saving_preferences: Saving preferences
scheduled: "Scheduled"
search_tags: 'Search Tags:'
--
1.7.0.2+GitX
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment