From f78e2a50043422b050fec3062f63496e651f79f8 Mon Sep 17 00:00:00 2001 From: Tsanie Lily Date: Thu, 3 Mar 2022 16:02:18 +0800 Subject: [PATCH] i18n on app label --- .../Billing.Android/Billing.Android.csproj | 11 + Billing/Billing.Android/MainActivity.cs | 2 +- .../Properties/AndroidManifest.xml | 2 +- .../Resources/Resource.designer.cs | 189 +++++++++--------- .../Resources/values-zh-rCN/strings.xml | 4 + .../Resources/values/strings.xml | 4 + .../Billing.iOS/Base.lproj/InfoPlist.strings | 1 + Billing/Billing.iOS/Billing.iOS.csproj | 8 + .../Billing.iOS/en.lproj/InfoPlist.strings | 1 + .../zh-Hans.lproj/InfoPlist.strings | 1 + 10 files changed, 128 insertions(+), 95 deletions(-) create mode 100644 Billing/Billing.Android/Resources/values-zh-rCN/strings.xml create mode 100644 Billing/Billing.Android/Resources/values/strings.xml create mode 100644 Billing/Billing.iOS/Base.lproj/InfoPlist.strings create mode 100644 Billing/Billing.iOS/en.lproj/InfoPlist.strings create mode 100644 Billing/Billing.iOS/zh-Hans.lproj/InfoPlist.strings diff --git a/Billing/Billing.Android/Billing.Android.csproj b/Billing/Billing.Android/Billing.Android.csproj index 9190c59..f9fe2aa 100644 --- a/Billing/Billing.Android/Billing.Android.csproj +++ b/Billing/Billing.Android/Billing.Android.csproj @@ -112,6 +112,14 @@ + + + + + + + + @@ -334,6 +342,9 @@ + + + \ No newline at end of file diff --git a/Billing/Billing.Android/MainActivity.cs b/Billing/Billing.Android/MainActivity.cs index c3cbbc4..18f4aad 100644 --- a/Billing/Billing.Android/MainActivity.cs +++ b/Billing/Billing.Android/MainActivity.cs @@ -6,7 +6,7 @@ using Android.OS; namespace Billing.Droid { [Activity( - Label = "Billing", + Label = "@string/applabel", Icon = "@mipmap/icon", RoundIcon = "@mipmap/icon_round", Theme = "@style/MainTheme", diff --git a/Billing/Billing.Android/Properties/AndroidManifest.xml b/Billing/Billing.Android/Properties/AndroidManifest.xml index a98d047..816f0a7 100644 --- a/Billing/Billing.Android/Properties/AndroidManifest.xml +++ b/Billing/Billing.Android/Properties/AndroidManifest.xml @@ -1,6 +1,6 @@  - + \ No newline at end of file diff --git a/Billing/Billing.Android/Resources/Resource.designer.cs b/Billing/Billing.Android/Resources/Resource.designer.cs index dc14601..b18dcc4 100644 --- a/Billing/Billing.Android/Resources/Resource.designer.cs +++ b/Billing/Billing.Android/Resources/Resource.designer.cs @@ -14,7 +14,7 @@ namespace Billing.Droid { - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Xamarin.Android.Build.Tasks", "12.2.0.155")] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Xamarin.Android.Build.Tasks", "1.0.0.0")] public partial class Resource { @@ -19004,275 +19004,278 @@ namespace Billing.Droid // aapt resource value: 0x7F0E001B public const int appbar_scrolling_view_behavior = 2131623963; - // aapt resource value: 0x7F0E001D - public const int bottomsheet_action_expand_halfway = 2131623965; - // aapt resource value: 0x7F0E001C - public const int bottom_sheet_behavior = 2131623964; + public const int applabel = 2131623964; // aapt resource value: 0x7F0E001E - public const int character_counter_content_description = 2131623966; + public const int bottomsheet_action_expand_halfway = 2131623966; + + // aapt resource value: 0x7F0E001D + public const int bottom_sheet_behavior = 2131623965; // aapt resource value: 0x7F0E001F - public const int character_counter_overflowed_content_description = 2131623967; + public const int character_counter_content_description = 2131623967; // aapt resource value: 0x7F0E0020 - public const int character_counter_pattern = 2131623968; + public const int character_counter_overflowed_content_description = 2131623968; // aapt resource value: 0x7F0E0021 - public const int chip_text = 2131623969; + public const int character_counter_pattern = 2131623969; // aapt resource value: 0x7F0E0022 - public const int clear_text_end_icon_content_description = 2131623970; + public const int chip_text = 2131623970; // aapt resource value: 0x7F0E0023 - public const int copy = 2131623971; + public const int clear_text_end_icon_content_description = 2131623971; // aapt resource value: 0x7F0E0024 - public const int copy_toast_msg = 2131623972; + public const int copy = 2131623972; // aapt resource value: 0x7F0E0025 - public const int error_icon_content_description = 2131623973; + public const int copy_toast_msg = 2131623973; // aapt resource value: 0x7F0E0026 - public const int expand_button_title = 2131623974; + public const int error_icon_content_description = 2131623974; // aapt resource value: 0x7F0E0027 - public const int exposed_dropdown_menu_content_description = 2131623975; + public const int expand_button_title = 2131623975; // aapt resource value: 0x7F0E0028 - public const int fab_transformation_scrim_behavior = 2131623976; + public const int exposed_dropdown_menu_content_description = 2131623976; // aapt resource value: 0x7F0E0029 - public const int fab_transformation_sheet_behavior = 2131623977; + public const int fab_transformation_scrim_behavior = 2131623977; // aapt resource value: 0x7F0E002A - public const int fallback_menu_item_copy_link = 2131623978; + public const int fab_transformation_sheet_behavior = 2131623978; // aapt resource value: 0x7F0E002B - public const int fallback_menu_item_open_in_browser = 2131623979; + public const int fallback_menu_item_copy_link = 2131623979; // aapt resource value: 0x7F0E002C - public const int fallback_menu_item_share_link = 2131623980; + public const int fallback_menu_item_open_in_browser = 2131623980; // aapt resource value: 0x7F0E002D - public const int hide_bottom_view_on_scroll_behavior = 2131623981; + public const int fallback_menu_item_share_link = 2131623981; // aapt resource value: 0x7F0E002E - public const int icon_content_description = 2131623982; + public const int hide_bottom_view_on_scroll_behavior = 2131623982; // aapt resource value: 0x7F0E002F - public const int item_view_role_description = 2131623983; + public const int icon_content_description = 2131623983; // aapt resource value: 0x7F0E0030 - public const int material_clock_display_divider = 2131623984; + public const int item_view_role_description = 2131623984; // aapt resource value: 0x7F0E0031 - public const int material_clock_toggle_content_description = 2131623985; + public const int material_clock_display_divider = 2131623985; // aapt resource value: 0x7F0E0032 - public const int material_hour_selection = 2131623986; + public const int material_clock_toggle_content_description = 2131623986; // aapt resource value: 0x7F0E0033 - public const int material_hour_suffix = 2131623987; + public const int material_hour_selection = 2131623987; // aapt resource value: 0x7F0E0034 - public const int material_minute_selection = 2131623988; + public const int material_hour_suffix = 2131623988; // aapt resource value: 0x7F0E0035 - public const int material_minute_suffix = 2131623989; + public const int material_minute_selection = 2131623989; // aapt resource value: 0x7F0E0036 - public const int material_motion_easing_accelerated = 2131623990; + public const int material_minute_suffix = 2131623990; // aapt resource value: 0x7F0E0037 - public const int material_motion_easing_decelerated = 2131623991; + public const int material_motion_easing_accelerated = 2131623991; // aapt resource value: 0x7F0E0038 - public const int material_motion_easing_emphasized = 2131623992; + public const int material_motion_easing_decelerated = 2131623992; // aapt resource value: 0x7F0E0039 - public const int material_motion_easing_linear = 2131623993; + public const int material_motion_easing_emphasized = 2131623993; // aapt resource value: 0x7F0E003A - public const int material_motion_easing_standard = 2131623994; + public const int material_motion_easing_linear = 2131623994; // aapt resource value: 0x7F0E003B - public const int material_slider_range_end = 2131623995; + public const int material_motion_easing_standard = 2131623995; // aapt resource value: 0x7F0E003C - public const int material_slider_range_start = 2131623996; + public const int material_slider_range_end = 2131623996; // aapt resource value: 0x7F0E003D - public const int material_timepicker_am = 2131623997; + public const int material_slider_range_start = 2131623997; // aapt resource value: 0x7F0E003E - public const int material_timepicker_clock_mode_description = 2131623998; + public const int material_timepicker_am = 2131623998; // aapt resource value: 0x7F0E003F - public const int material_timepicker_hour = 2131623999; + public const int material_timepicker_clock_mode_description = 2131623999; // aapt resource value: 0x7F0E0040 - public const int material_timepicker_minute = 2131624000; + public const int material_timepicker_hour = 2131624000; // aapt resource value: 0x7F0E0041 - public const int material_timepicker_pm = 2131624001; + public const int material_timepicker_minute = 2131624001; // aapt resource value: 0x7F0E0042 - public const int material_timepicker_select_time = 2131624002; + public const int material_timepicker_pm = 2131624002; // aapt resource value: 0x7F0E0043 - public const int material_timepicker_text_input_mode_description = 2131624003; + public const int material_timepicker_select_time = 2131624003; // aapt resource value: 0x7F0E0044 - public const int mtrl_badge_numberless_content_description = 2131624004; + public const int material_timepicker_text_input_mode_description = 2131624004; // aapt resource value: 0x7F0E0045 - public const int mtrl_chip_close_icon_content_description = 2131624005; + public const int mtrl_badge_numberless_content_description = 2131624005; // aapt resource value: 0x7F0E0046 - public const int mtrl_exceed_max_badge_number_content_description = 2131624006; + public const int mtrl_chip_close_icon_content_description = 2131624006; // aapt resource value: 0x7F0E0047 - public const int mtrl_exceed_max_badge_number_suffix = 2131624007; + public const int mtrl_exceed_max_badge_number_content_description = 2131624007; // aapt resource value: 0x7F0E0048 - public const int mtrl_picker_a11y_next_month = 2131624008; + public const int mtrl_exceed_max_badge_number_suffix = 2131624008; // aapt resource value: 0x7F0E0049 - public const int mtrl_picker_a11y_prev_month = 2131624009; + public const int mtrl_picker_a11y_next_month = 2131624009; // aapt resource value: 0x7F0E004A - public const int mtrl_picker_announce_current_selection = 2131624010; + public const int mtrl_picker_a11y_prev_month = 2131624010; // aapt resource value: 0x7F0E004B - public const int mtrl_picker_cancel = 2131624011; + public const int mtrl_picker_announce_current_selection = 2131624011; // aapt resource value: 0x7F0E004C - public const int mtrl_picker_confirm = 2131624012; + public const int mtrl_picker_cancel = 2131624012; // aapt resource value: 0x7F0E004D - public const int mtrl_picker_date_header_selected = 2131624013; + public const int mtrl_picker_confirm = 2131624013; // aapt resource value: 0x7F0E004E - public const int mtrl_picker_date_header_title = 2131624014; + public const int mtrl_picker_date_header_selected = 2131624014; // aapt resource value: 0x7F0E004F - public const int mtrl_picker_date_header_unselected = 2131624015; + public const int mtrl_picker_date_header_title = 2131624015; // aapt resource value: 0x7F0E0050 - public const int mtrl_picker_day_of_week_column_header = 2131624016; + public const int mtrl_picker_date_header_unselected = 2131624016; // aapt resource value: 0x7F0E0051 - public const int mtrl_picker_invalid_format = 2131624017; + public const int mtrl_picker_day_of_week_column_header = 2131624017; // aapt resource value: 0x7F0E0052 - public const int mtrl_picker_invalid_format_example = 2131624018; + public const int mtrl_picker_invalid_format = 2131624018; // aapt resource value: 0x7F0E0053 - public const int mtrl_picker_invalid_format_use = 2131624019; + public const int mtrl_picker_invalid_format_example = 2131624019; // aapt resource value: 0x7F0E0054 - public const int mtrl_picker_invalid_range = 2131624020; + public const int mtrl_picker_invalid_format_use = 2131624020; // aapt resource value: 0x7F0E0055 - public const int mtrl_picker_navigate_to_year_description = 2131624021; + public const int mtrl_picker_invalid_range = 2131624021; // aapt resource value: 0x7F0E0056 - public const int mtrl_picker_out_of_range = 2131624022; + public const int mtrl_picker_navigate_to_year_description = 2131624022; // aapt resource value: 0x7F0E0057 - public const int mtrl_picker_range_header_only_end_selected = 2131624023; + public const int mtrl_picker_out_of_range = 2131624023; // aapt resource value: 0x7F0E0058 - public const int mtrl_picker_range_header_only_start_selected = 2131624024; + public const int mtrl_picker_range_header_only_end_selected = 2131624024; // aapt resource value: 0x7F0E0059 - public const int mtrl_picker_range_header_selected = 2131624025; + public const int mtrl_picker_range_header_only_start_selected = 2131624025; // aapt resource value: 0x7F0E005A - public const int mtrl_picker_range_header_title = 2131624026; + public const int mtrl_picker_range_header_selected = 2131624026; // aapt resource value: 0x7F0E005B - public const int mtrl_picker_range_header_unselected = 2131624027; + public const int mtrl_picker_range_header_title = 2131624027; // aapt resource value: 0x7F0E005C - public const int mtrl_picker_save = 2131624028; + public const int mtrl_picker_range_header_unselected = 2131624028; // aapt resource value: 0x7F0E005D - public const int mtrl_picker_text_input_date_hint = 2131624029; + public const int mtrl_picker_save = 2131624029; // aapt resource value: 0x7F0E005E - public const int mtrl_picker_text_input_date_range_end_hint = 2131624030; + public const int mtrl_picker_text_input_date_hint = 2131624030; // aapt resource value: 0x7F0E005F - public const int mtrl_picker_text_input_date_range_start_hint = 2131624031; + public const int mtrl_picker_text_input_date_range_end_hint = 2131624031; // aapt resource value: 0x7F0E0060 - public const int mtrl_picker_text_input_day_abbr = 2131624032; + public const int mtrl_picker_text_input_date_range_start_hint = 2131624032; // aapt resource value: 0x7F0E0061 - public const int mtrl_picker_text_input_month_abbr = 2131624033; + public const int mtrl_picker_text_input_day_abbr = 2131624033; // aapt resource value: 0x7F0E0062 - public const int mtrl_picker_text_input_year_abbr = 2131624034; + public const int mtrl_picker_text_input_month_abbr = 2131624034; // aapt resource value: 0x7F0E0063 - public const int mtrl_picker_toggle_to_calendar_input_mode = 2131624035; + public const int mtrl_picker_text_input_year_abbr = 2131624035; // aapt resource value: 0x7F0E0064 - public const int mtrl_picker_toggle_to_day_selection = 2131624036; + public const int mtrl_picker_toggle_to_calendar_input_mode = 2131624036; // aapt resource value: 0x7F0E0065 - public const int mtrl_picker_toggle_to_text_input_mode = 2131624037; + public const int mtrl_picker_toggle_to_day_selection = 2131624037; // aapt resource value: 0x7F0E0066 - public const int mtrl_picker_toggle_to_year_selection = 2131624038; + public const int mtrl_picker_toggle_to_text_input_mode = 2131624038; // aapt resource value: 0x7F0E0067 - public const int nav_app_bar_navigate_up_description = 2131624039; + public const int mtrl_picker_toggle_to_year_selection = 2131624039; // aapt resource value: 0x7F0E0068 - public const int nav_app_bar_open_drawer_description = 2131624040; + public const int nav_app_bar_navigate_up_description = 2131624040; // aapt resource value: 0x7F0E0069 - public const int not_set = 2131624041; + public const int nav_app_bar_open_drawer_description = 2131624041; // aapt resource value: 0x7F0E006A - public const int overflow_tab_title = 2131624042; + public const int not_set = 2131624042; // aapt resource value: 0x7F0E006B - public const int password_toggle_content_description = 2131624043; + public const int overflow_tab_title = 2131624043; // aapt resource value: 0x7F0E006C - public const int path_password_eye = 2131624044; + public const int password_toggle_content_description = 2131624044; // aapt resource value: 0x7F0E006D - public const int path_password_eye_mask_strike_through = 2131624045; + public const int path_password_eye = 2131624045; // aapt resource value: 0x7F0E006E - public const int path_password_eye_mask_visible = 2131624046; + public const int path_password_eye_mask_strike_through = 2131624046; // aapt resource value: 0x7F0E006F - public const int path_password_strike_through = 2131624047; + public const int path_password_eye_mask_visible = 2131624047; // aapt resource value: 0x7F0E0070 - public const int preference_copied = 2131624048; + public const int path_password_strike_through = 2131624048; // aapt resource value: 0x7F0E0071 - public const int search_menu_title = 2131624049; + public const int preference_copied = 2131624049; // aapt resource value: 0x7F0E0072 - public const int status_bar_notification_info_overflow = 2131624050; + public const int search_menu_title = 2131624050; // aapt resource value: 0x7F0E0073 - public const int summary_collapsed_preference_list = 2131624051; + public const int status_bar_notification_info_overflow = 2131624051; // aapt resource value: 0x7F0E0074 - public const int v7_preference_off = 2131624052; + public const int summary_collapsed_preference_list = 2131624052; // aapt resource value: 0x7F0E0075 - public const int v7_preference_on = 2131624053; + public const int v7_preference_off = 2131624053; + + // aapt resource value: 0x7F0E0076 + public const int v7_preference_on = 2131624054; static String() { diff --git a/Billing/Billing.Android/Resources/values-zh-rCN/strings.xml b/Billing/Billing.Android/Resources/values-zh-rCN/strings.xml new file mode 100644 index 0000000..25b7ec0 --- /dev/null +++ b/Billing/Billing.Android/Resources/values-zh-rCN/strings.xml @@ -0,0 +1,4 @@ + + + 记账本 + \ No newline at end of file diff --git a/Billing/Billing.Android/Resources/values/strings.xml b/Billing/Billing.Android/Resources/values/strings.xml new file mode 100644 index 0000000..d70d42c --- /dev/null +++ b/Billing/Billing.Android/Resources/values/strings.xml @@ -0,0 +1,4 @@ + + + Billing + \ No newline at end of file diff --git a/Billing/Billing.iOS/Base.lproj/InfoPlist.strings b/Billing/Billing.iOS/Base.lproj/InfoPlist.strings new file mode 100644 index 0000000..18ab93e --- /dev/null +++ b/Billing/Billing.iOS/Base.lproj/InfoPlist.strings @@ -0,0 +1 @@ +"CFBundleDisplayName" = "Billing"; \ No newline at end of file diff --git a/Billing/Billing.iOS/Billing.iOS.csproj b/Billing/Billing.iOS/Billing.iOS.csproj index ef108ef..d0cff99 100644 --- a/Billing/Billing.iOS/Billing.iOS.csproj +++ b/Billing/Billing.iOS/Billing.iOS.csproj @@ -83,6 +83,9 @@ + + + @@ -329,6 +332,11 @@ + + + + + \ No newline at end of file diff --git a/Billing/Billing.iOS/en.lproj/InfoPlist.strings b/Billing/Billing.iOS/en.lproj/InfoPlist.strings new file mode 100644 index 0000000..18ab93e --- /dev/null +++ b/Billing/Billing.iOS/en.lproj/InfoPlist.strings @@ -0,0 +1 @@ +"CFBundleDisplayName" = "Billing"; \ No newline at end of file diff --git a/Billing/Billing.iOS/zh-Hans.lproj/InfoPlist.strings b/Billing/Billing.iOS/zh-Hans.lproj/InfoPlist.strings new file mode 100644 index 0000000..4149251 --- /dev/null +++ b/Billing/Billing.iOS/zh-Hans.lproj/InfoPlist.strings @@ -0,0 +1 @@ +"CFBundleDisplayName" = "记账本"; \ No newline at end of file