Closed (works as designed)
Project:
Recipe
Version:
master
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
21 Feb 2007 at 03:12 UTC
Updated:
21 Feb 2007 at 16:41 UTC
The ingredients are stored in the database with small caps (which I think complies with mealmaster format) but I need to display them with capitalized caps (eg, not "sugar" or "salt" but "Sugar" or "Salt").
I don't know whether it was intended from the author to have them small caps or if my drupal installation cause this (I got the wiki extension with freelinking and pathauto).
Maybe there is a way to change function recipe_load_ingredients($node) to just get a capitalized output with ucfirst or ucword($ingredient).
Comments
Comment #1
Paike commentedOk, I just removed the strtolower from the _in_array() (line ~771), and it works, the ingredients will be stored in the db "casesensitivly". But because I dont really understand the meaning of this function this could have sideeffects?
PS: the bug appeared also in a clean installation of drupal with no other modules.
Comment #2
drawk commentedI'm changing the status from to "by design". Conventionally, recipes are in a format with lowercase ingredients except when a proper noun is used. IE - "2 tsp sugar" or "2 tsp Splenda sugar substitute".
Comment #3
Paike commentedMh, it's not the same convention in german (and maybe in other languages?) so at least for german users we would need capitalized letters. I looked at some other german recipe sites, sometimes you need to have small and capitalized caps for one ingredients entry. And as you wrote, there could sometimes be the case that a proper noun is used :)
The question is, are the lowercase ingredients needed for other code purposes?