Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Localization updates and small code improvements #6430

Merged
merged 5 commits into from
Jun 5, 2021
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions app/src/main/java/org/schabi/newpipe/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@

public class MainActivity extends AppCompatActivity {
private static final String TAG = "MainActivity";
@SuppressWarnings("ConstantConditions")
public static final boolean DEBUG = !BuildConfig.BUILD_TYPE.equals("release");

private ActivityMainBinding mainBinding;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public void setResultServiceIntent(final Intent resultServiceIntent) {
@Override
public Dialog onCreateDialog(@Nullable final Bundle savedInstanceState) {
assureCorrectAppLanguage(getContext());
return new AlertDialog.Builder(getContext())
return new AlertDialog.Builder(requireContext())
.setMessage(R.string.import_network_expensive_warning)
.setCancelable(true)
.setNegativeButton(R.string.cancel, null)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ public enum StreamDialogEntry {

show_channel_details(R.string.show_channel_details, (fragment, item) ->
// For some reason `getParentFragmentManager()` doesn't work, but this does.
NavigationHelper.openChannelFragment(fragment.getActivity().getSupportFragmentManager(),
NavigationHelper.openChannelFragment(
fragment.requireActivity().getSupportFragmentManager(),
item.getServiceId(), item.getUploaderUrl(), item.getUploaderName())
),

Expand Down Expand Up @@ -80,7 +81,7 @@ public enum StreamDialogEntry {
play_with_kodi(R.string.play_with_kodi_title, (fragment, item) -> {
final Uri videoUrl = Uri.parse(item.getUrl());
try {
NavigationHelper.playWithKore(fragment.getContext(), videoUrl);
NavigationHelper.playWithKore(fragment.requireContext(), videoUrl);
} catch (final Exception e) {
KoreUtil.showInstallKoreDialog(fragment.getActivity());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ public boolean create() {
if (!docTree.canRead() || !docTree.canWrite()) return false;
try {
docFile = createSAF(context, srcType, srcName);
if (docFile == null || docFile.getName() == null) return false;
if (docFile.getName() == null) return false;
Redirion marked this conversation as resolved.
Show resolved Hide resolved
result = true;
} catch (IOException e) {
return false;
Expand Down
16 changes: 16 additions & 0 deletions app/src/main/res/values-ar/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -720,4 +720,20 @@
<string name="show_channel_details">إظهار تفاصيل القناة</string>
<string name="disable_media_tunneling_summary">تعطيل نفق الوسائط إذا واجهت شاشة سوداء أو التقطيع في تشغيل الفيديو</string>
<string name="disable_media_tunneling_title">تعطيل نفق الوسائط</string>
<string name="metadata_privacy_internal">داخلي</string>
<string name="metadata_privacy_private">خاص</string>
<string name="metadata_privacy_unlisted">غير مدرج</string>
<string name="metadata_privacy_public">عامة</string>
<string name="metadata_thumbnail_url">عنوان URL للصورة المصغرة</string>
<string name="metadata_host">المضيف</string>
<string name="metadata_support">الدعم</string>
<string name="metadata_language">اللغة</string>
<string name="metadata_age_limit">الحد العمري</string>
<string name="metadata_privacy">الخصوصيّة</string>
<string name="metadata_licence">الرخصة</string>
<string name="metadata_tags">الفئة</string>
<string name="metadata_category">الصنف</string>
<string name="description_select_disable">تعطيل تحديد النص في الوصف</string>
<string name="description_select_enable">تمكين تحديد نص في الوصف</string>
<string name="description_select_note">يمكنك الآن تحديد نص داخل الوصف. لاحظ أن الصفحة قد تومض وقد لا تكون الروابط قابلة للنقر أثناء وضع التحديد.</string>
</resources>
4 changes: 2 additions & 2 deletions app/src/main/res/values-b+ast/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<string name="parsing_error">Nun pudo analizase\'l sitiu web</string>
<string name="live_streams_not_supported">Los fluxos en direuto entá nun se sofiten</string>
<string name="could_not_get_stream">Nun pudo consiguise nengún fluxu</string>
<string name="sorry_string">Buff... Esto nun debió asoceder.</string>
<string name="sorry_string">Buff Esto nun debió asoceder.</string>
<string name="error_snackbar_message">Perdona mas asocedió daqué malo.</string>
<string name="what_device_headline">Información:</string>
<string name="error_details_headline">Detalles:</string>
Expand Down Expand Up @@ -107,7 +107,7 @@
<string name="tab_licenses">Llicencies</string>
<string name="view_on_github">Ver en GitHub</string>
<string name="app_license_title">Llicencia de NewPipe</string>
<string name="contribution_encouragement">Si tienes idees, quies traducir, facer dalgún cambéu nel diseñu, acuriosar poco o muncho\'l códigu... Agradecemos l\'ayuda. ¡Cuanto más se faiga, meyor!</string>
<string name="contribution_encouragement">Si tienes idees, quies traducir, facer dalgún cambéu nel diseñu, acuriosar poco o muncho\'l códigu Agradecemos l\'ayuda. ¡Cuanto más se faiga, meyor!</string>
<string name="read_full_license">Lleer</string>
<string name="contribution_title">Collaboración</string>
<string name="title_activity_history">Historial</string>
Expand Down
18 changes: 17 additions & 1 deletion app/src/main/res/values-b+zh+HANS+CN/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@
<string name="playback_pitch">音调</string>
<string name="unhook_checkbox">解除音视挂钩(可能导致失真)</string>
<string name="preferred_open_action_settings_title">首选“打开”操作</string>
<string name="preferred_open_action_settings_summary">打开内容时的默认操作 - %s</string>
<string name="preferred_open_action_settings_summary">打开内容时的默认操作 %s</string>
<string name="no_streams_available_download">没有可下载的串流</string>
<string name="caption_setting_title">字幕</string>
<string name="caption_setting_description">修改播放器字幕比例和背景样式。重启应用生效。</string>
Expand Down Expand Up @@ -678,4 +678,20 @@
<string name="show_channel_details">显示频道详情</string>
<string name="disable_media_tunneling_summary">如果遇到黑屏或视频播放卡顿的情况,请禁用媒体隧道</string>
<string name="disable_media_tunneling_title">禁用媒体隧道</string>
<string name="description_select_disable">禁止选择描述中的文本</string>
<string name="metadata_privacy_internal">内部</string>
<string name="metadata_privacy_private">私密</string>
<string name="metadata_privacy_unlisted">未列出</string>
<string name="metadata_privacy_public">公开</string>
<string name="metadata_thumbnail_url">缩略图 URL</string>
<string name="metadata_host">主机</string>
<string name="metadata_support">支持</string>
<string name="metadata_language">语言</string>
<string name="metadata_age_limit">年龄限制</string>
<string name="metadata_privacy">隐私</string>
<string name="metadata_licence">许可证</string>
<string name="metadata_tags">标签</string>
<string name="metadata_category">类别</string>
<string name="description_select_enable">允许选择描述中的文本</string>
<string name="description_select_note">你现在可以选择描述中的文本。请注意,在选择模式下,页面可能会闪烁,链接可能变得无法点击。</string>
</resources>
2 changes: 1 addition & 1 deletion app/src/main/res/values-bn/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@
<string name="share">শেয়ার</string>
<string name="open_in_popup_mode">পপ-আপ মোডে ওপেন করো</string>
<string name="open_in_browser">ব্রাউজারে ওপেন করো</string>
<string name="cancel">বাদ দিন</string>
<string name="cancel">বাতিল</string>
<string name="install">ইনস্টল</string>
<string name="no_player_found_toast">কোন স্ট্রিম প্লেয়ার পাওয়া যায়নি (প্লে করতে VLC ইন্সটল করতে পারেন).</string>
<string name="no_player_found">কোন স্ট্রিম প্লেয়ার পাওয়া যায়নি। VLC ইনস্টল করতে চাও\?</string>
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values-ca/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,7 @@
\nEn definitiva, l\'elecció depèn de si preferiu rapidesa a assegurar-vos que l\'informació és precisa.</string>
<string name="feed_use_dedicated_fetch_method_disable_button">Desactiva el mode ràpid</string>
<string name="feed_use_dedicated_fetch_method_enable_button">Activa el mode ràpid</string>
<string name="feed_use_dedicated_fetch_method_summary">Disponible en alguns serveis, normalment és més ràpid, però podria només incloure un nombre limitat de contingut i sovint informació incomplerta (per exemple, sense durada, tipus...).</string>
<string name="feed_use_dedicated_fetch_method_summary">Disponible en alguns serveis, normalment és més ràpid, però podria només incloure un nombre limitat de contingut i sovint informació incomplerta (per exemple, sense durada, tipus).</string>
<string name="feed_use_dedicated_fetch_method_title">Recupera des d\'un feed dedicat si és possible</string>
<string name="feed_update_threshold_option_always_update">Actualitza sempre</string>
<string name="feed_update_threshold_summary">Temps que ha de passar perquè una subscripció es consideri obsoleta — %s</string>
Expand Down
16 changes: 16 additions & 0 deletions app/src/main/res/values-de/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -680,4 +680,20 @@
<string name="show_channel_details">Kanal-Details anzeigen</string>
<string name="disable_media_tunneling_summary">Deaktiviere das Media-Tunneling, wenn bei der Videowiedergabe ein schwarzer Bildschirm oder Stottern auftritt</string>
<string name="disable_media_tunneling_title">Media-Tunneling deaktivieren</string>
<string name="metadata_privacy_internal">Intern</string>
<string name="metadata_privacy_private">Privat</string>
<string name="metadata_privacy_public">Öffentlich</string>
<string name="metadata_language">Sprache</string>
<string name="metadata_age_limit">Altersbeschränkung</string>
<string name="metadata_privacy">Sichtbarkeit</string>
<string name="metadata_licence">Lizenz</string>
<string name="metadata_tags">Tags</string>
<string name="metadata_category">Kategorie</string>
<string name="metadata_privacy_unlisted">Nicht gelistet</string>
<string name="metadata_thumbnail_url">Vorschaubild-URL</string>
<string name="metadata_host">Server</string>
<string name="metadata_support">Unterstützung</string>
<string name="description_select_disable">Auswählen von Text in der Beschreibung deaktivieren</string>
<string name="description_select_enable">Auswählen von Text in der Beschreibung aktivieren</string>
<string name="description_select_note">Du kannst nun Text innerhalb der Beschreibung auswählen. Beachte, dass die Seite flackern kann und Links im Auswahlmodus möglicherweise nicht anklickbar sind.</string>
</resources>
17 changes: 16 additions & 1 deletion app/src/main/res/values-el/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -645,7 +645,7 @@
<string name="peertube_instance_url_title">Στιγμιότυπα PeerTube</string>
<string name="notification_colorize_title">Χρωματισμός ειδοποιήσεων</string>
<string name="notification_colorize_summary">Επιτρέπει στο Android να τροποποιήσει το χρώμα της ειδοποίησης, σύμφωνα με το κύριο χρώμα του εικονιδίου (δεν διατίθεται σε όλες τις συσκευές)</string>
<string name="show_thumbnail_summary">Χρήση των εικονιδίων στην οθόνη κλειδώματοςως φόντο και στις ειδοποιήσεις</string>
<string name="show_thumbnail_summary">Χρήση των εικονιδίων ως φόντο στην οθόνη κλειδώματος και στις ειδοποιήσεις</string>
<string name="show_thumbnail_title">Εμφάνιση</string>
<string name="msg_calculating_hash">Υπολογισμός hash</string>
<string name="hash_channel_description">Ειδοποιήσεις για πρόοδο βίντεο hashing</string>
Expand Down Expand Up @@ -680,4 +680,19 @@
<string name="show_channel_details">Εμφάνιση λεπτομερειών καναλιού</string>
<string name="disable_media_tunneling_summary">Απενεργοποιήστε το media tunneling, αν εμφανίζεται μαύρη οθόνη ή διακοπτόμενος ήχος κατά την αναπαραγωγή βίντεο</string>
<string name="disable_media_tunneling_title">Απενεργοποίηση media tunneling</string>
<string name="metadata_privacy_internal">Εσωτερικό</string>
<string name="metadata_privacy_private">Ιδιωτικό</string>
<string name="metadata_privacy_unlisted">Εκτός λίστας</string>
<string name="metadata_privacy_public">Δημόσιο</string>
<string name="metadata_thumbnail_url">URL εικονιδίου</string>
<string name="metadata_support">Υποστήριξη</string>
<string name="metadata_language">Γλώσσα</string>
<string name="metadata_age_limit">Όριο ηλικίας</string>
<string name="metadata_privacy">Ιδιωτικότητα</string>
<string name="metadata_licence">Άδεια</string>
<string name="metadata_tags">Ετικέτες</string>
<string name="metadata_category">Κατηγορία</string>
<string name="description_select_disable">Απενεργοποίηση επιλογής κειμένου στην περιγραφή</string>
<string name="description_select_enable">Ενεργοποίηση επιλογής κειμένου στην περιγραφή</string>
<string name="description_select_note">Τώρα μπορείτε να επιλέξετε κείμενο εντός της περιγραφής. Σημειώστε ότι, η σελίδα μπορεί να παρουσιάζει αστάθεια κατά τη διάρκεια της κατάστασης επιλογής κειμένου.</string>
</resources>
2 changes: 1 addition & 1 deletion app/src/main/res/values-eu/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -660,7 +660,7 @@
<string name="comments_tab_description">Iruzkinak</string>
<string name="show_description_summary">Desaktibatu bideoaren deskribapena eta informazio gehigarria ezkutatzeko</string>
<string name="show_description_title">Erakutsi deskribapena</string>
<string name="open_with">Ireki honekin...</string>
<string name="open_with">Ireki honekin</string>
<string name="radio">Irratia</string>
<string name="featured">Nabarmenduak</string>
<string name="paid_content">Eduki hau ordaindu duten erabiltzaileentzat soilik dago eskuragarri, eta NewPipe-k ezin du tramsmititu edo deskargatu.</string>
Expand Down
17 changes: 16 additions & 1 deletion app/src/main/res/values-fr/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@
<string name="msg_server_unsupported">Serveur non pris en charge</string>
<string name="msg_exists">Fichier déjà existant</string>
<string name="msg_url_malform">Lien malformé ou accès à Internet indisponible</string>
<string name="msg_running">NewPipe télécharge...</string>
<string name="msg_running">NewPipe télécharge</string>
<string name="msg_running_detail">Appuyer pour plus de détails</string>
<string name="msg_wait">Veuillez patienter…</string>
<string name="msg_copied">Copié dans le presse-papiers</string>
Expand Down Expand Up @@ -682,4 +682,19 @@
<string name="show_channel_details">Afficher les détails de la chaîne</string>
<string name="disable_media_tunneling_summary">Désactivez le tunnelage multimédia si vous constatez un écran noir ou un bégaiement lors de la lecture d\'une vidéo</string>
<string name="disable_media_tunneling_title">Désactiver le tunnelage média</string>
<string name="description_select_disable">Désactiver la sélection de texte dans la description</string>
<string name="description_select_enable">Permettre la sélection de texte dans la description</string>
<string name="metadata_privacy_internal">Interne</string>
<string name="metadata_privacy_private">Privé</string>
<string name="metadata_privacy_unlisted">Non répertorié</string>
<string name="metadata_privacy_public">Public</string>
<string name="metadata_thumbnail_url">URL de la vignette</string>
<string name="metadata_host">Hôte</string>
<string name="metadata_support">Support</string>
<string name="metadata_language">Langue</string>
<string name="metadata_age_limit">Limite d\'âge</string>
<string name="metadata_privacy">Vie privée</string>
<string name="metadata_licence">Licence</string>
<string name="metadata_tags">Étiquettes</string>
<string name="metadata_category">Catégorie</string>
</resources>
16 changes: 16 additions & 0 deletions app/src/main/res/values-he/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -700,4 +700,20 @@
<string name="show_channel_details">להציג את פרטי הערוץ</string>
<string name="disable_media_tunneling_summary">כדאי להשבית תיעול מדיה אם הופיעה תופעה של מסך שחור או גמגום בנגינת וידאו</string>
<string name="disable_media_tunneling_title">השבתת תיעול מדיה</string>
<string name="metadata_privacy_internal">פנימי</string>
<string name="metadata_privacy_private">פרטי</string>
<string name="metadata_privacy_unlisted">לא מופיע ברשימות</string>
<string name="metadata_privacy_public">ציבורי</string>
<string name="metadata_thumbnail_url">כתובת תמונה ממוזערת</string>
<string name="metadata_host">אירוח</string>
<string name="metadata_support">תמיכה</string>
<string name="metadata_language">שפה</string>
<string name="metadata_age_limit">הגבלת גיל</string>
<string name="metadata_privacy">פרטיות</string>
<string name="metadata_licence">רישיון</string>
<string name="metadata_tags">תגיות</string>
<string name="metadata_category">קטגוריה</string>
<string name="description_select_disable">השבתת בחירת טקסט בתיאור</string>
<string name="description_select_enable">הפעלת בחירת טקסט בתיאור</string>
<string name="description_select_note">מעתה ניתן לבחור טקסט בתוך התיאור. נא לשים לב שהעמוד עשוי להבהב והקישורים לא יהיו לחיצים בזמן מצב הבחירה.</string>
</resources>
Loading