It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I am working on the localization in the iPhone . I have used apple in built localization technique i.e. after saying make localize in Xcode provides two different .string file where we have to put the key and value for the localized word . I have implemented this method in my project . One more thing i have read somewhere that we can make localization by using database .I don't know how ? probably by storing the localized words in key value pair inside the database . But which is the best way to do this ?
There are several different techniques or ways to localize iphone app, we can localize complete .xib files or prepared localized string files.
Following links will elaborate this :
https://developer.apple.com/internationalization/
http://www.raywenderlich.com/2876/how-to-localize-an-iphone-app-tutorial
The most common way you will find is using the NSLocalizedStrings with a .string file per language. This concept should seem familiar to localizers who have used gettext before.
I'm not sure about putting the data into a database unless you had a bunch of strings that needed localizing. Otherwise, you probably won't gain much for the effort of storing the strings in a database.
Related
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
20,000 lines of spaghetti code (iPhone ObjC) was just dropped in my lap. QUESTION: where to begin, is there a tool to just profile it all? It's a mess, not even sure where to start. Suggestions welcome.
What you're looking for is something called Unified Markup Language (UML). This is a critically overlooked part of the development process and is used to layout "class names, methods, links, etc".
Luckily for you, your problem has been faced by many a programmer in the past and there are a few different Magic Bullet solutions available. Since I've never worked backwards from code to UML (normally you build the UML first) I had to do a quick search to find some solutions:
This one looks promising: doxygen
or this one: AutoGraf
And I'm sure with a few minutes on Google you can find everything you need if these don't work out for you; now that you're aware of UML.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
Well, when I named a folder with "4.0" in backup and store the name in database. When I get it from the database using perl, I changed to "4". How can I stop the automatic conversion?
There are several things that can go wrong here.
The value you have in the variable might have changed before you insert it into the database
The database driver may think it's a number and might change it
The database server might change it before it stores it
And, the same things might happen on the way out.
Check each of those things to see there the value changes. Then, focus on that part and add to your question.
As far as I'm aware, you can't. The DBD driver you're using (you didn't specify) is probably written in XS, and is using its own heuristics to figure this out. Most likely, you'll end up having to specify the type when you bind (SQL_CHAR, for example) to affect its heuristics.
Please remember: post code and details so people can help.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
Can you auto take multiple pictures and then edit them in real time for an iphone app? Like say u want to make a video of a man and add a beard to him can you do it while streaming? the mustach moves according to where his face is detected and say take about 5-15 frames per second?
I guess you can.
It would involve tracking some facial features or markers added for the purpose at the least. However this is such a vast and complex field, you'll hardly get a single advice here that will get you going.
If you really mean it, I'd suggest looking for Augmented Reality libraries, there's a few out there. Most of them work by tracking a special pattern and not arbitrary features though, so be prepared for a big load of work.
Check this SO question for a first few hints, you'll find more information on the topic easily through the search engine of your choice.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
i have a iphone app , now i need to make my app in such a way that it should support multiple languages,,,i.e button captions , & data which is in the table view rows should get converted to the selected languages, how can i do that,, can anyone help me out
thanx in advance
I guess you used some resources to learn Objective-C and iPhone programming. Try continue using them!
http://developer.apple.com/internationalization/
This may not be the best method, but it is the method I am using for my game.
Make a global variable language which is an int and you can use enum to make it coding friendly:
enum languages{
English = 1, Spanish = 2, Chinese = 3
};
Then make a function for every place you have text, so when you want certain text, just call the function for that object you need text for. This is easy because you can just customise the function as you like. Eg.
-(NSString) introText {
switch(language) {
English:return #"blahblahblah";
Spanish:return #"blahblah";
Chinese:return #"blah";
}
}
I prefer this method because I tend not to use nib files, and like to generate them through code. The downside to this method is that you probably would like to put this code in a separate class file, and is harder to spot if you missed anything. (think of this as sorting by text fields, while making separate nibs as sorting by language);
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
basically im looking for something that will just turn xml into an nsdictionary hierarchy.
Hey Nick, I wrote an XML to NSDicitonary converter you might find useful:
http://troybrant.net/blog/2010/09/simple-xml-to-nsdictionary-converter/
Troy Brant's code improved:
https://github.com/Insert-Witty-Name/XML-to-NSDictionary
On the iPhone, the way to do XML parsing is to use the NSXMLParser class, which takes a delegate (a.k.a. visitor) object of type NSXMLParserDelegate which gets invoked as different parts of the XML tree are visited. So, you can create a delegate that stores away the information into a dictionary. That said, most likely you won't care about everything in the XML that you parse, which is exactly why these parsing mechanism exists; you can create delegate that stores just the bits you want, which is faster and more memory efficient than adding a new dictionary entry for everything even if you never use it.
Here is tutorial with sample code explaining parsing a XML with NSXMLParser and save it as a array of dictionaries and displaying it in a tableview.
You can use my XML library for that, it's here.