Merge branch 'master' into timeline-improvement

This commit is contained in:
Konrad Pozniak 2017-11-07 13:03:49 +01:00 committed by GitHub
commit 21de60f739
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
20 changed files with 647 additions and 194 deletions

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_selected="false" android:color="?android:attr/textColorTertiary"/>
<item android:state_selected="true" android:color="?attr/colorAccent"/>
<item android:state_pressed="false" android:color="?android:attr/textColorPrimary"/>
<item android:state_pressed="true" android:color="?android:attr/textColorTertiary"/>
</selector>

View file

@ -40,7 +40,7 @@
android:scaleType="centerCrop"
app:layout_collapseMode="pin" />
<RelativeLayout
<android.support.constraint.ConstraintLayout
android:id="@+id/account_header_info"
android:layout_width="match_parent"
android:layout_height="wrap_content"
@ -54,71 +54,67 @@
android:id="@+id/account_avatar"
android:layout_width="80dp"
android:layout_height="80dp"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
android:layout_marginEnd="10dp"
android:layout_marginRight="10dp"
android:layout_toLeftOf="@+id/follow_btn"
android:layout_toStartOf="@+id/follow_btn"
android:src="@drawable/avatar_default"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:shadow="true" />
<Button
android:id="@+id/follow_btn"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentEnd="true"
android:layout_alignParentRight="true"
android:layout_marginTop="6dp" />
android:layout_marginTop="6dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:id="@+id/account_follows_you"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentEnd="true"
android:layout_alignParentRight="true"
android:layout_below="@id/follow_btn"
android:layout_marginEnd="10dp"
android:layout_marginRight="10dp"
android:text="@string/follows_you"
android:textColor="?android:textColorPrimary" />
android:textColor="?android:textColorPrimary"
app:layout_constraintEnd_toEndOf="@id/follow_btn"
app:layout_constraintTop_toBottomOf="@id/follow_btn" />
<TextView
android:id="@+id/account_display_name"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/account_avatar"
android:ellipsize="end"
android:maxLines="1"
android:textColor="?android:textColorPrimary"
android:textSize="18sp"
android:textStyle="normal|bold"
app:layout_constraintTop_toBottomOf="@id/account_avatar"
tools:text="Tusky Mastodon Client" />
<TextView
android:id="@+id/account_username"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/account_display_name"
android:ellipsize="end"
android:maxLines="1"
android:textColor="?android:textColorSecondary"
app:layout_constraintTop_toBottomOf="@id/account_display_name"
tools:text="\@Tusky" />
<ImageView
android:id="@+id/account_locked"
android:layout_width="16sp"
android:layout_height="16sp"
android:layout_alignBottom="@id/account_username"
android:layout_centerVertical="true"
android:layout_marginLeft="4dp"
android:layout_marginStart="4dp"
android:layout_toEndOf="@id/account_username"
android:layout_toRightOf="@id/account_username"
android:contentDescription="@string/description_account_locked"
android:tint="?android:textColorSecondary"
android:visibility="gone"
app:srcCompat="@drawable/reblog_disabled_light" />
app:layout_constraintBottom_toBottomOf="@id/account_username"
app:layout_constraintLeft_toRightOf="@id/account_username"
app:srcCompat="@drawable/reblog_disabled_light"
tools:visibility="visible" />
<TextView
android:id="@+id/account_note"
@ -128,9 +124,46 @@
android:paddingBottom="16dp"
android:paddingTop="10dp"
android:textColor="?android:textColorTertiary"
app:layout_constraintTop_toBottomOf="@id/account_username"
tools:text="This is a test description" />
</RelativeLayout>
<TextView
android:id="@+id/followers_tv"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="8dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/account_note"
tools:text="3000 Followers"
android:background="@android:color/transparent"
android:textColor="@color/account_tab_font_color"
app:layout_constraintHorizontal_bias="0"/>
<TextView
android:id="@+id/following_tv"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:layout_constraintBottom_toBottomOf="@id/followers_tv"
app:layout_constraintEnd_toStartOf="@id/statuses_btn"
app:layout_constraintHorizontal_bias="0"
app:layout_constraintStart_toEndOf="@id/followers_tv"
app:layout_constraintTop_toTopOf="@id/followers_tv"
tools:text="500 Following"
android:textColor="@color/account_tab_font_color" />
<TextView
android:id="@+id/statuses_btn"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:layout_constraintStart_toEndOf="@id/following_tv"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="@id/followers_tv"
tools:text="3000 Posts"
app:layout_constraintHorizontal_bias="0"
android:textColor="@color/account_tab_font_color"/>
</android.support.constraint.ConstraintLayout>
</RelativeLayout>
@ -158,12 +191,8 @@
android:id="@+id/tab_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:tabBackground="?android:colorBackground"
app:tabGravity="fill">
<android.support.design.widget.TabItem
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
android:background="?android:colorBackground"
app:tabSelectedTextColor="?attr/colorAccent" >
<android.support.design.widget.TabItem
android:layout_width="wrap_content"

View file

@ -1,26 +1,36 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true">
xmlns:tools="http://schemas.android.com/tools"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:orientation="vertical">
<TextView
<android.support.v7.widget.AppCompatTextView
android:id="@+id/title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_gravity="center_horizontal"
android:layout_marginTop="6dp"
android:textAllCaps="true"
android:textColor="@color/account_tab_font_color"
android:textStyle="normal|bold" />
android:textStyle="normal|bold"
tools:text="Followers"
android:singleLine="true"
app:autoSizeTextType="uniform"
app:autoSizeMinTextSize="12sp"
app:autoSizeMaxTextSize="14sp"
app:autoSizeStepGranularity="2sp"
android:textAlignment="center"
android:ellipsize="middle"/>
<TextView
android:id="@+id/total"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/title"
android:layout_centerHorizontal="true"
android:layout_gravity="center_horizontal"
android:textColor="@color/account_tab_font_color"
android:textSize="12sp" />
android:textSize="12sp"
tools:text="2,412"/>
</RelativeLayout>
</LinearLayout>

View file

@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string-array name="pull_notification_check_interval_names">
<item>15分</item>
<item>20分</item>
<item>25分</item>
<item>30分</item>
<item>45分</item>
<item>1時間</item>
<item>2時間</item>
</string-array>
</resources>

View file

@ -100,9 +100,11 @@
<string name="action_reject">拒否</string>
<string name="action_search">検索</string>
<string name="action_access_saved_toot">下書き</string>
<string name="action_copy_link">リンクをコピー</string>
<string name="download_image">%1$s をダウンロードしています</string>
<string name="action_copy_link">リンクをコピー</string>
<string name="send_status_link_to">トゥートのURLを共有…</string>
<string name="send_status_content_to">トゥートを共有…</string>
@ -127,14 +129,16 @@
<string name="login_connection">接続中…</string>
<string name="dialog_whats_an_instance">mastodon.social, mstdn.jp, pawoo.net や
<a href="https://instances.social">その他</a>
のような、あらゆるインスタンスのアドレスやドメインを入力できます。
\n\nまだアカウントをお持ちでない場合は、参加したいインスタンスの名前を入力することで
そのインスタンスにアカウントを作成できます。\n\nインスタンスはあなたのアカウントが提供される単独の場所ですが、
他のインスタンスのユーザーとあたかも同じ場所にいるように簡単にコミュニケーションをとったりフォローしたりできます。
<string name="dialog_whats_an_instance">mastodon.social, mstdn.jp, pawoo.netや<!--
--><a href="https://instances.social">その他</a><!--
-->のような、あらゆるインスタンスのアドレスやドメインを入力できます。
\n\nまだアカウントをお持ちでない場合は、参加したいインスタンスの名前を入力することで<!--
-->そのインスタンスにアカウントを作成できます。
\n\nインスタンスはあなたのアカウントが提供される単独の場所ですが、<!--
-->他のインスタンスのユーザーとあたかも同じ場所にいるように簡単にコミュニケーションをとったりフォローしたりできます。
\n\nさらに詳しい情報は<a href="https://joinmastodon.org">joinmastodon.org</a>でご覧いただけます。
</string>
<!-- Commented out line breaks to avoid appearing spaces in the middle of a sentence. -->
<string name="dialog_title_finishing_media_upload">メディアをアップロードしています</string>
<string name="dialog_message_uploading_media">アップロード中…</string>
<string name="dialog_download_image">ダウンロード</string>
@ -170,6 +174,15 @@
<string name="pref_title_show_replies">返信を表示</string>
<string name="pref_title_show_media_preview">メディアのプレビューを表示する</string>
<string name="notification_channel_mention_name">新しい返信</string>
<string name="notification_channel_mention_descriptions">新しい返信の通知</string>
<string name="notification_channel_follow_name">新しいフォロワー</string>
<string name="notification_channel_follow_description">新しいフォロワーの通知</string>
<string name="notification_channel_boost_name">ブースト</string>
<string name="notification_channel_boost_description">あなたのトゥートがブーストされたときの通知</string>
<string name="notification_channel_favourite_name">お気に入り</string>
<string name="notification_channel_favourite_description">あなたのトゥートがお気に入りに登録されたときの通知</string>
<string name="notification_mention_format">%sさんが返信しました</string>
<string name="notification_summary_large">%1$sさん、%2$sさん、%3$sさんと他%4$d人</string>
<string name="notification_summary_medium">%1$sさん、%2$sさん、%3$sさん</string>
@ -180,12 +193,17 @@
<string name="about_title_activity">このアプリについて</string>
<string name="about_application_version">アプリのバージョン:%s</string>
<string name="about_tusky_version">Tusky %s</string>
<string name="about_tusky_license">Tuskyは無料のオープンソースソフトウェアです。<!--
-->GNU General Public License Version 3 の下で使用許諾されています。<!--
-->ライセンスはここからご覧いただけます: https://www.gnu.org/licenses/gpl-3.0.ja.html</string>
<!-- Commented out line breaks brcause inserting a space after the japanese period is incorrect. -->
<string name="about_project_site">
プロジェクトのWebサイト\n
プロジェクトのWebサイト(英語)\n
https://tusky.keylesspalace.com
</string>-->
</string>
<string name="about_bug_feature_request_site">
バグ報告 &amp; 機能リクエスト:\n
バグ報告 &amp; 機能リクエスト(英語)\n
https://github.com/Vavassor/Tusky/issues
</string>
<string name="about_tusky_account">Tusky公式アカウント</string>
@ -199,8 +217,21 @@
<string name="no_content">下書きはありません</string>
<string name="action_save_one_toot">下書きに保存しました!</string>
<!--These are for timestamps on statuses. For example: "16s" or "2d"-->
<string name="abbreviated_in_years">%d年後</string>
<string name="abbreviated_in_days">%d日後</string>
<string name="abbreviated_in_hours">%d時間後</string>
<string name="abbreviated_in_minutes">%d分後</string>
<string name="abbreviated_in_seconds">%d秒後</string>
<string name="abbreviated_years_ago">%d年前</string>
<string name="abbreviated_days_ago">%d日前</string>
<string name="abbreviated_hours_ago">%d時間前</string>
<string name="abbreviated_minutes_ago">%d分前</string>
<string name="abbreviated_seconds_ago">%d秒前</string>
<string name="follows_you">あなたをフォロー中</string>
<string name="pref_title_alway_show_sensitive_media">常にすべての閲覧注意なコンテンツを表示する</string>
<string name="pref_title_alway_show_sensitive_media">閲覧注意のコンテンツを常に表示</string>
<string name="replying_to">@%sに返信</string>
</resources>

View file

@ -218,6 +218,7 @@
<string name="follows_you">Подписан(а) на вас</string>
<string name="pref_title_alway_show_sensitive_media">Всегда показывать NSFW-контент</string>
<string name="title_media">Медиа</string>
<string name="replying_to">Ответ @%s</string>

View file

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<integer name="profile_media_column_count">2</integer>
</resources>

View file

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<integer name="profile_media_column_count">3</integer>
</resources>

View file

@ -33,6 +33,9 @@
<string name="title_follow_requests">Follow Requests</string>
<string name="title_edit_profile">Edit your profile</string>
<string name="title_saved_toot">Drafts</string>
<string name="title_x_followers"><b>%d</b> Followers</string>
<string name="title_x_following"><b>%d</b> Following</string>
<string name="title_x_statuses"><b>%d</b> Posts</string>
<string name="status_username_format">\@%s</string>
<string name="status_boosted_format">%s boosted</string>
@ -232,6 +235,7 @@
<string name="follows_you">Follows you</string>
<string name="pref_title_alway_show_sensitive_media">Always show all nsfw content</string>
<string name="title_media">Media</string>
<string name="replying_to">Replying to @%s</string>
<string name="load_more_placeholder_text">load more</string>