팬톡 전체보기 문자열 리소스화

This commit is contained in:
2025-12-03 19:58:44 +09:00
parent f2e682c3d3
commit ab7f837bb4
5 changed files with 24 additions and 11 deletions

View File

@@ -11,6 +11,7 @@ import android.view.inputmethod.InputMethodManager
import android.widget.Toast
import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recyclerview.widget.RecyclerView
import kr.co.vividnext.sodalive.R
import kr.co.vividnext.sodalive.base.BaseActivity
import kr.co.vividnext.sodalive.base.SodaDialog
import kr.co.vividnext.sodalive.common.Constants
@@ -45,15 +46,18 @@ class UserProfileFantalkAllViewActivity : BaseActivity<ActivityUserProfileFantal
viewModel.getCheersList(creatorId = userId)
} else {
Toast.makeText(applicationContext, "잘못된 요청입니다.", Toast.LENGTH_LONG).show()
Toast.makeText(
applicationContext,
getString(R.string.error_invalid_request),
Toast.LENGTH_LONG
).show()
finish()
}
}
@SuppressLint("SetTextI18n")
override fun setupView() {
loadingDialog = LoadingDialog(this, layoutInflater)
binding.toolbar.tvBack.text = "팬 Talk 전체보기"
binding.toolbar.tvBack.setText(R.string.screen_user_profile_fantalk_all_title)
binding.toolbar.tvBack.setOnClickListener { finish() }
setupCheersView()
@@ -108,9 +112,9 @@ class UserProfileFantalkAllViewActivity : BaseActivity<ActivityUserProfileFantal
SodaDialog(
activity = this@UserProfileFantalkAllViewActivity,
layoutInflater = layoutInflater,
title = "응원글 삭제",
desc = "삭제하시겠습니까?",
confirmButtonTitle = "삭제",
title = getString(R.string.screen_user_profile_cheer_delete_title),
desc = getString(R.string.screen_user_profile_cheer_delete_desc),
confirmButtonTitle = getString(R.string.confirm_delete_title),
confirmButtonClick = {
cheersAdapter.items.clear()
viewModel.modifyCheers(
@@ -119,7 +123,7 @@ class UserProfileFantalkAllViewActivity : BaseActivity<ActivityUserProfileFantal
isActive = false
)
},
cancelButtonTitle = "취소",
cancelButtonTitle = getString(R.string.cancel),
cancelButtonClick = {}
).show(screenWidth)
},
@@ -198,7 +202,7 @@ class UserProfileFantalkAllViewActivity : BaseActivity<ActivityUserProfileFantal
if (it.isBlank()) {
Toast.makeText(
applicationContext,
"신고 이유를 선택해 주세요.",
getString(R.string.screen_user_profile_fantalk_report_reason_required),
Toast.LENGTH_LONG
).show()
} else {

View File

@@ -26,7 +26,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:fontFamily="@font/gmarket_sans_medium"
android:text="응원"
android:text="@string/screen_user_profile_cheer_label"
android:textColor="@color/color_eeeeee"
android:textSize="14.7sp" />
@@ -61,7 +61,7 @@
android:layout_width="match_parent"
android:layout_height="50dp"
android:background="@drawable/bg_round_corner_10_232323_3bb9f1"
android:hint="응원댓글을 남겨보세요!"
android:hint="@string/screen_user_profile_cheer_hint"
android:importantForAutofill="no"
android:inputType="text"
android:paddingVertical="17dp"
@@ -109,7 +109,7 @@
android:fontFamily="@font/gmarket_sans_light"
android:gravity="center"
android:visibility="gone"
android:text="응원이 없습니다.\n\n처음으로 응원을 해보세요!"
android:text="@string/screen_user_profile_cheer_empty"
android:textColor="@color/color_bbbbbb"
android:textSize="13.3sp" />
</LinearLayout>

View File

@@ -749,12 +749,15 @@
<string name="screen_user_profile_audio_ratio_empty">No owned works yet!</string>
<string name="screen_user_profile_audio_ratio_detail">%1$s / %2$s items</string>
<string name="screen_user_profile_fan_talk_title">Fan Talk</string>
<string name="screen_user_profile_fantalk_all_title">View all Fan Talk</string>
<string name="screen_user_profile_cheer_label">Cheer</string>
<string name="screen_user_profile_cheer_hint">Leave a cheer comment!</string>
<string name="screen_user_profile_cheer_reply_hint">Leave a reply to this cheer!</string>
<string name="screen_user_profile_cheer_empty">No cheers yet.\n\nBe the first to cheer!</string>
<string name="screen_user_profile_cheer_edit">Edit</string>
<string name="screen_user_profile_cheer_delete_title">Delete cheer</string>
<string name="screen_user_profile_cheer_delete_desc">Delete this cheer?</string>
<string name="screen_user_profile_fantalk_report_reason_required">Please select a report reason.</string>
<string name="screen_user_profile_reply_edit">Edit reply</string>
<string name="screen_user_profile_reply_submit">Submit</string>
<string name="screen_user_profile_reply_write">Write a reply</string>

View File

@@ -749,12 +749,15 @@
<string name="screen_user_profile_audio_ratio_empty">保有している作品がありません。</string>
<string name="screen_user_profile_audio_ratio_detail">%1$s / %2$s件</string>
<string name="screen_user_profile_fan_talk_title">ファントーク</string>
<string name="screen_user_profile_fantalk_all_title">ファントークをすべて見る</string>
<string name="screen_user_profile_cheer_label">応援</string>
<string name="screen_user_profile_cheer_hint">応援コメントを残してください!</string>
<string name="screen_user_profile_cheer_reply_hint">応援コメントに返信を残してください!</string>
<string name="screen_user_profile_cheer_empty">応援がありません。\n\n最初の応援をしてください</string>
<string name="screen_user_profile_cheer_edit">編集</string>
<string name="screen_user_profile_cheer_delete_title">応援の削除</string>
<string name="screen_user_profile_cheer_delete_desc">応援を削除しますか?</string>
<string name="screen_user_profile_fantalk_report_reason_required">通報理由を選択してください。</string>
<string name="screen_user_profile_reply_edit">返信を編集</string>
<string name="screen_user_profile_reply_submit">登録</string>
<string name="screen_user_profile_reply_write">返信を書く</string>

View File

@@ -748,12 +748,15 @@
<string name="screen_user_profile_audio_ratio_empty">소장 중인 작품이 없어요!</string>
<string name="screen_user_profile_audio_ratio_detail">%1$s / %2$s개</string>
<string name="screen_user_profile_fan_talk_title">팬 Talk</string>
<string name="screen_user_profile_fantalk_all_title">팬 Talk 전체보기</string>
<string name="screen_user_profile_cheer_label">응원</string>
<string name="screen_user_profile_cheer_hint">응원댓글을 남겨보세요!</string>
<string name="screen_user_profile_cheer_reply_hint">응원댓글에 답글을 남겨보세요!</string>
<string name="screen_user_profile_cheer_empty">응원이 없습니다.\n\n처음으로 응원을 해보세요!</string>
<string name="screen_user_profile_cheer_edit">수정</string>
<string name="screen_user_profile_cheer_delete_title">응원글 삭제</string>
<string name="screen_user_profile_cheer_delete_desc">응원을 삭제하시겠습니까?</string>
<string name="screen_user_profile_fantalk_report_reason_required">신고 이유를 선택해 주세요.</string>
<string name="screen_user_profile_reply_edit">답글 수정</string>
<string name="screen_user_profile_reply_submit">등록</string>
<string name="screen_user_profile_reply_write">답글 쓰기</string>