Skip to content
Snippets Groups Projects

avoid translate place url if no wordpress translation

Merged Dani Quilez requested to merge bugfix/company_creation_landing_update into dev
1 file
+ 13
12
Compare changes
  • Side-by-side
  • Inline
@@ -344,18 +344,19 @@ class LandingCmPlace:
@@ -344,18 +344,19 @@ class LandingCmPlace:
MapClientConfig.MAPPING__EXTERNAL_LINK__CONTACT__LINK_LABEL["es_ES"],
MapClientConfig.MAPPING__EXTERNAL_LINK__CONTACT__LINK_LABEL["es_ES"],
"es_ES",
"es_ES",
)
)
if "es" in self.wp_landing_data["translations"].keys():
if self.wp_landing_data["translations"]:
self._update_translation(
if "es" in self.wp_landing_data["translations"].keys():
"cm.place.external.link,url",
self._update_translation(
external_link.id,
"cm.place.external.link,url",
"{landing_link}/#contacte".format(
external_link.id,
landing_link=self.wp_landing_data["link"]
"{landing_link}/#contacte".format(
),
landing_link=self.wp_landing_data["link"]
"{landing_link}/#contacte".format(
),
landing_link=self.wp_landing_data["translations"]["es"]
"{landing_link}/#contacte".format(
),
landing_link=self.wp_landing_data["translations"]["es"]
"es_ES",
),
)
"es_ES",
 
)
return external_link
return external_link
def _landing_external_link(self, place_id):
def _landing_external_link(self, place_id):
Loading