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

Merge 14.9 final to master #12055

Merged
merged 21 commits into from
Jun 1, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
d11ff41
Provide exception logger for gutenberg
mchowning May 19, 2020
757f228
Provide breadcrumb logger to Gutenberg
mchowning May 22, 2020
28f5dcb
Default visibility of More and Edit to gone
zwarm May 24, 2020
406f687
Merge pull request #12012 from wordpress-mobile/issue/12011-fix-edit-…
oguzkocer May 25, 2020
6ee2e54
Fix crash in onSaveInstanceState in Reader
malinajirka May 25, 2020
f59a546
Merge pull request #12018 from wordpress-mobile/issue/11992-fix-save-…
malinajirka May 25, 2020
5bd50c5
Remove release note
mchowning May 25, 2020
170b413
Update gutenberg-mobile submodule ref
mchowning May 25, 2020
b28c224
Merge pull request #11965 from wordpress-mobile/issue_9832/span_index…
mchowning May 25, 2020
b7515f0
Update gutenberg submodule ref to 1.28.1
mchowning May 25, 2020
88b24ee
Merge pull request #12021 from wordpress-mobile/gutenberg/integrate_r…
mchowning May 25, 2020
042be1f
Bump version number
oguzkocer May 26, 2020
0dfd504
Update gutenberg submodule ref
mchowning May 27, 2020
5bc1159
Remove pullquote block from release notes
mchowning May 27, 2020
e78c015
Update gutenberg submodule ref
mchowning May 27, 2020
415d115
Update gutenberg submodule ref to 1.28.2 tag
mchowning May 27, 2020
513f450
Merge pull request #12037 from wordpress-mobile/gutenberg/integrate_r…
mchowning May 27, 2020
2c8495d
Bump version number
oguzkocer May 28, 2020
d9f6aa8
Updates translations
oguzkocer May 29, 2020
68f466a
Bump version number
oguzkocer May 29, 2020
35566fd
Update metadata translations for 14.9
oguzkocer May 29, 2020
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: 0 additions & 1 deletion RELEASE-NOTES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
14.9
-----
* [*] Fix issue with Preview post not working after switching to classic editor from inside the post
* [***] Block Editor: New block: Pullquote
* [**] Block Editor: Add support for changing background and text color in Buttons block
* [*] Block Editor: Fix the icons and buttons in Gallery, Paragraph, List and MediaText block on RTL mode
* [**] Block Editor: Remove Subscription Button from the Blog template since it didn't have an initial functionality and it is hard to configure for users.
Expand Down
8 changes: 4 additions & 4 deletions WordPress/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ android {
if (project.hasProperty("versionName")) {
versionName project.property("versionName")
} else {
versionName "alpha-223"
versionName "alpha-225"
}
versionCode 868
versionCode 872
minSdkVersion rootProject.minSdkVersion
targetSdkVersion rootProject.targetSdkVersion

Expand Down Expand Up @@ -85,9 +85,9 @@ android {
dimension "buildType"
// Only set the release version if one isn't provided
if (!project.hasProperty("versionName")) {
versionName "14.9-rc-1"
versionName "14.9"
}
versionCode 867
versionCode 873
buildConfigField "boolean", "ME_ACTIVITY_AVAILABLE", "false"
buildConfigField "boolean", "TENOR_AVAILABLE", "false"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -408,6 +408,8 @@ public void afterTextChanged(Editable s) {
mBtnLikeComment.setOnClickListener(v -> likeComment(false));

mBtnMoreComment.setOnClickListener(v -> showMoreMenu(v));
// hide more button until we know it can be enabled
mBtnMoreComment.setVisibility(View.GONE);

setupSuggestionServiceAndAdapter();

Expand Down Expand Up @@ -1012,6 +1014,12 @@ private void updateStatusViews() {
}
}

if (canShowMore()) {
mBtnMoreComment.setVisibility(View.VISIBLE);
} else {
mBtnMoreComment.setVisibility(View.GONE);
}

mLayoutButtons.setVisibility(View.VISIBLE);
}

Expand Down Expand Up @@ -1084,6 +1092,13 @@ private boolean canLike() {
&& mSite != null && SiteUtils.isAccessedViaWPComRest(mSite));
}

/*
* The more button contains controls which only moderates can use
*/
private boolean canShowMore() {
return canModerate();
}

/*
* display the comment associated with the passed notification
*/
Expand Down Expand Up @@ -1378,6 +1393,7 @@ private void showMoreMenu(View view) {
}

MenuItem editMenuItem = morePopupMenu.getMenu().findItem(R.id.action_edit);
editMenuItem.setVisible(false);
if (canEdit()) {
editMenuItem.setVisible(true);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@
import org.wordpress.android.editor.EditorImageSettingsListener;
import org.wordpress.android.editor.EditorMediaUploadListener;
import org.wordpress.android.editor.EditorMediaUtils;
import org.wordpress.android.editor.ExceptionLogger;
import org.wordpress.android.editor.GutenbergEditorFragment;
import org.wordpress.android.editor.ImageSettingsDialogFragment;
import org.wordpress.android.fluxc.Dispatcher;
Expand Down Expand Up @@ -226,7 +227,8 @@ public class EditPostActivity extends LocaleAwareActivity implements
PostSettingsListDialogFragment.OnPostSettingsDialogFragmentListener,
HistoryListFragment.HistoryItemClickInterface,
EditPostSettingsCallback,
PrivateAtCookieProgressDialogOnDismissListener {
PrivateAtCookieProgressDialogOnDismissListener,
ExceptionLogger {
public static final String ACTION_REBLOG = "reblogAction";
public static final String EXTRA_POST_LOCAL_ID = "postModelLocalId";
public static final String EXTRA_LOAD_AUTO_SAVE_REVISION = "loadAutosaveRevision";
Expand Down Expand Up @@ -3087,6 +3089,16 @@ public void syncPostObjectWithUiAndSaveIt(@Nullable OnPostUpdatedFromUIListener
WPMediaUtils.advertiseImageOptimization(this, listener::invoke);
}

@Override
public Consumer<Exception> getExceptionLogger() {
return (Exception e) -> CrashLoggingUtils.logException(e, T.EDITOR);
}

@Override
public Consumer<String> getBreadcrumbLogger() {
return CrashLoggingUtils::log;
}

private void updateAddingMediaToEditorProgressDialogState(ProgressDialogUiState uiState) {
mAddingMediaToEditorProgressDialog = mProgressDialogHelper
.updateProgressDialogState(this, mAddingMediaToEditorProgressDialog, uiState, mUiHelpers);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -822,8 +822,10 @@ public void onSaveInstanceState(Bundle outState) {
outState.putBoolean(ReaderConstants.KEY_WAS_PAUSED, mWasPaused);
outState.putBoolean(ReaderConstants.KEY_ALREADY_UPDATED, mHasUpdatedPosts);
outState.putBoolean(ReaderConstants.KEY_FIRST_LOAD, mFirstLoad);
outState.putBoolean(ReaderConstants.KEY_IS_REFRESHING, mRecyclerView.isRefreshing());
outState.putInt(ReaderConstants.KEY_RESTORE_POSITION, getCurrentPosition());
if (mRecyclerView != null) {
outState.putBoolean(ReaderConstants.KEY_IS_REFRESHING, mRecyclerView.isRefreshing());
outState.putInt(ReaderConstants.KEY_RESTORE_POSITION, getCurrentPosition());
}
outState.putSerializable(ReaderConstants.ARG_POST_LIST_TYPE, getPostListType());
outState.putBoolean(ReaderConstants.ARG_IS_TOP_LEVEL, mIsTopLevel);
outState.putParcelable(QuickStartEvent.KEY, mQuickStartEvent);
Expand Down
24 changes: 8 additions & 16 deletions WordPress/src/main/res/values-ar/strings.xml
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Translation-Revision-Date: 2020-05-14 08:54:08+0000
Translation-Revision-Date: 2020-05-28 00:46:30+0000
Plural-Forms: nplurals=6; plural=(n == 0) ? 0 : ((n == 1) ? 1 : ((n == 2) ? 2 : ((n % 100 >= 3 && n % 100 <= 10) ? 3 : ((n % 100 >= 11 && n % 100 <= 99) ? 4 : 5))));
Generator: GlotPress/3.0.0-alpha
Language: ar
-->
<resources>
<string name="gutenberg_native_welcome_to_our_new_blog">مرحبًا بك في مدونتنا الجديدة</string>
<string name="gutenberg_native_select_a_color">تحديد لون</string>
<string name="gutenberg_native_double_tap_to_go_to_color_settings">الضغط ضغطًا مزدوجًا للانتقال إلى إعدادات الألوان</string>
<string name="reader_empty_followed_blogs_description">عندما تتابع المواقع، سترى محتواها هنا</string>
<string name="feature_announcement_find_out_mode">اكتشاف المزيد</string>
<string name="feature_announcement_dialog_label">ما الجديد في ووردبريس</string>
<string name="insert_label_with_count">إدراج%d</string>
<string name="insert_label_with_count">إدراج %d</string>
<string name="crop">قص</string>
<string name="error_failed_to_load_into_file">فشل التحميل إلى الملف، يرجى المحاولة مرة أخرى.</string>
<string name="preview_image_thumbnail_description">معاينة الصورة المصغَّرة</string>
Expand All @@ -30,18 +34,14 @@ Language: ar
<string name="button_insert">إدراج</string>
<string name="continue_label">المتابعة</string>
<string name="copy_text">نسخ</string>
<string name="gutenberg_native_subscribe">اشترك</string>
<string name="gutenberg_native_number_of_columns">عدد الأعمدة</string>
<string name="gutenberg_native_move_block_right_from_position_1_s_to_position_2_s">نقل المكوِّن إلى اليمين من الموضع %1$s إلى الموضع%2$s</string>
<string name="gutenberg_native_move_block_right_from_position_1_s_to_position_2_s">نقل المكوِّن إلى اليمين من الموضع %1$s إلى الموضع %2$s</string>
<string name="gutenberg_native_move_block_right">نقل المكوِّن إلى اليمين</string>
<string name="gutenberg_native_move_block_left_from_position_1_s_to_position_2_s">نقل المكوِّن إلى اليسار من الموضع %1$s إلى الموضع%2$s</string>
<string name="gutenberg_native_move_block_left_from_position_1_s_to_position_2_s">نقل المكوِّن إلى اليسار من الموضع %1$s إلى الموضع %2$s</string>
<string name="gutenberg_native_move_block_left">نقل المكوِّن إلى اليسار</string>
<string name="gutenberg_native_latest_blog_posts">أحدث مقالات على المدونة</string>
<string name="gutenberg_native_follow_our_blog">متابعة مدونتنا</string>
<string name="gutenberg_native_double_tap_to_move_the_block_to_the_right">الضغط المزدوج لنقل المكوِّن إلى اليمين</string>
<string name="gutenberg_native_double_tap_to_move_the_block_to_the_left">الضغط المزدوج لنقل المكوِّن إلى اليسار</string>
<string name="gutenberg_native_columns_settings">إعدادات الأعمدة</string>
<string name="gutenberg_native_color_settings_are_coming_soon">ستتوافر إعدادات اللون قريبًا.</string>
<string name="gutenberg_native_blog">المدوّنة</string>
<string name="new_site_creation_creating_site_loading_4">إنشاء لوحة التحكم</string>
<string name="new_site_creation_creating_site_loading_3">إعداد القالب</string>
Expand Down Expand Up @@ -121,7 +121,6 @@ Language: ar
<string name="gutenberg_native_only_show_excerpt">إظهار المقتطف فقط</string>
<string name="gutenberg_native_my_portfolio_showcases_various_projects_created_throughout_my_car">يعرض معرض أعمالي المشاريع المختلفة التي تم إنشاؤها طوال مسيرتي المهنية. شاهد معلومات الاتصال الخاصة بي أدناه لنبق على تواصل.</string>
<string name="gutenberg_native_link_to">رابط لـ</string>
<string name="gutenberg_native_link_settings">إعدادات الرابط</string>
<string name="gutenberg_native_let_s_talk_don_t_hesitate_to_reach_out_with_the_contact_informati">فلنتحدث 👋 لا تتردد في التواصل باستخدام معلومات الاتصال أدناه، أو إرسال رسالة باستخدام النموذج.</string>
<string name="gutenberg_native_let_s_build_something_together_e349ef7a">دعونا نبني شيئًا معًا.</string>
<string name="gutenberg_native_let_s_build_something_together_93c12eb5">دعونا نبني شيئًا معًا</string>
Expand All @@ -139,10 +138,6 @@ Language: ar
<string name="gutenberg_native_don_t_cry_because_it_s_over_smile_because_it_happened">لا تبكي لأنه انتهى، ابتسم لأنه حدث.</string>
<string name="gutenberg_native_customize">تخصيص</string>
<string name="gutenberg_native_city_10100">المدينة، 10100</string>
<string name="gutenberg_native_button_link_url">رابط الزر URL</string>
<string name="gutenberg_native_button_color_settings_are_coming_soon">إعدادات لون الزر، قريبًا.</string>
<string name="gutenberg_native_border_settings">إعدادات الحدود</string>
<string name="gutenberg_native_border_radius">زوايا الحدود</string>
<string name="gutenberg_native_add_paragraph_block">إضافة مكوّن فقرة</string>
<string name="gutenberg_native_a_short_description_of_the_services_you_offer">وصف موجز للخدمات التي تقدمها.</string>
<string name="gutenberg_native_a_short_bio_with_personal_history_key_achievements_or_an_interest">سيرة ذاتية قصيرة مع التاريخ الشخصي والإنجازات الرئيسية، أو حقيقة مثيرة للاهتمام.</string>
Expand Down Expand Up @@ -276,7 +271,6 @@ Language: ar
<string name="gutenberg_native_s_block_this_block_has_invalid_content">مكوِّن %s. يحتوي هذا المكوِّن على محتوى غير صالح</string>
<string name="gutenberg_native_s_block_empty">مكوِّن %s. فارغ</string>
<string name="gutenberg_native_reset_block">إعادة تعيين المكوِّن</string>
<string name="gutenberg_native_remove_block_at_row_s">إزالة المكوِّن عند الصف %s</string>
<string name="gutenberg_native_remove_annotations">إزالة التعليقات التوضيحية</string>
<string name="gutenberg_native_problem_opening_the_video">ثمَّة مشكلة أثناء فتح مقطع الفيديو</string>
<string name="gutenberg_native_problem_displaying_block">ثمَّة مشكلة أثناء عرض المكوِّن</string>
Expand Down Expand Up @@ -307,7 +301,6 @@ Language: ar
<string name="gutenberg_native_double_tap_to_select_an_image">الضغط المزدوج لتحديد صورة</string>
<string name="gutenberg_native_double_tap_to_select_a_video">الضغط المزدوج لتحديد مقطع الفيديو</string>
<string name="gutenberg_native_double_tap_to_select">الضغط المزدوج للتحديد</string>
<string name="gutenberg_native_double_tap_to_remove_the_block">الضغط المزدوج لإزالة المكوِّن</string>
<string name="gutenberg_native_double_tap_to_redo_last_change">الضغط المزدوج لإعادة آخر تغيير</string>
<string name="gutenberg_native_double_tap_to_move_the_block_up">الضغط المزدوج لنقل المكوِّن إلى أعلى</string>
<string name="gutenberg_native_double_tap_to_move_the_block_down">الضغط المزدوج لنقل المكوِّن إلى أسفل</string>
Expand Down Expand Up @@ -888,7 +881,6 @@ Language: ar
<string name="reader_empty_posts_liked_title">لا توجد إعجابات حتى الآن</string>
<string name="reader_empty_followed_blogs_button_followed">الذهاب للمتابعة</string>
<string name="reader_empty_followed_blogs_button_discover">استكشف المواقع</string>
<string name="reader_empty_followed_blogs_description">لم تتابع أي مواقع حتى الآن. لمَ لا تتابع واحدًا الآن؟</string>
<string name="reader_empty_followed_blogs_title">لا توجد مواقع تمت متابعتها</string>
<string name="notifications_empty_likes">لا توجد إعجابات حتى الآن</string>
<string name="notifications_empty_followers">لا متابعين حتى الآن</string>
Expand Down
Loading