Page MenuHomePhabricator

Replace some hsprintf() with phutil_tag()
ClosedPublic

Authored by vrana on Nov 8 2013, 5:56 PM.
Tags
None
Referenced Files
F15445566: D7533.diff
Thu, Mar 27, 2:37 PM
F15435334: D7533.id.diff
Tue, Mar 25, 7:50 AM
F15434523: D7533.diff
Tue, Mar 25, 4:15 AM
F15423127: D7533.diff
Sat, Mar 22, 1:18 PM
F15388226: D7533.diff
Sat, Mar 15, 3:29 AM
Unknown Object (File)
Feb 24 2025, 3:02 AM
Unknown Object (File)
Feb 22 2025, 7:04 PM
Unknown Object (File)
Feb 14 2025, 8:39 AM

Details

Reviewers
epriestley
Commits
Restricted Diffusion Commit
rPaca621e21f9c: Replace some hsprintf() with phutil_tag()
Summary

I just want to make sure that this is the style we want.
It seems less readable to me in some cases.

Test Plan

Looked at DarkConsole with errors.

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

src/aphront/console/plugin/DarkConsoleXHProfPlugin.php
47–60

This is untranslatable with current pht().

I think this code (which isn't using standard UI classes) is some of the least-readable with phutil_tag(), which is partly why it's hsprintf() in the first place. The next time DarkConsole gets some design work done we'll probably simplify some of this (e.g., remove inline style attributes), which should make it a bit more readable.