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)
Wed, Nov 20, 6:01 PM
Unknown Object (File)
Sat, Nov 2, 9:48 PM
Unknown Object (File)
Oct 16 2024, 11:46 PM
Unknown Object (File)
Oct 9 2024, 7:48 AM
Unknown Object (File)
Oct 6 2024, 12:42 PM
Unknown Object (File)
Sep 4 2024, 6:10 AM
Unknown Object (File)
Sep 4 2024, 6:08 AM
Unknown Object (File)
Sep 4 2024, 6:07 AM
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.