8

मैंने अपनी परियोजना में FBSDKLikeControl लागू किया है और मेरी अपेक्षाएं 'पसंद' और 'पसंद' टेक्स्ट परिवर्तन सम्मानित डिवाइस लोकेल (एआर-एई) में बदल गई हैं। लेकिन उम्मीद के अनुसार लोकेल नहीं बदला जाता है, यह केवल अंग्रेजी पाठ को 'पसंद' और 'पसंद' के लिए अरबी पाठ नहीं दिखाता है।FBSDKLikeControl शीर्षक टेक्स्ट डिवाइस लोकेल के संबंध में नहीं बदल रहा है FBSDK ios

self.buttonFBLike = [[FBSDKLikeControl alloc] init]; 
self.buttonFBLike.center=self.view.center; 
self.buttonFBLike.likeControlStyle=FBSDKLikeControlStyleBoxCount; 
[self.view addSubview:self.buttonFBLike] 
// Share url like @"https://www.facebook.com/FacebookDevelopers" 
[self.buttonFBLike setObjectID:shareURL]; 
self.buttonFBLike.enabled=YES; 
[self.buttonFBLike isTouchInside]; 

किसी भी एक सुझाव है कि कर सकते हैं कि कैसे मैं FBLikeButton के लिए स्थान निर्धारित कर सकते हैं प्रोग्राम के

+0

आप अपने कोड –

उत्तर

1

आपका कोडिंग हिस्सा सही है, जोड़ा वैकल्पिक FacebookSDKStrings.bundle अंतरराष्ट्रीय क्षुधा के लिए स्थानीय तार प्रदान करने के लिए है, तो आप अपनी परियोजना के लिए FacebookSDKStrings.bundle शामिल करने की जरूरत है और यह मेरे लिए अपेक्षा के अनुरूप काम करता है,

अनुसरण कर रहे हैं FacebookSDKStrings.bundle en.lproj (FacebookSDK.string) में है, तो एक बार आप जोड़ने के इस बंडल यह स्वचालित रूप से शेयर के लिए और बटन

/* The format string for device login instructions */ 
"DeviceLogin.LogInPrompt" = "Visit %@ on your smartphone or computer and enter the above code."; 

/* The title of the label to dismiss the alert when presenting user facing error messages */ 
"ErrorRecovery.Alert.OK" = "OK"; 

/* The title of the label to decline attempting error recovery */ 
"ErrorRecovery.Cancel" = "Cancel"; 

/* The fallback message to display to recover invalidated tokens */ 
"ErrorRecovery.Login.Suggestion" = "Please log into this app again to reconnect your Facebook account."; 

/* The title of the label to start attempting error recovery */ 
"ErrorRecovery.OK" = "OK"; 

/* The fallback message to display to retry transient errors */ 
"ErrorRecovery.Transient.Suggestion" = "The server is temporarily busy, please try again."; 

/* The label for the FBSDKLikeButton when the object is not currently liked. */ 
"LikeButton.Like" = "Like"; 

/* The label for the FBSDKLikeButton when the object is currently liked. */ 
"LikeButton.Liked" = "Liked"; 

/* The label for the FBSDKLoginButton action sheet to cancel logging out */ 
"LoginButton.CancelLogout" = "Cancel"; 

/* The label for the FBSDKLoginButton action sheet to confirm logging out */ 
"LoginButton.ConfirmLogOut" = "Log Out"; 

/* The fallback string for the FBSDKLoginButton label when the user name is not available yet */ 
"LoginButton.LoggedIn" = "Logged in using Facebook"; 

/* The format string for the FBSDKLoginButton label when the user is logged in */ 
"LoginButton.LoggedInAs" = "Logged in as %@"; 

/* The short label for the FBSDKLoginButton when the user is currently logged out */ 
"LoginButton.LogIn" = "Log in"; 

/* The long label for the FBSDKLoginButton when the user is currently logged out */ 
"LoginButton.LogInLong" = "Log in with Facebook"; 

/* The label for the FBSDKLoginButton when the user is currently logged in */ 
"LoginButton.LogOut" = "Log out"; 

/* The user facing error message when the app slider has been disabled and login fails. */ 
"LoginError.SystemAccount.Disabled" = "Access has not been granted to the Facebook account. Verify device settings."; 

/* The user facing error message when the Accounts framework encounters a network error. */ 
"LoginError.SystemAccount.Network" = "Unable to connect to Facebook. Check your network connection and try again."; 

/* The user facing error message when the device Facebook account password is incorrect and login fails. */ 
"LoginError.SystemAccount.PasswordChange" = "Your Facebook password has changed. To confirm your password, open Settings > Facebook and tap your name."; 

/* The user facing error message when the device Facebook account is unavailable and login fails. */ 
"LoginError.SystemAccount.Unavailable" = "The Facebook account has not been configured on the device."; 

/* The user facing error message when the Facebook account signed in to the Accounts framework becomes unconfirmed. */ 
"LoginError.SystemAccount.UnconfirmedUser" = "Your account is not confirmed. Please log in to www.facebook.com and follow the instructions given."; 

/* The user facing error message when the Facebook account signed in to the Accounts framework has been checkpointed. */ 
"LoginError.SystemAccount.UserCheckpointed" = "You cannot log in to apps at this time. Please log in to www.facebook.com and follow the instructions given."; 

/* The message of the FBSDKLoginTooltipView */ 
"LoginTooltip.Message" = "New! You're in control - choose what info you want to share with apps."; 

/* Title of the web dialog that prompts the user to log in to Facebook. */ 
"LoginWeb.LogInTitle" = "Log In"; 

/* The label for FBSDKSendButton */ 
"SendButton.Send" = "Send"; 

/* The label for FBSDKShareButton */ 
"ShareButton.Share" = "Share"; 

तरह का संदर्भ लें डिवाइस भाषा के आधार पर स्थान में परिवर्तन होगा: Facebook change log for more details

Stack overflow link have more info

+1

हां दाएं @balakrishnan मैक, चेंज लॉग ने स्पष्ट रूप से इसका वैकल्पिक उल्लेख किया है, इसलिए हमें इसे प्रोजेक्ट बंडल में जोड़ने की ज़रूरत है, चाहे ऐप अंतरराष्ट्रीय स्थानीय का उपयोग कर रहा हो, अब यह अपेक्षाकृत काम कर रहा है, धन्यवाद – Manobala

2

यहां अपने खुद का अनुवाद को लागू करने के बारे में कुछ संकेत हैं: यहाँ खोज के बाद

iOS Facebook SDK localization

: https://developers.facebook.com/docs/internationalization#locales

आप फेसबुक एक्सएमएल फ़ाइल ढूंढ सकते हैं जिसमें लोकेल जानकारी है (https://www.facebook.com/translations/FacebookLocales.xml)

यह पता चला है कि वे केवल अरबी के लिए ar_AR उपयोग करें, और नहीं ar_AE, कारण हो सकता है।

+1

अंतिम पंक्ति में आपका ढेर अतिप्रवाह लिंक इस जवाब है दिखा सकते हैं, लेकिन मैं अपने FBSDK स्थानीयकरण लिंक thougt और मैं इसे previosly एक बहुत skiped धन्यवाद – Manobala

+0

हाँ आप कर रहे हैं सही @manobala, मैं भी है हूँ वही विचार है कि यह एफबी डेवलपर पेज लिंक है, अगर मैंने यह जवाब संपादित करने से पहले देखा था या सिर्फ परिवर्तन लॉग लिंक पोस्ट किया है, तो अच्छा काम यान कैसर पोस्ट करें, इसे जारी रखें :) –

+0

सुझाव दे सकता है कि मैं एफबीएलइक बटन के लिए लोकेल को कैसे सेट कर सकता हूं – Manobala

संबंधित मुद्दे