Revision 582244

Go back to digest for 10th September 2006

Features in Utilities

Jason Kivlighn committed changes in /trunk/extragear/utils/krecipes:

Localization update to allow *all* base data to be localized.

Instead of putting all this base data inside of a header file in the form of an array, they are loaded from a data file at runtime based on locale. There are four files to translate: property-data-LANG.txt, ingredient-data-LANG.txt, unit-data-LANG.txt, and prep-data-LANG.txt.

Also, the user gets a message if they ask to import nutrient data and there is no localized data for their language. They can continue, using English data, or decide not to do the import.

File Changes

Added 8 files
  • /trunk/extragear/utils/krecipes
  •   /data/data-en_US.sql
  •   /data/ingredient-data-en_US.txt
  •   /data/prep-data-en_US.txt
  •   /data/property-data-en_US.txt
  •   /data/unit-data-en_US.txt
  •   /src/backends/usda_ingredient_data.cpp
  •   /src/backends/usda_property_data.cpp
  •   /src/backends/usda_unit_data.cpp
Deleted 1 files
  • /trunk/extragear/utils/krecipes/data/data.sql
Modified 13 files
  • /trunk/extragear/utils/krecipes
  •   /data/Makefile.am
  •   /src/klomanager.cpp
  •   /src/klomanager.h
  •   /src/setupwizard.cpp
  •   /src/setupwizard.h
  •   /src/backends/Makefile.am
  •   /src/backends/recipedb.cpp
  •   /src/backends/usda_ingredient_data.h
  •   /src/backends/usda_property_data.h
  •   /src/backends/usda_unit_data.h
  •   /src/dialogs/setupdisplay.cpp
  •   /src/dialogs/setupdisplay.h
  •   /src/dialogs/usdadatadialog.cpp
22 files changed in total