Answers.Body: <p>While this technique might not find everything, a general technique for some of the translation questions you have can be solved by using <code>grep</code> from the root of the civicrm folder, e.g.</p>
  
  <p><code>grep -r receipt.pdf *</code></p>
  
  <p>If you know that it's likely to be under the CRM folder, which seems likely here, you can save some speed by cd'ing into that folder first.</p>
  
  <p>If you don't know exactly how it's written, for example sometimes strings are concatenated, you can do something like:</p>
  
  <p><code>grep -r receipt * | grep pdf</code></p>
  
  <p>which will find all lines that have both "receipt" and "pdf" in the line somewhere. In fact doing that shows that the <em>offline</em> membership receipt is already translated with ts().</p>
  
  <p>It looks like there's a few places, so you can replace <code>receipt</code> with <code>ts('receipt')</code> in the places where it isn't already ts'd:</p>
  
  <p><code>
  CRM/Contribute/BAO/ContributionPage.php:441:        'PDFFilename' =&gt; 'receipt.pdf',
  CRM/Contribute/Form/AdditionalInfo.php:474:        'PDFFilename' =&gt; ts('receipt') . '.pdf',
  CRM/Contribute/Form/CancelSubscription.php:302:              'PDFFilename' =&gt; 'receipt.pdf',
  CRM/Contribute/Form/Contribution/Confirm.php:1307:        'PDFFilename' =&gt; 'receipt.pdf',
  CRM/Contribute/Form/UpdateBilling.php:371:        'PDFFilename' =&gt; 'receipt.pdf',
  CRM/Contribute/Form/UpdateSubscription.php:336:          'PDFFilename' =&gt; 'receipt.pdf',
  CRM/Member/Form/Membership.php:1077:        'PDFFilename' =&gt; ts('receipt') . '.pdf',
  </code></p>
  
  <p>For your other question, there's a settings at Administer - System Settings - Misc to not attach pdf receipts, but it might not apply everywhere.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-07-02T10:50:17.077Z
Answers.Text: Thanks Demerit! This was really helpful. I hope all strings will be one day ts'd :-)
Answers.UserDisplayName: Guillaume Sorel
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-06-27T16:30:47.893Z
Answers.LastActivityDate: 2019-06-27T16:30:47.893Z
Answers.UserDisplayName: Demerit
Answers.Body: <p>You can disable attaching the receipt by going to <strong>Administer menu » System Settings » Misc</strong> and setting <em>Attach PDF copy to receipts</em> to <strong>No</strong>.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-07-02T10:29:51.913Z
Answers.Text: thanks! of course it was obvious.
Answers.UserDisplayName: Guillaume Sorel
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-06-28T18:06:15.683Z
Answers.LastActivityDate: 2019-06-28T18:06:15.683Z
Answers.UserDisplayName: Jon G - Megaphone Tech
Body: <p>By default it's called receipt.pdf and I would like to rename it and make it French also ;-).
  Where can I set this name?</p>
  
  <p>by the way, is it possible to not have this receipt attached?</p>
  
Tags: <receipts><pdf>
Title: How to change the name of the receipt attached to new membership
ThreadText: # How to change the name of the receipt attached to new membership
  
  (Asked by: username_0 on 2019-06-27)
  
  By default it's called receipt.pdf and I would like to rename it and make it French also ;-).
  Where can I set this name?
  
  by the way, is it possible to not have this receipt attached?
  
  **Tags:** receipts, pdf
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_1 on 2019-06-27. Score: 1 | Accepted answer
  
  While this technique might not find everything, a general technique for some of the translation questions you have can be solved by using `grep` from the root of the civicrm folder, e.g.
  
  `grep -r receipt.pdf *`
  
  If you know that it's likely to be under the CRM folder, which seems likely here, you can save some speed by cd'ing into that folder first.
  
  If you don't know exactly how it's written, for example sometimes strings are concatenated, you can do something like:
  
  `grep -r receipt * | grep pdf`
  
  which will find all lines that have both "receipt" and "pdf" in the line somewhere. In fact doing that shows that the *offline* membership receipt is already translated with ts().
  
  It looks like there's a few places, so you can replace `receipt` with `ts('receipt')` in the places where it isn't already ts'd:
  
  `CRM/Contribute/BAO/ContributionPage.php:441: 'PDFFilename' => 'receipt.pdf',
  CRM/Contribute/Form/AdditionalInfo.php:474: 'PDFFilename' => ts('receipt') . '.pdf',
  CRM/Contribute/Form/CancelSubscription.php:302: 'PDFFilename' => 'receipt.pdf',
  CRM/Contribute/Form/Contribution/Confirm.php:1307: 'PDFFilename' => 'receipt.pdf',
  CRM/Contribute/Form/UpdateBilling.php:371: 'PDFFilename' => 'receipt.pdf',
  CRM/Contribute/Form/UpdateSubscription.php:336: 'PDFFilename' => 'receipt.pdf',
  CRM/Member/Form/Membership.php:1077: 'PDFFilename' => ts('receipt') . '.pdf',`
  
  For your other question, there's a settings at Administer - System Settings - Misc to not attach pdf receipts, but it might not apply everywhere.
  
  > **Comments:**
  > **username_0**: Thanks username_1! This was really helpful. I hope all strings will be one day ts'd :-)  
  
  ---
  
  ### Answer by username_2 on 2019-06-28. Score: 1
  
  You can disable attaching the receipt by going to **Administer menu » System Settings » Misc** and setting *Attach PDF copy to receipts* to **No**.
  
  > **Comments:**
  > **username_0**: thanks! of course it was obvious.  
  
  ---
  
  