Skip to content

Commit

Permalink
Merge branch 'main' into Comment-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
QUIETTTTTTTTTT authored Nov 8, 2024
2 parents 4e07ead + a70d585 commit 59f140b
Show file tree
Hide file tree
Showing 94 changed files with 514 additions and 500 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import fr.free.nrw.commons.utils.CustomSelectorUtils.Companion.checkWhetherFileE
import kotlinx.coroutines.CoroutineDispatcher
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.MainScope
import kotlinx.coroutines.launch
import java.util.Calendar
import java.util.concurrent.TimeUnit
Expand Down Expand Up @@ -65,7 +66,7 @@ class ImageLoader
/**
* Coroutine Scope.
*/
private val scope: CoroutineScope = CoroutineScope(Dispatchers.IO)
private val scope: CoroutineScope = MainScope()

/**
* Query image and setUp the view.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,12 @@ && getParentFragment() instanceof MediaDetailPagerFragment) {

if (!sessionManager.isUserLoggedIn()) {
binding.categoryEditButton.setVisibility(GONE);
binding.descriptionEdit.setVisibility(GONE);
binding.depictionsEditButton.setVisibility(GONE);
} else {
binding.categoryEditButton.setVisibility(VISIBLE);
binding.descriptionEdit.setVisibility(VISIBLE);
binding.depictionsEditButton.setVisibility(VISIBLE);
}

if(applicationKvStore.getBoolean("login_skipped")){
Expand Down Expand Up @@ -400,7 +406,6 @@ public void onGlobalLayout() {
}
);
binding.progressBarEdit.setVisibility(GONE);
binding.descriptionEdit.setVisibility(VISIBLE);
}

@Override
Expand Down Expand Up @@ -678,7 +683,9 @@ private void updateCategoryList(final String s) {
// Stick in a filler element.
allCategories.add(getString(R.string.detail_panel_cats_none));
}
binding.categoryEditButton.setVisibility(VISIBLE);
if(sessionManager.isUserLoggedIn()) {
binding.categoryEditButton.setVisibility(VISIBLE);
}
rebuildCatList(allCategories);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ public List<Place> getNearbyPlaces(final LatLng cur, final String language, fina
throws Exception {

Timber.d("Fetching nearby items at radius %s", radius);
Timber.d("CUSTOM_SPARQL%s", String.valueOf(customQuery != null));
Timber.d("CUSTOM_SPARQL: %s", String.valueOf(customQuery != null));
final String wikidataQuery;
if (customQuery != null) {
wikidataQuery = customQuery;
Expand Down Expand Up @@ -344,7 +344,7 @@ public List<Place> getNearbyPlaces(
final boolean shouldQueryForMonuments, final String customQuery)
throws Exception {

Timber.d("CUSTOM_SPARQL%s", String.valueOf(customQuery != null));
Timber.d("CUSTOM_SPARQL: %s", String.valueOf(customQuery != null));

final String wikidataQuery;
if (customQuery != null) {
Expand Down
4 changes: 2 additions & 2 deletions app/src/main/res/values-ab/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<string name="login">Аҭаларҭа</string>
<string name="signup">Иҟаҵатәуп арегистрациа</string>
<string name="logging_in_title">Асистемахь аҭаларҭа</string>
<string name="logging_in_message">Шәааԥшы ԥыҭрак</string>
<string name="logging_in_message">Шәааԥшы ԥыҭрак...</string>
<string name="login_success" fuzzy="true">Аҭалара қәҿиарала имҩаԥысит!</string>
<string name="login_failed" fuzzy="true">Асистемахь аҭалараан агха!</string>
<string name="upload_failed">Афаил ԥшаам. Даҽа фаилк шәахәаԥш.</string>
Expand Down Expand Up @@ -64,7 +64,7 @@
<string name="welcome_final_text">Ари шәара еилышәкаама?</string>
<string name="welcome_final_button_text">Ааи!</string>
<string name="detail_panel_cats_label">Акатегориақәа</string>
<string name="detail_panel_cats_loading">Аҭагалара</string>
<string name="detail_panel_cats_loading">Аҭагалара...</string>
<string name="detail_panel_cats_none">Акагь алхӡам</string>
<string name="detail_description_empty">Иҟам ахҳәаа</string>
<string name="detail_license_empty">Идырым алицензиа</string>
Expand Down
3 changes: 2 additions & 1 deletion app/src/main/res/values-af/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
<item quantity="other">%1$d lêers aan die uploaden</item>
</plurals>
<plurals name="contributions_subtitle" fuzzy="true">
<item quantity="zero">\@string/contributions_subtitle_zero</item>
<item quantity="one">(%1$d)</item>
<item quantity="other">(%1$d)</item>
</plurals>
Expand Down Expand Up @@ -147,7 +148,7 @@
<string name="welcome_final_button_text">Ja!</string>
<string name="welcome_help_button_text" fuzzy="true">&lt;u&gt;Meer inligting&lt;/u&gt;</string>
<string name="detail_panel_cats_label">Kategorieë</string>
<string name="detail_panel_cats_loading">Laai </string>
<string name="detail_panel_cats_loading">Laai ...</string>
<string name="detail_panel_cats_none">Niks gekies nie</string>
<string name="detail_description_empty">Geen beskrywing</string>
<string name="detail_discussion_empty">Geen bespreking nie</string>
Expand Down
10 changes: 5 additions & 5 deletions app/src/main/res/values-anp/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@
<string name="forgot_password">पासवर्ड भूलाय गेलौ की?</string>
<string name="signup">साइन अप करौ</string>
<string name="logging_in_title">प्रवेश होय रहलौ छौं</string>
<string name="logging_in_message">कृपया प्रतीक्षा करौ</string>
<string name="updating_caption_message">कृपया प्रतीक्षा करौ</string>
<string name="logging_in_message">कृपया प्रतीक्षा करौ...</string>
<string name="updating_caption_message">कृपया प्रतीक्षा करौ...</string>
<string name="login_failed" fuzzy="true">प्रवेश विफल</string>
<string name="uploading_started">अपलोड आरंभ!</string>
<string name="title_activity_contributions">हाल केरौ अपलोड</string>
<string name="contribution_state_queued">कतारबद्ध</string>
<string name="contribution_state_failed">विफल</string>
<string name="contribution_state_starting">अपलोड होय रहलौ छौं</string>
<string name="contribution_state_starting">अपलोड होय रहलौ छौं...</string>
<string name="menu_nearby">ठामे मँ</string>
<string name="provider_contributions">हमरौ अपलोड</string>
<string name="menu_share">साझा करौ</string>
Expand Down Expand Up @@ -68,7 +68,7 @@
<string name="welcome_final_button_text">हाँव!</string>
<string name="welcome_help_button_text">बेसी जानकारी</string>
<string name="detail_panel_cats_label">श्रेणी सिनी</string>
<string name="detail_panel_cats_loading">लोड होय रहलौ छौं</string>
<string name="detail_panel_cats_loading">लोड होय रहलौ छौं...</string>
<string name="detail_panel_cats_none">कुछु चयनित नाय</string>
<string name="detail_caption_empty">कोय शीर्षक नाय</string>
<string name="detail_description_empty">कोय विवरण नाय</string>
Expand Down Expand Up @@ -173,7 +173,7 @@
<string name="nominate_for_deletion_done">पूर्ण होलौं</string>
<string name="review_thanks_yes_button_text">अगलका छवि</string>
<string name="review_thanks_no_button_text">हाँव, केन्हअ नाय</string>
<string name="please_wait">कृपया प्रतीक्षा करौ</string>
<string name="please_wait">कृपया प्रतीक्षा करौ...</string>
<string name="copied_successfully">प्रतिलिपि बनैलौ गेलै!</string>
<string name="exif_tag_name_author">लेखक</string>
<string name="exif_tag_name_location">स्थान</string>
Expand Down
10 changes: 5 additions & 5 deletions app/src/main/res/values-ar/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@
<string name="logging_in_title">يجري الدخول</string>
<string name="logging_in_message">الرجاء الانتظار…</string>
<string name="updating_caption_title">تحديث التسميات التوضيحية والأوصاف</string>
<string name="updating_caption_message">يرجى الانتظار</string>
<string name="updating_caption_message">يرجى الانتظار...</string>
<string name="login_success">نجاح تسجيل الدخول!</string>
<string name="login_failed">فشل تسجيل الدخول</string>
<string name="upload_failed">الملف غير موجود. فضلا اختر ملفا آخر.</string>
Expand Down Expand Up @@ -530,7 +530,7 @@
<string name="menu_option_read">عرض المقروءة</string>
<string name="menu_option_unread">عرض غير المقروءة</string>
<string name="error_occurred_in_picking_images">حدث خطأ أثناء التقاط الصور</string>
<string name="please_wait">الرجاء الانتظار</string>
<string name="please_wait">الرجاء الانتظار...</string>
<string name="images_featured_explanation">الصور المختارة هي صور من مصورين ورسامين ذوي مهارات عالية اختارها مجتمع ويكيميديا ​​كومنز كبعض الأفضل جودة على الموقع.</string>
<string name="images_via_nearby_explanation">الصور المرفوعة عبر الأماكن القريبة هي الصور المرفوعة عن طريق اكتشاف الأماكن على الخريطة.</string>
<string name="thanks_received_explanation">تتيح هذه الميزة للمحررين إرسال إشعار شكر للمستخدمين الذين يقومون بتعديلات مفيدة - باستخدام رابط شكر صغير في صفحة التاريخ أو صفحة الفرق.</string>
Expand All @@ -552,7 +552,7 @@
<string name="media_location_permission_denied">رفض الوصول إلى موقع الوسائط</string>
<string name="add_location_manually">قد لا نتمكن من الحصول تلقائيًا على بيانات الموقع من الصور التي تقوم برفعها. يرجى إضافة الموقع المناسب لكل صورة قبل الإرسال</string>
<string name="share_text">ارفع الصور لويكيميديا ​​كومنز مباشرة من هاتفك. قم بتنزيل تطبيق كومنز الآن: %1$s</string>
<string name="share_via">مشاركة التطبيق عبر</string>
<string name="share_via">مشاركة التطبيق عبر...</string>
<string name="image_info">معلومات الصورة</string>
<string name="no_categories_found">لم يتم العثور على تصنيفات</string>
<string name="no_depiction_found">لم يتم العثور على الصور</string>
Expand Down Expand Up @@ -695,7 +695,7 @@
<string name="limited_connection_mode">وضع الاتصال المحدود</string>
<string name="statistics_quality">صور عالية الجودة</string>
<string name="quality_images_info">الصور عالية الجودة هي رسوم بيانية أو صور فوتوغرافية تفي بمعايير جودة معينة (والتي تكون في الغالب ذات طبيعة فنية) وذات قيمة لمشروعات ويكيميديا</string>
<string name="resuming_upload">جاري استئناف التحميل </string>
<string name="resuming_upload">جاري استئناف التحميل ...</string>
<string name="pausing_upload">جاري إيقاف التحميل مؤقتًا ..</string>
<string name="cancelling_upload">الغاء التحميل</string>
<string name="cancel_upload">إلغاء الرفع</string>
Expand Down Expand Up @@ -794,7 +794,7 @@
<string name="request_user_block">طلب منع هذا المستخدم</string>
<string name="welcome_to_full_screen_mode_text">مرحبًا بك في وضع التحديد بملء الشاشة</string>
<string name="full_screen_mode_zoom_info">استخدم إصبعين للتكبير والتصغير.</string>
<string name="full_screen_mode_features_info" fuzzy="true">مرر سريعًا وطويلًا لتنفيذ هذه الإجراءات:! N! - يسار / يمين: انتقل إلى السابق / التالي! N! - لأعلى: حدد! N! - أسفل: وضع علامة على أنه ليس للتحميل.</string>
<string name="full_screen_mode_features_info">مرر سريعًا وطويلًا لأداء هذه الإجراءات: \n- يسار/يمين: الانتقال إلى السابق/التالي \n- أعلى: تحديد\n- أسفل: وضع علامة على عدم التحميل.</string>
<string name="storage_permissions_denied">رُفض إذن التخزين</string>
<string name="unable_to_share_upload_item">تعذر مشاركة هذا العنصر</string>
<string name="permissions_are_required_for_functionality">الإذن مطلوب لهذه الوظيفة</string>
Expand Down
4 changes: 2 additions & 2 deletions app/src/main/res/values-as/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<string name="forgot_password">পাছৱৰ্ড পাহৰিলে?</string>
<string name="signup">পঞ্জীয়ন কৰক</string>
<string name="logging_in_title">লগইন হৈ আছে</string>
<string name="logging_in_message">অনুগ্ৰহ কৰি অপেক্ষা কৰক</string>
<string name="logging_in_message">অনুগ্ৰহ কৰি অপেক্ষা কৰক...</string>
<string name="login_success" fuzzy="true">লগইন সফল হ\'ল!</string>
<string name="login_failed" fuzzy="true">লগইন বিফল হৈছে!</string>
<string name="upload_failed">ফাইল পোৱা নগ\'ল। অনুগ্ৰহ কৰি আন এটা ফাইল চেষ্টা কৰক।</string>
Expand Down Expand Up @@ -74,7 +74,7 @@
<string name="about_privacy_policy" fuzzy="true">&lt;u&gt;গোপনিয়তা নীতি&lt;/u&gt;</string>
<string name="menu_feedback">প্ৰতিক্ৰিয়া প্ৰেৰণ কৰক (ইমেইল যোগে)</string>
<string name="no_email_client">কোনো ইমেইল ক্লায়েন্ট ইনষ্টল কৰা নাই</string>
<string name="waiting_first_sync">প্ৰথম চিংকৰ বাবে অপেক্ষাৰত</string>
<string name="waiting_first_sync">প্ৰথম চিংকৰ বাবে অপেক্ষাৰত...</string>
<string name="no_uploads_yet">আপুনি এতিয়ালৈকে কোনো ফটো আপল\'ড কৰা নাই।</string>
<string name="menu_retry_upload">পুনৰ চেষ্টা কৰক</string>
<string name="menu_cancel_upload">বাতিল কৰক</string>
Expand Down
4 changes: 2 additions & 2 deletions app/src/main/res/values-ast/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
<string name="logging_in_title">Aniciando sesión</string>
<string name="logging_in_message">Espera…</string>
<string name="updating_caption_title">Actualizando pies y descripciones</string>
<string name="updating_caption_message">Porfavor espera</string>
<string name="updating_caption_message">Porfavor espera...</string>
<string name="login_success" fuzzy="true">¡Identificación correuta!</string>
<string name="login_failed" fuzzy="true">¡Falló l\'aniciu de sesión!</string>
<string name="upload_failed">Nun s\'alcontró\'l ficheru. Tenta con otru.</string>
Expand Down Expand Up @@ -480,7 +480,7 @@
<string name="exif_tag_name_serialNumbers">Númberos de serie</string>
<string name="exif_tag_name_software">Software</string>
<string name="share_text">Xubi semeyes a Wikimedia Commons direutamente dende\'l to móvil. Descarga yá la app de Commons: %1$s</string>
<string name="share_via">Compartir l\'aplicación per</string>
<string name="share_via">Compartir l\'aplicación per...</string>
<string name="image_info">Información de la imaxe</string>
<string name="no_categories_found">Nun s\'alcontró nenguna categoría</string>
<string name="no_depiction_found">Nun s\'alcontraron retratos</string>
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values-az/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@
<string name="license_name_cc_by_3_0">CC BY 3.0</string>
<string name="welcome_help_button_text">Əlavə məlumat</string>
<string name="detail_panel_cats_label">Kateqoriyalar</string>
<string name="detail_panel_cats_loading">Yüklənir</string>
<string name="detail_panel_cats_loading">Yüklənir...</string>
<string name="detail_panel_cats_none">Heç biri seçilməmişdir</string>
<string name="detail_license_empty">Naməlum lisenziya</string>
<string name="menu_refresh">Yenilə</string>
Expand Down
6 changes: 3 additions & 3 deletions app/src/main/res/values-b+roa+tara/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@
<string name="login">Tràse</string>
<string name="forgot_password">Passuord scurdate?</string>
<string name="signup">Reggistrate</string>
<string name="logging_in_title">Stoche a tràse</string>
<string name="logging_in_message">Aspitte</string>
<string name="logging_in_title">Stoche a tràse...</string>
<string name="logging_in_message">Aspitte...</string>
<string name="login_success" fuzzy="true">E\' trasute!</string>
<string name="login_failed" fuzzy="true">Non g\'è trasute!</string>
<string name="upload_failed">File non acchiate. Pruève \'n\'otre file.</string>
Expand Down Expand Up @@ -121,7 +121,7 @@
<string name="nearby_card_permission_title">Permesse richieste</string>
<string name="no_notification">Non ge tìne notifeche non lette</string>
<string name="error_occurred_in_picking_images">Errore assute mendre ca ste pigghiave le immaggine</string>
<string name="please_wait">Aspitte</string>
<string name="please_wait">Aspitte...</string>
<string name="skip_image">Zumbe ste immaggine</string>
<string name="exif_tag_name_author">Autore</string>
<string name="default_description_language">Lènghe d\'a descrizione predefinite</string>
Expand Down
Loading

0 comments on commit 59f140b

Please sign in to comment.