Skip to content

Commit

Permalink
Fix to prevent translation of dictionary keys for minimum needs lookup
Browse files Browse the repository at this point in the history
  • Loading branch information
akbargumbira committed Oct 22, 2013
1 parent 41e6e46 commit e1ac444
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions safe/impact_functions/core.py
Expand Up @@ -66,7 +66,8 @@ def default_minimum_needs():
.. note:: Key names will be translated.
"""
rice = tr('Rice')
rice = tr(
'Rice')
drinking_water = tr('Drinking Water')
water = tr('Water')
family_kits = tr('Family Kits')
Expand Down Expand Up @@ -103,11 +104,11 @@ def evacuated_population_weekly_needs(population,
* assume 5 people per family (not in perka - 0.2 people per family)
* 20 people per toilet (0.05 per person)
"""
rice = tr('Rice')
drinking_water = tr('Drinking Water')
water = tr('Water')
family_kits = tr('Family Kits')
toilets = tr('Toilets')
rice = 'Rice'
drinking_water = 'Drinking Water'
water = 'Water'
family_kits = 'Family Kits'
toilets = 'Toilets'
if not minimum_needs:
minimum_needs = default_minimum_needs()

Expand Down

0 comments on commit e1ac444

Please sign in to comment.