Re: A request for a favour: Cluster names
Re: A request for a favour: Cluster names
- Subject: Re: A request for a favour: Cluster names
- From: Andreas Kiel <email@hidden>
- Date: Thu, 26 Nov 2009 18:29:42 +0100
Darin,
There is no file named that name.
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.
Thanks for your help.
Andreas
On 25.11.2009, at 22:15, Darrin Cardani wrote:
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);
}
Or something along those lines.
Darrin
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Pro-apps-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden