From fefe06c1ae17d3048aac339e914e8b741940e4a7 Mon Sep 17 00:00:00 2001 From: Richard Soderberg <rsoderberg@gmail.com> Date: Mon, 2 Apr 2012 02:08:26 -0700 Subject: [PATCH] add lots of `pre` formatting, swap an ellipsis to a hyphen --- docs/I18N.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/I18N.md b/docs/I18N.md index db4cda5a6..b9f321ce5 100644 --- a/docs/I18N.md +++ b/docs/I18N.md @@ -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. 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. -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. ## Variables -- GitLab