Mercurial > sat_legacy_website
diff sat_website/social_contract.py @ 9:bdd6ccffe149
language code split
author | Goffi <goffi@goffi.org> |
---|---|
date | Thu, 02 Aug 2012 01:57:47 +0200 |
parents | c70038fb98dc |
children |
line wrap: on
line diff
--- 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):