Display button or informative text
When all remote translations are enqueued we not display button but we display informative text. Co-Authored-By: alessandro <agileontheweb@gmail.com>
This commit is contained in:
@@ -3,4 +3,10 @@ module RemoteTranslationsHelper
|
|||||||
def display_remote_translation_info?(remote_translations, locale)
|
def display_remote_translation_info?(remote_translations, locale)
|
||||||
remote_translations.present? && RemoteTranslations::Microsoft::AvailableLocales.include_locale?(locale)
|
remote_translations.present? && RemoteTranslations::Microsoft::AvailableLocales.include_locale?(locale)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def display_remote_translation_button?(remote_translations)
|
||||||
|
remote_translations.none? do |remote_translation|
|
||||||
|
RemoteTranslation.remote_translation_enqueued?(remote_translation)
|
||||||
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -1035,6 +1035,7 @@ en:
|
|||||||
dowdall: Dowdall votation
|
dowdall: Dowdall votation
|
||||||
remote_translations:
|
remote_translations:
|
||||||
text: The content of this page is not available in your language
|
text: The content of this page is not available in your language
|
||||||
|
all_remote_translations_enqueued_text: In a short period of time refreshing the page you will be able to see all the content in your language.
|
||||||
create:
|
create:
|
||||||
enqueue_remote_translation: Translations have been correctly requested.
|
enqueue_remote_translation: Translations have been correctly requested.
|
||||||
button: Translate page
|
button: Translate page
|
||||||
|
|||||||
@@ -1032,6 +1032,7 @@ es:
|
|||||||
dowdall: Votación con recuento Dowdall
|
dowdall: Votación con recuento Dowdall
|
||||||
remote_translations:
|
remote_translations:
|
||||||
text: El contenido de esta página no está disponible en tu idioma
|
text: El contenido de esta página no está disponible en tu idioma
|
||||||
|
all_remote_translations_enqueued_text: "En un breve periodo de tiempo refrescando la página podrá ver todo el contenido en su idioma"
|
||||||
create:
|
create:
|
||||||
enqueue_remote_translation: Se han solicitado correctamente las traducciones.
|
enqueue_remote_translation: Se han solicitado correctamente las traducciones.
|
||||||
button: Traducir página
|
button: Traducir página
|
||||||
|
|||||||
Reference in New Issue
Block a user