1

I have finished my first game project with Spritebuilder and its time for localisation. But, when I try to add a new localisation, even though I follow all the correct steps, no language is added in Xcode and no localised project folder are created after I click finish (see attached photo).

Hint: If I try to add the language again the list with the resource files is empty...

enter image description here

Any ideas?

Alex Nolasco
  • 18,750
  • 9
  • 86
  • 81
Tassos Voulgaris
  • 878
  • 1
  • 9
  • 21
  • I think this is a Spritebuilder bug. I have tested it again, by publishing a blank project from Spritebuilder 1.3.3 and the problem replicates. I have no problem creating localisations to a project that was created within XCode – Tassos Voulgaris Nov 09 '14 at 02:59
  • SpriteBuilder provides its own means of adding languages and localizing labels, perhaps that is in conflict with xcode localization? – CodeSmile Nov 09 '14 at 10:43
  • Yes, sprite builder has its own localisation system, but there is text and images in the source code & Xcode, that has to be handled by Xcode for localisation, right? How to you handle that? And how will apple recognise the project as multilingual, if you don't follow their methods of localisation? – Tassos Voulgaris Nov 09 '14 at 11:25
  • ΟΚ, Ι have found out that translations made in Sprite Builder's Language Editor are used properly by the Project, meaning that if my phone is set in a translated locale, the language of the game appears in the translated language. I am going to try using CCBLocalize instead of NSLocalizedString, to see if I can localise source code strings as well, using the Language Editor – Tassos Voulgaris Nov 09 '14 at 12:52
  • If I use CCBLocalize instead of NSLocalizedString in my source, and I add manually the key to the Language Editor, it works! Two questions: 1. Can I use something like genstring to automatically import the keys to language editor? 2. How can I handle the localisation of images used in Xcode? – Tassos Voulgaris Nov 09 '14 at 13:19

1 Answers1

0

Faced similar issue with SpriteBuilder, if you prefer Xcode's string format. Try this answer to restore this capability

I deleted the Localizations in Xcode, then I cannot add any Localizations back

Community
  • 1
  • 1
Alex Nolasco
  • 18,750
  • 9
  • 86
  • 81