Cover special translation interface behavior at admin information texts
When not yet exists I18nContentTranslation languages, SiteCustomization::InformationText section render I18n.locale by default. This was causing that `languages in use` description and default selected language were incorrectly initialized.
This commit is contained in:
committed by
Senén Rodero Rodríguez
parent
0bbc6be141
commit
07577a050c
@@ -60,6 +60,11 @@ module GlobalizeHelper
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def languages_count
|
||||||
|
count = I18nContentTranslation.existing_languages.count
|
||||||
|
count > 0 ? count : 1
|
||||||
|
end
|
||||||
|
|
||||||
def display_translation_style(resource, locale)
|
def display_translation_style(resource, locale)
|
||||||
"display: none;" unless display_translation?(resource, locale)
|
"display: none;" unless display_translation?(resource, locale)
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user