Hi,
I checked this case, and look at this:
https://ibb.co/vqfsgCF
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
(@zaewin)
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?
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
(@zaewin)
Created a test file here: 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.
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.
You can download the latest version of plugin: 3.1.1 with a bug fix.
Is it everything OK?
Thread Starter
zaewin
(@zaewin)
Got the update and it seems to have solved the issue. Great work and thanks! 🙂
OK, super 😉 if you want you can rate my plugin 🙂
I will be very grateful!