[][src]Trait cursive_calendar_view::Locale

pub trait Locale {
    fn week_day(day: WeekDay, long_text: bool) -> &'static str;
fn month(month: Month, long_text: bool) -> &'static str; }

Trait for localization of a CalendarView.

Required methods

fn week_day(day: WeekDay, long_text: bool) -> &'static str

Method returning the localized string for a specific WeekDay.

Both short e.g. Th and long translations e.g. Thursday are suppported.

fn month(month: Month, long_text: bool) -> &'static str

Method returning the localized string for a specific Month.

Both short e.g. Dec and long translations e.g. December are suppported.

Loading content...

Implementors

impl Locale for EnglishLocale[src]

Loading content...