[wp-meta] [Making WordPress.org] #5891: If a blank or tab is at the end of an original line, mark it in the original
Making WordPress.org
noreply at wordpress.org
Fri Dec 27 11:46:45 UTC 2024
#5891: If a blank or tab is at the end of an original line, mark it in the
original
--------------------------------------+---------------------
Reporter: psmits1567 | Owner: (none)
Type: enhancement | Status: closed
Priority: normal | Milestone:
Component: Translate Site & Plugins | Resolution: fixed
Keywords: needs-design |
--------------------------------------+---------------------
Changes (by Amieiro):
* status: new => closed
* resolution: => fixed
Comment:
This problem has been resolved. If you take a look at the strings in the
image above, it has the tab, leading/trailing space and new line marks.
These are the strings in the [https://translate.wordpress.org/projects/wp-
plugins/test-plugin-3/dev/nl/default/ Dutch .po file].
{{{
#: plugin.php:58
msgid ""
"\t String with whitespace at the start and end.\n"
"With a new line in between.\t "
msgstr ""
"\t String met whitespace aan het begin en einde.\n"
"Met een nieuwe regel er tussenin.\t "
#: plugin.php:57
msgid "\t String with whitespace at the start and end. \t"
msgstr "\t String met whitespace aan het begin en einde. \t"
#: plugin.php:56
msgid " String with a space at the start"
msgstr " String met een spatie aan het begin"
}}}
- The first string ends with a space, so it should only show this space
mark.
- The second string starts and ends with a tab, so it should not show a
space mark.
- The third string starts with an empty space, so it should only show this
space mark.
--
Ticket URL: <https://meta.trac.wordpress.org/ticket/5891#comment:8>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org
More information about the wp-meta
mailing list