Skip to content
This repository has been archived by the owner on May 6, 2024. It is now read-only.

Commit

Permalink
Merge pull request #704 from edx/saeed/MA-2248
Browse files Browse the repository at this point in the history
parenthesized author label
  • Loading branch information
saeedbashir committed Apr 11, 2016
2 parents fbad37f + 3543e30 commit 5c21b12
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Source/DiscussionResponsesViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -741,7 +741,7 @@ extension AuthorLabelProtocol {
attributedStrings.append(byAuthor)

if let authorLabel = label {
attributedStrings.append(textStyle.attributedStringWithText(authorLabel))
attributedStrings.append(textStyle.attributedStringWithText(Strings.parenthesis(text: authorLabel)))
}

return NSAttributedString.joinInNaturalLayout(attributedStrings)
Expand Down
2 changes: 2 additions & 0 deletions Source/en.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -536,6 +536,8 @@
"POST_VISIBILITY"="This post is visible only to {cohort}.";
/* Text that indicates the visibility of the post to everyone */
"POST_VISIBILITY_EVERYONE" = "This post is visible to everyone.";
/*Add parenthesis around text*/
"PARENTHESIS" = "({text})";
/* Alert dialog title shown when network request takes too long to complete */
"TIMEOUT_ALERT_TITLE"="Time Out";
/* Alert dialog content shown when network request takes too long to complete */
Expand Down

0 comments on commit 5c21b12

Please sign in to comment.