Android/Facebook missing default translation 'warning' errors

tafftaff USMember ✭✭

From nowhere, my Xamarin Forms solution has generated 22 errors all in an Android project, all complaining that lots of 'com_facebook_XXXX has no default translation'. I'm using a fully up to date version of VS2017 (15.4.2).
I have no idea what has caused this and googling the individual errors doesnt seems to turn anything relevant up.

enter image description here

I can see in Resource.Designer.cs that these constants are defined:

public const int com_facebook_smart_login_confirmation_title_m2gender = 2131230763;

// aapt resource value: 0x7f080016
public const int com_facebook_tooltip_default = 2131230742;

// aapt resource value: 0x7f08002c
public const int com_facebook_tooltip_default_f1gender = 2131230764;

// aapt resource value: 0x7f08002d
public const int com_facebook_tooltip_default_m2gender = 2131230765;

But what do I do with them?

Has anyone seen this before or know what has caused it?

Thanks

Answers

  • KaiWKaiW DEUniversity ✭✭

    Have a look at this StackOverflow posting. Works fine for me.

    So in your Android Resources/values folder just add a new file 'facebook-strings.xml' with this content:

    <?xml version="1.0" encoding="utf-8"?>
    <resources>
      <string name="com_facebook_loginview_log_in_button_continue_f1gender">Continue</string>
      <string name="com_facebook_loginview_log_in_button_continue_m2gender">Continuee</string>
      <string name="com_facebook_loginview_log_out_action_f1gender">Log out</string>
      <string name="com_facebook_loginview_log_out_action_m2gender">Log out</string>
      <string name="com_facebook_loginview_log_out_button_f1gender">Log out</string>
      <string name="com_facebook_loginview_log_out_button_m2gender">Log out</string>
      <string name="com_facebook_loginview_logged_in_as_f1gender">Logged in as</string>
      <string name="com_facebook_loginview_logged_in_as_m2gender">Logged in as</string>
      <string name="com_facebook_loginview_logged_in_using_facebook_f1gender">Logged in using Facebook</string>
      <string name="com_facebook_loginview_logged_in_using_facebook_m2gender">Logged in using Facebook</string>
      <string name="com_facebook_send_button_text_f1gender">Send</string>
      <string name="com_facebook_send_button_text_m2gender">Send</string>
      <string name="com_facebook_share_button_text_f1gender">Share</string>
      <string name="com_facebook_share_button_text_m2gender">Share</string>
      <string name="com_facebook_smart_login_confirmation_cancel_f1gender">Cancel</string>
      <string name="com_facebook_smart_login_confirmation_cancel_m2gender">Cancel</string>
      <string name="com_facebook_smart_login_confirmation_continue_as_f1gender">Continue</string>
      <string name="com_facebook_smart_login_confirmation_continue_as_m2gender">Continue</string>
      <string name="com_facebook_smart_login_confirmation_title_f1gender">Confirm</string>
      <string name="com_facebook_smart_login_confirmation_title_m2gender">Confirm</string>
      <string name="com_facebook_tooltip_default_f1gender">Default</string>
      <string name="com_facebook_tooltip_default_m2gender">Default</string>
    </resources>
    
Sign In or Register to comment.