From 5b605a110077e9cd8f5930c28bfd12ab70624762 Mon Sep 17 00:00:00 2001 From: Mohammad Amin Sameti Date: Sat, 31 Oct 2015 02:30:08 +0330 Subject: [PATCH 1/7] add Persian translation --- app/src/main/res/values-fa/strings.xml | 51 ++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 app/src/main/res/values-fa/strings.xml 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 - کیفیت بهتر + دریافت + + ویدئو + صدا + + ویدئوی بعدی + نمایش گزینه‌ی «ویدئوی بعدی». + پیوند پشتیبانی نمی‌شود. + From a28d917990ebe464655092192538fa90399d4752 Mon Sep 17 00:00:00 2001 From: medavox Date: Sat, 31 Oct 2015 12:05:42 +0000 Subject: [PATCH 2/7] fixed typo --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 5fb4bed4d..d26f848d1 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ [![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) From 122b089bf06abbbe38d412fb3b0bae20c5601736 Mon Sep 17 00:00:00 2001 From: medavox Date: Sat, 31 Oct 2015 12:07:07 +0000 Subject: [PATCH 3/7] minor grammar --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index d26f848d1..66ce57919 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ NewPipe: A free lightweight Youtube frontend for Android. ## 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! From 8076589180c887bf461634b834296176a7df919e Mon Sep 17 00:00:00 2001 From: Christian Schabesberger Date: Sat, 31 Oct 2015 16:11:35 +0100 Subject: [PATCH 4/7] Translated using Weblate (German) Currently translated at 100.0% (44 of 44 strings) --- app/src/main/res/values-de/strings.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 From 5dcb1e26b552c88b49277e7ae39dc9b6db7fdb1f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mladen=20Pejakovi=C4=87?= Date: Sat, 31 Oct 2015 19:56:46 +0100 Subject: [PATCH 5/7] Translated using Weblate (Serbian) Currently translated at 100.0% (44 of 44 strings) --- app/src/main/res/values-sr/strings.xml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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 +Следећи видео + Приказ ставке „Следећи видео“. + УРЛ није подржан. + From 20cf82bab1ccadfc168bfab309fb2395381f5731 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sz=C3=B6ll=C5=91si=20Attila?= Date: Sun, 1 Nov 2015 21:39:26 +0100 Subject: [PATCH 6/7] Translated using Weblate (Hungarian) Currently translated at 100.0% (44 of 44 strings) --- app/src/main/res/values-hu/strings.xml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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. From 95a9f2f5e346a565f93314522769b729f28a084e Mon Sep 17 00:00:00 2001 From: chandrashekhar Date: Mon, 2 Nov 2015 18:02:32 +0530 Subject: [PATCH 7/7] + Remove deprecated method from app/src/main/java/org/schabi/newpipe/VideoItemListFragment.java onAttach(Activity activity) is replaced by onAttach(Context context) + Remove deprecated method from pp/src/main/java/org/schabi/newpipe/VideoListAdapter.java context.getResource().getColor(resId) is replaced by ContextCompat.getColor(context,resId) --- .../java/org/schabi/newpipe/VideoItemListFragment.java | 10 +++++----- .../main/java/org/schabi/newpipe/VideoListAdapter.java | 3 ++- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/app/src/main/java/org/schabi/newpipe/VideoItemListFragment.java b/app/src/main/java/org/schabi/newpipe/VideoItemListFragment.java index 950c29f54..dd7ae61dc 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; @@ -308,15 +308,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); }