Answers.Body: <p>I think it should be possible to import prefixes (such as Madame or Monsieur) but you need to make sure that the prefixes are created in CiviCRM before you import the data (/civicrm/admin/options/individual_prefix?reset=1). </p>
  
  <p>Also, the Labels in CiviCRM need to be exactly as those in the column of your import file.</p>
  
  <p>Or do you want to import greetings (email or postal greetings)? I am not sure, if this is possible because they are usually generated.</p>
  
  <p>You could try to use something like this for generating a greeting depending on the prefix (just enter it here: /civicrm/admin/options/email_greeting?reset=1):</p>
  
  <pre><code>{capture assign=c}{contact.communication_style}{/capture}{capture assign=p}{contact.individual_prefix}{/capture}{if $p=="Madame"}Chère{else}Cher{/if}{ }{if $c=="Familiar"}{ }{contact.first_name}{else}{$p}{ }{contact.formal_title}{contact.last_name}{/if}
  </code></pre>
  
  <p>CiviCRM would the create an appropriate greeting depending on the communication style (formal or familiar) and the prefix. Please note that for this approach you need to have smarty enabled.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-02-20T18:11:43.260Z
Answers.Text: thanx fabian.
  yes I want to have the correct email and postal greetings after have imported the contacts.
  
  How does civi generate the greetings? This would be awesome for me if this works.
  
  
  here: /civicrm/admin/options/email_greeting?reset=1)
  I have the correct greetings.
Answers.UserDisplayName: Oliver
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-02-22T08:23:38.607Z
Answers.Text: Yes, you have to enter the syntax from my answer above (or similar) as postal and email greetings and set it as default. You need to have smarty enabled (see wiki: https://wiki.civicrm.org/confluence/display/CRMDOC/Smarty+in+mail+templates)
Answers.UserDisplayName: Fabian
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-02-24T17:04:15.320Z
Answers.Text: I got it. wonderful. thx. I come more into it :)
  
  now it makes madame = Chére, and the rest = cher, this means Mister = Cher. It makes no difference between the languages. 
  
  Is it possible to distinguish the language?
  Madame = Chére
  Monsieur = Cher
  Frau = Sehr geehrte
  Herr = Sehr geehrter
Answers.UserDisplayName: Oliver
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-02-25T13:05:36.720Z
Answers.Text: It is possible to extend the smarty logic that way. But the approach is somewhat limited because the greeting fields have a maximum length and thus to not support too complex logic.
Answers.UserDisplayName: Fabian
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-02-12T15:01:57.417Z
Answers.LastActivityDate: 2016-02-12T15:01:57.417Z
Answers.UserDisplayName: Fabian
Body: <p>I want to import french customers.
  In french we say Chère for women, Cher for men instead of misses and mister.</p>
  
  <p>but it is not possible to import the contacts and choose theese salutations.
  Always the error that the salutation is unknonw:"Invalid value for field(s) : La salutation par courriel doit etre l'une des salutations pre-configurees."</p>
  
  <p>In civi there is the french salutation and as default.</p>
  
  <p>Do you have a solutions for that?
  Thanks</p>
  
Tags: <contacts>
Title: prefix Mister Misses in another language
ThreadText: # prefix Mister Misses in another language
  
  (Asked by: username_0 on 2016-02-12)
  
  I want to import french customers.
  In french we say Chère for women, Cher for men instead of misses and mister.
  
  but it is not possible to import the contacts and choose theese salutations.
  Always the error that the salutation is unknonw:"Invalid value for field(s) : La salutation par courriel doit etre l'une des salutations pre-configurees."
  
  In civi there is the french salutation and as default.
  
  Do you have a solutions for that?
  Thanks
  
  **Tags:** contacts
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2016-02-12. Score: 1
  
  I think it should be possible to import prefixes (such as Madame or Monsieur) but you need to make sure that the prefixes are created in CiviCRM before you import the data (/civicrm/admin/options/individual\_prefix?reset=1).
  
  Also, the Labels in CiviCRM need to be exactly as those in the column of your import file.
  
  Or do you want to import greetings (email or postal greetings)? I am not sure, if this is possible because they are usually generated.
  
  You could try to use something like this for generating a greeting depending on the prefix (just enter it here: /civicrm/admin/options/email\_greeting?reset=1):
  
  ```
  {capture assign=c}{contact.communication_style}{/capture}{capture assign=p}{contact.individual_prefix}{/capture}{if $p=="Madame"}Chère{else}Cher{/if}{ }{if $c=="Familiar"}{ }{contact.first_name}{else}{$p}{ }{contact.formal_title}{contact.last_name}{/if}
  
  ```
  
  CiviCRM would the create an appropriate greeting depending on the communication style (formal or familiar) and the prefix. Please note that for this approach you need to have smarty enabled.
  
  > **Comments:**
  > **username_0**: thanx username_1. yes I want to have the correct email and postal greetings after have imported the contacts.  How does civi generate the greetings? This would be awesome for me if this works.   here: /civicrm/admin/options/email_greeting?reset=1) I have the correct greetings.  
  > **username_1**: Yes, you have to enter the syntax from my answer above (or similar) as postal and email greetings and set it as default. You need to have smarty enabled (see wiki: https://wiki.civicrm.org/confluence/display/CRMDOC/Smarty+in+mail+templates)  
  > **username_0**: I got it. wonderful. thx. I come more into it :)  now it makes madame = Chére, and the rest = cher, this means Mister = Cher. It makes no difference between the languages.   Is it possible to distinguish the language? Madame = Chére Monsieur = Cher Frau = Sehr geehrte Herr = Sehr geehrter  
  > **username_1**: It is possible to extend the smarty logic that way. But the approach is somewhat limited because the greeting fields have a maximum length and thus to not support too complex logic.  
  
  ---
  
  