directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From build...@apache.org
Subject svn commit: r833261 - in /websites/staging/directory/trunk/content: ./ studio/internationalization.html
Date Fri, 28 Sep 2012 12:51:43 GMT
Author: buildbot
Date: Fri Sep 28 12:51:42 2012
New Revision: 833261

Log:
Staging update by buildbot for directory

Added:
    websites/staging/directory/trunk/content/studio/internationalization.html
Modified:
    websites/staging/directory/trunk/content/   (props changed)

Propchange: websites/staging/directory/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Fri Sep 28 12:51:42 2012
@@ -1 +1 @@
-1391424
+1391434

Added: websites/staging/directory/trunk/content/studio/internationalization.html
==============================================================================
--- websites/staging/directory/trunk/content/studio/internationalization.html (added)
+++ websites/staging/directory/trunk/content/studio/internationalization.html Fri Sep 28 12:51:42
2012
@@ -0,0 +1,149 @@
+<!DOCTYPE html>
+<!--
+    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.
+-->
+<html>
+	<head>
+		<title>Internationalization (i18n) &mdash; Apache Directory</title>
+		
+        <link href="./../css/common.css" rel="stylesheet" type="text/css">
+        <link href="./../css/blue.css" rel="stylesheet" type="text/css">
+    
+	</head>
+	<body>
+	    <div id="container">
+            <div id="header">
+                <div id="subProjectsNavBar">
+                    <a href="./../">
+                        
+                        Apache Directory Project
+                        
+                    </a>
+                    &nbsp;|&nbsp;
+                    <a href="./../apacheds">
+                        
+                        ApacheDS
+                        
+                    </a>
+                    &nbsp;|&nbsp;
+                    <a href="./../studio">
+                        
+                        <STRONG>Apache Directory Studio</STRONG>
+                        
+                    </a>
+                    &nbsp;|&nbsp;
+                    <a href="./../api">
+                        
+                        Apache LDAP API
+                        
+                    </a>
+                </div><!-- subProjectsNavBar -->
+            </div><!-- header -->
+            <div id="content">
+                <div id="leftColumn">
+                    
+<div id="navigation">
+    
+        <h5>Apache Directory Studio</h5>
+        <ul>
+            <li><a href="./../studio/">Home</a></li>
+            <li><a href="./../studio/features.html">Features</a></li>
+            <li><a href="./../studio/screenshots.html">Screenshots</a></li>
+        </ul>
+        <h5>Downloads</h5>
+        <ul>
+            <li><a href="./../studio/2.0/download/">Version 2.0 M3</a>&nbsp;&nbsp;<IMG
src="./../images/new_badge.gif" alt="" style="margin-bottom:-3px;" border="0"></li>
+            <li><a href="./../studio/downloads.html">Version 1.5.3</a></li>
+            <li><a href="./../studio/nightly-builds.html">Nightly Builds</a></li>
+            <li><a href="./../studio/download-old-versions.html">Older Versions</a></li>
+        </ul>
+        <h5>Documentation</h5>
+        <ul>
+            <li><a href="./../studio/users-guide.html">User's Guide</a></li>
+            <li><a href="./../studio/developers-guide.html">Developer's Guide</a></li>
+            <li><a href="./../studio/gen-docs/1.5.2.v20091211/index.html">Generated
reports (e.g. JavaDocs)</a></li>
+            <li><a href="./../studio/faqs.html">FAQs</a></li>
+        </ul>
+        <h5>Resources</h5>
+        <ul>
+            <li><a href="./../studio/issue-tracking.html">Issue Tracking</a></li>
+            <li><a href="./../studio/changelog.html">ChangeLog</a></li>
+            <li><a href="./../studio/mailing-lists.html" >Mailing Lists</a></li>
+            <li><a href="./../studio/testimonials.html">Testimonials</a></li>
+        </ul>
+    
+    
+    <h5>Community</h5>
+    <ul>
+        <li><a href="./../contribute.html">How to Contribute</a></li>
+        <li><a href="./../team.html">Team</a></li>
+        <li><a href="./../original-project-proposal.html">Original Project Proposal</a></li>
+    </ul>
+    <h5>About Apache</h5>
+    <ul>
+        <li><a href="http://www.apache.org/">Apache</a></li>
+        <li><a href="http://www.apache.org/licenses/">License</a></li>
+        <li><a href="http://www.apache.org/foundation/sponsorship.html">Sponsorship</a></li>
+        <li><a href="http://www.apache.org/foundation/thanks.html">Thanks</a></li>
+        <li><a href="http://www.apache.org/security/">Security</a></li>
+    </ul>
+    
+</div><!-- navigation -->
+
+                </div><!-- leftColumn -->
+                <div id="rightColumn">
+
+<h1 id="internationalization-i18n">Internationalization (i18n)</h1>
+<p>It exists a good guide on internationalisation (and externalizing string) at <a
href="http://www.eclipse.org/articles/Article-Internationalization/how2I18n.html">How to
Internationalize your Eclipse Plug-In</a>.</p>
+<h2 id="translating-the-current-code">Translating the current code</h2>
+<p>Translating Studio is not an simple task. There are many files to translate :</p>
+<ul>
+<li>messages.properties</li>
+<li>plugin.properties</li>
+<li>help files</li>
+<li>some other semi-random files ;)</li>
+</ul>
+<h2 id="when-writing-code">When writing code...</h2>
+<p>When doing the translation for a specific language please add in any case the messages_{language}.properties
file of the language to the resource folder, even if it's empty (meaning all translations
are taken from the messages.properties file). This will show to other developers, that you've
thought about translation but no one was needed.</p>
+<p>Notes:</p>
+<ul>
+<li>The message".properties files are located in the src/main/java/*<em> folder
(not following maven's philosophy) to be able to use Eclipse' 'Externalize Strings' wizard
also later on. Following maven philosophy (</em>.properties in src/main/resources) the
wizard doesn't finds the created properties files anymore.</li>
+<li>
+<p>To replace placeholders we use Eclipse's NLS.bind function, e.g.</p>
+<div class="codehilite"><pre><span class="n">From</span> <span
class="n">messages</span><span class="o">.</span><span class="n">properties:</span>
+<span class="n">EditAliasesDialog</span><span class="o">.</span><span
class="n">TheAliasBegin</span><span class="o">=</span><span class="n">The</span>
<span class="n">alias</span> <span class="s">&quot;{0}&quot;</span>
<span class="n">is</span> <span class="n">invalid</span><span class="o">.</span>
+
+<span class="n">Will</span> <span class="n">look</span> <span
class="n">like</span> <span class="n">in</span> <span class="n">Java</span>
<span class="n">code:</span>
+<span class="n">NLS</span><span class="o">.</span><span class="nb">bind</span><span
class="p">(</span> <span class="n">Messages</span><span class="o">.</span><span
class="n">getString</span><span class="p">(</span> <span class="s">&quot;EditAliasesDialog.TheAliasBegin&quot;</span>
<span class="p">),</span> <span class="k">new</span> <span class="n">String</span><span
class="o">[]</span> <span class="p">{</span> <span class="n">alias</span>
<span class="p">}</span> <span class="p">)</span> <span class="p">);</span>
+</pre></div>
+
+
+</li>
+</ul>
+<p>Hints:</p>
+<ul>
+<li>Using Eclipse' Property-Editor in the 'Properties' view will prevent you from comming
into troubles with uncomment characters like e.g. the German 'Umlauts'</li>
+</ul>
+
+                </div><!-- rightColumn -->
+                <div id="endContent"></div>
+            </div><!-- content -->
+            <div id="footer">&copy; 2003-2012, <a href="http://www.apache.org">The
Apache Software Foundation</a> - <a href="privacy-policy.html">Privacy Policy</a><br
/>
+                Apache Directory, ApacheDS, Apache Directory Server, Apache Directory Studio,
Apache LDAP API, Apache Triplesec, Triplesec, Apache, the Apache feather logo, and the Apache
Directory project logos are trademarks of The Apache Software Foundation.
+            </div>
+        </div><!-- container -->
+    </body>
+</html>
\ No newline at end of file



Mime
View raw message