title: Polylang: How to translate custom strings?
body: <p><strong>My problem</strong>: I'm translating my website using Polylang but I'm having a hard time with custom strings translation. The strings won't show up in the "Strings translation" menu in the WP dashboard.</p>
  
  <p><strong>Important:</strong> I don't know much about PHP so the <em>pll_register_string function</em> is very confusing for me. </p>
  
  <p>Quoted from the Polylang doc:</p>
  
  <p><a href="https://polylang.wordpress.com/documentation/documentation-for-developers/functions-reference/" rel="noreferrer">https://polylang.wordpress.com/documentation/documentation-for-developers/functions-reference/</a></p>
  
  <blockquote>
    <p><strong>pll_register_string</strong></p>
    
    <p>Allows plugins to add their own strings in the “strings translation”
    panel. The function must be called on admin side (the functions.php
    file is OK for themes). It is possible to register empty strings (for
    example when they come from options) but they won’t appear in the list
    table.</p>
    
    <p>Usage:</p>
    
    <p>pll_register_string($name, $string, $group, $multiline); ‘$name’ =>
    (required) name provided for sorting convenience (ex: ‘myplugin’)
    ‘$string’ => (required) the string to translate ‘$group’ => (optional)
    the group in which the string is registered, defaults to ‘polylang’
    ‘$multiline’ => (optional) if set to true, the translation text field
    will be multiline, defaults to false</p>
    
    <p><strong>pll__</strong></p>
    
    <p>translates a string previously registered with pll_register_string
    Usage:</p>
    
    <p>pll__($string); The unique parameter is required:</p>
    
    <p>‘$string’ => the string to translate returns the translated string.</p>
    
    <p><strong>pll_e</strong></p>
    
    <p>Echoes a translated string previously registered with
    pll_register_string Usage:</p>
    
    <p>pll_e($string); The unique parameter is required:</p>
    
    <p>‘$string’ => the string to transla</p>
  </blockquote>
  
  <p>Best regards</p>