Status Update
Comments
ma...@gmail.com <ma...@gmail.com> #2
The `test` string is available in the default values/strings.xml (en) but not in values-en-rGB/strings.xml and that still shows a warning. I was assuming that would work given that locale="en" was specified in the default strings.xml
vi...@google.com <vi...@google.com> #3
Please let us know if you still face the issue.
mi...@gmail.com <mi...@gmail.com> #4
Have you look the Sample Repository ?
Actually the suggestion/reason should not appear in Android Studio: this is the bug
vi...@google.com <vi...@google.com> #5
ma...@gmail.com <ma...@gmail.com> #6
This is working fine from the command line. But Android Studio shows a warning (which should not be there)
uc...@google.com <uc...@google.com> #7
ma...@gmail.com <ma...@gmail.com> #8
values/strings.xml:
<string name="color">Color</string>
<string name="shape">Shape</string>
values-en-rGB/strings.xml:
<string name="color">Colour</string>
values-fr/strings.xml:
<string name="color">Couleur</string>
<string name="shape">Forme</string>
In GB, british people will use "Colour", with a "u" so we need the values-en-rGB resources to override the default "Color" from the default US language.
Now we don't need a specific GB translation for "Shape" as it's the same word in GB and US english but Android Studio will still show the warning. This is what this ticket is about.
Note that we can't add any of these keys to "donottranslate.xml" as we need to translate in French in all cases.
Can you please reopen the issue ?
vi...@google.com <vi...@google.com> #9
mi...@gmail.com <mi...@gmail.com> #10
It seems you don't understand our problem, and the regional and lint tricks.
Could you please reopen the issue and transfer the ticket management to someone who knows about Android Studio, and understand what we are talking about ?
Thank you very much
uc...@google.com <uc...@google.com> #11
ma...@gmail.com <ma...@gmail.com> #12
MissingTranslation
------------------
Summary: Incomplete translation
[skip]
By default this detector allows regions of a language to just provide a subset
of the strings and fall back to the standard language strings. You can require
all regions to provide a full translation by setting the environment variable
ANDROID_LINT_COMPLETE_REGIONS.
You can tell lint (and other tools) which language is the default language in
your res/values/ folder by specifying tools:locale="languageCode" for the root
<resources> element in your resource file. (The tools prefix refers to the
namespace declaration
tn...@google.com <tn...@google.com> #13
Fixed in 4.1 by Change-Id: I221e9d3c5f1d06d56a57e034e69823617580a7f0. Thanks for the report!
rt...@e-djuster.ca <rt...@e-djuster.ca> #14
tn...@google.com <tn...@google.com> #15
Yes indeed, thanks Robert!
to...@yahoo.com <to...@yahoo.com> #16
and this is partially back...
Android Studio Chipmunk | 2021.2.1 Canary 4 Build #AI-212.5284.40.2112.7863073, built on October 28, 2021 Runtime version: 11.0.12+7-b1504.28-7817840 amd64 VM: OpenJDK 64-Bit Server VM by Oracle Corporation Windows 10 10.0 GC: G1 Young Generation, G1 Old Generation Memory: 1280M Cores: 8 Registry: external.system.auto.import.disabled=true
In the text files themselves it's still ok; i.e. only 'red' when a translation is really missing.
However, in the editor view (the table view which shows all string vertically and all languages horizontally) all strings are showing up 'red' once again. i.e. if "en" has the string defined, but "en_GB" does not.... all should be fine... but Chipmunk c4 is showing those as 'red'
gm...@gmail.com <gm...@gmail.com> #17
warning: string 'archive_notify_new_messages_global_setting_title' has no default translation.
warning: string 'archive_notify_new_messages_info' has no default translation.
warning: string 'archive_notify_new_messages_title' has no default translation.
warning: string 'delete_media' has no default translation.
warning: string 'ephemeral_unblock_to_update_setting' has no default translation.
warning: string 'fingerprint_locked_title' has no default translation.
warning: string 'fingerprint_setup_dialog_negative_button' has no default translation.
warning: string 'fingerprint_setup_dialog_positive_button' has no default translation.
warning: string 'fingerprint_timeout_immediately' has no default translation.
warning: string 'gallery' has no default translation.
warning: string 'mediamods' has no default translation.
warning: string 'message_qr_found_title' has no default translation.
warning: string 'msg_autoreply_specialtimes' has no default translation.
warning: string 'msg_autoreply_spectoignore' has no default translation.
warning: string 'msg_autoreply_spectoreply' has no default translation.
warning: string 'network_usage_ask_reset_message' has no default translation.
warning: string 'not_expiring_message' has no default translation.
warning: string 'notification_settings_title_archived_chats' has no default translation.
warning: string 'others_device_login_chat_message' has no default translation.
warning: string 'others_device_logout_chat_message' has no default translation.
warning: string 'others_multiple_device_change_chat_message' has no default translation.
warning: string 'passv' has no default translation.
warning: string 'picture_in_picture_error' has no default translation.
warning: string 'read_later_chats_setting_title' has no default translation.
warning: string 'read_later_mute_details_header' has no default translation.
warning: string 'restart_phone' has no default translation.
warning: string 'room_attachment' has no default translation.
warning: string 'room_create' has no default translation.
warning: string 'room_installed_error' has no default translation.
warning: string 'rooms_continue_in_messenger' has no default translation.
warning: string 'rooms_create_link_in_messenger_continue' has no default translation.
warning: string 'rooms_create_link_in_messenger_nux' has no default translation.
warning: string 'rooms_non_e2e_warning' has no default translation.
warning: string 'rooms_nux_title' has no default translation.
warning: string 'sched_title_activity_edit' has no default translation.
warning: string 'search_section_results' has no default translation.
warning: string 'search_themes' has no default translation.
warning: string 'seen_status_color' has no default translation.
warning: string 'seen_status_color_sum' has no default translation.
warning: string 'self_device_login_chat_message' has no default translation.
warning: string 'self_device_login_group_chat_message' has no default translation.
warning: string 'self_device_login_list_chat_message' has no default translation.
warning: string 'self_device_logout_chat_message' has no default translation.
warning: string 'self_device_logout_group_chat_message' has no default translation.
warning: string 'self_device_logout_list_chat_message' has no default translation.
warning: string 'self_multiple_device_change_chat_message' has no default translation.
warning: string 'self_multiple_device_change_group_chat_message' has no default translation.
warning: string 'self_multiple_device_change_list_chat_message' has no default translation.
warning: string 'sending_to' has no default translation.
warning: string 'settings_notification_ignore_archived_chats' has no default translation.
warning: string 'settings_notification_ignore_archived_chats_detail' has no default translation.
warning: string 'settings_privacy_fingerprint_timeout' has no default translation.
warning: string 'storage_usage' has no default translation.
warning: string 'storage_usage_delete_complete_text' has no default translation.
warning: string 'storage_usage_free' has no default translation.
warning: string 'storage_usage_used' has no default translation.
warning: string 'tb_msg_more_info' has no default translation.
warning: string 'unseen_status_color' has no default translation.
warning: string 'unseen_status_color_sum' has no default translation.
warning: string 'voip_e2ee_message' has no default translation.
warning: string 'wallpaper_packge' has no default translation.
warning: string 'welcome_available_platforms_consumer' has no default translation.
warning: string 'welcome_available_platforms_india_consumer' has no default translation.
warning: string 'welcome_available_platforms_india_smb' has no default translation.
warning: string 'welcome_available_platforms_smb' has no default translation.
/data/user/0/
Description
I have strings.xml in values-en-rGB with a subset of regional values
Warnings appear saying "... is not translated in en"
Adding tools:locale="en" in default strings.xml should remove theses warnings
<resources xmlns:tools="
</resources>
This is not working