Details
-
Type: Bug
-
Status: Done/Fixed
-
Priority: Major
-
Resolution: Fixed/Completed
-
Affects Version/s: 3.2
-
Fix Version/s: 3.2.6
-
Component/s: Internationalisation
-
Labels:None
Description
When investigating CRM-7800 I found out our xml/templates/languages.tpl has two issues:
1. Queries for civicrm_option_group have unmatched quotes in
{localize}blocks:
{localize field='label},
{localize field='description}2. Queries for civicrm_option_value do not cater for the fact that civicrm_option_value.label is localisable.
xml/templates/languages.tpl is sourced in CRM/Upgrade/Incremental/sql/3.2.alpha3.mysql.tpl so it must've worked somehow for multilingual installs, but probably just because Smarty is tolerant about 1. above and the queries from 2. above were rewritten on-the-fly to insert into the default language's view.
We should fix it (on the v3.2 branch and merge up) to (a) make sure it actually works and (b) avoid future surprises when wondering why it looks the way it does at the moment.