Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
AloqaIM-Android
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
AloqaIM-Android
Commits
5af83d2f
Unverified
Commit
5af83d2f
authored
Nov 07, 2018
by
Filipe de Lima Brito
Committed by
GitHub
Nov 07, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1841 from GOVINDDIXIT/share
[NEW] Add share app
parents
b0ac2591
9353ef53
Changes
12
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
51 additions
and
0 deletions
+51
-0
SettingsFragment.kt
.../java/chat/rocket/android/settings/ui/SettingsFragment.kt
+10
-0
strings.xml
app/src/main/res/values-de/strings.xml
+4
-0
strings.xml
app/src/main/res/values-es/strings.xml
+4
-0
strings.xml
app/src/main/res/values-fr/strings.xml
+4
-0
strings.xml
app/src/main/res/values-hi-rIN/strings.xml
+4
-0
strings.xml
app/src/main/res/values-ja/strings.xml
+4
-0
strings.xml
app/src/main/res/values-pt-rBR/strings.xml
+4
-0
strings.xml
app/src/main/res/values-ru-rRU/strings.xml
+4
-0
strings.xml
app/src/main/res/values-tr/strings.xml
+4
-0
strings.xml
app/src/main/res/values-uk/strings.xml
+4
-0
defaults.xml
app/src/main/res/values/defaults.xml
+1
-0
strings.xml
app/src/main/res/values/strings.xml
+4
-0
No files found.
app/src/main/java/chat/rocket/android/settings/ui/SettingsFragment.kt
View file @
5af83d2f
...
...
@@ -75,6 +75,16 @@ class SettingsFragment : Fragment(), SettingsView, AdapterView.OnItemClickListen
AboutFragment
.
newInstance
()
}
}
resources
.
getString
(
R
.
string
.
title_share_the_app
)
->{
val
shareIntent
=
Intent
(
Intent
.
ACTION_SEND
)
shareIntent
.
type
=
"text/plain"
val
shareBody
=
getString
(
R
.
string
.
msg_check_this_out
)
val
shareSub
=
getString
(
R
.
string
.
play_store_link
)
shareIntent
.
putExtra
(
Intent
.
EXTRA_SUBJECT
,
shareBody
)
shareIntent
.
putExtra
(
Intent
.
EXTRA_TEXT
,
shareSub
)
startActivity
(
Intent
.
createChooser
(
shareIntent
,
getString
(
R
.
string
.
msg_share_using
)))
}
}
}
...
...
app/src/main/res/values-de/strings.xml
View file @
5af83d2f
...
...
@@ -3,6 +3,7 @@
<!-- Titles -->
<string
name=
"title_sign_in_your_server"
>
Anmelden am Server
</string>
<string
name=
"title_log_in"
>
Anmelden
</string>
<string
name=
"title_share_the_app"
>
App teilen
</string>
<string
name=
"title_register_username"
>
Registriere Benutzernamen
</string>
<string
name=
"title_reset_password"
>
Passwort zurücksetzen
</string>
<string
name=
"title_sign_up"
>
registrieren
</string>
...
...
@@ -58,11 +59,14 @@
<item
name=
"item_preferences"
>
Preferences
</item>
<!-- TODO Add translation -->
<item
name=
"item_password"
>
Ändere Passwort
</item>
<item
name=
"item_password"
>
Über
</item>
<item
name=
"item_share_app"
>
App teilen
</item>
</string-array>
<!-- Regular information messages -->
<string
name=
"msg_generic_error"
>
Entschuldigung, ein Fehler ist aufgetreten, bitte versuchen Sie es noch einmal.
</string>
<string
name=
"msg_no_data_to_display"
>
Keine Anzeigedaten vorhanden
</string>
<string
name=
"msg_check_this_out"
>
Schau dir das an
</string>
<string
name=
"msg_share_using"
>
Teilen Sie mit
</string>
<string
name=
"msg_profile_update_successfully"
>
Profil update erfolgreich
</string>
<string
name=
"msg_username"
>
Benutzername
</string>
<string
name=
"msg_username_or_email"
>
Benutzername oder E-Mail
</string>
...
...
app/src/main/res/values-es/strings.xml
View file @
5af83d2f
...
...
@@ -2,6 +2,7 @@
<!-- Titles -->
<string
name=
"title_sign_in_your_server"
>
Inicia sesión en tu servidor
</string>
<string
name=
"title_log_in"
>
Iniciar sesión
</string>
<string
name=
"title_share_the_app"
>
Compartir aplicación
</string>
<string
name=
"title_register_username"
>
Registrar nombre de usuario
</string>
<string
name=
"title_reset_password"
>
Restablecer la contraseña
</string>
<string
name=
"title_sign_up"
>
Regístrate
</string>
...
...
@@ -56,11 +57,14 @@
<item
name=
"item_preferences"
>
Preferences
</item>
<!-- TODO Add translation -->
<item
name=
"item_password"
>
Cambia la contraseña
</item>
<item
name=
"item_password"
>
Acerca de
</item>
<item
name=
"item_share_app"
>
Compartir aplicación
</item>
</string-array>
<!-- Regular information messages -->
<string
name=
"msg_generic_error"
>
Lo sentimos, ha ocurrido un error, por favor intente de nuevo
</string>
<string
name=
"msg_no_data_to_display"
>
No hay información para mostrar
</string>
<string
name=
"msg_check_this_out"
>
Mira esto
</string>
<string
name=
"msg_share_using"
>
Compartir usando
</string>
<string
name=
"msg_profile_update_successfully"
>
Actualización de perfil con éxito
</string>
<string
name=
"msg_username"
>
usuario
</string>
<string
name=
"msg_username_or_email"
>
Nombre de usuario o correo electrónico
</string>
...
...
app/src/main/res/values-fr/strings.xml
View file @
5af83d2f
...
...
@@ -3,6 +3,7 @@
<!-- Titles -->
<string
name=
"title_sign_in_your_server"
>
Connectez-vous sur votre serveur
</string>
<string
name=
"title_log_in"
>
S\'identifier
</string>
<string
name=
"title_share_the_app"
>
Partager l\'application
</string>
<string
name=
"title_register_username"
>
Enregistrer le nom d\'utilisateur
</string>
<string
name=
"title_reset_password"
>
Réinitialiser mot de passe
</string>
<string
name=
"title_sign_up"
>
S\'inscrire
</string>
...
...
@@ -60,11 +61,14 @@
<item
name=
"item_preferences"
>
Préférences
</item>
<item
name=
"item_password"
>
Changer le mot de passe
</item>
<item
name=
"item_password"
>
À propos
</item>
<item
name=
"item_share_app"
>
Partager l\'application
</item>
</string-array>
<!-- Regular information messages -->
<string
name=
"msg_generic_error"
>
Désolé, une erreur s\'est produite. Veuillez réessayer
</string>
<string
name=
"msg_no_data_to_display"
>
Aucune donnée à afficher
</string>
<string
name=
"msg_check_this_out"
>
regarde ça
</string>
<string
name=
"msg_share_using"
>
Partager en utilisant
</string>
<string
name=
"msg_profile_update_successfully"
>
Mise à jour du profil avec succès
</string>
<string
name=
"msg_username"
>
nom d\'utilisateur
</string>
<string
name=
"msg_username_or_email"
>
Nom d\'utilisateur ou email
</string>
...
...
app/src/main/res/values-hi-rIN/strings.xml
View file @
5af83d2f
...
...
@@ -3,6 +3,7 @@
<!-- Titles -->
<string
name=
"title_sign_in_your_server"
>
अपने सर्वर में साइन इन करें
</string>
<string
name=
"title_log_in"
>
लॉग इन करें
</string>
<string
name=
"title_share_the_app"
>
ऐप शेयर करे
</string>
<string
name=
"title_register_username"
>
रजिस्टर उपयोगकर्ता नाम
</string>
<string
name=
"title_reset_password"
>
पासवर्ड रीसेट करें
</string>
<string
name=
"title_sign_up"
>
साइन अप करें
</string>
...
...
@@ -59,11 +60,14 @@
<item
name=
"item_preferences"
>
प्राथमिकताएँ
</item>
<item
name=
"item_password"
>
पासवर्ड बदलें
</item>
<item
name=
"item_password"
>
परिचय
</item>
<item
name=
"item_share_app"
>
ऐप शेयर करें
</item>
</string-array>
<!-- Regular information messages -->
<string
name=
"msg_generic_error"
>
क्षमा करें, एक त्रुटि हुई है, कृपया पुनः प्रयास करें
</string>
<string
name=
"msg_no_data_to_display"
>
डेटा प्रदर्शित करने के लिए उपलब्ध नहीं हैं
</string>
<string
name=
"msg_check_this_out"
>
इसकी जांच करें
</string>
<string
name=
"msg_share_using"
>
उपयोग कर साझा करें
</string>
<string
name=
"msg_profile_update_successfully"
>
प्रोफ़ाइल सफलतापूर्वक अपडेट हो गया है
</string>
<string
name=
"msg_username"
>
यूजरनेम
</string>
<string
name=
"msg_username_or_email"
>
यूजरनेम या ईमेल
</string>
...
...
app/src/main/res/values-ja/strings.xml
View file @
5af83d2f
...
...
@@ -5,6 +5,7 @@
<!-- Titles -->
<string
name=
"title_sign_in_your_server"
>
サーバーに接続
</string>
<string
name=
"title_log_in"
>
ログイン
</string>
<string
name=
"title_share_the_app"
>
アプリを共有する
</string>
<string
name=
"title_register_username"
>
ユーザー名を登録する
</string>
<string
name=
"title_reset_password"
>
パスワードリセット
</string>
<string
name=
"title_sign_up"
>
サインアップ
</string>
...
...
@@ -61,11 +62,14 @@
<item
name=
"item_preferences"
>
Preferences
</item>
<!-- TODO Add translation -->
<item
name=
"item_password"
>
Change Password
</item>
<!-- TODO Add translation -->
<item
name=
"item_password"
>
About
</item>
<!-- TODO Add translation -->
<item
name=
"item_share_app"
>
アプリを共有する
</item>
</string-array>
<!-- Regular information messages -->
<string
name=
"msg_generic_error"
>
エラーが発生しました。もう一度お試しください。
</string>
<string
name=
"msg_no_data_to_display"
>
表示するデータがありません
</string>
<string
name=
"msg_check_this_out"
>
これをチェックする
</string>
<string
name=
"msg_share_using"
>
共有する
</string>
<string
name=
"msg_profile_update_successfully"
>
プロフィールの更新に成功しました
</string>
<string
name=
"msg_username"
>
ユーザー名
</string>
<string
name=
"msg_username_or_email"
>
メールアドレスまたはユーザー名
</string>
...
...
app/src/main/res/values-pt-rBR/strings.xml
View file @
5af83d2f
...
...
@@ -3,6 +3,7 @@
<!-- Titles -->
<string
name=
"title_sign_in_your_server"
>
Faça login no seu servidor
</string>
<string
name=
"title_log_in"
>
Entrar
</string>
<string
name=
"title_share_the_app"
>
Compartilhe o aplicativo
</string>
<string
name=
"title_register_username"
>
Registre o nome de usuário
</string>
<string
name=
"title_reset_password"
>
Redefinir senha
</string>
<string
name=
"title_sign_up"
>
Inscreva-se
</string>
...
...
@@ -59,11 +60,14 @@
<item
name=
"item_preferences"
>
Preferencias
</item>
<item
name=
"item_password"
>
Alterar senha
</item>
<item
name=
"item_password"
>
Sobre
</item>
<item
name=
"item_share_app"
>
Compartilhe o aplicativo
</item>
</string-array>
<!-- Regular information messages -->
<string
name=
"msg_generic_error"
>
Desculpe, ocorreu um erro, tente novamente
</string>
<string
name=
"msg_no_data_to_display"
>
Nenhum dado para exibir
</string>
<string
name=
"msg_check_this_out"
>
Veja isso
</string>
<string
name=
"msg_share_using"
>
compartilhar usando
</string>
<string
name=
"msg_profile_update_successfully"
>
Perfil atualizado com sucesso
</string>
<string
name=
"msg_username"
>
nome de usuário
</string>
<string
name=
"msg_username_or_email"
>
Nome de usuário ou email
</string>
...
...
app/src/main/res/values-ru-rRU/strings.xml
View file @
5af83d2f
...
...
@@ -3,6 +3,7 @@
<!-- Titles -->
<string
name=
"title_sign_in_your_server"
>
Ваш сервер
</string>
<string
name=
"title_log_in"
>
Войти
</string>
<string
name=
"title_share_the_app"
>
добавить приложение
</string>
<string
name=
"title_register_username"
>
Зарегистрировать имя
</string>
<string
name=
"title_reset_password"
>
Сброс пароля
</string>
<string
name=
"title_sign_up"
>
Зарегистрироваться
</string>
...
...
@@ -59,11 +60,14 @@
<item
name=
"item_preferences"
>
Персональные
</item>
<item
name=
"item_password"
>
Изменить пароль
</item>
<item
name=
"item_password"
>
О программе
</item>
<item
name=
"item_share_app"
>
добавить приложение
</item>
</string-array>
<!-- Regular information messages -->
<string
name=
"msg_generic_error"
>
Произошла ошибка, повторите попытку.
</string>
<string
name=
"msg_no_data_to_display"
>
Нет данных для отображения
</string>
<string
name=
"msg_check_this_out"
>
Проверь это
</string>
<string
name=
"msg_share_using"
>
Совместное использование
</string>
<string
name=
"msg_profile_update_successfully"
>
Профиль успешно обновлен
</string>
<string
name=
"msg_username"
>
имя пользователя
</string>
<string
name=
"msg_username_or_email"
>
имя пользователя или e-mail
</string>
...
...
app/src/main/res/values-tr/strings.xml
View file @
5af83d2f
...
...
@@ -3,6 +3,7 @@
<!-- Titles -->
<string
name=
"title_sign_in_your_server"
>
Sunucunuza Bağlantı Kurun
</string>
<string
name=
"title_log_in"
>
Giriş Yapın
</string>
<string
name=
"title_share_the_app"
>
uygulamayı Paylaş
</string>
<string
name=
"title_register_username"
>
Kullanıcı Adıyla Kaydolun
</string>
<string
name=
"title_reset_password"
>
Şifre Sıfırlama
</string>
<string
name=
"title_sign_up"
>
Kayıt Olun
</string>
...
...
@@ -59,11 +60,14 @@
<item
name=
"item_preferences"
>
Tercihler
</item>
<item
name=
"item_password"
>
Şifre Değiştir
</item>
<item
name=
"item_password"
>
Hakkında
</item>
<item
name=
"item_share_app"
>
uygulamayı Paylaş
</item>
</string-array>
<!-- Regular information messages -->
<string
name=
"msg_generic_error"
>
Üzgünüz! bir hata oluştu. Lütfen daha sonra tekrar deneyiniz.
</string>
<string
name=
"msg_no_data_to_display"
>
Görüntülenecek veri bulunmamaktadır.
</string>
<string
name=
"msg_check_this_out"
>
bunu kontrol et
</string>
<string
name=
"msg_share_using"
>
kullanarak paylaş
</string>
<string
name=
"msg_profile_update_successfully"
>
Profil bilgileri başarıyla güncellenmiştir.
</string>
<string
name=
"msg_username"
>
kullanıcı adı
</string>
<string
name=
"msg_username_or_email"
>
kullanıcı adı veya eposta
</string>
...
...
app/src/main/res/values-uk/strings.xml
View file @
5af83d2f
...
...
@@ -3,6 +3,7 @@
<!-- Titles -->
<string
name=
"title_sign_in_your_server"
>
Ваш сервер
</string>
<string
name=
"title_log_in"
>
Увійти
</string>
<string
name=
"title_share_the_app"
>
поділитися прикладом
</string>
<string
name=
"title_register_username"
>
Зареєструвати ім\'я
</string>
<string
name=
"title_reset_password"
>
Відновлення паролю
</string>
<string
name=
"title_sign_up"
>
Зареєструватися
</string>
...
...
@@ -59,11 +60,14 @@
<item
name=
"item_preferences"
>
Preferences
</item>
<!-- TODO Add translation -->
<item
name=
"item_password"
>
Change Password
</item>
<!-- TODO Add translation -->
<item
name=
"item_password"
>
About
</item>
<!-- TODO Add translation -->
<item
name=
"item_share_app"
>
поділитися прикладом
</item>
</string-array>
<!-- Regular information messages -->
<string
name=
"msg_generic_error"
>
Сталася помилка, спробуйте ще раз.
</string>
<string
name=
"msg_no_data_to_display"
>
Немає даних для відображення
</string>
<string
name=
"msg_check_this_out"
>
Перевір це
</string>
<string
name=
"msg_share_using"
>
поділитися використанням
</string>
<string
name=
"msg_profile_update_successfully"
>
"Профіль оновлено успішно "
</string>
<string
name=
"msg_username"
>
Ім\'я користувача
</string>
<string
name=
"msg_username_or_email"
>
Ім\'я користувача або e-mail
</string>
...
...
app/src/main/res/values/defaults.xml
View file @
5af83d2f
...
...
@@ -4,4 +4,5 @@
<string
name=
"server_hint_url"
translatable=
"false"
>
your-company.rocket.chat
</string>
<string
name=
"community_server_url"
translatable=
"false"
>
open.rocket.chat
</string>
<string
name=
"create_server_url"
translatable=
"false"
>
cloud.rocket.chat/trial
</string>
<string
name=
"play_store_link"
translatable=
"false"
>
https://play.google.com/store/apps/details?id=chat.rocket.android
</string>
</resources>
\ No newline at end of file
app/src/main/res/values/strings.xml
View file @
5af83d2f
...
...
@@ -15,6 +15,7 @@ https://github.com/RocketChat/java-code-styles/blob/master/CODING_STYLE.md#strin
<!-- Titles -->
<string
name=
"title_sign_in_your_server"
>
Sign in to your server
</string>
<string
name=
"title_log_in"
>
Login
</string>
<string
name=
"title_share_the_app"
>
Share App
</string>
<string
name=
"title_register_username"
>
Register username
</string>
<string
name=
"title_reset_password"
>
Reset password
</string>
<string
name=
"title_sign_up"
>
Sign up
</string>
...
...
@@ -70,11 +71,14 @@ https://github.com/RocketChat/java-code-styles/blob/master/CODING_STYLE.md#strin
<item
name=
"item_preferences"
>
Preferences
</item>
<item
name=
"item_password"
>
Change Password
</item>
<item
name=
"item_password"
>
About
</item>
<item
name=
"item_share_app"
>
Share App
</item>
</string-array>
<!-- Regular information messages -->
<string
name=
"msg_generic_error"
>
Sorry, an error has occurred, please try again
</string>
<string
name=
"msg_no_data_to_display"
>
No data to display
</string>
<string
name=
"msg_check_this_out"
>
Check this out
</string>
<string
name=
"msg_share_using"
>
Share using
</string>
<string
name=
"msg_profile_update_successfully"
>
Profile update successfully
</string>
<string
name=
"msg_username"
>
username
</string>
<string
name=
"msg_username_or_email"
>
Username or email
</string>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment