Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
persona
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hexang 息壤平台
persona
Commits
fefe06c1
Commit
fefe06c1
authored
12 years ago
by
Richard Soderberg
Browse files
Options
Downloads
Patches
Plain Diff
add lots of `pre` formatting, swap an ellipsis to a hyphen
parent
4d6052f6
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docs/I18N.md
+2
-2
2 additions, 2 deletions
docs/I18N.md
with
2 additions
and
2 deletions
docs/I18N.md
+
2
−
2
View file @
fefe06c1
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment