후원랭킹 전체보기 문자열 리소스화

This commit is contained in:
2025-12-03 19:51:21 +09:00
parent 237d112dec
commit f2e682c3d3
6 changed files with 62 additions and 21 deletions

View File

@@ -39,7 +39,11 @@ class UserProfileDonationAllAdapter(private val userId: Long) :
if (item.donationCan > 0 && SharedPreferenceManager.userId == userId) { if (item.donationCan > 0 && SharedPreferenceManager.userId == userId) {
binding.tvTotalDonationCan.visibility = View.VISIBLE binding.tvTotalDonationCan.visibility = View.VISIBLE
binding.tvTotalDonationCan.text = "${item.donationCan.moneyFormat()}" binding.tvTotalDonationCan.text = context.getString(
R.string.screen_user_profile_donation_total_can_format,
item.donationCan.moneyFormat(),
context.getString(R.string.screen_user_profile_donation_can_unit)
)
} }
val lp = binding.rlDonationRanking.layoutParams as RelativeLayout.LayoutParams val lp = binding.rlDonationRanking.layoutParams as RelativeLayout.LayoutParams

View File

@@ -37,14 +37,18 @@ class UserProfileDonationAllViewActivity : BaseActivity<ActivityUserProfileLiveA
viewModel.getCreatorProfileDonationRanking(userId) viewModel.getCreatorProfileDonationRanking(userId)
} else { } else {
Toast.makeText(applicationContext, "잘못된 요청입니다.", Toast.LENGTH_LONG).show() Toast.makeText(
applicationContext,
getString(R.string.error_invalid_request),
Toast.LENGTH_LONG
).show()
finish() finish()
} }
} }
override fun setupView() { override fun setupView() {
loadingDialog = LoadingDialog(this, layoutInflater) loadingDialog = LoadingDialog(this, layoutInflater)
binding.toolbar.tvBack.text = "후원랭킹 전체보기" binding.toolbar.tvBack.setText(R.string.screen_user_profile_donation_all_title)
binding.toolbar.tvBack.setOnClickListener { finish() } binding.toolbar.tvBack.setOnClickListener { finish() }
setupDonationRankingView() setupDonationRankingView()

View File

@@ -30,7 +30,7 @@
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:fontFamily="@font/gmarket_sans_bold" android:fontFamily="@font/gmarket_sans_bold"
android:text="채널에 후원랭킹 활성화" android:text="@string/screen_user_profile_donation_toggle_title"
android:textColor="@color/color_eeeeee" android:textColor="@color/color_eeeeee"
android:textSize="16sp" /> android:textSize="16sp" />
@@ -49,7 +49,7 @@
android:layout_marginTop="10.7dp" android:layout_marginTop="10.7dp"
android:fontFamily="@font/gmarket_sans_medium" android:fontFamily="@font/gmarket_sans_medium"
android:gravity="end" android:gravity="end"
android:text="※ 비활성화하면 채널 내 후원랭킹이 표시되지 않으며,\n라이브 중에도 후원랭킹에 따른 뱃지가 반영되지 않습니다." android:text="@string/screen_user_profile_donation_toggle_desc"
android:textColor="@color/color_555555" android:textColor="@color/color_555555"
android:textSize="12sp" /> android:textSize="12sp" />
</LinearLayout> </LinearLayout>
@@ -72,7 +72,7 @@
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:fontFamily="@font/gmarket_sans_bold" android:fontFamily="@font/gmarket_sans_bold"
android:text="오늘" android:text="@string/screen_user_profile_donation_stat_today"
android:textColor="@color/color_eeeeee" android:textColor="@color/color_eeeeee"
android:textSize="12sp" /> android:textSize="12sp" />
@@ -92,7 +92,7 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_alignParentEnd="true" android:layout_alignParentEnd="true"
android:fontFamily="@font/gmarket_sans_light" android:fontFamily="@font/gmarket_sans_light"
android:text="" android:text="@string/screen_user_profile_donation_can_unit_with_space"
android:textColor="@color/color_eeeeee" android:textColor="@color/color_eeeeee"
android:textSize="12sp" /> android:textSize="12sp" />
</RelativeLayout> </RelativeLayout>
@@ -106,7 +106,7 @@
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:fontFamily="@font/gmarket_sans_bold" android:fontFamily="@font/gmarket_sans_bold"
android:text="지난주" android:text="@string/screen_user_profile_donation_stat_last_week"
android:textColor="@color/color_eeeeee" android:textColor="@color/color_eeeeee"
android:textSize="12sp" /> android:textSize="12sp" />
@@ -126,7 +126,7 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_alignParentEnd="true" android:layout_alignParentEnd="true"
android:fontFamily="@font/gmarket_sans_light" android:fontFamily="@font/gmarket_sans_light"
android:text="" android:text="@string/screen_user_profile_donation_can_unit_with_space"
android:textColor="@color/color_eeeeee" android:textColor="@color/color_eeeeee"
android:textSize="12sp" /> android:textSize="12sp" />
</RelativeLayout> </RelativeLayout>
@@ -140,7 +140,7 @@
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:fontFamily="@font/gmarket_sans_bold" android:fontFamily="@font/gmarket_sans_bold"
android:text="이번 달 어제까지" android:text="@string/screen_user_profile_donation_stat_this_month"
android:textColor="@color/color_eeeeee" android:textColor="@color/color_eeeeee"
android:textSize="12sp" /> android:textSize="12sp" />
@@ -160,7 +160,7 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_alignParentEnd="true" android:layout_alignParentEnd="true"
android:fontFamily="@font/gmarket_sans_light" android:fontFamily="@font/gmarket_sans_light"
android:text="" android:text="@string/screen_user_profile_donation_can_unit_with_space"
android:textColor="@color/color_eeeeee" android:textColor="@color/color_eeeeee"
android:textSize="12sp" /> android:textSize="12sp" />
</RelativeLayout> </RelativeLayout>
@@ -177,7 +177,7 @@
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:fontFamily="@font/gmarket_sans_medium" android:fontFamily="@font/gmarket_sans_medium"
android:text="전체" android:text="@string/screen_user_profile_donation_total_label"
android:textColor="@color/color_eeeeee" android:textColor="@color/color_eeeeee"
android:textSize="14.7sp" /> android:textSize="14.7sp" />
@@ -195,7 +195,7 @@
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:fontFamily="@font/gmarket_sans_medium" android:fontFamily="@font/gmarket_sans_medium"
android:text="" android:text="@string/screen_user_profile_donation_total_unit"
android:textColor="@color/color_777777" android:textColor="@color/color_777777"
android:textSize="12sp" /> android:textSize="12sp" />

View File

@@ -761,6 +761,17 @@
<string name="screen_user_profile_series_title">Series</string> <string name="screen_user_profile_series_title">Series</string>
<string name="screen_user_profile_series_total_count">Total %1$d episodes</string> <string name="screen_user_profile_series_total_count">Total %1$d episodes</string>
<string name="screen_user_profile_donation_title">Donation ranking</string> <string name="screen_user_profile_donation_title">Donation ranking</string>
<string name="screen_user_profile_donation_all_title">View all donation rankings</string>
<string name="screen_user_profile_donation_toggle_title">Show donation ranking on channel</string>
<string name="screen_user_profile_donation_toggle_desc">Disabling hides the donation ranking on the channel,\nand ranking badges will not appear during live streams.</string>
<string name="screen_user_profile_donation_stat_today">Today</string>
<string name="screen_user_profile_donation_stat_last_week">Last week</string>
<string name="screen_user_profile_donation_stat_this_month">This month (until yesterday)</string>
<string name="screen_user_profile_donation_can_unit">cans</string>
<string name="screen_user_profile_donation_can_unit_with_space">\u0020cans</string>
<string name="screen_user_profile_donation_total_label">Total</string>
<string name="screen_user_profile_donation_total_unit">items</string>
<string name="screen_user_profile_donation_total_can_format">%1$s %2$s</string>
<string name="screen_user_profile_community_title">Community</string> <string name="screen_user_profile_community_title">Community</string>
<string name="screen_user_profile_community_create">Create post</string> <string name="screen_user_profile_community_create">Create post</string>
<string name="screen_user_profile_community_empty_desc">After posting, your post will appear here\nand be visible in the community.</string> <string name="screen_user_profile_community_empty_desc">After posting, your post will appear here\nand be visible in the community.</string>

View File

@@ -761,6 +761,17 @@
<string name="screen_user_profile_series_title">シリーズ</string> <string name="screen_user_profile_series_title">シリーズ</string>
<string name="screen_user_profile_series_total_count">全%1$d話</string> <string name="screen_user_profile_series_total_count">全%1$d話</string>
<string name="screen_user_profile_donation_title">後援ランキング</string> <string name="screen_user_profile_donation_title">後援ランキング</string>
<string name="screen_user_profile_donation_all_title">後援ランキングをすべて見る</string>
<string name="screen_user_profile_donation_toggle_title">チャンネルに後援ランキングを表示</string>
<string name="screen_user_profile_donation_toggle_desc">無効にするとチャンネル内に後援ランキングが表示されず、\nライブ中もランキングバッジが反映されません。</string>
<string name="screen_user_profile_donation_stat_today">今日</string>
<string name="screen_user_profile_donation_stat_last_week">先週</string>
<string name="screen_user_profile_donation_stat_this_month">今月 (昨日まで)</string>
<string name="screen_user_profile_donation_can_unit"></string>
<string name="screen_user_profile_donation_can_unit_with_space">\u0020缶</string>
<string name="screen_user_profile_donation_total_label">合計</string>
<string name="screen_user_profile_donation_total_unit"></string>
<string name="screen_user_profile_donation_total_can_format">%1$s %2$s</string>
<string name="screen_user_profile_community_title">コミュニティ</string> <string name="screen_user_profile_community_title">コミュニティ</string>
<string name="screen_user_profile_community_create">投稿する</string> <string name="screen_user_profile_community_create">投稿する</string>
<string name="screen_user_profile_community_empty_desc">投稿するとここに表示され\nコミュニティに公開されます。</string> <string name="screen_user_profile_community_empty_desc">投稿するとここに表示され\nコミュニティに公開されます。</string>

View File

@@ -760,6 +760,17 @@
<string name="screen_user_profile_series_title">시리즈</string> <string name="screen_user_profile_series_title">시리즈</string>
<string name="screen_user_profile_series_total_count">총 %1$d화</string> <string name="screen_user_profile_series_total_count">총 %1$d화</string>
<string name="screen_user_profile_donation_title">후원랭킹</string> <string name="screen_user_profile_donation_title">후원랭킹</string>
<string name="screen_user_profile_donation_all_title">후원랭킹 전체보기</string>
<string name="screen_user_profile_donation_toggle_title">채널에 후원랭킹 활성화</string>
<string name="screen_user_profile_donation_toggle_desc">※ 비활성화하면 채널 내 후원랭킹이 표시되지 않으며,\n라이브 중에도 후원랭킹에 따른 뱃지가 반영되지 않습니다.</string>
<string name="screen_user_profile_donation_stat_today">오늘</string>
<string name="screen_user_profile_donation_stat_last_week">지난주</string>
<string name="screen_user_profile_donation_stat_this_month">이번 달 어제까지</string>
<string name="screen_user_profile_donation_can_unit"></string>
<string name="screen_user_profile_donation_can_unit_with_space">\u0020캔</string>
<string name="screen_user_profile_donation_total_label">전체</string>
<string name="screen_user_profile_donation_total_unit"></string>
<string name="screen_user_profile_donation_total_can_format">%1$s %2$s</string>
<string name="screen_user_profile_community_title">커뮤니티</string> <string name="screen_user_profile_community_title">커뮤니티</string>
<string name="screen_user_profile_community_create">게시물 등록</string> <string name="screen_user_profile_community_create">게시물 등록</string>
<string name="screen_user_profile_community_empty_desc">게시 후에 게시물이 여기에 표시되고\n커뮤니티에 공개됩니다.</string> <string name="screen_user_profile_community_empty_desc">게시 후에 게시물이 여기에 표시되고\n커뮤니티에 공개됩니다.</string>