Chat UIKit Android View v3
Chat UIKit Android View
Chat UIKit
Android View
Version 3

Customize string resources

Copy link

The string resource contains all strings that appear on UIKit modules. You can customize these strings by changing the UIKit-defined values in the res/strings.xml file, which consists of the following xml elements.

<resources>
    <!-- Header Title -->
    <string name="sb_text_header_channel_list">Channels</string>
    <string name="sb_text_header_channel_settings">Channel information</string>
    <string name="sb_text_header_member_list">Members</string>
    <string name="sb_text_header_invite_member">Invite users</string>
    <string name="sb_text_header_create_channel">New channel</string>
    <string name="sb_text_header_set_operators">Set as operators</string>
    <string name="sb_text_header_participants">Participants</string>
    <string name="sb_text_header_participants_count">%s participants</string>

    <!-- Channel List -->
    <string name="sb_text_channel_list_title_no_members">(No members)</string>
    <string name="sb_text_channel_list_title_unknown">(No name)</string>
    <string name="sb_text_channel_list_unread_count_max">99+</string>
    <string name="sb_text_channel_list_last_message_file">%1$s sent a file.</string>
    <string name="sb_text_channel_list_last_message_file_unknown">Unknown</string>
    <string name="sb_text_channel_list_push_on">Turn on notifications</string>
    <string name="sb_text_channel_list_push_off">Turn off notifications</string>
    <string name="sb_text_channel_list_leave">Leave channel</string>
    <string name="sb_text_channel_list_empty">No channels</string>

    <!-- Channel -->
    <string name="sb_text_channel_message_badge_edited">&#160;(edited)</string>
    <string name="sb_text_channel_tooltip">%d new message</string>
    <string name="sb_text_channel_tooltip_with_count">%d new messages</string>
    <string name="sb_text_channel_anchor_copy">Copy</string>
    <string name="sb_text_channel_anchor_save">Save</string>
    <string name="sb_text_channel_anchor_edit">Edit</string>
    <string name="sb_text_channel_anchor_delete">Delete</string>
    <string name="sb_text_channel_anchor_reply">Reply</string>
    <string name="sb_text_channel_anchor_retry">Retry</string>
    <string name="sb_text_channel_input_text_hint">Enter message</string>
    <string name="sb_text_channel_input_reply_text_hint">Reply to message</string>
    <string name="sb_text_channel_input_camera">Take Photo</string>
    <string name="sb_text_channel_input_gallery">Gallery</string>
    <string name="sb_text_channel_input_document">Document</string>
    <string name="sb_text_channel_typing_indicator_single">%s is typing&#8230;</string>
    <string name="sb_text_channel_typing_indicator_double">%s and %s are typing&#8230;</string>
    <string name="sb_text_channel_typing_indicator_multiple">Several people are typing&#8230;</string>
    <string name="sb_text_channel_unknown_type_text">(Unknown message type)\nCannot read this message.</string>
    <string name="sb_text_channel_reaction_count_max">99</string>
    <string name="sb_text_channel_message_empty">No messages</string>

    <!-- Channel Settings -->
    <string name="sb_text_channel_settings_moderations">Moderations</string>
    <string name="sb_text_channel_settings_notification">Notifications</string>
    <string name="sb_text_channel_settings_members">Members</string>
    <string name="sb_text_channel_settings_leave_channel">Leave channel</string>
    <string name="sb_text_channel_settings_delete_channel">Delete channel</string>
    <string name="sb_text_channel_settings_change_channel_name">Change name</string>
    <string name="sb_text_channel_settings_change_channel_name_hint">Enter name</string>
    <string name="sb_text_channel_settings_change_channel_image">Change channel image</string>
    <string name="sb_text_channel_settings_change_channel_image_camera">Take photo</string>
    <string name="sb_text_channel_settings_change_channel_image_gallery">Choose photo</string>
    <string name="sb_text_channel_settings_message_search">Search in channel</string>

    <!-- User List -->
    <string name="sb_text_user_list_badge_me">&#160;(You)</string>
    <string name="sb_text_user_list_empty">No users</string>
    <string name="sb_text_participants_list_empty">No participants</string>

    <!-- Views -->
    <string name="sb_text_yesterday">Yesterday</string>
    <string name="sb_text_dialog_delete_file_message">Delete this file?</string>
    <string name="sb_text_dialog_delete_message">Delete this message?</string>
    <string name="sb_text_toast_success_copy">Copied</string>
    <string name="sb_text_toast_success_start_upload_file">Uploading&#8230;</string>
    <string name="sb_text_toast_success_start_download_file">Downloading&#8230;</string>
    <string name="sb_text_toast_success_download_file">File saved</string>
    <string name="sb_text_button_edit">Edit</string>
    <string name="sb_text_button_invite">Invite</string>
    <string name="sb_text_button_cancel">Cancel</string>
    <string name="sb_text_button_create">Create</string>
    <string name="sb_text_button_save">Save</string>
    <string name="sb_text_button_delete">Delete</string>
    <string name="sb_text_button_retry">Retry</string>
    <string name="sb_text_button_selected">Selected</string>
    <string name="sb_text_button_add">Add</string>

    <!-- Error Messages -->
    <!-- Connection Error -->
    <string name="sb_text_error_retry_request">Check your connection and try again.</string>

    <!-- Channel Error -->
    <string name="sb_text_error_get_channel_list">Couldn\&#39;t retrieve channel list.</string>
    <string name="sb_text_error_get_channel">Couldn\&#39;t retrieve channel.</string>
    <string name="sb_text_error_create_channel">Couldn\&#39;t create channel.</string>
    <string name="sb_text_error_update_channel">Couldn\&#39;t update channel.</string>
    <string name="sb_text_error_leave_channel">Couldn\&#39;t leave channel.</string>
    <string name="sb_text_error_delete_channel">Couldn\&#39;t delete channel.</string>
    <string name="sb_text_error_push_notification_on">Couldn\&#39;t turn on notifications.</string>
    <string name="sb_text_error_push_notification_off">Couldn\&#39;t turn off notifications.</string>
    <string name="sb_text_error_push_notification_setting">Couldn\&#39;t set the notification setting.</string>
    <string name="sb_text_error_invite_member">Couldn\&#39;t invite users.</string>
    <string name="sb_text_error_get_user_list">Couldn\&#39;t retrieve user list.</string>
    <string name="sb_text_error_add_reaction">Couldn\&#39;t add reaction.</string>
    <string name="sb_text_error_register_operator">Couldn\&#39;t register as operator.</string>
    <string name="sb_text_error_unregister_operator">Couldn\&#39;t unregister operator.</string>
    <string name="sb_text_error_delete_reaction">Couldn\&#39;t delete reaction.</string>

    <!-- Message Error -->
    <string name="sb_text_error_resend_message">Couldn\&#39;t send message. Try again.</string>
    <string name="sb_text_error_update_user_message">Couldn\&#39;t edit message.</string>
    <string name="sb_text_error_delete_message">Couldn\&#39;t delete message.</string>
    <string name="sb_text_error_copy_message">Couldn\&#39;t copy message.</string>
    <string name="sb_text_error_send_message">Couldn\&#39;t send message. Try again.</string>
    <string name="sb_text_error_message_filtered">Message filtered.</string>
    <string name="sb_text_error_mute_member">Couldn\&#39;t mute member. Try again.</string>
    <string name="sb_text_error_ban_member">Couldn\&#39;t ban member. Try again.</string>
    <string name="sb_text_error_unmute_member">Couldn\&#39;t unmute member. Try again.</string>
    <string name="sb_text_error_unban_member">Couldn\&#39;t unban member. Try again.</string>

    <!-- File Error -->
    <string name="sb_text_error_open_camera">Couldn\&#39;t open camera.</string>
    <string name="sb_text_error_open_gallery">Couldn\&#39;t open photo library.</string>
    <string name="sb_text_error_open_file">Couldn\&#39;t open file.</string>
    <string name="sb_text_error_download_file">Couldn\&#39;t download file.</string>

    <string name="sb_text_dialog_permission_title">Allow permission</string>
    <string name="sb_text_go_to_settings">Settings</string>
    <string name="sb_text_need_to_allow_permission_camera">%s\nneeds permission to access your camera. Go to Settings to allow access</string>
    <string name="sb_text_need_to_allow_permission_storage">%s\nneeds permission to access your device storage. Go to Settings to allow access.</string>

    <string name="sb_text_channel_input_text_hint_frozen">Chat is unavailable in this channel</string>
    <string name="sb_text_channel_input_text_hint_muted">You are muted</string>
    <string name="sb_text_select_channel_type">Channel type</string>
    <string name="sb_text_group">Group</string>
    <string name="sb_text_super_group">Supergroup</string>
    <string name="sb_text_broadcast">Broadcast</string>
    <string name="sb_text_information_channel_frozen">Channel frozen</string>
    <string name="sb_text_operator">Operator</string>
    <string name="sb_text_menu_operators">Operators</string>
    <string name="sb_text_menu_muted_members">Muted members</string>
    <string name="sb_text_menu_freeze_channel">Freeze channel</string>
    <string name="sb_text_empty_no_operator_member">No operator members</string>
    <string name="sb_text_empty_no_muted_member">No muted members</string>

    <string name="sb_text_register_operator">Register as operator</string>
    <string name="sb_text_mute_member">Mute</string>
    <string name="sb_text_ban_member">Ban</string>
    <string name="sb_text_unregister_operator">Unregister operator</string>
    <string name="sb_text_unmute_member">Unmute</string>
    <string name="sb_text_unban_member">Unban</string>

    <string name="sb_text_message">Message</string>
    <string name="sb_text_user_id">User ID</string>

    <string name="sb_text_url">URL</string>
    <string name="sb_text_error_not_possible_resend_message">Message can’t be sent.</string>

    <string name="sb_text_button_search">Search</string>
    <string name="sb_text_search_result_empty">No results found.</string>
    <string name="sb_text_error_search_failure">Something went wrong. Try again.</string>

    <string name="sb_text_you">You</string>
    <string name="sb_text_reply_to">Reply to %s</string>
    <string name="sb_text_replied_to">%s replied to %s</string>
    <string name="sb_text_error_original_message_not_found">Couldn\'t find the original message for this reply.</string>
    <string name="sb_text_exceed_mention_limit_count">"You can mention up to %d times per message."</string>

    <string name="sb_text_push_setting_on">On</string>
    <string name="sb_text_push_setting_off">Off</string>
    <string name="sb_text_push_setting_mentions_only">Mentions only</string>
    <string name="sb_text_push_setting_option_all">All new messages</string>
    <string name="sb_text_push_setting_description">Turn on push notifications if you wish to be notified when messages are delivered to this channel.</string>
</resources>

For an in-depth practical demonstration, see our sample code.