- Custom Sharing feature fix string compatibility with Crowdin
This commit is contained in:
parent
c605bff457
commit
f05aa0fb2f
|
@ -92,7 +92,7 @@ public class CustomSharingActivity extends BaseActivity implements OnCustomShari
|
||||||
actionBar.setDisplayOptions(ActionBar.DISPLAY_SHOW_CUSTOM);
|
actionBar.setDisplayOptions(ActionBar.DISPLAY_SHOW_CUSTOM);
|
||||||
TextView title = actionBar.getCustomView().findViewById(R.id.toolbar_title);
|
TextView title = actionBar.getCustomView().findViewById(R.id.toolbar_title);
|
||||||
pp_actionBar = actionBar.getCustomView().findViewById(R.id.pp_actionBar);
|
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);
|
ImageView close_conversation = actionBar.getCustomView().findViewById(R.id.close_conversation);
|
||||||
if( close_conversation != null){
|
if( close_conversation != null){
|
||||||
close_conversation.setOnClickListener(new View.OnClickListener() {
|
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);
|
Helper.colorizeToolbar(toolbar, R.color.black, CustomSharingActivity.this);
|
||||||
}
|
}
|
||||||
}else{
|
}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();
|
SQLiteDatabase db = Sqlite.getInstance(getApplicationContext(), Sqlite.DB_NAME, null, Sqlite.DB_VERSION).open();
|
||||||
String userId = sharedpreferences.getString(Helper.PREF_KEY_ID, null);
|
String userId = sharedpreferences.getString(Helper.PREF_KEY_ID, null);
|
||||||
|
|
|
@ -371,11 +371,11 @@
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_marginTop="@dimen/settings_checkbox_margin"
|
android:layout_marginTop="@dimen/settings_checkbox_margin"
|
||||||
android:layout_marginBottom="@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" />
|
android:layout_height="wrap_content" />
|
||||||
|
|
||||||
<EditText
|
<EditText
|
||||||
android:hint="Your custom sharing URL..."
|
android:hint="@string/settings_custom_sharing_url"
|
||||||
android:id="@+id/custom_sharing_url"
|
android:id="@+id/custom_sharing_url"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content" />
|
android:layout_height="wrap_content" />
|
||||||
|
|
|
@ -39,7 +39,7 @@
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginBottom="10dp"
|
android:layout_marginBottom="10dp"
|
||||||
android:paddingBottom="10dp"
|
android:paddingBottom="10dp"
|
||||||
android:text="Custom Sharing"
|
android:text="@string/settings_title_custom_sharing"
|
||||||
android:textSize="18sp" />
|
android:textSize="18sp" />
|
||||||
|
|
||||||
|
|
||||||
|
@ -50,7 +50,7 @@
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginTop="10dp"
|
android:layout_marginTop="10dp"
|
||||||
android:paddingTop="10dp"
|
android:paddingTop="10dp"
|
||||||
android:text="Title" />
|
android:text="@string/title_header_custom_sharing" />
|
||||||
<EditText
|
<EditText
|
||||||
android:layout_marginTop="10dp"
|
android:layout_marginTop="10dp"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
|
@ -59,7 +59,7 @@
|
||||||
android:minLines="1"
|
android:minLines="1"
|
||||||
android:lines="1"
|
android:lines="1"
|
||||||
android:maxLines="2"
|
android:maxLines="2"
|
||||||
android:hint="Title..."
|
android:hint="@string/title_hint_custom_sharing"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
|
||||||
|
@ -70,7 +70,7 @@
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginTop="10dp"
|
android:layout_marginTop="10dp"
|
||||||
android:paddingTop="10dp"
|
android:paddingTop="10dp"
|
||||||
android:text="Description" />
|
android:text="@string/description_header_custom_sharing" />
|
||||||
<EditText
|
<EditText
|
||||||
android:layout_marginTop="10dp"
|
android:layout_marginTop="10dp"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
|
@ -79,7 +79,7 @@
|
||||||
android:minLines="4"
|
android:minLines="4"
|
||||||
android:lines="4"
|
android:lines="4"
|
||||||
android:maxLines="5"
|
android:maxLines="5"
|
||||||
android:hint="Description..."
|
android:hint="@string/description_hint_custom_sharing"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
|
||||||
|
@ -90,7 +90,7 @@
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginTop="10dp"
|
android:layout_marginTop="10dp"
|
||||||
android:paddingTop="10dp"
|
android:paddingTop="10dp"
|
||||||
android:text="Keywords" />
|
android:text="@string/keywords_header_custom_sharing" />
|
||||||
<EditText
|
<EditText
|
||||||
android:layout_marginTop="10dp"
|
android:layout_marginTop="10dp"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
|
@ -99,7 +99,7 @@
|
||||||
android:minLines="1"
|
android:minLines="1"
|
||||||
android:lines="1"
|
android:lines="1"
|
||||||
android:maxLines="1"
|
android:maxLines="1"
|
||||||
android:hint="Keywords..."
|
android:hint="@string/keywords_hint_custom_sharing"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -376,11 +376,11 @@
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_marginTop="@dimen/settings_checkbox_margin"
|
android:layout_marginTop="@dimen/settings_checkbox_margin"
|
||||||
android:layout_marginBottom="@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" />
|
android:layout_height="wrap_content" />
|
||||||
|
|
||||||
<EditText
|
<EditText
|
||||||
android:hint="Your custom sharing URL..."
|
android:hint="@string/settings_custom_sharing_url"
|
||||||
android:id="@+id/custom_sharing_url"
|
android:id="@+id/custom_sharing_url"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content" />
|
android:layout_height="wrap_content" />
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
app:showAsAction="never" />
|
app:showAsAction="never" />
|
||||||
<item
|
<item
|
||||||
android:id="@+id/action_custom_sharing"
|
android:id="@+id/action_custom_sharing"
|
||||||
android:title="Custom Sharing"
|
android:title="@string/settings_title_custom_sharing"
|
||||||
app:showAsAction="never" />
|
app:showAsAction="never" />
|
||||||
<item
|
<item
|
||||||
android:id="@+id/action_copy_link"
|
android:id="@+id/action_copy_link"
|
||||||
|
|
|
@ -330,6 +330,8 @@
|
||||||
<string name="set_night_mode">Night mode</string>
|
<string name="set_night_mode">Night mode</string>
|
||||||
<string name="set_nsfw_timeout">NSFW view timeout (seconds, 0 means off)</string>
|
<string name="set_nsfw_timeout">NSFW view timeout (seconds, 0 means off)</string>
|
||||||
<string name="settings_title_profile">Edit profile</string>
|
<string name="settings_title_profile">Edit profile</string>
|
||||||
|
<string name="settings_title_custom_sharing">Custom sharing</string>
|
||||||
|
<string name="settings_custom_sharing_url">Your custom sharing URL…</string>
|
||||||
<string name="set_profile_description">Bio…</string>
|
<string name="set_profile_description">Bio…</string>
|
||||||
<string name="set_lock_account">Lock account</string>
|
<string name="set_lock_account">Lock account</string>
|
||||||
<string name="set_save_changes">Save changes</string>
|
<string name="set_save_changes">Save changes</string>
|
||||||
|
@ -430,6 +432,13 @@
|
||||||
<string name="cache_units">Mb</string>
|
<string name="cache_units">Mb</string>
|
||||||
<string name="toast_cache_clear">Cache was cleared! %1$s were released</string>
|
<string name="toast_cache_clear">Cache was cleared! %1$s were released</string>
|
||||||
|
|
||||||
|
<!-- ACTIVITY CUSTOM SHARING -->
|
||||||
|
<string name="title_header_custom_sharing">Title</string>
|
||||||
|
<string name="title_hint_custom_sharing">Title…</string>
|
||||||
|
<string name="description_header_custom_sharing">Description</string>
|
||||||
|
<string name="description_hint_custom_sharing">Description…</string>
|
||||||
|
<string name="keywords_header_custom_sharing">Keywords</string>
|
||||||
|
<string name="keywords_hint_custom_sharing">Keywords…</string>
|
||||||
|
|
||||||
<!-- ACTIVITY CACHE -->
|
<!-- ACTIVITY CACHE -->
|
||||||
<string name="action_sync">Synchronize</string>
|
<string name="action_sync">Synchronize</string>
|
||||||
|
|
Loading…
Reference in New Issue