From e84e82032813b7acd71f8073d00f57e1cd65eb7c Mon Sep 17 00:00:00 2001 From: Stefan Wintermeyer Date: Wed, 23 Jan 2013 17:36:33 +0100 Subject: Fixed I18n bug. --- lib/generators/nifty/scaffold/templates/locale.yml | 4 ++-- lib/generators/nifty/scaffold/templates/locale_de.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/generators/nifty/scaffold/templates') diff --git a/lib/generators/nifty/scaffold/templates/locale.yml b/lib/generators/nifty/scaffold/templates/locale.yml index 46e4ce3..0286f1f 100644 --- a/lib/generators/nifty/scaffold/templates/locale.yml +++ b/lib/generators/nifty/scaffold/templates/locale.yml @@ -11,7 +11,7 @@ en: <%= attribute.name %>: '<%= attribute.human_name %>' <%- end -%> actions: - confirm: 'Are you sure you want to delete this <%= human_name %>?' + confirm_destroy: 'Are you sure you want to delete this <%= human_name %>?' destroy: 'Delete' edit: 'Edit' show: 'View' @@ -23,7 +23,7 @@ en: <%= attribute.name %>: '<%= attribute.human_name %>' <%- end -%> actions: - confirm: 'Are you sure you want to delete this element?' + confirm_destroy: 'Are you sure you want to delete this element?' destroy: 'Delete' edit: 'Edit' view_all: 'View All' diff --git a/lib/generators/nifty/scaffold/templates/locale_de.yml b/lib/generators/nifty/scaffold/templates/locale_de.yml index 027d36d..2936eca 100644 --- a/lib/generators/nifty/scaffold/templates/locale_de.yml +++ b/lib/generators/nifty/scaffold/templates/locale_de.yml @@ -11,7 +11,7 @@ de: <%= attribute.name %>: '<%= attribute.human_name %>' <%- end -%> actions: - confirm: 'Sind Sie sicher, dass Sie folgendes löschen möchten: <%= human_name %>' + confirm_destroy: 'Sind Sie sicher, dass Sie folgendes löschen möchten: <%= human_name %>' destroy: 'Löschen' edit: 'Bearbeiten' show: 'Anzeigen' @@ -23,7 +23,7 @@ de: <%= attribute.name %>: '<%= attribute.human_name %>' <%- end -%> actions: - confirm: 'Sind Sie sicher, dass die dieses Element löschen möchten?' + confirm_destroy: 'Sind Sie sicher, dass die dieses Element löschen möchten?' destroy: 'Löschen' edit: 'Bearbeiten' view_all: 'Alle anzeigen' -- cgit v1.2.3 From d22a57f659fdb0f2c9ecf751d1e41a81430b289e Mon Sep 17 00:00:00 2001 From: Stefan Wintermeyer Date: Thu, 24 Jan 2013 12:52:37 +0100 Subject: Bugfixed a wrong key in I18n files. --- lib/generators/nifty/scaffold/templates/locale.yml | 2 +- lib/generators/nifty/scaffold/templates/locale_de.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/generators/nifty/scaffold/templates') diff --git a/lib/generators/nifty/scaffold/templates/locale.yml b/lib/generators/nifty/scaffold/templates/locale.yml index 0286f1f..4cae1c4 100644 --- a/lib/generators/nifty/scaffold/templates/locale.yml +++ b/lib/generators/nifty/scaffold/templates/locale.yml @@ -43,4 +43,4 @@ en: label: '<%= attribute.human_name %>' hint: '' <%- end -%> - button: 'Submit' \ No newline at end of file + submit: 'Submit' \ No newline at end of file diff --git a/lib/generators/nifty/scaffold/templates/locale_de.yml b/lib/generators/nifty/scaffold/templates/locale_de.yml index 2936eca..e170812 100644 --- a/lib/generators/nifty/scaffold/templates/locale_de.yml +++ b/lib/generators/nifty/scaffold/templates/locale_de.yml @@ -43,4 +43,4 @@ de: label: '<%= attribute.human_name %>' hint: '' <%- end -%> - button: 'Absenden' \ No newline at end of file + submit: 'Absenden' \ No newline at end of file -- cgit v1.2.3 From 680073d4cf7619bddfb7f79ea9e538a33d9dcdee Mon Sep 17 00:00:00 2001 From: Stefan Wintermeyer Date: Sat, 26 Jan 2013 20:11:45 +0100 Subject: Refactoring --- .../nifty/scaffold/templates/views/haml/_index_core.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/generators/nifty/scaffold/templates') diff --git a/lib/generators/nifty/scaffold/templates/views/haml/_index_core.html.haml b/lib/generators/nifty/scaffold/templates/views/haml/_index_core.html.haml index a523d32..f142d15 100644 --- a/lib/generators/nifty/scaffold/templates/views/haml/_index_core.html.haml +++ b/lib/generators/nifty/scaffold/templates/views/haml/_index_core.html.haml @@ -1,4 +1,4 @@ -%table{:class => 'table table-striped'} +%table.table.table-striped %tr <%- for attribute in model_attributes -%> %th= t('<%= plural_name %>.index.<%= attribute.name %>') -- cgit v1.2.3