# HG changeset patch # User Goffi # Date 1343865467 -7200 # Node ID bdd6ccffe149d3e6c7c06f950fa33c8e25d21396 # Parent c70038fb98dc2f1c4da48ddfb835a071df22b98d language code split diff -r c70038fb98dc -r bdd6ccffe149 sat_website/social_contract.py --- a/sat_website/social_contract.py Thu Aug 02 01:45:18 2012 +0200 +++ b/sat_website/social_contract.py Thu Aug 02 01:57:47 2012 +0200 @@ -26,7 +26,7 @@ def get_social_contract(): """Return the localised social contract version""" - language_code = get_language() + language_code = get_language().split("-")[0] filename = CONTRAT_SOCIAL if language_code == "fr" else "CONTRAT_SOCIAL_%s" % (language_code,) path = join(dirname(__file__), filename) if not exists(path):