Hi Louis,
I've had a quick play - it is possible to do this farily easily - assuming you
have CC.NET 1.4.4 or later.
In 1.4.4 we introduced a customTemplates setting to dashboard.config. This
allows you to change the templates used, without impacting the rest of the
functionality. The following is an example of how to do this:
<dashboard>
<remoteServices>
<servers>
<!-- Define servers -->
</servers>
</remoteServices>
<plugins>
<customTemplates>templates/french</customTemplates>
<farmPlugins>
<!-- Define farm plug-ins -->
</farmPlugins>
<serverPlugins>
<!-- Define server plug-ins -->
</serverPlugins>
<projectPlugins>
<!-- Define project plug-ins -->
</projectPlugins>
<buildPlugins>
<!-- Define build plug-ins -->
</buildPlugins>
</plugins>
</dashboard>
A few points to note:
1. This change will affect all users - it does not detect the user's
preferred language
2. The path is relative to the web dashboard location (e.g. C:\Program
Files\CruiseControl.NET\webdashboard in the default install)
3. If a template does not exist, it will "fall back" to the templates
folder - this is useful if you only want to translate some templates
Hope this helps,
Craig
________________________________
From: Louis-Philippe Carignan <[email protected]>
To: ccnet-user <[email protected]>
Sent: Fri, 11 December, 2009 10:56:50 AM
Subject: [ccnet-user] Re: WebDashboard in French
Hi Craig,
It seems that most (approx: 80 %) of the strings for the web dashboard
are coming out of the .vm files (templates ???)...
These files are used all across the board in code. Could I just put
the language in front of them (ex: fr/)? I would have the standard
files in the folder templates and a child folder named "fr" with the
French translation. A setting could then be added in web.config to
point on the right set of files.
Could this be a convenient way of doing it? Or am I missing the bigger
picture?
Louis
On 10 déc, 13:23, Craig Sutherland <[email protected]> wrote:
> Hi Louis-Philippe,
>
> Unfortunately the dashboard cannot be localised. There was a project to add
> this, but there was a lack of support for it, so it was removed.
>
> Craig
>
> ________________________________
> From: Louis-Philippe Carignan <[email protected]>
> To: ccnet-user <[email protected]>
> Sent: Fri, 11 December, 2009 4:52:27 AM
> Subject: [ccnet-user] WebDashboard in French
>
> Hi all,
>
> I was wondering if there's a setting so WebDashboard can output its
> pages in French. Looking in the bin folder, I can see some localized
> librairies for WebDashboard so I assume the French strings are there.
> I can't figure out where to activate it. Would somebody be so kind as
> pointing me in the right direction?
>
> Also, will I have to translate the templages (.vm files) and
> stylesheets (.xsl files)?
>
> Thanks for your help,
>
> Louis-Philippe