* Enables and shows the oauth view if there is login via social accounts enabled by the server settings.
*
* REMARK: We must show at maximum *three* social accounts views ([enableLoginByFacebook], [enableLoginByGithub], [enableLoginByGoogle],
* [enableLoginByLinkedin], [enableLoginByMeteor], [enableLoginByTwitter] or [enableLoginByGitlab]) for the oauth view.
* [enableLoginByLinkedin], [enableLoginByMeteor], [enableLoginByTwitter], [enableLoginByGitlab] or [addCustomOauthServiceButton]) for the oauth view.
* If the possibility of login via social accounts exceeds 3 different ways we should set up the FAB ([setupFabListener]) to show the remaining view(s).
@@ -78,6 +78,7 @@ class OauthWebViewActivity : AppCompatActivity() {
privatefunsetupWebView(){
with(web_view.settings){
javaScriptEnabled=true
domStorageEnabled=true
// TODO Remove this workaround that is required to make Google OAuth to work. We should use Custom Tabs instead. See https://github.com/RocketChat/Rocket.Chat.Android/issues/968
if(webPageUrl.contains("google")){
userAgentString="Mozilla/5.0 (Linux; Android 4.1.1; Galaxy Nexus Build/JRO03C) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/43.0.2357.65 Mobile Safari/535.19"
<stringname="msg_check_your_email_to_reset_your_password">Email sent! Check your inbox to reset your password.</string>
// TODO: Add proper translation.
<stringname="msg_invalid_email">Please type a valid e-mail</string>
<stringname="msg_new_user_agreement">Al continuar estás aceptando nuestra\n%1$s y %2$s</string>
<stringname="msg_2fa_code">Código 2FA</string>
<stringname="msg_yesterday">Ayer</string>
...
...
@@ -78,10 +88,13 @@
<stringname="msg_preview_video">Vídeo</string>
<stringname="msg_preview_audio">Audio</string>
<stringname="msg_preview_photo">Foto</string>
<stringname="msg_preview_file">Fichero</string>
<stringname="msg_no_messages_yet">Aún no hay mensajes</string>
<stringname="msg_version">Versión %1$s</string>
<stringname="msg_build">Build %1$d</string>
<stringname="msg_ok">OK</string>
// TODO: Add proper translation.
<stringname="msg_update_app_version_in_order_to_continue">Out to date server version. Please contact the server admin to update the server version in order to continue.</string>
<stringname="msg_ver_not_recommended">
Parece que la versión de tu servidor está por debajo de la versión recomendada %1$s.\nAún puede iniciar sesión, pero puede experimentar comportamientos inesperados.</string>
<stringname="msg_ver_not_minimum">
...
...
@@ -96,6 +109,8 @@
<stringname="msg_invalid_server_protocol">El protocolo seleccionado no es aceptado por este servidor, intente usar HTTPS</string>
<stringname="msg_image_saved_successfully">La imagen se ha guardado en la galería</string>
<stringname="msg_image_saved_failed">Error al guardar la imagen</string>
<stringname="msg_no_chat_title">Sin mensajes de chat</string>
<stringname="msg_no_chat_description">Comience a conversar para ver\nsus mensajes aquí.</string>
<!-- System messages -->
<stringname="message_room_name_changed">Nombre de la sala cambiado para: %1$s por %2$s</string>
<stringname="msg_no_messages_yet">Aucun message pour le moment</string>
<stringname="msg_version">Version %1$s</string>
<stringname="msg_build">Build %1$d</string>
<stringname="msg_ok">OK</string>
// TODO: Add proper translation.
<stringname="msg_update_app_version_in_order_to_continue">Out to date server version. Please contact the server admin to update the server version in order to continue.</string>
<stringname="msg_ver_not_recommended">
Looks like your server version is below the recommended version %1$s.\nYou can still login but you may experience unexpected behaviors.</string>
On dirait que la version de votre serveur est en dessous de la version recommandée %1$s.\nVous pouvez toujours vous connecter mais vous pouvez rencontrer des comportements inattendus.</string>
<stringname="msg_ver_not_minimum">
Looks like your server version is below the minimum required version %1$s.\nPlease upgrade your server to login!
On dirait que la version de votre serveur est inférieure à la version minimale requise %1$s.\nVeuillez mettre à jour votre serveur pour vous connecter!
</string>
<stringname="msg_proceed">PROCEED</string>
<stringname="msg_cancel">CANCEL</string>
<stringname="msg_warning">WARNING</string>
<stringname="msg_http_insecure">When using HTTP, you\'re connecting to an insecure server. We don\'t recommend you doing that.</string>
<stringname="msg_error_checking_server_version">An error has occurred while checking your server version, please try again</string>
<stringname="msg_invalid_server_protocol">The selected protocol is not accepted by this server, try using HTTPS</string>
<stringname="msg_proceed">PROCÉDER</string>
<stringname="msg_cancel">ANNULER</string>
<stringname="msg_warning">ATTENTION</string>
<stringname="msg_http_insecure">Lorsque vous utilisez HTTP, vous vous connectez à un serveur non sécurisé. Nous ne vous recommandons pas de le faire.</string>
<stringname="msg_error_checking_server_version">Une erreur est survenue lors de la vérification de la version de votre serveur, veuillez réessayer</string>
<stringname="msg_invalid_server_protocol">Le protocole sélectionné n\'est pas accepté par ce serveur, essayez d\'utiliser HTTPS</string>
<stringname="msg_image_saved_successfully">L\'image a été enregistrée dans la galerie</string>
<stringname="msg_image_saved_failed">Échec de l\'enregistrement de l\'image</string>
<stringname="msg_no_chat_title">Aucun message de discussion</string>
<stringname="msg_no_chat_description">Commencez à converser pour voir\nvos messages ici.</string>
<!-- System messages -->
<stringname="message_room_name_changed">Room name changed to: %1$s by %2$s</string>
<stringname="message_user_added_by">User %1$s added by %2$s</string>
<stringname="message_user_removed_by">User %1$s removed by %2$s</string>
<stringname="message_user_left">Has left the channel.</string>
<stringname="message_user_joined_channel">Has joined the channel.</string>
<stringname="msg_no_messages_yet">अभी तक कोई पोस्ट नहीं</string>
<stringname="msg_version">वर्शन %1$s</string>
<stringname="msg_build">बिल्ड %1$d</string>
// TODO: Add proper translation.
<stringname="msg_update_app_version_in_order_to_continue">Out to date server version. Please contact the server admin to update the server version in order to continue.</string>
<stringname="msg_ok">OK</string>
<stringname="msg_ver_not_recommended">
ऐसा लगता है कि आपका सर्वर संस्करण अनुशंसित संस्करण %1$s के नीचे है।\nआप अभी भी लॉगिन कर सकते हैं लेकिन आप अप्रत्याशित व्यवहार का अनुभव कर सकते हैं
...
...
@@ -97,6 +110,8 @@
<stringname="msg_invalid_server_protocol">चयनित प्रोटोकॉल इस सर्वर द्वारा स्वीकार नहीं किया गया है, HTTPS का उपयोग करने का प्रयास करें</string>
<stringname="msg_image_saved_successfully">छवि गैलरी में सहेजा गया है</string>
<stringname="msg_image_saved_failed">छवि को सहेजने में विफल</string>
<stringname="msg_no_chat_title">कोई चैट संदेश नहीं</string>
<stringname="msg_no_chat_description">यहां अपने संदेश देखने के लिए\nबातचीत शुरू करें।</string>
<!-- System messages -->
<stringname="message_room_name_changed">%2$s ने रूम का नाम बदलकर %1$s किया</string>
<stringname="msg_update_app_version_in_order_to_continue">Versão do servidor desatualizada. Por favor, entre em contato com o administrador do sistema para continuar.</string>
<stringname="msg_ver_not_recommended">
Parece que a versão do seu servidor está abaixo da recomendada %1$s.\nVocê ainda assim pode logar e continuar mas podem ocorrer alguns problemas inesperados.
</string>
<stringname="msg_ver_not_minimum">
Parece que a versão do seu servidor está abaixo da mínima requerida %1$s.\nPor favor, atualize seus servidores antes de continuar!
</string>
<stringname="msg_no_chat_title">Nenhuma mensagem de chat</string>
<stringname="msg_no_chat_description">Comece a conversar para ver suas\nmensagens aqui.</string>
<stringname="msg_update_app_version_in_order_to_continue">Out to date server version. Please contact the server admin to update the server version in order to continue.</string>
<stringname="msg_ver_not_recommended">
Looks like your server version is below the recommended version %1$s.\nYou can still login but you may experience unexpected behaviors.</string>
<stringname="msg_ver_not_minimum">
Looks like your server version is below the minimum required version %1$s.\nPlease upgrade your server to login!