Bläddra i källkod

feat: 本地化

tongmengxiao 6 månader sedan
förälder
incheckning
b2336887ce

+ 9 - 0
baseswago/src/main/res/values-ar/strings.xml

@@ -331,4 +331,13 @@
     <string name="Password_rooms_do_not_count_as_hours">أوقات غرفة القفل لم يتم احتسابها في المدة</string>
     <string name="clear_cache">مسح ذاكرة التخزين المؤقت</string>
     <string name="clear_cache_success">مسح ذاكرة التخزين المؤقت بنجاح</string>
+    <string name="my_music">موسيقاي</string>
+    <string name="add_music">إضافة الموسيقى</string>
+    <string name="select_all">اختر الكل</string>
+    <string name="add_to_my_music">أضف إلى موسيقاي</string>
+    <string name="sure_delete_this_music">هل أنت متأكد أنك تريد حذف هذه الموسيقى؟</string>
+    <string name="dress_up">إرتد ملابس</string>
+    <string name="mall">مجمع تجاري</string>
+    <string name="buy_it_now">اشتر الآن</string>
+    <string name="beauty_filter">الجمال والمرشحات</string>
 </resources>

+ 9 - 0
baseswago/src/main/res/values-in/strings.xml

@@ -343,4 +343,13 @@
     <string name="Password_rooms_do_not_count_as_hours">Ruang kata sandi tidak tambah durasi</string>
     <string name="clear_cache">Bersihkan cache</string>
     <string name="clear_cache_success">Hapus sukses</string>
+    <string name="my_music">Musik Saya</string>
+    <string name="add_music">Tambahkan musik</string>
+    <string name="select_all">Pilih semua</string>
+    <string name="add_to_my_music">Tambahkan ke musik saya</string>
+    <string name="sure_delete_this_music">Anda yakin ingin menghapus musik ini?</string>
+    <string name="dress_up">Berpakaian</string>
+    <string name="mall">Toko</string>
+    <string name="buy_it_now">Beli sekarang</string>
+    <string name="beauty_filter">kecantikan&amp;filter</string>
 </resources>

+ 9 - 1
baseswago/src/main/res/values-ms/strings.xml

@@ -343,5 +343,13 @@
     <string name="Password_rooms_do_not_count_as_hours">Ruang kata sandi tidak tambah durasi</string>
     <string name="clear_cache">Bersihkan cache</string>
     <string name="clear_cache_success">Hapus sukses</string>
-
+    <string name="my_music">Musik Saya</string>
+    <string name="add_music">Tambahkan musik</string>
+    <string name="select_all">Pilih semua</string>
+    <string name="add_to_my_music">Tambahkan ke musik saya</string>
+    <string name="sure_delete_this_music">Anda yakin ingin menghapus musik ini?</string>
+    <string name="dress_up">Berpakaian</string>
+    <string name="mall">Toko</string>
+    <string name="buy_it_now">Beli sekarang</string>
+    <string name="beauty_filter">kecantikan&amp;filter</string>
 </resources>

+ 9 - 0
baseswago/src/main/res/values-zh/strings.xml

@@ -331,4 +331,13 @@
     <string name="Password_rooms_do_not_count_as_hours">密码房不计入时长</string>
     <string name="clear_cache">清除缓存</string>
     <string name="clear_cache_success">清除成功</string>
+    <string name="my_music">我的音乐</string>
+    <string name="add_music">添加音乐</string>
+    <string name="select_all">全选</string>
+    <string name="add_to_my_music">添加到我的音乐</string>
+    <string name="sure_delete_this_music">您确定要删除这段音乐吗?</string>
+    <string name="dress_up">装扮</string>
+    <string name="mall">商城</string>
+    <string name="buy_it_now">立即购买</string>
+    <string name="beauty_filter">美颜&amp;滤镜</string>
 </resources>

+ 9 - 0
baseswago/src/main/res/values/strings.xml

@@ -363,4 +363,13 @@
     <string name="Password_rooms_do_not_count_as_hours">Lock room times didn\'t count into</string>
     <string name="clear_cache">clear cache</string>
     <string name="clear_cache_success">Clearance successful</string>
+    <string name="my_music">My music</string>
+    <string name="add_music">Add music</string>
+    <string name="select_all">Select all</string>
+    <string name="add_to_my_music">Add to my music</string>
+    <string name="sure_delete_this_music">Are you sure you want to delete this music?</string>
+    <string name="dress_up">Dress up</string>
+    <string name="mall">Mall</string>
+    <string name="buy_it_now">Buy it now</string>
+    <string name="beauty_filter">beauty&amp;filter</string>
 </resources>

+ 2 - 2
home/src/main/res/layout/fragment_mine.xml

@@ -340,7 +340,7 @@
             android:layout_height="wrap_content"
             android:drawableTop="@mipmap/icon_my_store"
             android:drawablePadding="2dp"
-            android:text="@string/task_center"
+            android:text="@string/mall"
             android:textColor="#131B23"
             android:textSize="12dp"
             android:layout_marginTop="12dp"
@@ -354,7 +354,7 @@
             android:layout_height="wrap_content"
             android:drawableTop="@mipmap/icon_my_outfit"
             android:drawablePadding="2dp"
-            android:text="@string/level"
+            android:text="@string/dress_up"
             android:textColor="#131B23"
             android:textSize="12dp"
             android:layout_marginTop="12dp"

+ 1 - 1
room/src/main/java/com/swago/room/music/MyMusicDialog.kt

@@ -79,7 +79,7 @@ class MyMusicDialog : BaseXDFragment<DialogMyMusicBinding>() {
         adapter.setOnItemChildClickListener { _, view, position ->
             when(view?.id){
                 R.id.ivRecall -> {
-                    ChoiceDialogFragment.newInstance(AppContext.getContext().getString(R.string.do_delete_room_admin),
+                    ChoiceDialogFragment.newInstance(AppContext.getContext().getString(R.string.sure_delete_this_music),
                         rightChoiceText = AppContext.getContext().getString(R.string.delete)).apply {
                         this.sureFun = {
                             DBHelper.getMusicModel()?.delete(adapter.data[position])

+ 2 - 2
room/src/main/res/layout/activity_local_music.xml

@@ -19,7 +19,7 @@
         android:id="@+id/cbSelect"
         android:textSize="14dp"
         android:textColor="@drawable/local_select_music"
-        android:text="Select all"
+        android:text="@string/select_all"
         android:layout_marginEnd="20dp"
         android:padding="10dp"
         android:gravity="center"
@@ -48,7 +48,7 @@
         android:layout_marginEnd="17dp"
         android:layout_marginBottom="24dp"
         android:textColor="#fff"
-        android:text="Add to My Music"
+        android:text="@string/add_to_my_music"
         android:gravity="center"
         android:textSize="@dimen/sp_16"/>
 

+ 2 - 2
room/src/main/res/layout/dialog_my_music.xml

@@ -20,7 +20,7 @@
             android:textSize="17dp"
             android:textColor="#131b23"
             android:layout_marginTop="14dp"
-            android:text="My Music"
+            android:text="@string/my_music"
             android:textStyle="bold"
             app:layout_constraintTop_toTopOf="parent"
             app:layout_constraintStart_toStartOf="parent"
@@ -132,7 +132,7 @@
                    android:layout_width="wrap_content"
                    android:layout_height="36dp"
                    android:gravity="center"
-                   android:text="Add Music"
+                   android:text="@string/add_music"
                    android:textColor="#fff"
                    android:textSize="@dimen/sp_16"
                    android:layout_marginStart="@dimen/dp_10"

+ 1 - 1
user/src/main/res/layout/dialog_store_detail.xml

@@ -59,7 +59,7 @@
                 android:layout_marginEnd="17dp"
                 android:background="@drawable/shape_9b20fc_20"
                 android:gravity="center"
-                android:text="Buy Now"
+                android:text="@string/buy_it_now"
                 android:textColor="@color/_ffffff"
                 android:textSize="@dimen/sp_16"
                 app:layout_constraintTop_toBottomOf="@+id/tv_coin" />