Changeset 317 for branches/branch-1-0/src/helpers/nls.c
- Timestamp:
- May 31, 2006, 12:03:38 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/branch-1-0/src/helpers/nls.c
r304 r317 375 375 *@@changed V1.0.4 (2005-10-15) [bvl]: Added support for Locale object settings on MCP systems @@fixes 614 376 376 *@@changed V1.0.4 (2005-10-29) [pr]: Rewritten to prevent memory leaks and errors 377 *@@changed V1.0.5 (2006-05-29) [pr]: Read Country rather than Locale settings on Warp 4 FP13+ @@fixes 614 377 378 */ 378 379 … … 381 382 if (pcs) 382 383 { 383 pcs->ulDateFormat = PrfQueryProfileInt(HINI_USER, 384 (PSZ)PMINIAPP_NATIONAL, 385 "iDate", 386 0); 387 pcs->ulTimeFormat = PrfQueryProfileInt(HINI_USER, 388 (PSZ)PMINIAPP_NATIONAL, 389 "iTime", 390 0); 391 pcs->cDateSep = prfhQueryProfileChar(HINI_USER, 392 (PSZ)PMINIAPP_NATIONAL, 393 "sDate", 394 '/'); 395 pcs->cTimeSep = prfhQueryProfileChar(HINI_USER, 396 (PSZ)PMINIAPP_NATIONAL, 397 "sTime", 398 ':'); 399 pcs->cDecimal = prfhQueryProfileChar(HINI_USER, 400 (PSZ)PMINIAPP_NATIONAL, 401 "sDecimal", 402 '.'); 403 pcs->cThousands = prfhQueryProfileChar(HINI_USER, 404 (PSZ)PMINIAPP_NATIONAL, 405 "sThousand", 406 ','); 407 if (doshIsWarp4()==2) 384 if (doshIsWarp4()==3) // V1.0.5 (2006-05-29) [pr] 408 385 { 409 386 UconvObject uconv_object; … … 473 450 UniFreeUconvObject(uconv_object); 474 451 } 452 } 453 else 454 { 455 pcs->ulDateFormat = PrfQueryProfileInt(HINI_USER, 456 (PSZ)PMINIAPP_NATIONAL, 457 "iDate", 458 0); 459 pcs->ulTimeFormat = PrfQueryProfileInt(HINI_USER, 460 (PSZ)PMINIAPP_NATIONAL, 461 "iTime", 462 0); 463 pcs->cDateSep = prfhQueryProfileChar(HINI_USER, 464 (PSZ)PMINIAPP_NATIONAL, 465 "sDate", 466 '/'); 467 pcs->cTimeSep = prfhQueryProfileChar(HINI_USER, 468 (PSZ)PMINIAPP_NATIONAL, 469 "sTime", 470 ':'); 471 pcs->cDecimal = prfhQueryProfileChar(HINI_USER, 472 (PSZ)PMINIAPP_NATIONAL, 473 "sDecimal", 474 '.'); 475 pcs->cThousands = prfhQueryProfileChar(HINI_USER, 476 (PSZ)PMINIAPP_NATIONAL, 477 "sThousand", 478 ','); 475 479 } 476 480 }
Note:
See TracChangeset
for help on using the changeset viewer.