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) »
  • Old sections (read-only, deprecated) »
  • General Discussion (please no support requests here!) (Moderator: Michał Mach) »
  • add character in form individual ( Solved )
Pages: [1]

Author Topic: add character in form individual ( Solved )  (Read 446 times)

henro

  • I post occasionally
  • **
  • Posts: 115
  • Karma: -1
  • CiviCRM version: 4.5.0
  • CMS version: drupal
  • MySQL version: 4.2.7.1
  • PHP version: 5.2.0
add character in form individual ( Solved )
January 16, 2015, 02:01:36 am
hi to all,
i want to add chinese charater in my new individual ,

 an example : at prefix , first name , etc.


i go to directory of contact.tpl

civicrm / templates/CRM/Contact/Form/Edit/Individual.

at line 83 i see this code ,


<tr>
    {if $form.prefix_id}
    <td>
      {$form.prefix_id.label}<br/>
      {$form.prefix_id.html}
    </td>   
    {/if}

but i don't where i can find soruce of that variable .

please see my scrren shot for more details

thanks in advance .
« Last Edit: January 16, 2015, 02:17:35 am by henro »

henro

  • I post occasionally
  • **
  • Posts: 115
  • Karma: -1
  • CiviCRM version: 4.5.0
  • CMS version: drupal
  • MySQL version: 4.2.7.1
  • PHP version: 5.2.0
Re: add character in form individual
January 16, 2015, 02:17:09 am
solved ,
has found
in php file

 ;)

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: add character in form individual ( Solved )
January 16, 2015, 06:16:16 am
Hi Henro, congratulations on finding a fix for your problem :)

If I could offer some advice that may save you a lot of trouble in the future: try to find a solution that does not involve directly editing the source code of CiviCRM. Doing so will make your life very difficult with each upgrade.

I'm not exactly sure what you are trying to do but I think there is probably another solution. Can you explain in more detail what problem you were trying to solve? Was it:

- Translating the interface? In that case please see http://wiki.civicrm.org/confluence/display/CRMDOC/i18n+Administrator%27s+Guide
- Overriding an existing translated string? In that case try the "word replacement" option.
- Just adding an extra character to one field? In that case you could do it with a little css: http://css-tricks.com/almanac/selectors/a/after-and-before/
Try asking your question on the new CiviCRM help site.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • General Discussion (please no support requests here!) (Moderator: Michał Mach) »
  • add character in form individual ( Solved )

This forum was archived on 2017-11-26.