• Resolved zaewin

    (@zaewin)


    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 5 years, 2 months ago by zaewin.
Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Marcin Kazmierski

    (@marcinkazmierski)

    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?

    Plugin Author Marcin Kazmierski

    (@marcinkazmierski)

    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.

    Plugin Author Marcin Kazmierski

    (@marcinkazmierski)

    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

    (@marcinkazmierski)

    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! ??

    Plugin Author Marcin Kazmierski

    (@marcinkazmierski)

    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.