Closed GoogleCodeExporter closed 9 years ago
This is useful.
Original comment by zexspect...@gmail.com
on 21 Apr 2010 at 3:17
Original comment by zexspect...@gmail.com
on 21 Apr 2010 at 3:17
JOY! This also makes it compatible with CFLite-derived projects, which has a
separate directory automatically selected per language. any ETA? and thanks
again.
Original comment by anbaricf...@gmail.com
on 21 Apr 2010 at 3:54
pseudocode for CFLite apps to get the language directory:
CFStringRef CFBundleCopyLocalizationPath()
{
CFileRef fileRef(CFileRef::kFolder_BundleResourcesDirectory);
SuperString pathStr(fileRef.path());
CCFArray arrayRef(CFBundleCopyBundleLocalizations(CFBundleGetMainBundle()));
CCFArray prefRef(CFBundleCopyPreferredLocalizationsFromArray(arrayRef));
SuperString resLangStr(kCFURLPlatformPathSeparator);
resLangStr.append((CFStringRef)prefRef[(CFIndex)0]);
resLangStr.append(".lproj");
pathStr.append(resLangStr);
return pathStr.Retain();
}
now, presuming you've put the lang files into the appropriate directories, and
renamed them to "crashrpt_lang.ini", the caller pseudocode is like this:
SuperString langPath(CFBundleCopyLocalizationPath(), false);
langPath.append(kCFURLPlatformPathSeparator);
langPath.append("crashrpt_lang.ini");
CFileRef langFile(langPath);
Original comment by anbaricf...@gmail.com
on 21 Apr 2010 at 6:44
actually nevermind the callback, just make it one of the paramblock strings
Original comment by anbaricf...@gmail.com
on 21 Apr 2010 at 8:19
I implemented this enhancement. You can checkout the latest code from 2.5 branch
right now or wait until 1.2.4 release. I plan to release 1.2.4 in the second
decade
of May.
Original comment by zexspect...@gmail.com
on 22 Apr 2010 at 11:09
Oops.. the correct name for the branch is 1.2, not 2.5. My mistake. The URL of
the
branch is https://crashrpt.googlecode.com/svn/branches/1.2
Original comment by zexspect...@gmail.com
on 22 Apr 2010 at 11:22
yay it works! note: i'd like to be able to specify the path to the file
itself, not
just it's directory, that way i can use my own file naming convention. also,
will
this work with a relative file path (relative to CrashSender.exe or
CrashRpt.dll) ?
Original comment by anbaricf...@gmail.com
on 24 Apr 2010 at 6:20
This enhancement is implemented in v.1.2.4.
Original comment by zexspect...@gmail.com
on 7 May 2010 at 9:03
Original issue reported on code.google.com by
anbaricf...@gmail.com
on 20 Apr 2010 at 11:25