Skip to content

Customized welcome message causes error in rev 1.10 for languages different from English. #1481

@hsaelens

Description

@hsaelens

In revision 1.10, when using a custom welcome message using web.repositoriesMessage = ${baseFolder}/welcome.mkd the main pages fails to load with the following messages in the log:

[ERROR] Can't instantiate page using constructor public com.gitblit.wicket.pages.MyDashboardPage()
org.apache.wicket.WicketRuntimeException: Can't instantiate page using constructor public com.gitblit.wicket.pages.MyDashboardPage()

Caused by: java.util.MissingResourceException: Unable to find property: 'gb.failedToRead' for component: [class=com.gitblit.wicket.pages.MyDashboardPage]
at org.apache.wicket.Localizer.getString(Localizer.java:344)

This happens if users choose a language different from English.
The solution is to copy (or translate) the welcome.mkd file to the other language too. So copy welcome.mkd to welcome.cs.mkd, welcome.de.mkd, and so on.

This was not needed in 1.9.3. In that revision if the translated welcome message did not exist, welcome.mkd was used.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions