Title: Missing strings
Last modified: September 19, 2019

---

# Missing strings

 *  Resolved [zaewin](https://wordpress.org/support/users/zaewin/)
 * (@zaewin)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/missing-strings-4/)
 * Been using this plugin for string translations together with Polylang. Works 
   well overall but I have an issue with missing strings. For example only the first
   one of these strings show up in the admin. Any idea why that is?
 * All other strings I’ve tried with seem to be translateable, it’s just this particular
   one (Glömt lösenord) that’s not working.
 *     ```
       <div class="hlms-login-links">
       	<div class="hlms-login-link-item">
       		<a href="" class="hlms-link-create-account">'.__( 'Skapa konto', 'houdinilms').'</a>
       	</div>
       	<div class="hlms-login-link-item">
       		<a href="" class="hlms-link-retrieve-password">'.__( 'Glömt lösenord', 'houdinilms') .'</a>
       	</div>
       </div>
       ```
   
    -  This topic was modified 6 years, 8 months ago by [zaewin](https://wordpress.org/support/users/zaewin/).

Viewing 8 replies - 1 through 8 (of 8 total)

 *  Plugin Author [Marcin Kazmierski](https://wordpress.org/support/users/marcinkazmierski/)
 * (@marcinkazmierski)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/missing-strings-4/#post-11948673)
 * Hi,
    I checked this case, and look at this: [https://ibb.co/vqfsgCF](https://ibb.co/vqfsgCF)
   [https://ibb.co/252hkvT](https://ibb.co/252hkvT)
 * In my theme, your code work fine 🙂
 * What module version are you using?
 * Tests:
 *     ```
               <div class="hlms-login-links">
                   <div class="hlms-login-link-item">
                       <a href="" class="hlms-link-create-account"><?php print __('Skapa konto', 'houdinilms'); ?></a>
                   </div>
                   <div class="hlms-login-link-item">
                       <a href="" class="hlms-link-retrieve-password"><?php print __('Glömt lösenord', 'houdinilms'); ?></a>
                   </div>
               </div>
       ```
   
 * or
 *     ```
       <?php
   
       $var = '<div class="hlms-login-links">
       	<div class="hlms-login-link-item">
       		<a href="" class="hlms-link-create-account">' . __('Skapa konto', 'houdinilms') . '</a>
       	</div>
       	<div class="hlms-login-link-item">
       		<a href="" class="hlms-link-retrieve-password">' . __('Glömt lösenord', 'houdinilms') . '</a>
       	</div>
       </div>';
   
       print $var;
       ```
   
 *  Thread Starter [zaewin](https://wordpress.org/support/users/zaewin/)
 * (@zaewin)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/missing-strings-4/#post-11948786)
 * Hey
 * That’s really strange!
    I’m using 3.1.0 of the plugin. Is there a way to “force”
   it to scan for strings again or is it done automatically?
 *  Plugin Author [Marcin Kazmierski](https://wordpress.org/support/users/marcinkazmierski/)
 * (@marcinkazmierski)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/missing-strings-4/#post-11948914)
 * Automatically…
    maybe there is a problem with the file encoding?
 * Can you send me whole file with your texts?
    Or how else can I check it?
 * I need more information…
 *  Thread Starter [zaewin](https://wordpress.org/support/users/zaewin/)
 * (@zaewin)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/missing-strings-4/#post-11949097)
 * Created a test file here: [https://bitbucket.org/magnusgronberg/polylang-test/src/master/](https://bitbucket.org/magnusgronberg/polylang-test/src/master/)(
   should be public)
 * This is the output I get when I print_r($matches[1]) in the file_scanner function:
 *     ```
       Array
       (
           [0] => E-post
           [1] => E-post
           [2] => Lösenord
           [3] => Lösenord
           [4] => Logga in
       )
       ```
   
 * As you can see, the two last strings are missing from the matches.
 *  Plugin Author [Marcin Kazmierski](https://wordpress.org/support/users/marcinkazmierski/)
 * (@marcinkazmierski)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/missing-strings-4/#post-11949206)
 * Thank you for code!
    I found bug. You didn’t add space between: “.” and “__(“.
   I will fix it on this day or tomorrow 🙂
 * Thank you for reporting the error.
 *  Plugin Author [Marcin Kazmierski](https://wordpress.org/support/users/marcinkazmierski/)
 * (@marcinkazmierski)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/missing-strings-4/#post-11951241)
 * You can download the latest version of plugin: 3.1.1 with a bug fix.
    Is it everything
   OK?
 *  Thread Starter [zaewin](https://wordpress.org/support/users/zaewin/)
 * (@zaewin)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/missing-strings-4/#post-11951553)
 * Got the update and it seems to have solved the issue. Great work and thanks! 
   🙂
 *  Plugin Author [Marcin Kazmierski](https://wordpress.org/support/users/marcinkazmierski/)
 * (@marcinkazmierski)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/missing-strings-4/#post-11951558)
 * OK, super 😉 if you want you can rate my plugin 🙂
    I will be very grateful!

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Missing strings’ is closed to new replies.

 * ![](https://ps.w.org/theme-translation-for-polylang/assets/icon-256x256.png?rev
   =1431912)
 * [Theme and plugin translation for Polylang (TTfP)](https://wordpress.org/plugins/theme-translation-for-polylang/)
 * [Support Threads](https://wordpress.org/support/plugin/theme-translation-for-polylang/)
 * [Active Topics](https://wordpress.org/support/plugin/theme-translation-for-polylang/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/theme-translation-for-polylang/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/theme-translation-for-polylang/reviews/)

 * 8 replies
 * 2 participants
 * Last reply from: [Marcin Kazmierski](https://wordpress.org/support/users/marcinkazmierski/)
 * Last activity: [6 years, 8 months ago](https://wordpress.org/support/topic/missing-strings-4/#post-11951558)
 * Status: resolved