Skip to content

Commit

Permalink
(stkaddons) Improve translations
Browse files Browse the repository at this point in the history
  • Loading branch information
xapantu committed Jan 30, 2010
1 parent 0f2fda9 commit 9019d93
Show file tree
Hide file tree
Showing 10 changed files with 98 additions and 29 deletions.
19 changes: 18 additions & 1 deletion css/page.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/* copyright 2009 Lucas Baudin <[email protected]>
This file is part of stkaddons.
stkaddons is free software: you can redistribute it and/or
modify it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or (at your
option) any later version.
stkaddons is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
more details.
You should have received a copy of the GNU General Public License along with
stkaddons. If not, see <http://www.gnu.org/licenses/>. */
body {
font-family: Verdana,Geneva,sans-serif;
font-size: 13.5px;
Expand Down Expand Up @@ -138,7 +154,8 @@ min-height:44px;
}
#add-ons-for
{
width:400px;
width:600px;
text-align:center;
margin:auto;
}
#add-ons-type
Expand Down
3 changes: 1 addition & 2 deletions image.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@
You should have received a copy of the GNU General Public License along with
stkaddons. If not, see <http://www.gnu.org/licenses/>. */
?>
<?php
?><?php
// éditez les 2 variables ci-dessous en fonction du résultat souhaité :
$largeur = "100"; // correspond à la largeur de l'image souhaitée
$hauteur ="100"; // correspond à la hauteur de l'image souhaitée
Expand Down
3 changes: 2 additions & 1 deletion include/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
You should have received a copy of the GNU General Public License along with
stkaddons. If not, see <http://www.gnu.org/licenses/>. */
?><?php
?>
<?php
$base="stkbase";
$dirUpload = "/media/serveur/stk/upload/";
$dirDownload = "http://127.0.0.1/stk/upload/";
Expand Down
2 changes: 1 addition & 1 deletion include/connectMysql.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
***************************************************************************/
include("config.php");
mysql_connect('localhost', 'login', 'password');
mysql_connect('localhost', 'root', 'lucmat');

mysql_select_db($base)or die(mysql_error());
?>
7 changes: 3 additions & 4 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
***************************************************************************/
$security ="";
$title = "Supertuxkart Addon Manager";
include("include/security.php");
include("include/top.php");
include("include/config.php");
Expand All @@ -53,20 +52,20 @@
</div>
<div id="news_bottom">
</div></div>
<div id="add-ons-for"><h1><div class="left"></div><div class="center">Add-ons for Supertuxkart 0.7</div><div class="right"></div></h1></div>
<div id="add-ons-for"><h1><div class="left"></div><div class="center"><?php echo _("Add-ons for Supertuxkart 0.7"); ?></div><div class="right"></div></h1></div>
<div id="add-ons-type">
<div class="addons">
<a href="addon-view.php?addons=karts" />
<img src="image/karts.png" />
<h2 class="menu"><div class="left"></div><div class="center">Karts</div><div class="right"></div></h2>
<h2 class="menu"><div class="left"></div><div class="center"><?php echo _("Karts"); ?></div><div class="right"></div></h2>
</div><div class="addons">
<a href="addon-view.php?addons=tracks" />
<img src="image/tracks.png" />
<h2 class="menu" ><div class="left"></div><div class="center"><?php echo _("Tracks"); ?></div><div class="right"></div></h2>
</div><div class="addons">
<a href="addon-view.php?addons=help" />
<img src="image/help.png" />
<h2 class="menu"><div class="left"></div><div class="center">Help</div><div class="right"></div></h2>
<h2 class="menu"><div class="left"></div><div class="center"><?php echo _("Help"); ?></div><div class="right"></div></h2>
</div>
</div>
<?php
Expand Down
Binary file modified locale/fr_FR/LC_MESSAGES/translations.mo
Binary file not shown.
79 changes: 66 additions & 13 deletions locale/fr_FR/LC_MESSAGES/translations.po
Original file line number Diff line number Diff line change
@@ -1,35 +1,88 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
msgid ""
msgstr ""
"Project-Id-Version: \n"
"POT-Creation-Date: \n"
"PO-Revision-Date: \n"
"Project-Id-Version: stkaddons 0.1\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2010-01-30 16:05+0100\n"
"PO-Revision-Date: 2010-01-30 16:11+0100\n"
"Last-Translator: xapantu <[email protected]>\n"
"Language-Team: \n"
"Language-Team: xapantu <[email protected]>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=iso-8859-1\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Poedit-Language: French\n"
"X-Poedit-Country: FRANCE\n"
"X-Poedit-SourceCharset: utf-8\n"

msgid "Home"
msgstr "Accueil"
#: index.php:55
msgid "Add-ons for Supertuxkart 0.7"
msgstr "Extensions pour SuperTuxKart 0.7 :"

#: index.php:60
msgid "Karts"
msgstr "Karts"

#: index.php:64
msgid "Tracks"
msgstr "Pistes"

#: index.php:68
msgid "Help"
msgstr "Aide"

#: login.php:78
msgid "Welcome"
msgstr "Bienvenue"

#: login.php:79
msgid "You will be redirected to the home page."
msgstr "Vous allez être redirigé à la page d'accueil."

#: login.php:95
msgid "Authentification failed."
msgstr "Identifiant et/ou mot de passe incorrect."

#: login.php:116
msgid "You must be logged in to access this page."
msgstr "Vous devez être identifié pour accéder à cette page."

#: login.php:122
msgid "Create an account."
msgstr "Créer un compte."

#: menu.php:37
msgid "Welcome "
msgstr "Bienvenue"

#: menu.php:40
msgid "Home"
msgstr "Accueil"

#: menu.php:52
msgid "Login"
msgstr "Se connecter"
msgstr "Identifiant"

#: upload.php:47
msgid "Name :"
msgstr "Nom :"

msgid "Description :"
msgstr "Description :"
#: upload.php:48
msgid "Description, it must be in english :"
msgstr "Description, elle doit être en anglais :"

#: upload.php:49
msgid "Image, it must be a .png :"
msgstr "L'image, cela doit être un .png :"
msgstr "Image, ce doit être un .png :"

#: upload.php:50
msgid "Icon (kart only), it must be a .png :"
msgstr "L'icon (seulement pour les karts), cela doit être un .png :"
msgstr "Icon (seulement pour les karts), ce doit être un .png :"

#: upload.php:51
msgid "Addon's file, it must be a .zip :"
msgstr "Le fichier de l'extensions, cela doit être un .zip :"
msgstr "Fichier de l'extension, ce doit être un .zip :"

10 changes: 5 additions & 5 deletions login.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@
<body>
<?php include("menu.php"); ?>
<div id="content">
Welcome <?php echo $_SESSION["login"] ?> :)
You will be redirected to the home page.
<?php echo _("Welcome"); echo $_SESSION["login"] ?> :)
<?php echo _("You will be redirected to the home page."); ?>
</div>
<?php include("footer.php"); ?>
</body>
Expand All @@ -92,7 +92,7 @@
<body>
<?php include("menu.php"); ?>
<div id="content">
Authentification failed.
<?php echo _("Authentification failed."); ?>
<form action="login.php" method="POST">
<input type="text" name="login" />
<input type="password" name="pass" />
Expand All @@ -113,13 +113,13 @@
<body>
<?php include("menu.php"); ?>
<div id="content">
You must be logged in to access this page.<br />
<?php echo _("You must be logged in to access this page."); ?><br />
<form action="login.php" method="POST">
<input type="text" name="login" />
<input type="password" name="pass" />
<input type="submit" value="Submit" />
</form>
<a href="createAccount.php">Create an account</a>
<a href="createAccount.php"><?php echo _("Create an account."); ?></a>
</div>
<?php include("footer.php"); ?>
</body>
Expand Down
2 changes: 1 addition & 1 deletion menu.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<?php
if(isset($_SESSION["login"]))
{
echo "Welcome ".$_SESSION["login"];
echo _("Welcome ").$_SESSION["login"];
}
echo '<a href="index.php">';
echo _("Home");
Expand Down
2 changes: 1 addition & 1 deletion upload.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
<label><input onclick="document.getElementById('kart_icon').disabled = false" type="radio" name="addons_type" value="karts" checked="checked"/>Kart</label>
<label><input onclick="document.getElementById('kart_icon').disabled = true" type="radio" name="addons_type" value="tracks" />Tracks<br /></label>
<label><?php echo _("Name :"); ?><br /><input type="text" name="name"/><br /></label>
<label><?php echo _("Description :"); ?><br /><textarea name="description"></textarea><br /></label>
<label><?php echo _("Description, it must be in english :"); ?><br /><textarea name="description"></textarea><br /></label>
<label><?php echo _("Image, it must be a .png :"); ?><br /><input type="file" name="image"/><br /></label>
<label><?php echo _("Icon (kart only), it must be a .png :"); ?><br /><input type="file" id="kart_icon" name="icon"/><br /></label>
<label><?php echo _("Addon's file, it must be a .zip :"); ?><br /><input type="file" name="file_addon"/><br /></label>
Expand Down

0 comments on commit 9019d93

Please sign in to comment.