CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Discussion »
  • Internationalization and Localization (Moderators: Michał Mach, mathieu) »
  • Spanish Contribute Form
Pages: 1 [2]

Author Topic: Spanish Contribute Form  (Read 8531 times)

Piotr Szotkowski

  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: Spanish Contribute Form
September 23, 2009, 06:21:37 am
I filed CRM-5108 and fixed this in r23769 with the below patch:

Code: [Select]
Index: CRM/Core/Payment/Form.php
===================================================================
--- CRM/Core/Payment/Form.php (revision 23768)
+++ CRM/Core/Payment/Form.php (revision 23769)
@@ -157,7 +157,7 @@
 
         require_once 'CRM/Contribute/PseudoConstant.php';
         $creditCardType =
-            array( '' => '- select -') + CRM_Contribute_PseudoConstant::creditCard( );
+            array( '' => ts('- select -')) + CRM_Contribute_PseudoConstant::creditCard( );
         $form->_fields['credit_card_type'] =
             array( 'htmlType'   => 'select',
                    'name'       => 'credit_card_type',

Can you verify whether it works for you?

Also, did you manage to get the ‘Credit Card Information’ text translated? It seems there’s an un-ts()-ed string in CRM/Contribute/Form/Contribution.php around line 557, but as it’s used as a hash key (and have logic based on it), I’d rather check with you whether it needs translating before I ts() it.
If you found the above helpful, please consider helping us in return – you can even steer CiviCRM’s future and help us extend CiviCRM in ways useful to you.

kirby14

  • Guest
Re: Spanish Contribute Form
September 23, 2009, 06:53:31 am
I will test out the update and let you know. I was able to get the Credit Card Information text fixed up. I just did a local compile on the updated .po files because I couldn't find the newest .mo released by civi.

kirby14

  • Guest
Re: Spanish Contribute Form
September 23, 2009, 07:00:01 am
Sure enough! The patch worked. Thanks for all your help!

tiborg

  • I post occasionally
  • **
  • Posts: 33
  • Karma: 0
Re: Spanish Contribute Form
June 16, 2010, 01:52:00 am
Hi all,

I like use the civicrm with multilanguage site. Please write to me, how to work the contribution page translation! I create more contribution of diference languages, or enough one (in default language) contribution page and possible this page localization with l10n? (civicrm 3.1.5 drupal 6.x)

thank you

sorry my english
« Last Edit: June 16, 2010, 02:43:09 am by tiborg »

Piotr Szotkowski

  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: Spanish Contribute Form
June 16, 2010, 02:40:52 am
Quote from: tiborg on June 16, 2010, 01:52:00 am
I like use the civicrm with multilanguage site. Please write to me, how to work the contribution page translation!

You should be able to create one contribution page (say, in English), then switch to Hungarian and edit the page – upon editing you’ll edit only the Hungarian version (and the English version will stay the same).
If you found the above helpful, please consider helping us in return – you can even steer CiviCRM’s future and help us extend CiviCRM in ways useful to you.

Piotr Szotkowski

  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: Spanish Contribute Form
July 27, 2010, 08:52:58 am
1. Create a contribution page inserting the data in your currently-selected language; this will create the contribution page in all languages, but with the current language’s text in all of them.

2. Switch to another language (via the language switcher) and edit that page; after saving this language version will have the new value, but the other (first, above) language version will stay the same.
If you found the above helpful, please consider helping us in return – you can even steer CiviCRM’s future and help us extend CiviCRM in ways useful to you.

Pages: 1 [2]
  • CiviCRM Community Forums (archive) »
  • Discussion »
  • Internationalization and Localization (Moderators: Michał Mach, mathieu) »
  • Spanish Contribute Form

This forum was archived on 2017-11-26.