Skip to content

Localize option tries to localize already localized strings breaking the patters. #632

@matiasbenedetto

Description

@matiasbenedetto

What

The localize option tries to localize already localized strings, breaking the patterns.

Example output of saving TT4 theme using 'Localize Text' option enabled:

<!-- wp:paragraph {"align":"left"} -->
<p class="has-text-align-left"><?php echo __('Experience the fusion of imagination and expertise with Études <?php echo __('Architectural Solutions', 'twentytwentyfour');?>.', 'twentytwentyfour');?></p>
<!-- /wp:paragraph --></div>

Please observe that an echo statement is inside another echo statement, which will result in a parse error. This breaks the pattern where this is included.

Expected

The localize functionality should not try to localize already localized text.

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions