return mhost.sendmail(from_addr, to_addrs, message.as_string()) LICENSE_INFO_EMAIL_BODY = _( """Thank you for using a Creative Commons legal tool for your work. You have selected %(license_title)s. You should include a reference to this on the web page that includes the work in question. Here is the suggested HTML: %(license_html)s Tips for marking your work can be found at http://wiki.creativecommons.org/Marking. Information on the supplied HTML and metadata can be found at http://wiki.creativecommons.org/CC_REL. This email and tech support has been brought to you by the nonprofit folks at Creative Commons. CC relies on donations to provide you with licenses and services like this. Please consider a donation to our annual fund: https://creativecommons.net/donate. Thank you! Creative Commons Support [email protected]""") LICENSE_INFO_EMAIL_SUBJECT = _('Your Creative Commons License Information')
body_template = gettext( u'This %(work_type)s is in the ' u'<a rel="license" href="http://creativecommons.org/licenses/publicdomain/">Public Domain</a>.' ) body_vars = {'work_type': process_work_type(gettext, dctype)} message = image_header + body_template % body_vars return message ### ---------------------------- ### Public Domain Mark formatter ### ---------------------------- PDMARK_PLAIN = _("This work is free of known copyright restrictions.") PDMARK_WORKTITLE = _( "This work (%(work_title)s) is free of known copyright restrictions.") PDMARK_AUTHOR = _('This work ' '(by %(author)s) ' 'is free of known copyright restrictions.') PDMARK_CURATOR = _('This work, ' 'identified by %(curator)s, ' 'is free of known copyright restrictions.') PDMARK_WORKTITLE_AUTHOR = _('This work (%(work_title)s, by %(author)s) ' 'is free of known copyright restrictions.')
body_template = gettext( u'This %(work_type)s is in the ' u'<a rel="license" href="http://creativecommons.org/licenses/publicdomain/">Public Domain</a>.') body_vars = {'work_type': process_work_type(gettext, dctype)} message = image_header + body_template % body_vars return message ### ---------------------------- ### Public Domain Mark formatter ### ---------------------------- PDMARK_PLAIN = _( "This work is free of known copyright restrictions.") PDMARK_WORKTITLE = _( "This work (%(work_title)s) is free of known copyright restrictions.") PDMARK_AUTHOR = _( 'This work ' '(by %(author)s) ' 'is free of known copyright restrictions.') PDMARK_CURATOR = _( 'This work, ' 'identified by %(curator)s, ' 'is free of known copyright restrictions.') PDMARK_WORKTITLE_AUTHOR = _(
from cc.i18n.gettext_i18n import fake_ugettext as _ COUNTRY_MAP = { "ar": _("Argentina"), "at": _("Austria"), "au": _("Australia"), "be": _("Belgium"), "bg": _("Bulgaria"), "br": _("Brazil"), "ca": _("Canada"), "ch": _("Switzerland"), "cl": _("Chile"), "cn": _("China Mainland"), "co": _("Colombia"), "cr": _("Costa Rica"), "cz": _("Czech Republic"), "de": _("Germany"), "dk": _("Denmark"), "ec": _("Ecuador"), "ee": _("Estonia"), "eg": _("Egypt"), "es": _("Spain"), "es-ca": _("Catalonia"), "fi": _("Finland"), "fr": _("France"), "gr": _("Greece"), "gt": _("Guatemala"), "hk": _("Hong Kong"), "hr": _("Croatia"), "hu": _("Hungary"), "ie": _("Ireland"),
from cc.i18n.gettext_i18n import fake_ugettext as _ COUNTRY_MAP = { "ar": _("Argentina"), "at": _("Austria"), "au": _("Australia"), "be": _("Belgium"), "bg": _("Bulgaria"), "br": _("Brazil"), "ca": _("Canada"), "ch": _("Switzerland"), "cl": _("Chile"), "cn": _("China Mainland"), "co": _("Colombia"), "cr": _("Costa Rica"), "cz": _("Czech Republic"), "de": _("Germany"), "dk": _("Denmark"), "ec": _("Ecuador"), "ee": _("Estonia"), "eg": _("Egypt"), "es": _("Spain"), "es-ca": _("Catalonia"), "fi": _("Finland"), "fr": _("France"), "gr": _("Greece"), "gt": _("Guatemala"), "hk": _("Hong Kong"), "hr": _("Croatia"), "hu": _("Hungary"),
return mhost.sendmail(from_addr, to_addrs, message.as_string()) LICENSE_INFO_EMAIL_BODY = _( """Thank you for using a Creative Commons legal tool for your work. You have selected %(license_title)s. You should include a reference to this on the web page that includes the work in question. Here is the suggested HTML: %(license_html)s Tips for marking your work can be found at http://wiki.creativecommons.org/Marking. Information on the supplied HTML and metadata can be found at http://wiki.creativecommons.org/CC_REL. This email and tech support has been brought to you by the nonprofit folks at Creative Commons. CC relies on donations to provide you with licenses and services like this. Please consider a donation to our annual fund: https://creativecommons.net/donate. Thank you! Creative Commons Support [email protected]""") LICENSE_INFO_EMAIL_SUBJECT = _( 'Your Creative Commons License Information')