커뮤니티 전체보기 문자열 리소스화

This commit is contained in:
2025-12-03 20:07:31 +09:00
parent a050a56c19
commit 270d697ce6
5 changed files with 30 additions and 7 deletions

View File

@@ -12,6 +12,7 @@ import android.widget.Toast
import androidx.activity.result.contract.ActivityResultContracts import androidx.activity.result.contract.ActivityResultContracts
import androidx.recyclerview.widget.LinearLayoutManager import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recyclerview.widget.RecyclerView import androidx.recyclerview.widget.RecyclerView
import kr.co.vividnext.sodalive.R
import kr.co.vividnext.sodalive.base.BaseActivity import kr.co.vividnext.sodalive.base.BaseActivity
import kr.co.vividnext.sodalive.base.SodaDialog import kr.co.vividnext.sodalive.base.SodaDialog
import kr.co.vividnext.sodalive.common.Constants import kr.co.vividnext.sodalive.common.Constants
@@ -58,7 +59,11 @@ class CreatorCommunityAllActivity : BaseActivity<ActivityCreatorCommunityAllBind
creatorId = intent.getLongExtra(Constants.EXTRA_COMMUNITY_CREATOR_ID, 0) creatorId = intent.getLongExtra(Constants.EXTRA_COMMUNITY_CREATOR_ID, 0)
if (creatorId <= 0) { if (creatorId <= 0) {
Toast.makeText(applicationContext, "잘못된 요청입니다.", Toast.LENGTH_LONG).show() Toast.makeText(
applicationContext,
getString(R.string.screen_creator_community_all_error_invalid_request),
Toast.LENGTH_LONG
).show()
finish() finish()
} }
@@ -81,7 +86,7 @@ class CreatorCommunityAllActivity : BaseActivity<ActivityCreatorCommunityAllBind
loadingDialog = LoadingDialog(this, layoutInflater) loadingDialog = LoadingDialog(this, layoutInflater)
imm = getSystemService(INPUT_METHOD_SERVICE) as InputMethodManager imm = getSystemService(INPUT_METHOD_SERVICE) as InputMethodManager
binding.toolbar.tvBack.text = "커뮤니티" binding.toolbar.tvBack.setText(R.string.screen_creator_community_all_title)
binding.toolbar.tvBack.setOnClickListener { finish() } binding.toolbar.tvBack.setOnClickListener { finish() }
adapter = CreatorCommunityAllAdapter( adapter = CreatorCommunityAllAdapter(
@@ -121,13 +126,13 @@ class CreatorCommunityAllActivity : BaseActivity<ActivityCreatorCommunityAllBind
SodaDialog( SodaDialog(
activity = this@CreatorCommunityAllActivity, activity = this@CreatorCommunityAllActivity,
layoutInflater = layoutInflater, layoutInflater = layoutInflater,
title = "게시물 삭제", title = getString(R.string.screen_creator_community_delete_title),
desc = "삭제하시겠습니까?", desc = getString(R.string.screen_creator_community_delete_desc),
confirmButtonTitle = "삭제", confirmButtonTitle = getString(R.string.confirm_delete_title),
confirmButtonClick = { confirmButtonClick = {
viewModel.deleteCommunityPostList(postId = postId) viewModel.deleteCommunityPostList(postId = postId)
}, },
cancelButtonTitle = "취소", cancelButtonTitle = getString(R.string.cancel),
cancelButtonClick = {} cancelButtonClick = {}
).show(screenWidth) ).show(screenWidth)
}, },

View File

@@ -78,7 +78,10 @@ class CreatorCommunityAllAdapter(
lp.height = lockPostWidth lp.height = lockPostWidth
binding.llLockPost.layoutParams = lp binding.llLockPost.layoutParams = lp
binding.tvPurchase.text = "${item.price}캔으로 게시글 보기" binding.tvPurchase.text = context.getString(
R.string.screen_creator_community_purchase_with_can,
item.price
)
binding.tvPurchase.setOnClickListener { binding.tvPurchase.setOnClickListener {
onClickPurchaseContent(item.postId, item.price) { post -> onClickPurchaseContent(item.postId, item.price) { post ->
items[index] = post items[index] = post

View File

@@ -783,6 +783,11 @@
<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>
<string name="screen_user_profile_channel_intro_title">Channel introduction</string> <string name="screen_user_profile_channel_intro_title">Channel introduction</string>
<string name="screen_user_profile_live_reservation_self_blocked">You cannot reserve a live you created.</string> <string name="screen_user_profile_live_reservation_self_blocked">You cannot reserve a live you created.</string>
<string name="screen_creator_community_all_title">Community</string>
<string name="screen_creator_community_all_error_invalid_request">Invalid request.</string>
<string name="screen_creator_community_delete_title">Delete post</string>
<string name="screen_creator_community_delete_desc">Delete this post?</string>
<string name="screen_creator_community_purchase_with_can">View this post for %1$d cans</string>
<string name="screen_user_profile_reservation_title">Reserve with %1$s cans</string> <string name="screen_user_profile_reservation_title">Reserve with %1$s cans</string>
<string name="screen_user_profile_reservation_desc">Pay to join the \"%1$s\" live.</string> <string name="screen_user_profile_reservation_desc">Pay to join the \"%1$s\" live.</string>
<string name="screen_user_profile_on_air">On Air</string> <string name="screen_user_profile_on_air">On Air</string>

View File

@@ -783,6 +783,11 @@
<string name="screen_user_profile_community_empty_desc">投稿するとここに表示され\nコミュニティに公開されます。</string> <string name="screen_user_profile_community_empty_desc">投稿するとここに表示され\nコミュニティに公開されます。</string>
<string name="screen_user_profile_channel_intro_title">チャンネル紹介</string> <string name="screen_user_profile_channel_intro_title">チャンネル紹介</string>
<string name="screen_user_profile_live_reservation_self_blocked">自分が作成したライブは予約できません。</string> <string name="screen_user_profile_live_reservation_self_blocked">自分が作成したライブは予約できません。</string>
<string name="screen_creator_community_all_title">コミュニティ</string>
<string name="screen_creator_community_all_error_invalid_request">不正なリクエストです。</string>
<string name="screen_creator_community_delete_title">投稿削除</string>
<string name="screen_creator_community_delete_desc">削除しますか?</string>
<string name="screen_creator_community_purchase_with_can">%1$dキャンで投稿を見る</string>
<string name="screen_user_profile_reservation_title">%1$sキャンで予約</string> <string name="screen_user_profile_reservation_title">%1$sキャンで予約</string>
<string name="screen_user_profile_reservation_desc">「%1$s」ライブに参加するために決済します。</string> <string name="screen_user_profile_reservation_desc">「%1$s」ライブに参加するために決済します。</string>
<string name="screen_user_profile_on_air">On Air</string> <string name="screen_user_profile_on_air">On Air</string>

View File

@@ -782,6 +782,11 @@
<string name="screen_user_profile_community_empty_desc">게시 후에 게시물이 여기에 표시되고\n커뮤니티에 공개됩니다.</string> <string name="screen_user_profile_community_empty_desc">게시 후에 게시물이 여기에 표시되고\n커뮤니티에 공개됩니다.</string>
<string name="screen_user_profile_channel_intro_title">채널 소개</string> <string name="screen_user_profile_channel_intro_title">채널 소개</string>
<string name="screen_user_profile_live_reservation_self_blocked">내가 만든 라이브는 예약할 수 없습니다.</string> <string name="screen_user_profile_live_reservation_self_blocked">내가 만든 라이브는 예약할 수 없습니다.</string>
<string name="screen_creator_community_all_title">커뮤니티</string>
<string name="screen_creator_community_all_error_invalid_request">잘못된 요청입니다.</string>
<string name="screen_creator_community_delete_title">게시물 삭제</string>
<string name="screen_creator_community_delete_desc">삭제하시겠습니까?</string>
<string name="screen_creator_community_purchase_with_can">%1$d캔으로 게시글 보기</string>
<string name="screen_user_profile_reservation_title">%1$s캔으로 예약</string> <string name="screen_user_profile_reservation_title">%1$s캔으로 예약</string>
<string name="screen_user_profile_reservation_desc">\'%1$s\' 라이브에 참여하기 위해 결제합니다.</string> <string name="screen_user_profile_reservation_desc">\'%1$s\' 라이브에 참여하기 위해 결제합니다.</string>
<string name="screen_user_profile_on_air">On Air</string> <string name="screen_user_profile_on_air">On Air</string>