"iframe" tag removed from html file

Hi,

I have an HTML file marked for translation, I just discovered from latest received Github PR that the src attribute from aniframe tag is emptied in the translated final files.

The source file is here https ://github.com/geokrety/geokrety-website/blob/17ce9e7fa7b3532b96294e29eb4600fe805db765/website/app-templates/smarty/help-pages/en/help.html#L110-L114

The string to translate should be just above that one](Crowdin).

When I switch the editor to normal view I’m able to find using the filter the iframe src https ://crowdin.com/translate/geokrety/107/en-fr?filter=basic&value=0#q=46331 reference.

I think it has worked well before, as the iframe tag was in all the translated file until that PR. i don’t know when it broke. Last time I received a translation PR was on May 9.

Bests
kumy

Edit: Sorry as a new user I’m not able to put more than 2 links

Hi @geokrety !

The string is hidden in the project and so untranslated:
https://crowdin.com/translate/geokrety/107/en-fr#46331

In the project settings you have the option for the export set to Skip untranslated strings:
https://crowdin.com/project/geokrety/settings#export

That’s why, that string may be absent in the exported file. In this case, you whether need to change the export option or make the string visible

Thanks @Natalia , I did both (made the string visible and unchecked Skip untranslated strings) then I synchronized the integration.

That pushed new commits to the PR, but it’s still not the expected result.

I created a simple test file Crowdin with the following content

<html>
<body>
<p>string 1</p>
<p>
<iframe src="string 2"></iframe>
string 4
</p>
<p>string 3</p>

<p>
<iframe width="420" height="315" src="texte 5"> </iframe>
texte 6
</p>

<p>
<iframe width="420" height="315" src="texte 5"></iframe>
texte 6
</p>

<p>
<iframe width="420" height="315" src="https://www.youtube.com/embed/t2VsHFkUl7U"> </iframe>
Watch an instructional screencast about registering and
making your own GeoKrety.
</p>
                
</body>
</html>

With the result:

<html>
<body>
<p>texte 1</p>
<p>
<iframe src="texte 2"></iframe>
texte 4
</p>
<p>texte 3</p>

<p>
<iframe width="420" height="315" src=""> </iframe>

</p>

<p>
<iframe width="420" height="315" src="Texte 5"></iframe>
Texte 6
</p>

<p>
<iframe width="420" height="315" src=""> </iframe>

</p>
                
</body>
</html>

So the problem seems to be caused by the (non-necessary / invalid?) space character between the 2 <iframe> </iframe> tags.

Hi @geokrety !

Got you. Thank you for sharing additional information.

I just double-checked it with the team and it is a known issue on our side. Good news is that the task on the matter is already on the ‘In Rewiew’ stage, so the fix should be pretty soon :slight_smile:

Let’s keep in touch,

1 Like