How to translate my iOS App - ios

this is a very basic question. Too basic so I can't find a simple answer.
I have my 'iOS' app in French. I want to translate it in English.
How can I do that ? (I speak English but I don't know what is the protocol in Xcode to create "a dictionnary of the strings" in French/English in my app)
Thanks

You have to use Localization... The tutorial I used and recommend is here: http://www.raywenderlich.com/2876/how-to-localize-an-iphone-app-tutorial
If you are still having trouble check out this answer in stack overflow: How to localize my app with Xcode 4?

Related

XCode provides limited suggestions after dot notation

after a dot notation xcode provides some suggestions however it is very limited. For example, in the following picture 1, I have sender.title. I would like xcode to provide suggestions that not only start with title but also contatin the word title in it. in this case, I was looking for sender.currentTitle, but I couldn't see it since xcode only provides suggestions that start with title.
I am Using swift 3.0, xcode8.1 and autocomplete has a good list to get the right option also any time if you can't see autosuggestion you can press esc or control+comma(for list) to get the pop up again, however I am new to swift and love this programming language !!
Since you are using Xcode 6, so it might possible This answer can help you StackoverFlow Answer
-Cheers

How to implement AVCam for Swift

Hello I have found two links about AVCam
Apple: https://developer.apple.com/library/ios/samplecode/AVCam/History/History.html
alex-chan/AVCamSwift: https://github.com/alex-chan/AVCamSwift
The first link has demo files that work perfectly, but its in Object-C - can someone show me documentation on converting Object-C to Swift?
The second link I have downloaded the files but it will not run in my 4s - can someone tell me why?
I would like to have a swift version so I can easily adopt it into my swift build + thanks again SO!
if you have a working objc version why not just import it with a bridging header? there is no one document about converting obj-c to swift, if you really want to convert it you are going to need to do it line by line.
also what exactly are you trying to do? get a live camera feed displayed? these docs have been ported to swift and would suit that purpose but you would need to get the input port first.
https://developer.apple.com/library/mac/documentation/AVFoundation/Reference/AVCaptureVideoPreviewLayer_Class/index.html#//apple_ref/occ/clm/AVCaptureVideoPreviewLayer/layerWithSession:
Update: how to import obj-c headers, a newer way to create them that isnt quite as talked about yet is to just create any normal .m file or objective c file then select yes to creating a briding header, it configures everything for you.
That being said it may be worth while to play around with the basics a bit more and maybe follow a few guides before attempting to implement this type of feature if you are having issues with following the links.
Here is a random application creation guide http://www.ioscreator.com/tutorials/calculator-tutorial-in-ios8-with-swift that should teach you alot. i would recommend following and reading through stuff like this until you have a bit more of a footing and can come up with more of an exact question. no one here is going to rewrite the apple program for you and your questions are extremely broad.

IOS Localizations Global

Its been a couple of years since I worked on IOS, but now that I've created one with the latest Xcode 5.1 I see that there is a "Global" localization. I've always assumed that if the user has a localization that it is not supported by the app, that it will revert to the Localization native development region property in the info.plist.
Has this changed ? and what does the global do exactly ?
Global localization? Do you mean perhaps "Base localization"?
The question is really too broad to answer in the SO format. In short, however: base localization (coupled with auto layout) allows you to you use your reference language (usually your native language) in your storyboards and xibs. When you add a localization to your app, Xcode generates a strings file for all the text that is contained in each UI file.
Good starting point to read up on the new localization guidelines: Apple Developer Internationalization guide

iOS default project language [duplicate]

This question already has an answer here:
Change Single Language of Xcode Project
(1 answer)
Closed 9 years ago.
Quick question. I'm starting a new iOS project in Xcode. The default language (under Localization) is English, but my app is only going to support Portuguese. Should I delete the English entry and add Portuguese ou just leave as it is? Is it bad practice to leave English when my app won't be in English?
Notice that I'm not asking about localization - the app will only run in Portuguese. It's more about setting a default language.
Thanks!
Just don't add any localisation at all.
The en-GB folder is only added if you add localisation.
Just write the app in Portuguese.
If your app is not going to support English anyhow than there is no need of keeping it, So it would be better if you delete it

can I change an app's language based on an iOS Device's default language?

I have Created one simple in-house app for ipads. I would like to have 2 language for that app. Based on ipad default language App language should be same as ipad default language.
I tried to goggling it but didn't find proper answer.
Is it possible?
How can I do that?
Any Links, examples any documents?
You can use TSLanguageManager SDK in order to do that. In basic, you define different string for each languages. Then the SDK checks your language and converts your defined strings/view elements into that language string. Also, you can switch between language by using this SDK in your app.
This is a good starting point for internationalization and localization resources for iOS apps.

Resources