On Dec 22, 2009, at 2:49 PM, Christiaan Hofman wrote: > On Dec 22, 2009, at 23:38, Adam R. Maxwell wrote: > >> On Dec 22, 2009, at 2:23 PM, Christiaan Hofman wrote: >> >>> Were you using the French localization by any chance? Then this may happen, >>> because the French localization is disabled in the nightlies, while the >>> boolean and 3-value fields are saved as localized strings. >> >> In retrospect, maybe saving localized values for essentially BibDesk-owned >> data wasn't the best idea :/. > > Indeed. I don't recall what considerations were made, but I think it was done > before there was a localization.
I'm almost certain that it was, but too lazy to look it up :). >> It might be best to just store that as an integer in future, and still allow >> the old values for comparison...providing that could be done safely even >> when the localization is disabled. > > Switching from French to English will never work, because the English version > will never understand "Oui" and "Non". What if @"Oui" and "Non" or whatever the French version uses were hardcoded into -[NSString booleanValue], and +[NSString yesString] and +[NSString noString] returned @"1" and @"0" respectively? So you could open up a file previously saved with the French localization and the checkboxes would work, but editing a checkbox would replace the value with 1/0/- (and dash should be unlocalized as well). Newly added fields would never be localized. ------------------------------------------------------------------------------ This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev _______________________________________________ Bibdesk-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/bibdesk-users
