Always english #238

Closed
svenemtell opened this Issue Dec 28, 2012 · 5 comments

2 participants

@svenemtell

Hi all
This is probably very simple, but I haven't found the answer.
I always get the english translation in the window presented by checkForUpdates.
If I exchange the folders en.proj with sv.proj, I get swedish translations though.
Does Sparkle use the language of System Settings or how does it work?
Thanks!
Sven

@nahuelproietto

Hi, scuse me for the english. I`m Argentinian
To change the language of the framework yo must add a Localization in Xcode (On Project Settings).
Try put Swedish instead English.
Regards,
Nahuel.

@svenemtell

Thanks Nahuel
I think I need to explain a bit more.
I use Sparkle together with an App built using LispWorks. Sparkle.framework resides in the Contents/Frameworks folder of the built App, and I use the LispWorks Objective-C interface to call Sparkle. The App itself adapts to the language set in System Settings when the App was started, and I want Sparkle to adapt in the same manner.
How can I let Sparkle know the language set in System Settings?
Best,
Sven

@nahuelproietto

I understand... well in xcode it does when you set up the localization (i attach an image).
Sincerelly, don´t know how in LispWorks. Try changing the strings on Sparkle.strings file
There is a good tutorial that shows how it works: http://kb.applingua.com/2011/10/extracting-and-localising-xibs-ibtool/

Captura de pantalla 2012-12-30 a la s 19 16 39

@svenemtell

The Sparkle.strings can be found in each of the lproj folders, and the problem is that Sparkle doesn't look in the right folder. Therefore I cannot see what good changing Sparkle.strings would do?

NOTE:
I just noted that if I for example change the CFBundleDevelopmentRegion to "sv" in Info.plist of the enclosing App, I get the swedish translation in Sparkle!?

Why does Sparkle change the localization when I change the CFBundleDevelopmentRegion of the enclosing App, but not when I change the system language in Language & Text???

Anyone?

Sven

@svenemtell

After discussing this on the LispWorks mailing list, the following has emerged.

  1. Localization of Sparkle windows works for the languages set up in CFBundleLocalizations of the Info.plist of the enclosing App.

  2. Localization of Sparkle windows works for the languages represented by lproj folders in the enclosing App. The lproj folders can be empty.

  3. If neither CFBundleLocalizations nor lproj folders exist in the enclosing App, Sparkle windows will use the language specified in CFBundleDevelopmentRegion of the Info.plist of the enclosing App.

  4. If neither of CFBundleLocalizations, CFBundleDevelopmentRegion nor lproj folders exist, the Sparkle windows will be displayed in english.

Thanks!
Sven

@svenemtell svenemtell closed this Jan 6, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment