lib/head_music/clef.rb in head_music-3.0.1 vs lib/head_music/clef.rb in head_music-4.0.0
- old
+ new
@@ -47,11 +47,11 @@
def ==(other)
HeadMusic::Utilities::HashKey.for(self) == HeadMusic::Utilities::HashKey.for(other)
end
def name(locale_code: Locale::DEFAULT_CODE)
- I18n.translate(name_key, scope: :clefs, locale: locale_code)
+ I18n.translate(name_key, scope: "head_music.clefs", locale: locale_code)
end
private_class_method :new
private
@@ -75,10 +75,10 @@
end
def name_key_translations(name_keys)
name_keys.map do |name_key|
I18n.config.available_locales.map do |locale_code|
- I18n.translate(name_key, scope: :clefs, locale: locale_code)
+ I18n.translate(name_key, scope: "head_music.clefs", locale: locale_code)
end.flatten.uniq.compact
end.flatten.uniq.compact
end
def initialize_data_from_record(record)