app/soc/models/site.py
changeset 970 8b5611d5b053
parent 534 c31cfbf1a20f
child 1051 c532dd9def48
equal deleted inserted replaced
969:b12de918d660 970:8b5611d5b053
    22 ]
    22 ]
    23 
    23 
    24 
    24 
    25 from google.appengine.ext import db
    25 from google.appengine.ext import db
    26 
    26 
    27 from django.utils.translation import ugettext_lazy
    27 from django.utils.translation import ugettext
    28 
    28 
    29 import soc.models.presence
    29 import soc.models.presence
    30 
    30 
    31 
    31 
    32 class Site(soc.models.presence.Presence):
    32 class Site(soc.models.presence.Presence):
    39 
    39 
    40   #: Valid Google Analytics tracking number, if entered every page
    40   #: Valid Google Analytics tracking number, if entered every page
    41   #: is going to have Google Analytics JS initialization code in 
    41   #: is going to have Google Analytics JS initialization code in 
    42   #: the footer with the given tracking number.
    42   #: the footer with the given tracking number.
    43   ga_tracking_num = db.StringProperty(
    43   ga_tracking_num = db.StringProperty(
    44       verbose_name=ugettext_lazy('Google Analytics'))
    44       verbose_name=ugettext('Google Analytics'))
    45   ga_tracking_num.help_text = ugettext_lazy(
    45   ga_tracking_num.help_text = ugettext(
    46       'Valid Google Analytics tracking number. If the number is '
    46       'Valid Google Analytics tracking number. If the number is '
    47       'entered every page is going to have Google Analytics '
    47       'entered every page is going to have Google Analytics '
    48       'initialization code in footer.')
    48       'initialization code in footer.')
    49 
    49 
    50   #: Valid Google Maps API Key. Used to embed Google Maps.
    50   #: Valid Google Maps API Key. Used to embed Google Maps.
    51   gmaps_api_key = db.StringProperty(verbose_name=ugettext_lazy('Google Maps'))
    51   gmaps_api_key = db.StringProperty(verbose_name=ugettext('Google Maps'))
    52   gmaps_api_key.help_text = ugettext_lazy(
    52   gmaps_api_key.help_text = ugettext(
    53       'Valid Google Maps API Key. This key is used for '
    53       'Valid Google Maps API Key. This key is used for '
    54       'embedding Google Maps into the website.')
    54       'embedding Google Maps into the website.')