Files
MujicaUI/core/messages_calendar.go

196 lines
10 KiB
Go
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
package core
import (
"fmt"
"github.com/egoist/mygo/ui"
)
// CalendarCount formats a count, using "_one" for one.
func CalendarCount(c *ui.Context, key string, n int) string {
if n == 1 {
key += "_one"
}
return fmt.Sprintf(Msg(c, key), n)
}
func init() {
addMessages(map[string][2]string{
"event_chip.all_day": {"All day", "全天"},
"event_chip.untitled": {"(No title)", "(无标题)"},
"attendee_list.label": {"Attendees", "参与者"},
"attendee_list.summary": {"%d accepted · %d maybe · %d declined · %d awaiting", "%d 人接受 · %d 人待定 · %d 人拒绝 · %d 人未回复"},
"attendee_list.empty": {"No attendees yet.", "暂无参与者。"},
"attendee_list.organizer": {"Organizer", "组织者"},
"attendee_list.optional": {"Optional", "可选"},
"attendee_list.remove": {"Remove %s", "移除 %s"},
"attendee_list.pending": {"Awaiting reply", "未回复"},
"attendee_list.accepted": {"Accepted", "已接受"},
"attendee_list.tentative": {"Maybe", "待定"},
"attendee_list.declined": {"Declined", "已拒绝"},
"recurrence_editor.label": {"Recurrence", "重复规则"},
"recurrence_editor.repeat": {"Repeat", "重复"},
"recurrence_editor.none": {"Does not repeat", "不重复"},
"recurrence_editor.daily": {"Daily", "每天"},
"recurrence_editor.weekly": {"Weekly", "每周"},
"recurrence_editor.monthly": {"Monthly", "每月"},
"recurrence_editor.yearly": {"Yearly", "每年"},
"recurrence_editor.custom": {"Custom", "自定义"},
"recurrence_editor.every": {"Every", "每"},
"recurrence_editor.interval": {"Interval", "间隔"},
"recurrence_editor.unit": {"Unit", "单位"},
"recurrence_editor.days": {"days", "天"},
"recurrence_editor.weeks": {"weeks", "周"},
"recurrence_editor.months": {"months", "个月"},
"recurrence_editor.years": {"years", "年"},
"recurrence_editor.on_days": {"On days", "重复于"},
"recurrence_editor.ends": {"Ends", "结束"},
"recurrence_editor.forever": {"Never", "永不"},
"recurrence_editor.after": {"After", "次数"},
"recurrence_editor.until": {"On date", "截止日期"},
"recurrence_editor.count": {"Occurrences", "重复次数"},
"recurrence_editor.until_date": {"End date", "结束日期"},
"recurrence_editor.no_days": {"Choose at least one day.", "请至少选择一天。"},
"recurrence_editor.bad_count": {"Repeat at least once.", "重复次数至少为 1。"},
"recurrence_editor.bad_until": {"The end date must not precede the start.", "结束日期不能早于开始日期。"},
"recurrence_editor.never": {"Does not repeat", "不重复"},
"recurrence_editor.every_n": {"Every %d %s", "每 %d %s"},
"recurrence_editor.on": {" on %s", ",于%s"},
"recurrence_editor.list_sep": {", ", "、"},
"recurrence_editor.times": {", %d times", ",共 %d 次"},
"recurrence_editor.times_one": {", %d time", ",共 %d 次"},
"recurrence_editor.until_text": {", until %v", ",至 %v"},
"reminder_picker.label": {"Reminders", "提醒"},
"reminder_picker.at_start": {"At start", "开始时"},
"reminder_picker.minutes": {"%d minutes before", "提前 %d 分钟"},
"reminder_picker.minutes_one": {"%d minute before", "提前 %d 分钟"},
"reminder_picker.hours": {"%d hours before", "提前 %d 小时"},
"reminder_picker.hours_one": {"%d hour before", "提前 %d 小时"},
"reminder_picker.days": {"%d days before", "提前 %d 天"},
"reminder_picker.days_one": {"%d day before", "提前 %d 天"},
"reminder_picker.weeks": {"%d weeks before", "提前 %d 周"},
"reminder_picker.weeks_one": {"%d week before", "提前 %d 周"},
"calendar_month_view.more": {"+%d", "+%d"},
"calendar_month_view.more_label": {"%d more events", "另有 %d 项"},
"calendar_month_view.more_label_one": {"%d more event", "另有 %d 项"},
"current_time_indicator.label": {"Now, %s", "当前时间 %s"},
"calendar_week_view.all_day": {"All day", "全天"},
"calendar_week_view.prev": {"Previous week", "上一周"},
"calendar_week_view.next": {"Next week", "下一周"},
"calendar_week_view.title": {"%[1]s %[2]d – %[3]s %[4]d, %[5]d", "%[5]d年%[1]s%[2]d日 – %[3]s%[4]d日"},
"calendar_week_view.resize": {"Resize %s", "调整 %s 的时长"},
"calendar_week_view.too_short": {"An event must end after it starts.", "结束时间须晚于开始时间。"},
"calendar_week_view.column": {"Schedule, %s", "%s 日程"},
"calendar_day_view.prev": {"Previous day", "前一天"},
"calendar_day_view.next": {"Next day", "后一天"},
"agenda_view.label": {"Agenda", "日程"},
"agenda_view.today": {"Today", "今天"},
"agenda_view.empty": {"No events in the next %d days.", "未来 %d 天没有日程。"},
"year_view.events": {"%d events", "%d 项日程"},
"year_view.events_one": {"%d event", "%d 项日程"},
"event_popover.close": {"Close", "关闭"},
"event_popover.edit": {"Edit", "编辑"},
"event_popover.delete": {"Delete", "删除"},
"event_popover.guests": {"%d guests", "%d 位参与者"},
"event_popover.guests_one": {"%d guest", "%d 位参与者"},
"week_picker.label": {"Week", "周"},
"week_picker.placeholder": {"Select week", "选择周"},
"duration_picker.label": {"Duration", "时长"},
"duration_picker.hours": {"Hours", "小时数"},
"duration_picker.minutes": {"Minutes", "分钟数"},
"duration_picker.seconds": {"Seconds", "秒数"},
"duration_picker.hours_unit": {"h", "小时"},
"duration_picker.minutes_unit": {"min", "分"},
"duration_picker.seconds_unit": {"s", "秒"},
"duration_picker.range": {"Choose a duration from %s to %s.", "请选择 %s 至 %s 之间的时长。"},
"timezone_select.label": {"Time zone", "时区"},
"timezone_select.placeholder": {"Select time zone", "选择时区"},
"timezone_select.search": {"Search city or offset", "搜索城市或偏移"},
"timezone_select.empty": {"No matching time zone.", "没有匹配的时区。"},
"timezone_select.common": {"Common", "常用"},
"timezone_select.all": {"All time zones", "全部时区"},
"availability_picker.label": {"Availability", "空闲时段"},
"availability_picker.mine": {"you are free", "你有空"},
"availability_picker.others": {"%d of %d others free", "其他 %[2]d 人中 %[1]d 人有空"},
"event_editor.label": {"Event", "日程"},
"event_editor.title": {"Title", "标题"},
"event_editor.all_day": {"All day", "全天"},
"event_editor.starts": {"Starts", "开始"},
"event_editor.ends": {"Ends", "结束"},
"event_editor.where": {"Location", "地点"},
"event_editor.guests": {"Guests", "参与者"},
"event_editor.guests_help": {"Type a name and press Enter.", "输入姓名后按回车。"},
"event_editor.reminders": {"Reminders", "提醒"},
"event_editor.save": {"Save", "保存"},
"event_editor.need_title": {"Enter a title.", "请输入标题。"},
"event_editor.need_start": {"Choose a start.", "请选择开始时间。"},
"event_editor.end_order": {"The end must be after the start.", "结束须晚于开始。"},
"cron_editor.expression": {"Expression", "表达式"},
"cron_editor.label": {"Cron schedule", "Cron 表达式"},
"cron_editor.next": {"Next runs", "下次运行"},
"cron_editor.never": {"No run in the next five years.", "未来五年内不会运行。"},
"cron_editor.repeated": {"repeated hour, first run", "重复时段,取首次"},
"cron_editor.minute": {"Minute", "分钟"},
"cron_editor.hour": {"Hour", "小时"},
"cron_editor.dom": {"Day of month", "日"},
"cron_editor.month": {"Month", "月"},
"cron_editor.dow": {"Day of week", "星期"},
"cron_editor.err_count": {"Use five fields, not %s.", "需要 5 个字段,而不是 %s 个。"},
"cron_editor.err_empty": {"an empty list item", "列表项为空"},
"cron_editor.err_step": {"step %q must be a positive number", "步长 %q 须为正整数"},
"cron_editor.err_number": {"%q is not a number", "%q 不是数字"},
"cron_editor.err_range": {"%s is outside %d–%d", "%s 超出 %d–%d"},
"cron_editor.err_backwards": {"range %s runs backwards", "范围 %s 起止颠倒"},
"cron_editor.field_error": {"%s: %s.", "%s:%s。"},
"cron_editor.invalid": {"Invalid", "无效"},
"cron_editor.any": {"Every value", "任意"},
"cron_editor.every": {"Every %s", "每 %s"},
"cron_editor.every_in": {"Every %s in %s", "%[2]s 内每 %[1]s"},
"relative_time.now": {"just now", "刚刚"},
"relative_time.ago": {"%s ago", "%s前"},
"relative_time.in": {"in %s", "%s后"},
"relative_time.minutes": {"%d minutes", "%d 分钟"},
"relative_time.minutes_one": {"%d minute", "%d 分钟"},
"relative_time.hours": {"%d hours", "%d 小时"},
"relative_time.hours_one": {"%d hour", "%d 小时"},
"relative_time.days": {"%d days", "%d 天"},
"relative_time.days_one": {"%d day", "%d 天"},
"relative_time.months": {"%d months", "%d 个月"},
"relative_time.months_one": {"%d month", "%d 个月"},
"relative_time.years": {"%d years", "%d 年"},
"relative_time.years_one": {"%d year", "%d 年"},
"countdown.label": {"Time left", "剩余时间"},
"countdown.done": {"%s: time is up.", "%s:时间到。"},
"countdown.days_clock": {"%dd", "%d天"},
"countdown.d": {"%d d", "%d 天"},
"countdown.h": {"%d h", "%d 小时"},
"countdown.m": {"%d min", "%d 分"},
"countdown.s": {"%d s", "%d 秒"},
"stopwatch.label": {"Stopwatch", "秒表"},
"stopwatch.start": {"Start", "开始"},
"stopwatch.pause": {"Pause", "暂停"},
"stopwatch.resume": {"Resume", "继续"},
"stopwatch.lap": {"Lap", "计次"},
"stopwatch.reset": {"Reset", "复位"},
"stopwatch.lap_n": {"Lap %d", "第 %d 圈"},
})
}