Mercurial > sat_legacy_website
changeset 9:bdd6ccffe149
language code split
author | Goffi <goffi@goffi.org> |
---|---|
date | Thu, 02 Aug 2012 01:57:47 +0200 |
parents | c70038fb98dc |
children | 9389a4fcc070 |
files | sat_website/social_contract.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
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):