Re: A request for a favour: Cluster names
site_archiver@lists.apple.com Delivered-To: pro-apps-dev@lists.apple.com Darin, There is no file named that name. Thanks for your help. Andreas On 25.11.2009, at 22:15, Darrin Cardani wrote: Or something along those lines. _______________________________________________ Do not post admin requests to the list. They will be ignored. Pro-apps-dev mailing list (Pro-apps-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/pro-apps-dev/site_archiver%40lists.ap... But based on your idea I 'scanned' the Qmaster package and took the names out of the localized strings as list. Now using a simple shell script I get actual OS language and can select the correct name for the basic cluster ('defaults read NSGlobalDomain AppleLanguages'). The only little problem I see is that you can change the language, log out, then log in with new language and the cluster name won't switch within Compressor/Batch Monitor/Qmaster. You finally have to reboot to make language switching for these apps really happen. But as said - minor problem. Andreas, I'm not positive if this will work, but you might try this: When you ask the system for a localized string, you generally tell it to pull the localized key from a particular bundle. You might be able to get what you want by doing something like the following (written in email, and not ever compiled - so might need some tweaks) : CFBundleRef jobControlBundle = CFBundleGetBundleWithIdentifier (CFSTR("com.apple.qmaster.JobControl")); CFStringRef localizedThisComputer = CFSTR ("This Computer"); if (jobControlBundle != nil) { localizedThisComputer = CFBundleCopyLocalizedString (jobControlBundle, localizedThisComputer, localizedThisComputer, nil); } Darrin This email sent to site_archiver@lists.apple.com
participants (1)
-
Andreas Kiel