[med-svn] r636 - in trunk/community/website: . img inc
hanska-guest at alioth.debian.org
hanska-guest at alioth.debian.org
Sat Oct 6 09:15:53 UTC 2007
Author: hanska-guest
Date: 2007-10-06 09:15:53 +0000 (Sat, 06 Oct 2007)
New Revision: 636
Added:
trunk/community/website/img/warning.png
trunk/community/website/img/warning.svgz
Modified:
trunk/community/website/inc/style.css
trunk/community/website/locales.php
Log:
New icon (warning.svgz/png).
Changing background color of "adding new locale" tutorial.
Added: trunk/community/website/img/warning.png
===================================================================
(Binary files differ)
Property changes on: trunk/community/website/img/warning.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/community/website/img/warning.svgz
===================================================================
(Binary files differ)
Property changes on: trunk/community/website/img/warning.svgz
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Modified: trunk/community/website/inc/style.css
===================================================================
--- trunk/community/website/inc/style.css 2007-10-06 08:48:37 UTC (rev 635)
+++ trunk/community/website/inc/style.css 2007-10-06 09:15:53 UTC (rev 636)
@@ -288,7 +288,7 @@
vertical-align:top;
}
-span.error{
+span.error span.info{
padding:0em 0.3em;
border:1px dashed #F00;
}
@@ -297,6 +297,10 @@
background:#FCC;
}
+p.info{
+ background:#DEECE7;
+}
+
img.footer{
padding:0em 1em;
}
Modified: trunk/community/website/locales.php
===================================================================
--- trunk/community/website/locales.php 2007-10-06 08:48:37 UTC (rev 635)
+++ trunk/community/website/locales.php 2007-10-06 09:15:53 UTC (rev 636)
@@ -20,6 +20,7 @@
?>
<div class="row">
<p class="error">
+ <img src="/img/warning.png" style="text-align: center;" /><br />
<?=_("You're using a low priority locale.<br />Please ask the site administrators to add your locale, or provide one yourself :).")?>
<br /><br />
<?php
@@ -57,14 +58,11 @@
<?php
require_once("inc/po-stats.inc.php");
-// $handle = opendir($locales_dir);
$handle = opendir("locale/");
$avail_locales = array();
while ($file = readdir($handle)) {
if ($file != "." && $file != ".." && $file != ".svn") {
// we get this $locales_dir from locale.inc.php
-// if (is_dir($locales_dir.$file)) {
-// $po = "$locales_dir/$file/LC_MESSAGES/messages.po";
if (is_dir("locale/$file")) {
$po = "locale/$file/LC_MESSAGES/messages.po";
$avail_locales[$file] = makePOStats($po);
@@ -91,23 +89,21 @@
</div>
<div class="row">
<h1><?=_("Add new locale")?></h1>
- <p class="error">
+ <span class="info"></span>
+ <p class="info">
To add a new locale, please use your authenticated SVN access.<br />
First, checkout the locale/ directory:
<pre>
-$ svn co svn+ssh://myaliothlogin@svn.debian.org/svn/debian-med/trunk/community/website/locale/
- </pre>
+$ svn co svn+ssh://myaliothlogin@svn.debian.org/svn/debian-med/trunk/community/website/locale/</pre>
After this, create a new directory for your locale (let's suppose it's fr_FR):
<pre>
-$ mkdir -p fr_FR/LC_MESSAGES/
- </pre>
+$ mkdir -p fr_FR/LC_MESSAGES/</pre>
Next step is actually adding the .po catalog. Copy the .pot template to your newly created
directory, and start translating:
<pre>
$ cp messages.pot fr_FR/LC_MESSAGES/messages.po
$ cd fr_FR/LC_MESSAGES/
-$ vi messages.po
- </pre>
+$ vi messages.po</pre>
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):
<pre>
@@ -122,8 +118,7 @@
A fr_FR/LC_MESSAGES/
A fr_FR/LC_MESSAGES/messages.mo
A fr_FR/LC_MESSAGES/messages.po
-$
- </pre>
+$ </pre>
Now it's time to commit the changes:
<pre>
$ svn commit -m "Adding fr_FR locale"
@@ -133,8 +128,7 @@
Sending locale/fr_FR/LC_MESSAGES/messages.po
Sending data ....
Commit of Revision xxx done.
-$
- </pre>
+$ </pre>
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.
More information about the debian-med-commit
mailing list