Skip to content

Commit

Permalink
Rename locale key that override one in Spree Core.
Browse files Browse the repository at this point in the history
The key “name_or_sku” in Spree Core use a very long description; “Name
or SKU (enter at least first 4 characters of product name)” that break
this forms layout so it cannot use same.
  • Loading branch information
futhr committed Dec 30, 2014
1 parent 9f6351f commit 5a2579a
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion app/views/spree/admin/products/related.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<div class="row">
<div id="related_product_name" class="col-md-5">
<div class="form-group">
<%= label_tag :add_variant_name, Spree.t(:name_or_sku) %>
<%= label_tag :add_variant_name, Spree.t(:name_or_sku_short) %>
<%= hidden_field_tag :add_variant_name, '', class: 'variant_autocomplete' %>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion config/locales/cs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ cs:
applies_to: Platí pro
related_products: Související zboží
add_related_product: Nové související zboží
name_or_sku: Název nebo SKU
name_or_sku_short: Název nebo SKU
no_relation_types: 'Musíte nastavit typy vztahů, než budete moci použít tuto funkci.'
2 changes: 1 addition & 1 deletion config/locales/de.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ de:
applies_to: Anwenden auf
related_products: Verwandte Produkte
add_related_product: Verwandtes Produkt hinzufügen
name_or_sku: Name oder Artikelnummer
name_or_sku_short: Name oder Artikelnummer
no_relation_types: "Sie müssen Verwandschaftstypen konfigurieren, bevor Sie diese Funktion nutzen können."
2 changes: 1 addition & 1 deletion config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ en:
applies_to: Applies To
related_products: Related Products
add_related_product: Add Related Product
name_or_sku: Name or SKU
name_or_sku_short: Name or SKU
no_relation_types: You need to configure Relation Types before you can use this feature.
2 changes: 1 addition & 1 deletion config/locales/es.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ es:
applies_to: Se aplica a
related_products: Productos relacionados
add_related_product: Añadir producto relacionado
name_or_sku: Nombre o SKU
name_or_sku_short: Nombre o SKU
no_relation_types: Debes configurar tipos de relación antes de poder usar esto.
2 changes: 1 addition & 1 deletion config/locales/it.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ it:
applies_to: Si applica a
related_products: Prodotti Correlati
add_related_product: Aggiungi un Prodotto Correlato
name_or_sku: Nome o SKU
name_or_sku_short: Nome o SKU
no_relation_types: Devi configurare i Tipi di Relazione prima di poter usare questa funzione.
2 changes: 1 addition & 1 deletion config/locales/nl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ nl:
applies_to: Toegepast op
related_products: Gerelateerde producten
add_related_product: Gerelateerd product toevoegen
name_or_sku: Naam of SKU
name_or_sku_short: Naam of SKU
no_relation_types: Je moet relatie types instellen voordat je deze functie kan gebruiken.
2 changes: 1 addition & 1 deletion config/locales/pl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ pl:
applies_to: Ma zastosowanie do
related_products: Produkty powiązane
add_related_product: Dodaj powiązany produkt
name_or_sku: Nazwa lub SKU
name_or_sku_short: Nazwa lub SKU
no_relation_types: Musisz najpierw skonfigurować typy relacji
2 changes: 1 addition & 1 deletion config/locales/pt-BR.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ pt-BR:
applies_to: Aplicado à
related_products: Produtos relacionados
add_related_product: Adicionar produto relacionado
name_or_sku: Nome ou SKU
name_or_sku_short: Nome ou SKU
no_relation_types: Você precisa configurar os tipos de relacionamento antes de utilizar esta funcionalidade.
2 changes: 1 addition & 1 deletion config/locales/ru.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ ru:
applies_to: Применяется К
related_products: Относящиеся Товары
add_related_product: Добавить Относящийся Товар
name_or_sku: Название или Артикул
name_or_sku_short: Название или Артикул
no_relation_types: Перед тем как поспользоваться этим функционалом настройте Типы Отношений.
2 changes: 1 addition & 1 deletion config/locales/sv.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ sv:
applies_to: Gäller
related_products: Relaterade produkter
add_related_product: Lägg till relaterad produkt
name_or_sku: Namn eller SKU
name_or_sku_short: Namn eller SKU
no_relation_types: Du måste konfigurera relationstyper innan du kan använda den här funktionen.

0 comments on commit 5a2579a

Please sign in to comment.