From f05aa0fb2f0384118c46bb0305c1c6f8da2c2751 Mon Sep 17 00:00:00 2001 From: crockwave Date: Thu, 14 Feb 2019 17:50:05 -0600 Subject: [PATCH] - Custom Sharing feature fix string compatibility with Crowdin --- .../mastodon/activities/CustomSharingActivity.java | 4 ++-- .../main/res/layout-sw600dp/fragment_settings.xml | 4 ++-- .../main/res/layout/activity_custom_sharing.xml | 14 +++++++------- app/src/main/res/layout/fragment_settings.xml | 4 ++-- app/src/main/res/menu/option_toot.xml | 2 +- app/src/main/res/values/strings.xml | 9 +++++++++ 6 files changed, 23 insertions(+), 14 deletions(-) diff --git a/app/src/main/java/fr/gouv/etalab/mastodon/activities/CustomSharingActivity.java b/app/src/main/java/fr/gouv/etalab/mastodon/activities/CustomSharingActivity.java index 537c351c8..33fdb0cc8 100644 --- a/app/src/main/java/fr/gouv/etalab/mastodon/activities/CustomSharingActivity.java +++ b/app/src/main/java/fr/gouv/etalab/mastodon/activities/CustomSharingActivity.java @@ -92,7 +92,7 @@ public class CustomSharingActivity extends BaseActivity implements OnCustomShari actionBar.setDisplayOptions(ActionBar.DISPLAY_SHOW_CUSTOM); TextView title = actionBar.getCustomView().findViewById(R.id.toolbar_title); pp_actionBar = actionBar.getCustomView().findViewById(R.id.pp_actionBar); - title.setText(R.string.settings_title_profile); + title.setText(R.string.settings_title_custom_sharing); ImageView close_conversation = actionBar.getCustomView().findViewById(R.id.close_conversation); if( close_conversation != null){ close_conversation.setOnClickListener(new View.OnClickListener() { @@ -107,7 +107,7 @@ public class CustomSharingActivity extends BaseActivity implements OnCustomShari Helper.colorizeToolbar(toolbar, R.color.black, CustomSharingActivity.this); } }else{ - setTitle(R.string.settings_title_profile); + setTitle(R.string.settings_title_custom_sharing); } SQLiteDatabase db = Sqlite.getInstance(getApplicationContext(), Sqlite.DB_NAME, null, Sqlite.DB_VERSION).open(); String userId = sharedpreferences.getString(Helper.PREF_KEY_ID, null); diff --git a/app/src/main/res/layout-sw600dp/fragment_settings.xml b/app/src/main/res/layout-sw600dp/fragment_settings.xml index 40d9fc8d6..b187e6207 100644 --- a/app/src/main/res/layout-sw600dp/fragment_settings.xml +++ b/app/src/main/res/layout-sw600dp/fragment_settings.xml @@ -371,11 +371,11 @@ android:layout_width="wrap_content" android:layout_marginTop="@dimen/settings_checkbox_margin" android:layout_marginBottom="@dimen/settings_checkbox_margin" - android:text="Custom sharing" + android:text="@string/settings_title_custom_sharing" android:layout_height="wrap_content" /> diff --git a/app/src/main/res/layout/activity_custom_sharing.xml b/app/src/main/res/layout/activity_custom_sharing.xml index 15a678f04..b0c96aa08 100644 --- a/app/src/main/res/layout/activity_custom_sharing.xml +++ b/app/src/main/res/layout/activity_custom_sharing.xml @@ -39,7 +39,7 @@ android:layout_height="wrap_content" android:layout_marginBottom="10dp" android:paddingBottom="10dp" - android:text="Custom Sharing" + android:text="@string/settings_title_custom_sharing" android:textSize="18sp" /> @@ -50,7 +50,7 @@ android:layout_height="wrap_content" android:layout_marginTop="10dp" android:paddingTop="10dp" - android:text="Title" /> + android:text="@string/title_header_custom_sharing" /> @@ -70,7 +70,7 @@ android:layout_height="wrap_content" android:layout_marginTop="10dp" android:paddingTop="10dp" - android:text="Description" /> + android:text="@string/description_header_custom_sharing" /> @@ -90,7 +90,7 @@ android:layout_height="wrap_content" android:layout_marginTop="10dp" android:paddingTop="10dp" - android:text="Keywords" /> + android:text="@string/keywords_header_custom_sharing" /> diff --git a/app/src/main/res/layout/fragment_settings.xml b/app/src/main/res/layout/fragment_settings.xml index 9da6bac64..c48220cae 100644 --- a/app/src/main/res/layout/fragment_settings.xml +++ b/app/src/main/res/layout/fragment_settings.xml @@ -376,11 +376,11 @@ android:layout_width="wrap_content" android:layout_marginTop="@dimen/settings_checkbox_margin" android:layout_marginBottom="@dimen/settings_checkbox_margin" - android:text="Custom sharing" + android:text="@string/settings_title_custom_sharing" android:layout_height="wrap_content" /> diff --git a/app/src/main/res/menu/option_toot.xml b/app/src/main/res/menu/option_toot.xml index 97cba5f16..c4fc41a0c 100644 --- a/app/src/main/res/menu/option_toot.xml +++ b/app/src/main/res/menu/option_toot.xml @@ -24,7 +24,7 @@ app:showAsAction="never" /> Night mode NSFW view timeout (seconds, 0 means off) Edit profile + Custom sharing + Your custom sharing URL… Bio… Lock account Save changes @@ -430,6 +432,13 @@ Mb Cache was cleared! %1$s were released + + Title + Title… + Description + Description… + Keywords + Keywords… Synchronize