Skip to content

Add some html wrapper methods for use with array_map() ...#376

Merged
GaryJones merged 1 commit intodevelopfrom
feature/html-wrapper-methods
Apr 28, 2015
Merged

Add some html wrapper methods for use with array_map() ...#376
GaryJones merged 1 commit intodevelopfrom
feature/html-wrapper-methods

Conversation

@jrfnl
Copy link
Copy Markdown
Contributor

@jrfnl jrfnl commented Apr 28, 2015

...and implement their use.

Also:
Fix some html errors in the notice output

…their use.

Also:
Fix some html errors in the notice output
@jrfnl jrfnl added this to the 2.5.0 milestone Apr 28, 2015
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need any checks here to make sure both plural and singular versions of $this->strings[ $type ] have exactly two placeholders?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we'd go that way, we'd have to do that for quite a few strings I think - would be more appropriate in a method which reads in all the strings. Then again - what to do if a custom string or a translation doesn't have the right nr of placeholders ? Fall back to our default in English ? That could make for some strange mixed language pages, including mixed terminology (plugin/theme requires .. etc).
Let leave it to the configurators and translators for now until someone reports an issue with it.

GaryJones added a commit that referenced this pull request Apr 28, 2015
Add some html wrapper methods for use with array_map() ...
@GaryJones GaryJones merged commit 2373fc7 into develop Apr 28, 2015
@GaryJones GaryJones deleted the feature/html-wrapper-methods branch April 28, 2015 23:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants