Skip to content
Snippets Groups Projects
Commit fefe06c1 authored by Richard Soderberg's avatar Richard Soderberg
Browse files

add lots of `pre` formatting, swap an ellipsis to a hyphen

parent 4d6052f6
No related branches found
No related tags found
No related merge requests found
...@@ -12,11 +12,11 @@ Any copy, label, or error message that will be shown to users **should** be wrap ...@@ -12,11 +12,11 @@ Any copy, label, or error message that will be shown to users **should** be wrap
These strings must be evaluated in the scope of a request, so we know which locale the user has. These strings must be evaluated in the scope of a request, so we know which locale the user has.
In JavaScript or EJS templates use `gettext` or `ngettext`. If you need to do string interpolation, use the In JavaScript or EJS templates use `gettext` or `ngettext`. If you need to do string interpolation, use the
[format](../lib/i18n.js) function, which is kind of like node.js' util.format, except crappier. [format](../lib/i18n.js) function, which is kind of like node.js' `util.format`, except crappier.
Using `_` is more idiomatic, but conflicts with `underscore.js` on the client side JS and EJS files. Using `_` is more idiomatic, but conflicts with `underscore.js` on the client side JS and EJS files.
Technically, you can alias gettext to _ and use util.format, etc in node.js code... but for development consistency, Technically, you can alias `gettext` to `_` and use `util.format`, etc in node.js code - but for development consistency,
we should keep EJS templates looking similar, regardless of if they are evaluated client or server-side. we should keep EJS templates looking similar, regardless of if they are evaluated client or server-side.
## Variables ## Variables
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment