Skip to content

Commit c547c42

Browse files
committed
Merge remote-tracking branch 'upstream/master'
2 parents 83980a9 + d3f8ffa commit c547c42

File tree

17 files changed

+112
-42
lines changed

17 files changed

+112
-42
lines changed

ISSUE_TEMPLATE.md

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,18 @@
1-
_Before creating an issue, please search the existing issues to see if a similar one has already been created. You can search issues by specific labels (e.g. `label:nearby `) or just by typing keywords into the search filter._
2-
31
**Summary:**
42

53
Summarize your issue in one sentence (what goes wrong, what did you expect to happen)
64

5+
_Before creating an issue, please search the existing issues to see if a similar one has already been created. You can search issues by specific labels (e.g. `label:nearby `) or just by typing keywords into the search filter._
6+
77
**Steps to reproduce:**
88

9-
How can we reproduce the issue?
9+
How can we reproduce the issue?
10+
What did you expect the app to do, and what did you see instead?
1011

1112
**Add System logs:**
1213

1314
Add logcat files here (if possible).
1415

15-
**Expected behavior:**
16-
17-
What did you expect the App to do?
18-
19-
**Observed behavior:**
20-
21-
What did you see instead? Describe your issue in detail here.
22-
2316
**Device and Android version:**
2417

2518
What make and model device (e.g., Samsung J7) did you encounter this on? What Android
@@ -28,7 +21,7 @@ version (e.g., Android 4.0 Ice Cream Sandwich or Android 6.0 Marshmallow) are yo
2821

2922
**Commons app version:**
3023

31-
You can find this information by going to the navigation drawer in the app and tapping 'About'
24+
You can find this information by going to the navigation drawer in the app and tapping 'About'. If you are building from our codebase instead of downloading the app, please also mention the branch and build variant (e.g. master and prodDebug).
3225

3326
**Screen-shots:**
3427

app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ dependencies {
2222
implementation 'info.debatty:java-string-similarity:0.24'
2323
implementation 'com.borjabravo:readmoretextview:2.1.0'
2424
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
25-
implementation('com.mapbox.mapboxsdk:mapbox-android-sdk:5.4.1@aar') {
25+
implementation('com.mapbox.mapboxsdk:mapbox-android-sdk:5.5.0@aar') {
2626
transitive = true
2727
}
2828
implementation 'com.github.deano2390:MaterialShowcaseView:1.2.0'

app/src/main/java/fr/free/nrw/commons/contributions/ContributionsActivity.java

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -276,17 +276,25 @@ private void setUploadCount() {
276276
.getUploadCount(sessionManager.getCurrentAccount().name)
277277
.subscribeOn(Schedulers.io())
278278
.observeOn(AndroidSchedulers.mainThread())
279-
.subscribe(
280-
uploadCount -> getSupportActionBar().setSubtitle(getResources()
281-
.getQuantityString(R.plurals.contributions_subtitle,
282-
uploadCount, uploadCount)),
279+
.subscribe(this::displayUploadCount,
283280
t -> Timber.e(t, "Fetching upload count failed")
284281
));
285282
}
286283

287-
public void betaSetUploadCount(int betaUploadCount){
284+
private void displayUploadCount(Integer uploadCount) {
285+
if (isFinishing()
286+
|| getSupportActionBar() == null
287+
|| getResources() == null) {
288+
return;
289+
}
290+
288291
getSupportActionBar().setSubtitle(getResources()
289-
.getQuantityString(R.plurals.contributions_subtitle, betaUploadCount, betaUploadCount));
292+
.getQuantityString(R.plurals.contributions_subtitle,
293+
uploadCount, uploadCount));
294+
}
295+
296+
public void betaSetUploadCount(int betaUploadCount) {
297+
displayUploadCount(betaUploadCount);
290298
}
291299

292300

app/src/main/java/fr/free/nrw/commons/upload/SingleUploadFragment.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,13 +74,13 @@ public boolean onOptionsItemSelected(MenuItem item) {
7474
//What happens when the 'submit' icon is tapped
7575
case R.id.menu_upload_single:
7676

77-
if (titleEdit.getText().toString().isEmpty()) {
77+
if (titleEdit.getText().toString().trim().isEmpty()) {
7878
Toast.makeText(getContext(), R.string.add_title_toast, Toast.LENGTH_LONG).show();
7979
return false;
8080
}
8181

82-
String title = titleEdit.getText().toString();
83-
String desc = descEdit.getText().toString();
82+
String title = titleEdit.getText().toString().trim();
83+
String desc = descEdit.getText().toString().trim();
8484

8585
//Save the title/desc in short-lived cache so next time this fragment is loaded, we can access these
8686
prefs.edit()

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,4 +144,6 @@
144144
<string name="notifications_talk_page_message">%1$s رسالة على صفحة الحديث</string>
145145
<string name="notifications_mention">%1$s ذكر لك على %2$s.</string>
146146
<string name="share_app_title">شارك التطبيق</string>
147+
<string name="appwidget_img">صورة اليوم</string>
148+
<string name="app_widget_heading">صورة اليوم</string>
147149
</resources>

app/src/main/res/values-bn/error.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
* Aftabuzzaman
44
* Bellayet
55
* Sankarshan
6+
* আফতাবুজ্জামান
67
-->
78
<resources>
89
<string name="crash_dialog_title">কমন্স ক্র্যাশ করেছে</string>

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* Rasal Lia
1010
* Sankarshan
1111
* Tauhid16
12+
* আফতাবুজ্জামান
1213
-->
1314
<resources>
1415
<string name="preference_category_appearance">অবয়ব</string>
@@ -256,6 +257,8 @@
256257
<string name="no_internet">ইন্টারনেট অনুপলব্ধ</string>
257258
<string name="internet_established">ইন্টারনেট উপলব্ধ</string>
258259
<string name="no_notifications">কোন বিজ্ঞপ্তি পাওয়া যায়নি</string>
260+
<string name="about_translate_title">ভাষাসমূহ</string>
261+
<string name="about_translate_cancel">বাতিল</string>
259262
<string name="retry">পুনঃচেষ্টা করুন</string>
260263
<string name="showcase_view_got_it_button">বুঝেছি!</string>
261264
<string name="no_images_found">কোন চিত্র পাওয়া যায়নি!</string>

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

Lines changed: 53 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,25 @@
55
* Robin Owain
66
-->
77
<resources>
8+
<string name="preference_category_appearance">Ymddangosiad</string>
9+
<string name="preference_category_general">Cyffredinol</string>
10+
<string name="preference_category_feedback">Adborth</string>
11+
<string name="preference_category_location">Lleoliad</string>
812
<string name="app_name">Comin Wicimedia</string>
13+
<string name="bullet">•</string>
914
<string name="menu_settings">Gosodiadau</string>
1015
<string name="username">Enw defnyddiwr</string>
1116
<string name="password">Cyfrinair</string>
17+
<string name="login_credential">Mewngofnodwch i\'ch cyfri Comin Beta</string>
1218
<string name="login">Mewngofnodi</string>
19+
<string name="forgot_password">Anghofiwyd y Cyfrinair?</string>
1320
<string name="signup">Cofrestru</string>
1421
<string name="logging_in_title">Wrthi\'n mewngofnodi</string>
1522
<string name="logging_in_message">Disgwyliwch…</string>
1623
<string name="login_success">Llwyddodd y mewngofnodi!</string>
1724
<string name="login_failed">Methodd y mewngofnodi!</string>
1825
<string name="upload_failed">Ni chafwyd hyd i\'r ffeil. Ceisiwch un arall.</string>
19-
<string name="authentication_failed" fuzzy="true">Methodd y dilysu!</string>
26+
<string name="authentication_failed">Methodd y dilysu! Mewngofnodwch eto.</string>
2027
<string name="uploading_started">Dechreuodd yr uwchlwytho!</string>
2128
<string name="upload_completed_notification_title">Uwchlwythwyd %1$s!</string>
2229
<string name="upload_completed_notification_text">Tapiwch i weld eich uwchlwythiad</string>
@@ -41,8 +48,10 @@
4148
<string name="menu_share">Rhannu</string>
4249
<string name="menu_open_in_browser">Agor yn y Porwr</string>
4350
<string name="share_title_hint">Teitl</string>
51+
<string name="add_title_toast">Rhowch deitl i\'r ffeil</string>
4452
<string name="share_description_hint">Disgrifiad</string>
4553
<string name="login_failed_network">Yn methu mewngofnodi - methodd y rhwydwaith</string>
54+
<string name="login_failed_wrong_credentials">Methwyd mewngofnodi - gwirwch eich enw defnyddiwr a\'ch cyfrinair</string>
4655
<string name="login_failed_throttled">Cafwyd gormod o ymgeision aflwyddiannus. Oedwch ennyd cyn ceisio eto.</string>
4756
<string name="login_failed_blocked">Ymddiheurwn. Mae\'r defnyddiwr hwn wedi ei flocio ar Gomin Wikimedia</string>
4857
<string name="login_failed_2fa_needed">Mae\'n rhaid i chi roi eich cod adnabod 2 ffactor.</string>
@@ -54,6 +63,7 @@
5463
<string name="categories_search_text_hint">Archwilio\'r categorïau</string>
5564
<string name="menu_save_categories">Cadw</string>
5665
<string name="refresh_button">Ailgyrchu</string>
66+
<string name="display_list_button">Rhestr</string>
5767
<string name="gps_disabled">Ataliwyd GPS ar eich dyfais. Ydych chi am ei droi\'n weithredol?</string>
5868
<string name="enable_gps">Gweithredu\'r GPS</string>
5969
<string name="contributions_subtitle_zero">Heb uwchlwytho eto</string>
@@ -75,11 +85,12 @@
7585
<string name="categories_activity_title">Categorïau</string>
7686
<string name="title_activity_settings">Gosodiadau</string>
7787
<string name="title_activity_signup">Cofrestru</string>
88+
<string name="title_activity_featured_images">Delweddau nodwedd</string>
7889
<string name="menu_about">Amdanom</string>
7990
<string name="about_license">Ap Cynnwys Agored a grewyd ac a gefnogir gan wirfoddolwyr cymuned Wicimedia yw ap Comin Wicimedia. Does a wnelo Sefydliad Wicimedia ddim byd ag e (ei greu, ei gynnal na\'i ddatblygu).</string>
8091
<string name="about_improve">\n\nCrewch &lt;a href=\"https://github.com/commons-app/apps-android-commons/issues\"&gt;ymholiad GitHub&lt;/a&gt; os oes gennych fyg, broblem neu awgrym.</string>
81-
<string name="about_privacy_policy" fuzzy="true">&lt;a href=\"https://github.com/commons-app/apps-android-commons/wiki/Privacy-policy\"&gt;Polisi Preifatrwydd&lt;/a&gt;</string>
82-
<string name="about_credits" fuzzy="true">&lt;a href=\"https://github.com/commons-app/apps-android-commons/blob/master/CREDITS\"&gt;Clod&lt;/a&gt;</string>
92+
<string name="about_privacy_policy">&lt;u&gt;Polisi preifatrwydd&lt;/u&gt;</string>
93+
<string name="about_credits">Clod a bri</string>
8394
<string name="title_activity_about">Amdanom</string>
8495
<string name="menu_feedback">Danfonwch Adborth (drwy Ebost)</string>
8596
<string name="no_email_client">Dim ebost client wedi\'i ganfod</string>
@@ -91,10 +102,10 @@
91102
<string name="share_license_summary">Caiff y ddelwedd hon ei thrwyddedu yn ôl termau\'r drwydded %1$s.</string>
92103
<string name="media_upload_policy">Wrth gynnig y llun yma, rwy\'n datgan mai fy ngwaith i ydyw ac nad yw\'n cynnwys unrhyw beth dan hawlfrain, na hunlun, a\'i fod yn cadw at &lt;a href=\"https://commons.wikimedia.org/wiki/Commons:Policies_and_guidelines\"&gt;Bolisiau Comin Wicimedia&lt;/a&gt;.</string>
93104
<string name="menu_download">Lawrlwytho</string>
94-
<string name="preference_license" fuzzy="true">Trwydded</string>
105+
<string name="preference_license">Trwydded Ddiofyn (\'default\')</string>
95106
<string name="use_previous">Defnydiwch y teitl/disgrifiad blaenorol</string>
96107
<string name="allow_gps">Defnyddiwch y lleoliad cyfredol</string>
97-
<string name="allow_gps_summary" fuzzy="true">Canfyddwch eich lleoliad, er mwyn i ni gynnig categori (os nad ydych wedi nodi\'r cyfesurynnau).</string>
108+
<string name="allow_gps_summary">Adfer eich lleoliad presennol os nad yw\'r ddelwedd yn cynnwys cyfesurynnau. Bydd hyn yn datgelu eich lleoliad chi!</string>
98109
<string name="preference_theme">Modd fin nos</string>
99110
<string name="preference_theme_summary">Defnyddiwch thema tywyll</string>
100111
<string name="license_name_cc_by_sa_four"> Attribution-ShareAlike 4.0</string>
@@ -120,9 +131,19 @@
120131
<string name="tutorial_1_text">Cyhelir llawer o luniau ar Gomin Wicimedia sy\'n cael eu defnyddio ar Wicipedia.</string>
121132
<string name="tutorial_1_subtext">Mae eich lluniau\'n gymorth i addysgu pobl drwy\'r byd mawr crwn!</string>
122133
<string name="tutorial_2_text">Uwchlwythwch lluniau a dynnoch eich hun:</string>
123-
<string name="tutorial_2_subtext" fuzzy="true">- Natur (blodau, anifeiliaid, mynyddoedd)\n- Pethau defnyddiol (beic, tren, gorsaf drenau)\n- Enwogion (beirdd, athletwyr, blogwyr)</string>
134+
<string name="tutorial_2_subtext">Gwrthrychau byd natur (blodau, anifeiliaid, mynyddoedd)\n- Gwrthrychau defnyddiol (beics, trenau, gorsafoedd trenau)\n- Enwogion (beirdd, athletwyr, blogwyr)</string>
135+
<string name="tutorial_2_subtext_1">Gwrthrychau byd natur (blodau, anifeiliaid, mynyddoedd)</string>
136+
<string name="tutorial_2_subtext_2">Gwrthrychau defnyddiol (beics, trenau, gorsafoedd trenau)</string>
137+
<string name="tutorial_2_subtext_3">Enwogion (beirdd, athletwyr, blogwyr)</string>
124138
<string name="tutorial_3_text">Peidiwch ag uwchlwytho:</string>
125139
<string name="tutorial_3_subtext">- hunanluniau ohonoch chi na\'ch ffrindiau\n- lluniau a gawsoch o\'r we\n- sgrinluniau o apiau masnachol</string>
140+
<string name="tutorial_3_subtext_1">Hunanluniau neu luniau o\'ch ffrindiau</string>
141+
<string name="tutorial_3_subtext_2">Lluniau a lawrlwythwyd o\'r we gennych</string>
142+
<string name="tutorial_3_subtext_3">Sgrinluniau o aps</string>
143+
<string name="tutorial_4_text">Enghraifft o uwchlwythiad:</string>
144+
<string name="tutorial_4_subtext_1">Teitl:Tŷ Opera Sydney</string>
145+
<string name="tutorial_4_subtext_2">Disgrifiad: Golygfa o Dŷ Opera Sydney o ochr arall y bae</string>
146+
<string name="tutorial_4_subtext_3">Categoriau: Tŷ Opera Sydney o\'r gorllewin</string>
126147
<string name="welcome_wikipedia_text">Cyfranwch luniau. Cynorthwywch Wicipedia i roi bywyd yn yr erthyglau!</string>
127148
<string name="welcome_wikipedia_subtext">Mae\'r delweddau ar Wicipedia\'n dod o\nGomin Wikimedia.</string>
128149
<string name="welcome_copyright_text">Mae eich delweddau\'n cynorthwyo i addysgu pobl ledled y byd.</string>
@@ -135,6 +156,32 @@
135156
<string name="detail_description_empty">Dim disgrifiad</string>
136157
<string name="detail_license_empty">Trwydded anhysbys</string>
137158
<string name="menu_refresh">Adnewyddu</string>
159+
<string name="ok">Iawn</string>
160+
<string name="title_activity_nearby">Lleoedd Cyfagos</string>
161+
<string name="no_nearby">Ni chafwyd hyd i leoedd cyfagos</string>
162+
<string name="warning">Rhybudd</string>
163+
<string name="yes">Ydw</string>
164+
<string name="no">Nac ydw</string>
138165
<string name="media_detail_title">Teitl</string>
166+
<string name="media_detail_media_title">teitl y cyfrwng</string>
139167
<string name="media_detail_description">Disgrifiad</string>
168+
<string name="media_detail_author">Awdur</string>
169+
<string name="media_detail_uploaded_date">Dyddiad yr uwchlwythiad</string>
170+
<string name="media_detail_license">Trwydded</string>
171+
<string name="media_detail_coordinates">Cyfesurynnau</string>
172+
<string name="media_detail_coordinates_empty">Dim</string>
173+
<string name="nearby_info_menu_wikidata_article">Eitem Wicidata</string>
174+
<string name="nearby_info_menu_wikipedia_article">Erthygl Wicipedia</string>
175+
<string name="login_to_your_account">Mewngofnodwch i\'ch cyfri</string>
176+
<string name="send_log_file">Danfonwch y ffeil log</string>
177+
<string name="view_browser">Gweld yn y porwr</string>
178+
<string name="nearby_location_has_not_changed">Nid yw\'r lleoliad wedi newid.</string>
179+
<string name="nearby_location_not_available">Nid yw\'r lleoliad ar gael.</string>
180+
<string name="about_translate_proceed">Parhau</string>
181+
<string name="about_translate_cancel">Canslo</string>
182+
<string name="retry">Ailgeisio</string>
183+
<string name="showcase_view_got_it_button">Gwnaed!</string>
184+
<string name="appwidget_img">Llun y Dydd</string>
185+
<string name="app_widget_heading">Llun y Dydd</string>
186+
<string name="successful_wikidata_edit">Mae %1$s o luniau wedi\'u hychwanegu ar Wicidata!</string>
140187
</resources>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@
120120
<string name="preference_license">Licence par défaut</string>
121121
<string name="use_previous">Utiliser le titre ou la description précédent</string>
122122
<string name="allow_gps">Obtenir automatiquement l’emplacement actuel</string>
123-
<string name="allow_gps_summary">Récupère l’emplacement actuel si l’image n’est pas marquée géographiquement, et marque géographiquement l’image avec. Avertissement : Cela dévoilera votre emplacement actuel.</string>
123+
<string name="allow_gps_summary">Récupère l’emplacement actuel si l’image n’est pas marquée géographiquement, et marque géographiquement l’image avec. Avertissement : ceci dévoilera votre emplacement actuel.</string>
124124
<string name="preference_theme">Mode de nuit</string>
125125
<string name="preference_theme_summary">Utiliser un thème sombre</string>
126126
<string name="license_name_cc_by_sa_four"> Attribution-ShareAlike 4.0</string>

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

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
<string name="login_success">ログインしました!</string>
3131
<string name="login_failed">ログインに失敗しました!</string>
3232
<string name="upload_failed">ファイルが見つかりません。別のファイルでお試しください。</string>
33-
<string name="authentication_failed" fuzzy="true">認証に失敗しました!</string>
33+
<string name="authentication_failed">認証に失敗しました! もう一度ログインしてください</string>
3434
<string name="uploading_started">アップロードを開始しました!</string>
3535
<string name="upload_completed_notification_title">%1$s をアップロードしました!</string>
3636
<string name="upload_completed_notification_text">アップロードしたものを表示するにはタップしてください</string>
@@ -61,7 +61,7 @@
6161
<string name="login_failed_wrong_credentials">ログインできません - 利用者名とパスワードを確認してください</string>
6262
<string name="login_failed_throttled">失敗した回数が多すぎます。数分待ってからもう一度お試しください。</string>
6363
<string name="login_failed_blocked">申し訳ありませんが、この利用者はコモンズでブロックされています。</string>
64-
<string name="login_failed_2fa_needed">2要素認証コードを提供する必要があります。</string>
64+
<string name="login_failed_2fa_needed">2段階認証コードを入力する必要があります。</string>
6565
<string name="login_failed_generic">ログイン失敗</string>
6666
<string name="share_upload_button">アップロード</string>
6767
<string name="multiple_share_base_title">このセットに名前をつけてください</string>
@@ -185,7 +185,7 @@
185185
<string name="media_detail_coordinates_empty">情報なし</string>
186186
<string name="become_a_tester_title">ベータ版を使ってみましょう!</string>
187187
<string name="become_a_tester_description">Google Playのベータ版チャンネルにオプトインして、新機能やバグ修正プログラムに早期にアクセス</string>
188-
<string name="_2fa_code">2FA コード</string>
188+
<string name="_2fa_code">2段階認証コード</string>
189189
<string name="number_of_uploads">最近のアップロードファイルに表示する最大件数</string>
190190
<string name="maximum_limit">最大限</string>
191191
<string name="maximum_limit_alert">表示できるのは500件以下です</string>
@@ -280,8 +280,10 @@
280280
<string name="share_app_title">アプリをシェアする</string>
281281
<string name="share_coordinates_not_present">画像の選択中に位置情報を特定できませんでした</string>
282282
<string name="error_fetching_nearby_places">付近の場所を取得しようとしてエラーが発生しました。</string>
283+
<string name="appwidget_img">今日の一枚</string>
284+
<string name="app_widget_heading">今日の一枚</string>
283285
<string name="successful_wikidata_edit">ウィキデータの%1$sに画像を追加しました !</string>
284-
<string name="wikidata_edit_failure" fuzzy="true">対応するウィキデータの引数の更新に失敗しました。</string>
286+
<string name="wikidata_edit_failure">対応するウィキデータの更新に失敗しました!</string>
285287
<string name="menu_set_wallpaper">壁紙の設定</string>
286288
<string name="wallpaper_set_successfully">壁紙の設定ができました!</string>
287289
</resources>

0 commit comments

Comments
 (0)