Details
-
Type: Bug
-
Status: Done/Fixed
-
Priority: Major
-
Resolution: Duplicate
-
Affects Version/s: 4.2.6
-
Fix Version/s: 4.7
-
Component/s: CiviContribute
-
Labels:None
-
Documentation Required?:None
-
Funding Source:Needs Funding
Description
When creating a CiviCRM site for a spanish website, we discovered that some of the form variables are not translatable because they are stored in the database. While there is no interface to modifying the labels. Also, modifying the labels causes databases errors as the form validation expects
Since the Database could not be changed to the appropriate translated message, we were forced to modify some of the code in a non-standard way. We'd like to find a solution that doesn't involve changing the code this drastically, but we have yet to find a suitable solution.
The changes we made are as follows:
CRM/Contribute/Form/Contribution/Main.php
Line 790:
$units[$val] = ts($frequencyUnits[$val]);
templates/CRM/Contribute/Form/Contribution/Confirm.tpl
Line 96:
{assign var=frequency_unit value='mes'}
{elseif $frequency_unit == 'week'
{assign var=frequency_unit value='semana'} {/if}
templates/CRM/Contribute/Form/Contribution/ThankYou.tpl
Line 133:{if $frequency_unit == 'month'} {assign var=frequency_unit value='mes'} {elseif $frequency_unit == 'week'} {assign var=frequency_unit value='semana'} {/if}
This bug was first discovered by Donor Depot:
http://www.donordepot.com
thanks!
david barratt
Attachments
Issue Links
- is duplicated by
-
CRM-14114 Online recurring contribution page does not translate recurring unit
- To Backport