Opened 9 years ago
Closed 9 years ago
#6950 closed defect (bug) (fixed)
String translation problem in different languages
Reported by: | slaFFik | Owned by: | imath |
---|---|---|---|
Milestone: | 2.5.1 | Priority: | high |
Severity: | normal | Version: | 2.5.0 |
Component: | Activity | Keywords: | has-patch commit |
Cc: |
Description
This may be a not valid translation because of the string structure.
$post_type_activity->comments_tracking->front_filter = sprintf( __( '%s comments', 'buddypress' ), $post_type_object->labels->singular_name );
Different languages have different rules when using 2+ nouns together. Russian has various affixes that greatly depends on a word gender, German can combine words in 1 etc.
Attachments (1)
Change History (9)
This ticket was mentioned in Slack in #buddypress by slaffik. View the logs.
9 years ago
#4
@
9 years ago
__( 'Item comments', 'buddypress' )
can be another solution, proposed by @imath (https://wordpress.slack.com/archives/buddypress/p1457520073001832)
#5
@
9 years ago
- Keywords has-patch added
It's already possible to override this value by defining the bp_activity_comments_front_filter
label when registering the post type : see https://codex.buddypress.org/plugindev/post-types-activities/#2-add-comments-tracking-feature-during-the-post-type-registration
So i guess __( 'Item comments', 'buddypress' )
might be the best solution. FYI this string is a fallback in case the bp_activity_comments_front_filter
label is not available for the post type.
This may be for 2.5.2 depending on complexity/time required. We need to re-phrase this string, and remove the placeholder. On Slack, @slaFFik suggested we could add this as another special string that we use when registering post types (e.g. https://codex.buddypress.org/plugindev/post-types-activities/).