Page MenuHomePhabricator

Cleanup Countdown manual construction of monograms/uris
ClosedPublic

Authored by amckinley on Apr 12 2017, 8:26 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Apr 11, 10:47 AM
Unknown Object (File)
Mar 7 2024, 11:07 AM
Unknown Object (File)
Jan 31 2024, 7:49 AM
Unknown Object (File)
Jan 17 2024, 2:31 AM
Unknown Object (File)
Dec 27 2023, 10:35 AM
Unknown Object (File)
Dec 27 2023, 10:35 AM
Unknown Object (File)
Dec 27 2023, 10:35 AM
Unknown Object (File)
Dec 21 2023, 5:32 PM
Subscribers
Tokens
"Pterodactyl" token, awarded by epriestley.

Details

Summary

looked for places where Countdown monograms/uris were being constructed by hand, and updated with modern versions

Test Plan

clicked around the Countdown UI, looking for broken links

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision is now accepted and ready to land.Apr 12 2017, 8:28 PM
src/applications/countdown/phid/PhabricatorCountdownCountdownPHIDType.php
39

Is there a better way to do this? I also couldn't figure out how to test this.

src/applications/countdown/phid/PhabricatorCountdownCountdownPHIDType.php
39

You can pht('%s: %s', $countdown->getMonogram(), $name). Not sure that's actually better but maybe looks a little cleaner.

It's currently unclear whether pht('%s: %s', ..., ...) will be helpful (since, say, Chinese users would rather have 🐳 as a separator than :) or harmful (since, say, no one wants to translate or can figure out what it's supposed to mean) when we actually internationalize.

I'm inclined to use pht() just to avoid the evils of string concatenation.

I recall French needing a space between : and label

This revision was automatically updated to reflect the committed changes.