You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rave.apache.org by bu...@apache.org on 2011/10/26 13:59:14 UTC

svn commit: r797489 - in /websites/staging/rave/trunk/content/rave: documentation/translate-portal.html images/screenshot_preference_preferred_language.png

Author: buildbot
Date: Wed Oct 26 11:59:14 2011
New Revision: 797489

Log:
Staging update by buildbot

Added:
    websites/staging/rave/trunk/content/rave/documentation/translate-portal.html
    websites/staging/rave/trunk/content/rave/images/screenshot_preference_preferred_language.png   (with props)

Added: websites/staging/rave/trunk/content/rave/documentation/translate-portal.html
==============================================================================
--- websites/staging/rave/trunk/content/rave/documentation/translate-portal.html (added)
+++ websites/staging/rave/trunk/content/rave/documentation/translate-portal.html Wed Oct 26 11:59:14 2011
@@ -0,0 +1,98 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+<head>
+<!--
+
+    Licensed to the Apache Software Foundation (ASF) under one or more
+    contributor license agreements.  See the NOTICE file distributed with
+    this work for additional information regarding copyright ownership.
+    The ASF licenses this file to You under the Apache License, Version 2.0
+    (the "License"); you may not use this file except in compliance with
+    the License.  You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE- 2.0
+
+    Unless required by applicable law or agreed to in writing, software
+    distributed under the License is distributed on an "AS IS" BASIS,
+    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+    See the License for the specific language governing permissions and
+    limitations under the License.
+-->
+  <link rel="shortcut icon" href="/rave/images/RAVE-icon.ico" type="image/x-icon" />
+  <link href="/rave/css/rave.css" rel="stylesheet" type="text/css">
+  <title>How to translate the portal</title>
+  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+</head>
+
+<body>
+  <div id="banner">
+    <img id="logo" alt="Apache Rave (Incubating)" src="/rave/images/RAVE-logo_main-logo-small.png"/>
+  </div>
+  
+  <div id="navigation">
+  <h1 id="general">General</h1>
+<ul>
+<li><a href="/rave/index.html">About</a></li>
+<li><a href="/rave/documentation/index.html">Documentation</a></li>
+<li><a href="/rave/downloads.html">Downloads</a></li>
+<li><a href="http://incubator.apache.org/projects/rave.html">Incubator page</a></li>
+<li><a href="/rave/license.html">License</a></li>
+</ul>
+<h1 id="community">Community</h1>
+<ul>
+<li><a href="/rave/get-involved.html">Get Involved</a></li>
+<li><a href="/rave/mailing-lists.html">Mailing Lists</a></li>
+<li><a href="/rave/people.html">People</a></li>
+</ul>
+<h1 id="development">Development</h1>
+<ul>
+<li><a href="/rave/source.html">Getting Started</a></li>
+<li><a href="/rave/ide-settings-and-debugging.html">IDE Settings and debugging</a></li>
+<li><a href="/rave/release-management.html">Release Management</a></li>
+<li><a href="/rave/issue-management.html">Issue Tracker</a></li>
+<li><a href="https://builds.apache.org/hudson/view/M-R/view/Rave/">Continuous Integration</a></li>
+<li><a href="https://analysis.apache.org/dashboard/index/58996">Sonar Dashboard</a></li>
+<li><a href="/rave/edit-website.html">Website</a></li>
+</ul>
+<h1 id="asf">ASF</h1>
+<ul>
+<li><a href="http://www.apache.org">Apache Software Foundation</a></li>
+<li><a href="http://www.apache.org/foundation/thanks.html">Thanks</a></li>
+<li><a href="http://www.apache.org/foundation/sponsorship.html">Become a Sponsor</a></li>
+<li><a href="http://www.apache.org/security/">Security</a></li>
+</ul>
+    <a alt="Apache Incubator" href="http://incubator.apache.org">
+      <img id="asf-logo" alt="Apache Incubator" src="/rave/images/apache-incubator-logo.png"/>
+    </a>
+  </div>
+
+  <div id="content">
+    <h1 class="title">How to translate the portal</h1>
+    <p>The labels in the portal are maintained in <a href="http://download.oracle.com/javase/tutorial/i18n/resbundle/concept.html">Resource Bundles</a>. The default language of the portal is English. In this example you are going to add french translations to the portal.</p>
+<h2 id="1_get_rave">1) Get Rave</h2>
+<p>There are multiple ways to build your custom Rave instance, but the quickest is to use a Maven WAR overlay.  See <a href="rave-extensions.html">Extending Rave</a> for an example overlay.</p>
+<h2 id="2_add_your_translation">2) Add your translation</h2>
+<ul>
+<li>Create a file <code>messages_fr.properties</code> in <code>src/main/resources</code>.</li>
+<li>Copy the contents from the <a href="http://svn.apache.org/repos/asf/incubator/rave/trunk/rave-portal-resources/src/main/resources/messages.properties">default language file</a> into your new file</li>
+<li>Translate the values</li>
+</ul>
+<h2 id="3_build_and_test">3) Build and test</h2>
+<p>Build your custom Rave project and deploy it.
+You will see the French translations in the portal if the preferred language of your browser is French.</p>
+<p><img alt="Setting French as preferred language in Firefox" src="/rave/images/screenshot_preference_preferred_language.png" /></p>
+  </div>
+
+  <div id="footer">
+    <div class="copyright">
+      <p>
+        Copyright &copy; 2011 The Apache Software Foundation, Licensed under
+        the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.
+        <br />
+        Apache and the Apache feather logos are trademarks of The Apache Software Foundation.
+      </p>
+    </div>
+  </div>
+
+</body>
+</html>

Added: websites/staging/rave/trunk/content/rave/images/screenshot_preference_preferred_language.png
==============================================================================
Binary file - no diff available.

Propchange: websites/staging/rave/trunk/content/rave/images/screenshot_preference_preferred_language.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream