From 386f425af9078b161a0ba0d8ddfb249c4a0efc1e Mon Sep 17 00:00:00 2001 From: Al Date: Fri, 20 May 2016 16:01:00 -0400 Subject: [PATCH] [fix] country_language --- scripts/geodata/address_formatting/formatter.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/geodata/address_formatting/formatter.py b/scripts/geodata/address_formatting/formatter.py index aa6af8e4..7d00903f 100644 --- a/scripts/geodata/address_formatting/formatter.py +++ b/scripts/geodata/address_formatting/formatter.py @@ -470,8 +470,10 @@ class AddressFormatter(object): insertions = nested_get(self.country_insertions, (country, component), default=None) conditionals = nested_get(self.country_conditionals, (country, component), default=None) - if insertions is None and language: + if language: country_language = '{}_{}'.format(country, language) + + if insertions is None and language: insertions = nested_get(self.country_insertions, (country_language, component), default=None) scope = country_language