[wp-trac] [WordPress Trac] #45151: Convert 'Sample Page', 'Hello World', and 'Privacy Policy' to block content
WordPress Trac
noreply at wordpress.org
Sat Oct 27 16:02:39 UTC 2018
#45151: Convert 'Sample Page', 'Hello World', and 'Privacy Policy' to block content
-----------------------------+-----------------------
Reporter: danielbachhuber | Owner: desrosj
Type: enhancement | Status: reopened
Priority: normal | Milestone: 5.0
Component: Upgrade/Install | Version:
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
-----------------------------+-----------------------
Comment (by garrett-eclipse):
Thanks @swissspidy
Replying to [comment:24 swissspidy]:
> Otherwise we should think about not putting the whole content into one
translatable string but split it up. Then the HTML comments and tags don't
need to be part of the translatable string.
Concerning splitting up the strings it was flagged by @dimadin that
'breaking it in paragraphs would limit i10n as you wouldn't be able to
change the flow of the entire message once it's broken into paragraphs.
His note;
Replying to [comment:7 dimadin]:
> It should be noted that the content of example page was all in one
string. This allowed customization of that text in translations, not
literal translation, so you could have different text. Breaking it in
paragraphs would limit l10n.
>
> I don't know about other locales, but I have different examples in
Serbian translation.
>
> Can we detect paragraphs in string and then add block comments?
His concern was my main edge case I was considering when thinking we need
to inject the tags after the string is setup. I'll connect with @desrosj
and see if we can compile an attempt heading in that direction.
Cheers
--
Ticket URL: <https://core.trac.wordpress.org/ticket/45151#comment:25>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list