Opened 3 years ago
Last modified 13 months ago
#41 new enhancement
Tags
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | normal | Milestone: | Future Release |
| Component: | general | Version: | |
| Keywords: | reference comments tags, filter | Cc: |
Description
This is more or less wordpress.com specific. On wordpress.com the system contains all kinds of strings. This means all wordpress.org strings, all strings specific to the .com platform, several plugin strings, all bbPress strings, ...
Let's take for example the string 'post' as in 'blog post'. Depending on where it is used in german language it has to be translated as 'Artikel' when used within the blog or as 'Beitrag' when used within the forums|bbPress.
Now imagine I come across one of these 'post' strings. How would I know how to translate this string if I don't know if it's a string from WordPress?.com/bbPress?
So we need some kind of tag that shows me this kind of information within the details screen.
If you kick this up a notch, you could group/filter all strings in this way. Let's say I decide today I wanna translate all 'edit post screen' strings from wordpress.com. So I filter for the tags "wordpress.org" "wordpress.com" "edit post screen" and get all the strings which are used there.
As for the wordpress.org tag, this is for making it easier to sync the wordpress.com translation with the one from wordpress.org.
Change History (5)
comment:4
nbachiyski — 3 years ago
- Milestone set to Future Release
comment:5
vanillalounge — 13 months ago
- Keywords comments added; comments, removed
I think these are two separate issues, i.e.:
- The ability to search by "component" (for lack of a better word), which already exists, albeit undocumented. See this search for an example on filtering by wp-includes/class-wp-customize-control.php
- Showing the "component" tree. All information exists in the database, except for the relationships needed to build a tree as you suggest. I, for one, would love to have this, but I also think that it is premature to invest time in this for a 1.0 release.

I checked a .po file yesterday which I exported from http://translate.wordpress.com and came across these reference comments starting with #: (see The Format of PO Files)
Take for example:
#: wp-content/themes/pub/hemingway/attachment.php:24
msgid "This entry was posted on %1$s at %2$s."
msgstr ""
I asked myself if we can't derive the needed informations for the tags from these references. It tells me at least that the string is used within "wordpress.com" (not bbpress), is part of a "theme" which is called "hemingway" and is probably used within the "attachment" screen.
Just in case the whole "Tags" idea is crap, can't GlotPress at least show us these "reference comments" within the details screen of each particular string? I think this would help a lot.
A Filter option that lets a translator filter all strings with the same "reference comment" sounds like a good idea too. Given the example above this means a filter option that would list all strings with the comment wp-content/themes/pub/hemingway/attachment.php or just wp-content/themes/pub/hemingway/