craftyourempire Index du Forum

craftyourempire
Serveur PVP/Factions/RP Sans Whitelist !

 FAQFAQ   RechercherRechercher   MembresMembres   GroupesGroupes   S’enregistrerS’enregistrer 
 ProfilProfil   Se connecter pour vérifier ses messages privésSe connecter pour vérifier ses messages privés   ConnexionConnexion 

Change Language Facebook Ios App

 
Poster un nouveau sujet   Répondre au sujet    craftyourempire Index du Forum -> Annonces -> Présentation Du Serveur
Sujet précédent :: Sujet suivant  
Auteur Message
taddijacl


Hors ligne

Inscrit le: 01 Avr 2016
Messages: 141
Localisation: Nantes

MessagePosté le: Mar 9 Jan - 19:30 (2018)    Sujet du message: Change Language Facebook Ios App Répondre en citant




Change Language Facebook Ios App
> DOWNLOAD (Mirror #1)










Still need help?. Can be picker view/button/segmented control/whatever. That cause an issue. Analogous for other languages. It has no knowledge of the users skills in other languages. Setting the default-language to German is also not optimal, because this would rise the same problem for people speaking french (an native language) and English (as second language). However, since this has to be an answer, I think your use case is solved without hacking language selection. As a complete example you could present a popover action sheet after clicking a button like this: IBOutlet var changeLanguageButton: UIButton! IBAction func didPressChangeLanguageButton() { let message = "Change language of this app including its content." let sheetCtrl = UIAlertController(title: "Choose language", message: message, preferredStyle: .actionSheet) for languageCode in Bundle.main.localizations.filter({ $0 != "Base" }) { let langName = Locale.current.localizedString(forLanguageCode: languageCode) let action = UIAlertAction(title: langName, style: .default) { in self.changeToLanguage(languageCode) // see step #2 } sheetCtrl.addAction(action) } let cancelAction = UIAlertAction(title: "Cancel", style: .cancel, handler: nil) sheetCtrl.addAction(cancelAction) sheetCtrl.popoverPresentationController?.sourceView = self.view sheetCtrl.popoverPresentationController?.sourceRect = self.changeLanguageButton.frame present(sheetCtrl, animated: true, completion: nil) } Step #2: Explain user what to do + Change language with restart You might have noticed that the code in step #1 calls a method named changeToLanguage(langCode:). Select your languagePick your language from the list. And even if I could: It is very unlikely that every user would do this. Also you can use Locale.current.localizedString(forLanguageCode: "en") // replace "en" with your variable to present the language name in the apps current language. Now comes my app: I did develop it in English and German (German is my native language and English is standard-language in IT). Learn more, including about available controls: Cookies Policy.FacebookJoin or Log Into Facebook Email or PhonePasswordForgot account?Log InDo you want to join Facebook?Sign UpSign UpThis page isn't availableThe link you followed may be broken, or the page may have been removed.Go back to the previous page Go to News Feed Visit our Help CenterEnglish (US)NederlandsFryskPolskiTrkeDeutschFranais (France)EspaolPortugus (Brasil)ItalianoSign UpLog InMessengerFacebook LiteMobileFind FriendsPeoplePagesPlacesGamesLocationsCelebritiesMarketplaceGroupsRecipesSportsLookMomentsInstagramLocalAboutCreate AdCreate PageDevelopersCareersPrivacyCookiesAd ChoicesTermsHelpSettingsActivity Log Facebook 2018. –Michal Dobrodenka Sep 12 '13 at 14:50 1 +1 for "if you want the app to close once you click the home button you can add Application does not run in background to your info.plist file. To have localized texts available for every situation, you NEVER must write fix texts to the objects titles. .. And mark the answer as correct to encourage other users to answer your questions in future. –Mahesh Narla Mar 28 '17 at 6:04 1 As you're saying: The text is dynamic and comes from the server in English. But it seems to be clear, that a mobile phone of 2017 will not be able to provide the resources for a translation machine. Learn more, including about available controls: Cookies Policy.FacebookJoin or Log Into Facebook Email or PhonePasswordForgot account?Log InDo you want to join Facebook?Sign UpSign UpThis page isn't availableThe link you followed may be broken, or the page may have been removed.Go back to the previous page Go to News Feed Visit our Help CenterEnglish (US)NederlandsFryskPolskiTrkeDeutschFranais (France)EspaolPortugus (Brasil)ItalianoSign UpLog InMessengerFacebook LiteMobileFind FriendsPeoplePagesPlacesGamesLocationsCelebritiesMarketplaceGroupsRecipesSportsLookMomentsInstagramLocalAboutCreate AdCreate PageDevelopersCareersPrivacyCookiesAd ChoicesTermsHelpSettingsActivity Log Facebook 2018. But he doesn't speak ten words of English. Stack Overflow Questions Developer Jobs Tags Users current community help chat Stack Overflow Meta Stack Overflow your communities Sign up or log in to customize your list. –Novarg Mar 30 '12 at 12:25 1 I think this is the correct & apple native solution. –Hubert Schlnast Mar 28 '17 at 7:18 show 15 more comments up vote 34 down vote Simply add the following to the screen with language choice: NSString *tempValue = //user chosen language. Then, when your app is localized to English and German, that young man's iPhone would pick German resources. The only difference: Now you even can use languages like hindi or esperanto, that are not supported by Apple. Privacy Policy Terms of Use Sales and Refunds Site Map Contact Apple United States (English) . Select Language & RegionIf you're using iOS 8 or later, scroll downand tapLanguage & Region. Tap GeneralOn the next screen, tap General. On an iPhone (and iPad as well) he has no chance to select a second language, so the phone only knows that he spreaks french. To give you an example, here are the first lines of my english and german versions of Localizable.strings: English /* English - English */ /* for debugging */ "languageOfBundle" = "English - English"; /* Header-Title of the Table displaying all lists and projects */ "summary" = "Summary"; /* Section-Titles in table "summary" */ "help" = "Help"; "lists" = "Lists"; "projects" = "Projects"; "listTemplates" = "List Templates"; "projectTemplates" = "Project Templates"; German /* German - Deutsch */ /* for debugging */ "languageOfBundle" = "German - Deutsch"; /* Header-Title of the Table displaying all lists and projects */ "summary" = "berblick"; /* Section-Titles in table "summary" */ "help" = "Hilfe"; "lists" = "Listen"; "projects" = "Projekte"; "listTemplates" = "Vorlagen fr Listen"; "projectTemplates" = "Vorlagen fr Projekte"; To use localizing, you must have some settings-routines in your app, and in the language-selection you call the macro: LocalizationSetLanguage(selectedLanguage); After that you must enshure, that everything that was displayed in the old language, gets redrawn in the new language right now (hidden texts must be redrawn as soon as they get visible again). Afteryour device updates the language, it should return to the Home screen and display the language you selected. Log In Spotify Company About Jobs Press News Communities Artists Developers Brands Useful links Help Gift Web Player Instagram Twitter Facebook 2017 Spotify AB . That's what you should do, too when the user chooses a new language to change to, no matter how you designed your chooser 5a02188284
unlock facebook password 1.6.4 portalesfacebook logout ios sdkhow to link spotify to a different facebook accountkey pro facebook hack v 1.0 by mirelfacebook official windows phone appfacebook canvas app oauth examplefacebook javascript sdk check login statusbejeweled blitz cheats facebook 2012best facebook wordpress pluginhow do i install facebook for htc sense


Revenir en haut
Publicité






MessagePosté le: Mar 9 Jan - 19:30 (2018)    Sujet du message: Publicité

PublicitéSupprimer les publicités ?
Revenir en haut
Montrer les messages depuis:   
Poster un nouveau sujet   Répondre au sujet    craftyourempire Index du Forum -> Annonces -> Présentation Du Serveur Toutes les heures sont au format GMT + 1 Heure
Page 1 sur 1

 
Sauter vers:  

Index | Panneau d’administration | créer un forum | Forum gratuit d’entraide | Annuaire des forums gratuits | Signaler une violation | Conditions générales d'utilisation
Powered by phpBB © 2001, 2005 phpBB Group
Traduction par : phpBB-fr.com