Add notes to date and number formats to help translators

This commit is contained in:
Gerhard Schlager 2016-06-09 20:54:46 +02:00
parent df368ce251
commit c97bc851cf
No known key found for this signature in database
GPG Key ID: 7DACA3C95B36014B
2 changed files with 22 additions and 3 deletions

View File

@ -18,7 +18,9 @@ en:
js: js:
number: number:
format: format:
# symbol used to separate the integer part from the fractional part of a number
separator: "." separator: "."
# symbol for the thousands separator used in digit grouping
delimiter: "," delimiter: ","
human: human:
storage_units: storage_units:
@ -35,18 +37,31 @@ en:
thousands: "{{number}}k" thousands: "{{number}}k"
millions: "{{number}}M" millions: "{{number}}M"
dates: dates:
# Use Moment.js format string: http://momentjs.com/docs/#/displaying/format/
time: "h:mm a" time: "h:mm a"
# Use Moment.js format string: http://momentjs.com/docs/#/displaying/format/
timeline_date: "MMM YYYY" timeline_date: "MMM YYYY"
# Use Moment.js format string: http://momentjs.com/docs/#/displaying/format/
long_no_year: "MMM D h:mm a" long_no_year: "MMM D h:mm a"
# Use Moment.js format string: http://momentjs.com/docs/#/displaying/format/
long_no_year_no_time: "MMM D" long_no_year_no_time: "MMM D"
# Use Moment.js format string: http://momentjs.com/docs/#/displaying/format/
full_no_year_no_time: "MMMM Do" full_no_year_no_time: "MMMM Do"
# Use Moment.js format string: http://momentjs.com/docs/#/displaying/format/
long_with_year: "MMM D, YYYY h:mm a" long_with_year: "MMM D, YYYY h:mm a"
# Use Moment.js format string: http://momentjs.com/docs/#/displaying/format/
long_with_year_no_time: "MMM D, YYYY" long_with_year_no_time: "MMM D, YYYY"
# Use Moment.js format string: http://momentjs.com/docs/#/displaying/format/
full_with_year_no_time: "MMMM Do, YYYY" full_with_year_no_time: "MMMM Do, YYYY"
# Use Moment.js format string: http://momentjs.com/docs/#/displaying/format/
long_date_with_year: "MMM D, 'YY LT" long_date_with_year: "MMM D, 'YY LT"
# Use Moment.js format string: http://momentjs.com/docs/#/displaying/format/
long_date_without_year: "MMM D, LT" long_date_without_year: "MMM D, LT"
# Use Moment.js format string: http://momentjs.com/docs/#/displaying/format/
long_date_with_year_without_time: "MMM D, 'YY" long_date_with_year_without_time: "MMM D, 'YY"
# Use Moment.js format string: http://momentjs.com/docs/#/displaying/format/
long_date_without_year_with_linebreak: "MMM D <br/>LT" long_date_without_year_with_linebreak: "MMM D <br/>LT"
# Use Moment.js format string: http://momentjs.com/docs/#/displaying/format/
long_date_with_year_with_linebreak: "MMM D, 'YY <br/>LT" long_date_with_year_with_linebreak: "MMM D, 'YY <br/>LT"
wrap_ago: "%{date} ago" wrap_ago: "%{date} ago"

View File

@ -16,18 +16,22 @@
en: en:
dates: dates:
# Use Moment.js format string: http://momentjs.com/docs/#/displaying/format/
short_date_no_year: "D MMM" short_date_no_year: "D MMM"
# Use Moment.js format string: http://momentjs.com/docs/#/displaying/format/
short_date: "D MMM, YYYY" short_date: "D MMM, YYYY"
# Use Moment.js format string: http://momentjs.com/docs/#/displaying/format/
long_date: "MMMM D, YYYY h:mma" long_date: "MMMM D, YYYY h:mma"
datetime_formats: &datetime_formats datetime_formats: &datetime_formats
formats: formats:
# Format directives: http://ruby-doc.org/core-2.2.0/Time.html#method-i-strftime # Format directives: http://ruby-doc.org/core-2.3.1/Time.html#method-i-strftime
short: "%m-%d-%Y" short: "%m-%d-%Y"
# Format directives: http://ruby-doc.org/core-2.2.0/Time.html#method-i-strftime # Format directives: http://ruby-doc.org/core-2.3.1/Time.html#method-i-strftime
short_no_year: "%B %-d" short_no_year: "%B %-d"
# Format directives: http://ruby-doc.org/core-2.2.0/Time.html#method-i-strftime # Format directives: http://ruby-doc.org/core-2.3.1/Time.html#method-i-strftime
date_only: "%B %-d, %Y" date_only: "%B %-d, %Y"
# Format directives: http://ruby-doc.org/core-2.3.1/Time.html#method-i-strftime
long: "%B %-d, %Y, %l:%M%P" long: "%B %-d, %Y, %l:%M%P"
date: date:
# Do not remove the brackets and commas and do not translate the first month name. It should be "null". # Do not remove the brackets and commas and do not translate the first month name. It should be "null".