[med-svn] r621 - in trunk/community/website: . inc
hanska-guest at alioth.debian.org
hanska-guest at alioth.debian.org
Fri Oct 5 18:34:10 UTC 2007
Author: hanska-guest
Date: 2007-10-05 18:34:10 +0000 (Fri, 05 Oct 2007)
New Revision: 621
Modified:
trunk/community/website/inc/header.inc.php
trunk/community/website/index.php
trunk/community/website/locales.php
Log:
Added little tutorial on adding new locales.
The logo now links to the homepage.
Other small changes. :)
Modified: trunk/community/website/inc/header.inc.php
===================================================================
--- trunk/community/website/inc/header.inc.php 2007-10-05 17:15:24 UTC (rev 620)
+++ trunk/community/website/inc/header.inc.php 2007-10-05 18:34:10 UTC (rev 621)
@@ -25,7 +25,9 @@
</head>
<body>
<div style="text-align: center;">
-<img src="/img/logo.png" alt="Debian Med Project" />
+<a href="http://debian-med.alioth.debian.org/">
+ <img src="/img/logo.png" alt="Debian Med Project" />
+</a>
</div>
<div class="heading">
<div class="tabBar" style="text-align: center;">
Modified: trunk/community/website/index.php
===================================================================
--- trunk/community/website/index.php 2007-10-05 17:15:24 UTC (rev 620)
+++ trunk/community/website/index.php 2007-10-05 18:34:10 UTC (rev 621)
@@ -67,7 +67,7 @@
<div class="sectionTop"></div>
<div class="row">
<ul>
- <li><a href="/bugs.php"><?=_("Bugs page")?></a></li>
+ <li><a href="/bugs.php"><del><?=_("Bugs page")?></del></a></li>
<li><a href="/locales.php"><?=_("Locales page")?></a></li>
<li>…</li>
</ul>
Modified: trunk/community/website/locales.php
===================================================================
--- trunk/community/website/locales.php 2007-10-05 17:15:24 UTC (rev 620)
+++ trunk/community/website/locales.php 2007-10-05 18:34:10 UTC (rev 621)
@@ -63,7 +63,6 @@
if ($file != "." && $file != ".." && $file != ".svn") {
// we get this $locales_dir from locale.inc.php
if (is_dir($locales_dir.$file)) {
- //if (is_dir("locale/$file")) {
$po = "$locales_dir/$file/LC_MESSAGES/messages.po";
$avail_locales[$file] = makePOStats($po);
}
@@ -88,6 +87,60 @@
</div>
<div class="row">
<h1><?=_("Add new locale")?></h1>
+ <p class="error">
+ To add a new locale, please use your authenticated SVN access.<br />
+ First, checkout the locale/ directory:<br /><br />
+ <pre>
+$ svn co svn+ssh://myaliothlogin@svn.debian.org/svn/debian-med/trunk/community/website/locale/
+ </pre>
+ <br />
+ After this, create a new directory for your locale (let's suppose it's de_DE):<br /><br />
+ <pre>
+$ mkdir de_DE/LC_MESSAGES/
+ </pre>
+ <br />
+ Next step is actually adding the .po catalog. Copy the .pot template to your newly created
+ directory, and start translating:<br /><br />
+ <pre>
+$ cp messages.pot de_DE/LC_MESSAGES/messages.po
+$ cd de_DE/LC_MESSAGES/
+$ vi messages.po
+ </pre>
+ <br />
+ Now you need to compile the catalog you've just translated, and add everything under SVN
+ control (we're in the LC_MESSAGES/ directory in this example):<br /><br />
+ <pre>
+$ msgfmt messages.po
+$ ls
+messages.mo messages.po
+$ cd ../../ # up to the locale/ directory
+$ ls
+it_IT/ de_DE/ messages.pot
+$ svn add de_DE/
+A de_DE/
+A de_DE/LC_MESSAGES/
+A de_DE/LC_MESSAGES/messages.mo
+A de_DE/LC_MESSAGES/messages.po
+$
+ </pre>
+ <br />
+ Now it's time to commit the changes:<br /><br />
+ <pre>
+$ svn commit -m "Adding de_DE locale"
+Sending locale/de_DE/
+Sending locale/de_DE/LC_MESSAGES/
+Sending locale/de_DE/LC_MESSAGES/messages.mo
+Sending locale/de_DE/LC_MESSAGES/messages.po
+Sending data ....
+Commit of Revision xxx done.
+$
+ </pre>
+ <br />
+ Please note that the <em>automatic loading</em> of locales has not been tested yet. Please send
+ an e-mail to <a href="mailto:debian-med at lists.debian.org">debian-med at lists.debian.org</a> if you
+ encounter any problems.
+ </p>
+ </form>
</div>
</div>
</td>
More information about the debian-med-commit
mailing list