diff --git a/obp-api/src/main/resources/i18n/lift-core_es_ES.properties b/obp-api/src/main/resources/i18n/lift-core_es_ES.properties index cf3296df8..ada5e3b65 100644 --- a/obp-api/src/main/resources/i18n/lift-core_es_ES.properties +++ b/obp-api/src/main/resources/i18n/lift-core_es_ES.properties @@ -1,12 +1,19 @@ +# The main drawback here is that all application resources for a given locale must exist +# in the same file, and that extended characters such as Å“ aren’t properly encoded by +# default. This is due to Java properties bundles using ISO 8859-1 encoding and thus +# requiring conversion to escaped format, such as \u0153. Fortunately this process can +# be automated using tools like native2ascii +# https://native2ascii.net/ +# This tool will allow you to convert national language characters to and from their Unicode equivalents in plain ASCII text. api.explorer = Explorador API api_manager = Gestor API -introduction = Introducción +introduction = Introducci\u00f3n support = Soporte register = Registrarse logon = Ingresar terms_conditions = Terminos y condiciones -privacy_policy = Política de privacidad -api_documentation = Documentación API +privacy_policy = Pol\u00edtica de privacidad +api_documentation = Documentaci\u00f3n API api_host = Host del API api_tester = Evaluador API view_api_explorer = Ver Explorador API @@ -395,4 +402,4 @@ your.username.is.not.unique = Your username is not unique. Please enter a differ user.invitation.is.already.finished = Looks like the invitation link is invalid. Still need help? Please send us a message using API Playground Support. your.secret.link.is.not.valid = Looks like the invitation link is invalid. Still need help? Please send us a message using API Playground Support. -OBP-30001 = El usuario no ha iniciado sesión. ¡Se requiere autenticación! \ No newline at end of file +OBP-30001 = El usuario no ha iniciado sesi\u00c3\u00b3n. \u00c2\u00a1Se requiere autenticaci\u00c3\u00b3n! \ No newline at end of file diff --git a/obp-api/src/main/scala/code/snippet/WebUI.scala b/obp-api/src/main/scala/code/snippet/WebUI.scala index b725f61de..7567cfa04 100644 --- a/obp-api/src/main/scala/code/snippet/WebUI.scala +++ b/obp-api/src/main/scala/code/snippet/WebUI.scala @@ -65,9 +65,9 @@ class WebUI extends MdcLoggable{ } def homePage = { - val host = Props.get("base_url").getOrElse("unknown") - "#uk a [href]" #> scala.xml.Unparsed(s"$host/?locale=es_ES") & - "#it a [href]" #> scala.xml.Unparsed(s"$host/?locale=en_EN") + val host = Constant.HostName + "#es a [href]" #> scala.xml.Unparsed(s"$host/?locale=es_ES") & + "#en a [href]" #> scala.xml.Unparsed(s"$host/?locale=en_EN") } diff --git a/obp-api/src/main/webapp/templates-hidden/default.html b/obp-api/src/main/webapp/templates-hidden/default.html index 3ab9fb804..566796718 100644 --- a/obp-api/src/main/webapp/templates-hidden/default.html +++ b/obp-api/src/main/webapp/templates-hidden/default.html @@ -235,14 +235,14 @@ Berlin 13359, Germany This API Host -
  • -
    - Language - ES - | EN -
    -
  • +
    +
    + Language + ES + | + EN +