I have folders of images within a top-level folder in the Documents folder of my iPhone app. I want to place the necessary strings, or plist in each folder so I can return a localized string for each image. Prior to this I was just returning the name of the image file. Now I want to use the name of the image file as a key to get the localized names.
Here is the structure of my files:
CrystalImages (Folder)
Silicon (Folder)
Silica.png
Galium (Folder)
Galium.png
Ice (Folder)
Ice.png
Carbon (Folder)
Graphite.png
Diamond.png
I think I need to add, within each lower folder, a plist, with the name of the .png that contains pairings of ISO-639 language codes, and the translated equivalent of the file name string. (The structure of the folders is rather dynamic, that is, some users will have one set of folders and not others).
There is small problem with having one plist and that is that I would have to hand the same plist to all translation teams, instead of letting each translation tam have their own file. Should I instead just have a folder of files, each named en, fr, jp, containing a single string or dict entry?
Which is a better way to do it? And, is there a way to use NSLocalizedString or similar to get these strings easily, or do I have to load each plist and get my region and resolve to the string myself?
Thanks!