Skip to content
This repository was archived by the owner on Jun 7, 2020. It is now read-only.

Commit a3a92f6

Browse files
authored
Merge pull request #2214 from HusseinElFeky/patch-1
[FIX] Typos and Translation Mistakes
2 parents 1eabf03 + 2461646 commit a3a92f6

File tree

24 files changed

+220
-239
lines changed

24 files changed

+220
-239
lines changed

app/src/main/java/chat/rocket/android/authentication/loginoptions/presentation/LoginOptionsView.kt

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -25,18 +25,18 @@ interface LoginOptionsView : LoadingView, MessageView {
2525
fun setupFacebookButtonListener(facebookOauthUrl: String, state: String)
2626

2727
/**
28-
* Shows the "login by Github" view if it is enabled by the server settings.
28+
* Shows the "login by GitHub" view if it is enabled by the server settings.
2929
*
30-
* REMARK: We must set up the Github button listener before enabling it
30+
* REMARK: We must set up the GitHub button listener before enabling it
3131
* [setupGithubButtonListener].
3232
* @see [showAccountsView]
3333
*/
3434
fun enableLoginByGithub()
3535

3636
/**
37-
* Setups the Github button.
37+
* Setups the GitHub button.
3838
*
39-
* @param githubUrl The Github OAuth URL to authenticate with.
39+
* @param githubUrl The GitHub OAuth URL to authenticate with.
4040
* @param state A random string generated by the app, which you'll verify later
4141
* (to protect against forgery attacks).
4242
*/
@@ -61,36 +61,36 @@ interface LoginOptionsView : LoadingView, MessageView {
6161
fun setupGoogleButtonListener(googleUrl: String, state: String)
6262

6363
/**
64-
* Shows the "login by Linkedin" view if it is enabled by the server settings.
64+
* Shows the "login by LinkedIn" view if it is enabled by the server settings.
6565
*
66-
* REMARK: We must set up the Linkedin button listener before enabling it
66+
* REMARK: We must set up the LinkedIn button listener before enabling it
6767
* [setupLinkedinButtonListener].
6868
* @see [showAccountsView]
6969
*/
7070
fun enableLoginByLinkedin()
7171

7272
/**
73-
* Setups the Linkedin button.
73+
* Setups the LinkedIn button.
7474
*
75-
* @param linkedinUrl The Linkedin OAuth URL to authenticate with.
75+
* @param linkedinUrl The LinkedIn OAuth URL to authenticate with.
7676
* @param state A random string generated by the app, which you'll verify later
7777
* (to protect against forgery attacks).
7878
*/
7979
fun setupLinkedinButtonListener(linkedinUrl: String, state: String)
8080

8181
/**
82-
* Shows the "login by Gitlab" view if it is enabled by the server settings.
82+
* Shows the "login by GitLab" view if it is enabled by the server settings.
8383
*
84-
* REMARK: We must set up the Gitlab button listener before enabling it
84+
* REMARK: We must set up the GitLab button listener before enabling it
8585
* [setupGitlabButtonListener].
8686
* @see [showAccountsView]
8787
*/
8888
fun enableLoginByGitlab()
8989

9090
/**
91-
* Setups the Gitlab button.
91+
* Setups the GitLab button.
9292
*
93-
* @param gitlabUrl The Gitlab OAuth URL to authenticate with.
93+
* @param gitlabUrl The GitLab OAuth URL to authenticate with.
9494
* @param state A random string generated by the app, which you'll verify later
9595
* (to protect against forgery attacks).
9696
*/
@@ -99,7 +99,7 @@ interface LoginOptionsView : LoadingView, MessageView {
9999
/**
100100
* Shows the "login by WordPress" view if it is enabled by the server settings.
101101
*
102-
* REMARK: We must set up the Gitlab button listener before enabling it [setupWordpressButtonListener].
102+
* REMARK: We must set up the GitLab button listener before enabling it [setupWordpressButtonListener].
103103
*/
104104
fun enableLoginByWordpress()
105105

app/src/main/java/chat/rocket/android/helper/OauthHelper.kt

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ object OauthHelper {
1515
"\"isCordova\":true}").encodeToBase64()
1616

1717
/**
18-
* Returns the Github Oauth URL.
18+
* Returns the GitHub Oauth URL.
1919
*
2020
* @param clientId The GitHub client ID.
2121
* @param state An unguessable random string used to protect against forgery attacks.
22-
* @return The Github Oauth URL.
22+
* @return The GitHub Oauth URL.
2323
*/
2424
fun getGithubOauthUrl(clientId: String, state: String): String {
2525
return "https://github.com/login/oauth/authorize" +
@@ -46,12 +46,12 @@ object OauthHelper {
4646
}
4747

4848
/**
49-
* Returns the Linkedin Oauth URL.
49+
* Returns the LinkedIn Oauth URL.
5050
*
51-
* @param clientId The Linkedin client ID.
51+
* @param clientId The LinkedIn client ID.
5252
* @param serverUrl The server URL.
5353
* @param state An unguessable random string used to protect against forgery attacks.
54-
* @return The Linkedin Oauth URL.
54+
* @return The LinkedIn Oauth URL.
5555
*/
5656
fun getLinkedinOauthUrl(clientId: String, serverUrl: String, state: String): String {
5757
return "https://linkedin.com/oauth/v2/authorization" +
@@ -62,13 +62,13 @@ object OauthHelper {
6262
}
6363

6464
/**
65-
* Returns the Gitlab Oauth URL.
65+
* Returns the GitLab Oauth URL.
6666
*
67-
* @param host The Gitlab host.
68-
* @param clientId The Gitlab client ID.
67+
* @param host The GitLab host.
68+
* @param clientId The GitLab client ID.
6969
* @param serverUrl The server URL.
7070
* @param state An unguessable random string used to protect against forgery attacks.
71-
* @return The Gitlab Oauth URL.
71+
* @return The GitLab Oauth URL.
7272
*/
7373
fun getGitlabOauthUrl(
7474
host: String? = "https://gitlab.com",

app/src/main/java/chat/rocket/android/profile/ui/ProfileFragment.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ class ProfileFragment : Fragment(), ProfileView, ActionMode.Callback {
141141
}
142142

143143
override fun showProfileUpdateSuccessfullyMessage() {
144-
showMessage(getString(R.string.msg_profile_update_successfully))
144+
showMessage(getString(R.string.msg_profile_updated_successfully))
145145
}
146146

147147
override fun invalidateToken(token: String) = invalidateFirebaseToken(token)
@@ -267,8 +267,8 @@ class ProfileFragment : Fragment(), ProfileView, ActionMode.Callback {
267267
text_email.asObservable()
268268
) { text_name, text_username, text_email ->
269269
return@combineLatest (text_name.toString() != currentName ||
270-
text_username.toString() != currentUsername ||
271-
text_email.toString() != currentEmail)
270+
text_username.toString() != currentUsername ||
271+
text_email.toString() != currentEmail)
272272
}.subscribe { isValid ->
273273
activity?.invalidateOptionsMenu()
274274
if (isValid) {

app/src/main/java/chat/rocket/android/server/presentation/CheckServerPresenter.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ abstract class CheckServerPresenter constructor(
452452

453453
/**
454454
* Returns the OAuth client ID of a [serviceMap].
455-
* REMARK: This function works for common OAuth providers (Google, Facebook, Github and so on)
455+
* REMARK: This function works for common OAuth providers (Google, Facebook, GitHub and so on)
456456
* as well as custom OAuth.
457457
*
458458
* @param serviceMap The service map to get the OAuth client ID.

app/src/main/java/chat/rocket/android/settings/ui/SettingsFragment.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ class SettingsFragment : Fragment(), SettingsView {
8181
text_share_this_app.setOnClickListener { shareApp() }
8282

8383
text_license.setOnClickListener {
84-
presenter.toLicense(getString(R.string.license_url), getString(R.string.title_licence))
84+
presenter.toLicense(getString(R.string.license_url), getString(R.string.title_license))
8585
}
8686

8787
text_app_version.text = getString(R.string.msg_app_version, BuildConfig.VERSION_NAME, BuildConfig.VERSION_CODE)

app/src/main/res/layout/fragment_authentication_log_in.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
android:id="@+id/button_forgot_your_password"
5555
style="@style/Authentication.Button.Borderless"
5656
android:layout_marginTop="10dp"
57-
android:text="@string/msg_forgot__your_password"
57+
android:text="@string/msg_forgot_your_password"
5858
android:visibility="gone"
5959
app:layout_constraintEnd_toEndOf="parent"
6060
app:layout_constraintStart_toStartOf="parent"

app/src/main/res/layout/fragment_settings.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@
182182
android:paddingTop="8dp"
183183
android:paddingEnd="16dp"
184184
android:paddingBottom="8dp"
185-
android:text="@string/msg_licence"
185+
android:text="@string/msg_license"
186186
android:textColor="#DE000000"
187187
android:textSize="16sp"
188188
android:textStyle="normal"

app/src/main/res/layout/item_chat.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
app:layout_constraintEnd_toStartOf="@+id/layout_unread_messages_badge"
6464
app:layout_constraintStart_toStartOf="@+id/image_chat_icon"
6565
app:layout_constraintTop_toBottomOf="@+id/text_chat_name"
66-
tools:text="Filipe de Lima Brito: Type something that is very big and need at least to lines, or maybe even more" />
66+
tools:text="Filipe de Lima Brito: Type something that is very long and need at least two lines, or maybe even more" />
6767

6868
<include
6969
android:id="@+id/layout_unread_messages_badge"

app/src/main/res/values-ar/strings.xml

Lines changed: 16 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
<string name="title_password">تغيير كلمة السر</string>
2222
<string name="title_update_profile">تحديث الملف الشخصي</string>
2323
<string name="title_create_channel">إنشاء قناة</string>
24-
<string name="title_licence">الترخيص</string>
24+
<string name="title_license">الترخيص</string>
2525
<string name="title_are_you_sure">هل أنت متأكد؟</string>
2626
<string name="title_channel_details">تفاصيل القناة</string>
2727
<string name="title_topic">موضوع</string>
@@ -60,27 +60,26 @@
6060
<string name="action_favorite">Favorite</string> <!-- TODO Translate -->
6161
<string name="action_remove_favorite">Remove favorite</string> <!-- TODO Translate -->
6262

63-
<!-- Settings messages-->
63+
<!-- Settings messages -->
6464
<string name="msg_contact_us">Contact us</string> <!-- TODO Translate -->
6565
<string name="msg_language">Language</string> <!-- TODO Translate -->
6666
<string name="msg_review_this_app">Review this app</string> <!-- TODO Translate -->
6767
<string name="msg_share_this_app">Share this app</string> <!-- TODO Translate -->
6868
<string name="msg_administration">Administration</string> <!-- TODO Translate -->
69-
<string name="msg_licence">Licence</string> <!-- TODO Translate -->
69+
<string name="msg_license">License</string> <!-- TODO Translate -->
7070
<string name="msg_app_version">Version: %1$s (%2$d)</string> <!-- TODO Translate -->
7171
<string name="msg_server_version">Server version: %1$s</string> <!-- TODO Translate -->
7272
<string name="msg_send_analytics">Send analytics</string> <!-- TODO Translate -->
7373
<string name="msg_logout_from_rocket_chat">Logout from Rocket.Chat</string> <!-- TODO Translate -->
7474
<string name="msg_delete_account">Delete account</string> <!-- TODO Translate -->
75-
7675
<string name="msg_change_status">Change status</string> <!-- TODO Translate -->
7776

7877
<!-- Regular information messages -->
7978
<string name="msg_generic_error">نأسف حدث خطأ ما حاول مرة أخرى</string>
8079
<string name="msg_no_data_to_display">لا يوجد بيانات للعرض</string>
8180
<string name="msg_check_this_out">تحقق من هذا</string>
8281
<string name="msg_share_using">نشر بواسطة</string>
83-
<string name="msg_profile_update_successfully">تم تحديث الملف الشخصي بنجاح</string>
82+
<string name="msg_profile_updated_successfully">تم تحديث الملف الشخصي بنجاح</string>
8483
<string name="msg_username">اسم المستخدم</string>
8584
<string name="msg_username_or_email">اسم المستخدم أو عنوان بريد</string>
8685
<string name="msg_password">كلمة السر</string>
@@ -89,7 +88,7 @@
8988
<string name="msg_avatar_url">رابط الشخصية</string>
9089
<string name="msg_or_continue_using_social_accounts">استمرار باستخدام حساب التواصل الاجتماعي</string>
9190
<string name="msg_new_user">مستخدم جديد؟ %1$s</string>
92-
<string name="msg_forgot__your_password">نسيت كلمة السر؟</string>
91+
<string name="msg_forgot_your_password">نسيت كلمة السر؟</string>
9392
<string name="msg_reset">إعادة تعيين</string>
9493
<string name="msg_check_your_email_to_reset_your_password">تم إرسال الإيميل راجع إيميلك لتحديث كلمة السر</string>
9594
<string name="msg_invalid_email">من فضلك أدخل عنوان بريد صحيح</string>
@@ -104,12 +103,12 @@
104103
<string name="msg_invalid_file">ملف غير صالح</string>
105104
<string name="msg_invalid_server_url">رابط خادم غير صحيح</string>
106105
<string name="msg_content_description_log_in_using_facebook">تسجيل باستخدام فيسبوك</string>
107-
<string name="msg_content_description_log_in_using_github">تسجيل باستخدام Github</string>
106+
<string name="msg_content_description_log_in_using_github">تسجيل باستخدام GitHub</string>
108107
<string name="msg_content_description_log_in_using_google">تسجيل باستخدام Google</string>
109108
<string name="msg_content_description_log_in_using_linkedin">تسجيل باستخدام LinkedIn</string>
110109
<string name="msg_content_description_log_in_using_meteor">تسجيل باستخدام Meteor</string>
111110
<string name="msg_content_description_log_in_using_twitter">تسجيل باستخدام Twitter</string>
112-
<string name="msg_content_description_log_in_using_gitlab">تسجيل باستخدام Gitlab</string>
111+
<string name="msg_content_description_log_in_using_gitlab">تسجيل باستخدام GitLab</string>
113112
<string name="msg_content_description_log_in_using_wordpress">تسجيل باستخدام WordPress</string>
114113
<string name="msg_content_description_send_message">ارسال رسالة</string>
115114
<string name="msg_content_description_show_more_login_options">إظهار طرق تسجيل أخرى</string>
@@ -130,11 +129,8 @@
130129
<string name="msg_no_messages_yet">ليس هناك رسائل بعد</string>
131130
<string name="msg_build">Build %1$d - %2$s - %3$s</string>
132131
<string name="msg_update_app_version_in_order_to_continue">خادم منتهي برجاء التواصل مع مدير الخادم للاستمرار</string>
133-
<string name="msg_ver_not_recommended">
134-
يبدو أن خادمك قديم %1$s يمكنك الاستمرار لكن ليس بكامل الفعالية</string>
135-
<string name="msg_ver_not_minimum">
136-
يبدو أن خادمك قديم %1$s من فضلك حدث الخادم للاستمرار
137-
</string>
132+
<string name="msg_ver_not_recommended">يبدو أن خادمك قديم %1$s يمكنك الاستمرار لكن ليس بكامل الفعالية</string>
133+
<string name="msg_ver_not_minimum">يبدو أن خادمك قديم %1$s من فضلك حدث الخادم للاستمرار</string>
138134
<string name="msg_no_chat_title">لا توجد رسائل</string>
139135
<string name="msg_no_chat_description">إبدأ المحادثة لترى الرسائل هنا</string>
140136
<string name="msg_http_insecure">أنت تستخدم HTTP وهو غير آمن ونحن لا نحبذ ذلك.</string>
@@ -155,16 +151,16 @@
155151
<string name="msg_sent_attachment">إرسال مرفق</string>
156152
<string name="msg_welcome_to_rocket_chat">أهلا بك في Rocket.Chat</string>
157153
<string name="msg_team_communication">التواصل مع الفريق</string>
158-
<string name="msg_login_with_email">تسجيل ب <b>عنوان البريد </b></string>
154+
<string name="msg_login_with_email">تسجيل ب <b>عنوان البريد</b></string>
159155
<string name="msg_create_account">إنشاء حساب</string>
160156
<string name="msg_continue_with_facebook">استمرار ب <b>Facebook</b></string>
161-
<string name="msg_continue_with_github">استمرار ب <b>Github</b></string>
157+
<string name="msg_continue_with_github">استمرار ب <b>GitHub</b></string>
162158
<string name="msg_continue_with_google">استمرار ب <b>Google</b></string>
163-
<string name="msg_continue_with_linkedin">استمرار ب <b>Linkedin</b></string>
159+
<string name="msg_continue_with_linkedin">استمرار ب <b>LinkedIn</b></string>
164160
<string name="msg_continue_with_gitlab">استمرار ب <b>GitLab</b></string>
165161
<string name="msg_continue_with_wordpress">استمرار ب <b>WordPress</b></string>
166162
<string name="msg_two_factor_authentication">مصادقة مزدوجة</string>
167-
<string name="msg__your_2fa_code">ما هو رمز 2FA?</string>
163+
<string name="msg_your_2fa_code">ما هو رمز 2FA؟</string>
168164
<string name="msg_permalink_copied">الرابط الثابت المنسوخ</string>
169165
<string name="msg_no_topic">لا يوجد موضوع مضاف</string>
170166
<string name="msg_no_announcement">لا يوجد ملف مضاف</string>
@@ -200,8 +196,8 @@
200196
<string name="msg_member_not_found">عضو غير موجود</string>
201197
<string name="msg_channel_created_successfully">تم انشاء القناة بنجاح</string>
202198
<string name="msg_message_copied">تم نسخ الرسالة</string>
203-
<string name="msg_delete_message">تم حذف الرسالة</string>
204-
<string name="msg_delete_description">هل أنت متأكد من حذف هذه الرسالة</string>
199+
<string name="msg_delete_message">حذف الرسالة</string>
200+
<string name="msg_delete_description">هل أنت متأكد من حذف هذه الرسالة؟</string>
205201
<string name="msg_view_more">رؤية المزيد</string>
206202
<string name="msg_view_less">رؤية أقل</string>
207203
<string name="msg_muted_on_this_channel">لقد جعلت هذه القناة صامتة</string>
@@ -278,7 +274,7 @@
278274
<string name="msg_all_files_appear_here">الملفات تظهر هنا</string>
279275

280276
<!-- Upload Messages -->
281-
<string name="max_file_size_exceeded">ملف كبير</string>
277+
<string name="max_file_size_exceeded">تجاوز حجم الملف %1$d بايت الحد الأقصى لحجم التحميل وهو %2$d بايت</string>
282278

283279
<!-- Socket status -->
284280
<string name="status_connected">اتصال</string>

0 commit comments

Comments
 (0)