diff --git a/README.md b/README.md index 5fb4bed4d..66ce57919 100644 --- a/README.md +++ b/README.md @@ -3,13 +3,13 @@ [![Translation Status](https://hosted.weblate.org/widgets/NewPipe/-/svg-badge.svg)](https://hosted.weblate.org/engage/NewPipe/) [![NewPipe](https://f-droid.org/repo/icons/org.schabi.newpipe.4.png)](http://dasochan.nl/newpipe/) -NewPipe: A free lightweight Youtube fronted for Android. +NewPipe: A free lightweight Youtube frontend for Android. [![F-Droid](https://f-droid.org/wiki/images/0/06/F-Droid-button_get-it-on.png)](https://f-droid.org/repository/browse/?fdfilter=newpipe&fdid=org.schabi.newpipe) ## Description -NewPipe does not use any Google framework libraries, or the Youtube api. It only parses the website in order to gain the information it needs. Therefore this app can be used on devices without g-services installed. Also NewPipe does not store data on the Youtube website (no login), and it's free software. +NewPipe does not use any Google framework libraries, or the YouTube API. It only parses the website in order to gain the information it needs. Therefore this app can be used on devices without G-services installed. Also NewPipe does not store data on the YouTube website (no login), and it's free software. ## Features @@ -37,9 +37,9 @@ NewPipe does not use any Google framework libraries, or the Youtube api. It only * ... and many more ### Multi service support -Generally NewPipe is designed to not only support YouTube, but many more streaming services. How ever, right now NewPipe is not stable enough to support more than only youtube. But if all works as plant, NewPipe will get such support by the version 2.0. +Generally NewPipe is designed to not only support YouTube, but many more streaming services. However, right now NewPipe is not stable enough to support more than only YouTube. But if all works as planned, NewPipe will get such support by the version 2.0. # Help is always welcome !!! -Whether its about ideas, translation, design changes, code cleaning, or real heavy code changes. Help is always welcome. +Whether it's about ideas, translation, design changes, code cleaning, or real heavy code changes. Help is always welcome. The more is done the better it gets! diff --git a/app/src/main/java/org/schabi/newpipe/VideoItemListFragment.java b/app/src/main/java/org/schabi/newpipe/VideoItemListFragment.java index 4b83dd0a3..d51cbdc49 100644 --- a/app/src/main/java/org/schabi/newpipe/VideoItemListFragment.java +++ b/app/src/main/java/org/schabi/newpipe/VideoItemListFragment.java @@ -1,6 +1,6 @@ package org.schabi.newpipe; -import android.app.Activity; +import android.content.Context; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.os.Bundle; @@ -301,15 +301,15 @@ public class VideoItemListFragment extends ListFragment { } @Override - public void onAttach(Activity activity) { - super.onAttach(activity); + public void onAttach(Context context) { + super.onAttach(context); // Activities containing this fragment must implement its callbacks. - if (!(activity instanceof Callbacks)) { + if (!(context instanceof Callbacks)) { throw new IllegalStateException("Activity must implement fragment's callbacks."); } - mCallbacks = (Callbacks) activity; + mCallbacks = (Callbacks) context; } @Override diff --git a/app/src/main/java/org/schabi/newpipe/VideoListAdapter.java b/app/src/main/java/org/schabi/newpipe/VideoListAdapter.java index ea69be538..c174528c6 100644 --- a/app/src/main/java/org/schabi/newpipe/VideoListAdapter.java +++ b/app/src/main/java/org/schabi/newpipe/VideoListAdapter.java @@ -2,6 +2,7 @@ package org.schabi.newpipe; import android.content.Context; import android.graphics.Bitmap; +import android.support.v4.content.ContextCompat; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; @@ -99,7 +100,7 @@ public class VideoListAdapter extends BaseAdapter { convertView = viewCreator.getViewByVideoInfoItem(convertView, parent, videoList.get(position)); if(listView.isItemChecked(position)) { - convertView.setBackgroundColor(context.getResources().getColor(R.color.primaryColorYoutube)); + convertView.setBackgroundColor(ContextCompat.getColor(context,R.color.primaryColorYoutube)); } else { convertView.setBackgroundColor(0); } diff --git a/app/src/main/res/values-de/strings.xml b/app/src/main/res/values-de/strings.xml index f9743430a..52b92621a 100644 --- a/app/src/main/res/values-de/strings.xml +++ b/app/src/main/res/values-de/strings.xml @@ -1,4 +1,4 @@ - + NewPipe NewPipe @@ -26,7 +26,7 @@ Download Verzeichnis Verzeichnis in dem heruntergeladene Videos gespeichert werden. Download Verzeichnis eingeben - Automatisch abspielen durch Intent. + Automatisches abspielen durch Intent Startet ein Video automatisch wenn es von einer anderen App aufgerufen wurde. Standard Auflösung Mit Kodi abspielen diff --git a/app/src/main/res/values-fa/strings.xml b/app/src/main/res/values-fa/strings.xml new file mode 100644 index 000000000..b24529f59 --- /dev/null +++ b/app/src/main/res/values-fa/strings.xml @@ -0,0 +1,51 @@ + + + NewPipe + NewPipe + چیزی پیدا نشد + نماها + بارگذاری‌شده در: + هیچ پخش‌کننده‌ی جریانی یافت نشد. ممکن است بخواهید یکی نصب کنید. + نصب کنید + انصراف + https://f-droid.org/repository/browse/?fdfilter=vlc&fdid=org.videolan.vlc + بازکردن در مرورگر + هم‌رسانی + پخش + بارگیری + جستجو + تنظیمات + فرستادن با + منظورتان این است: + صفحه‌ی جستجو: + هم‌رسانی با: + مرورگر را برگزینید: + چرخش + تنظیمات + استفاده از پخش‌کننده‌ی خارجی + محل بارگیری + مسیری که ویدئوهای دریافت شده در آن ذخیره می‌شوند. + مسیر دریافت را وارد کنید + پخش خودکار از Intent + ویدئو هنگامی که از برنامه‌ی دیگری فراخوانده شد خودکار پخش می‌شود. + وضوح پیش‌فرض + پخش با Kodi + برنامه‌ی Kore نصب نیست. برای پخش کردن ویدئوها با مرکز رسانه‌ی Kodi، به Kore نیاز دارید. + نصب Kore + https://f-droid.org/repository/browse/?fdfilter=Kore&fdid=org.xbmc.kore + نمایش گزینه‌ی «پخش با Kodi» + گزینه‌ای برای پخش کردن ویدئو با مرکز رسانه‌ی Kodi نشان می‌دهد. + نمایش دکمه‌ی پخش در سمت چپ. + صدا + قالب پیش‌فرض صدا + WebM - قالبی آزاد + m4a - کیفیت بهتر + دریافت + + ویدئو + صدا + + ویدئوی بعدی + نمایش گزینه‌ی «ویدئوی بعدی». + پیوند پشتیبانی نمی‌شود. + diff --git a/app/src/main/res/values-hu/strings.xml b/app/src/main/res/values-hu/strings.xml index 5ffe1d639..e2934c4e7 100644 --- a/app/src/main/res/values-hu/strings.xml +++ b/app/src/main/res/values-hu/strings.xml @@ -1,4 +1,4 @@ - + NewPipe NewPipe @@ -45,4 +45,7 @@ Videó Hang +Következő videó + \"Következő videó\" elem mutatása + A webcím nem támogatott. diff --git a/app/src/main/res/values-sr/strings.xml b/app/src/main/res/values-sr/strings.xml index 690822ff2..68934272c 100644 --- a/app/src/main/res/values-sr/strings.xml +++ b/app/src/main/res/values-sr/strings.xml @@ -1,4 +1,4 @@ - + Јутјуб цев Јутјуб цев @@ -45,4 +45,7 @@ Видео Аудио - \ No newline at end of file +Следећи видео + Приказ ставке „Следећи видео“. + УРЛ није подржан. +