Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Translate text "week (number of week)", on calendarView collapsed #23

Open
Thialyson opened this issue May 24, 2017 · 2 comments
Open

Comments

@Thialyson
Copy link

Can you support this?

@maheshnikam
Copy link

maheshnikam commented May 25, 2017 via email

@MysticWhiteDragon
Copy link

I was looking to do the same and I found out where it is stored.

It's in the DefaultFormatter.java class in the calendar manager library. If you add the entire library to your project, then you can change it in there.

The line is:

public DefaultFormatter() {
        this("E", "'week' w", "MMMM yyyy");
    }

Or edit the function here if you need more specific code:

public DefaultFormatter(@NonNull String dayPattern, @NonNull String weekPattern, @NonNull String monthPattern) {
        dayFormatter = DateTimeFormat.forPattern(dayPattern);
        weekHeaderFormatter = DateTimeFormat.forPattern(weekPattern);
        monthHeaderFormatter = DateTimeFormat.forPattern(monthPattern);
    }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants