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) »
  • Custom Translate Function - what does it do and how to set it
Pages: [1]

Author Topic: Custom Translate Function - what does it do and how to set it  (Read 2898 times)

Hans.S

  • I post occasionally
  • **
  • Posts: 51
  • Karma: 5
Custom Translate Function - what does it do and how to set it
October 01, 2010, 07:20:07 am
 In Administer CiviCRM  » Global Settings - Settings - Localization - Language and Currency

there is a setting -

Custom Translate Function     

Function name to use for translation inplace of the default CiviCRM translate function.

When you enter something you get the error message:

Please define the custom translation function first.

what does it do and how to set it?

I can't find any documentation for this. Does it relate to the CMS language switch?

Is this a mystery function that nobody knows about? Any response would be apprecaited.
« Last Edit: October 04, 2010, 06:26:03 am by Hans.S »

Hans.S

  • I post occasionally
  • **
  • Posts: 51
  • Karma: 5
Re: Custom Translate Function - what does it do and how to set it
October 05, 2010, 08:21:46 am
THIS IS NOT A DIFFICULT QUESTION. ANYONE? ::)

Erik Hommel

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1773
  • Karma: 59
    • EE-atWork
  • CiviCRM version: all sorts
  • CMS version: Drupal
  • MySQL version: Ubuntu's latest LTS version
  • PHP version: Ubuntu's latest LTS version
Re: Custom Translate Function - what does it do and how to set it
October 05, 2010, 02:39:20 pm
It is difficult enough for me as I would have no idea :-) Did you search the wiki for it?
Erik
Consultant/project manager at EEatWork and CiviCooP (http://www.civicoop.org/)

Erik Hommel

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1773
  • Karma: 59
    • EE-atWork
  • CiviCRM version: all sorts
  • CMS version: Drupal
  • MySQL version: Ubuntu's latest LTS version
  • PHP version: Ubuntu's latest LTS version
Re: Custom Translate Function - what does it do and how to set it
October 05, 2010, 02:46:51 pm
I found one post using the search function from the CiviCRM homepage:
http://forum.civicrm.org/index.php?topic=6924.0
Consultant/project manager at EEatWork and CiviCooP (http://www.civicoop.org/)

Hans.S

  • I post occasionally
  • **
  • Posts: 51
  • Karma: 5
Re: Custom Translate Function - what does it do and how to set it
October 09, 2010, 05:32:34 am
I also saw that post but it referes to Drupal integration and frankly it didn't make a lot of sense to me. ???

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Custom Translate Function - what does it do and how to set it
October 09, 2010, 07:54:46 am

the word replacement feature in 3.2 basically makes the custom_ts function mostly redundant.

this function if defined is called instead of the CiviCRM ts function. There is an example in civitest.module.sample (called custom_ts)

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Discussion »
  • Internationalization and Localization (Moderators: Michał Mach, mathieu) »
  • Custom Translate Function - what does it do and how to set it

This forum was archived on 2017-11-26.