[Openupload-svn-update] SF.net SVN: openupload:[14] trunk/locale
Status: Beta
Brought to you by:
tsdogs
|
From: <ts...@us...> - 2008-10-15 15:33:59
|
Revision: 14
http://openupload.svn.sourceforge.net/openupload/?rev=14&view=rev
Author: tsdogs
Date: 2008-10-15 14:05:56 +0000 (Wed, 15 Oct 2008)
Log Message:
-----------
First svn commit
Added Paths:
-----------
trunk/locale/it/LC_MESSAGES/
trunk/locale/it/LC_MESSAGES/openupload.mo
trunk/locale/it/LC_MESSAGES/openupload.po
trunk/locale/tools/trsmarty2c.php
Added: trunk/locale/it/LC_MESSAGES/openupload.mo
===================================================================
(Binary files differ)
Property changes on: trunk/locale/it/LC_MESSAGES/openupload.mo
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: trunk/locale/it/LC_MESSAGES/openupload.po
===================================================================
--- trunk/locale/it/LC_MESSAGES/openupload.po (rev 0)
+++ trunk/locale/it/LC_MESSAGES/openupload.po 2008-10-15 14:05:56 UTC (rev 14)
@@ -0,0 +1,138 @@
+msgid ""
+msgstr ""
+"Project-Id-Version: OpenUpload\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2008-10-14 17:16+0100\n"
+"PO-Revision-Date: 2008-10-14 17:17+0100\n"
+"Last-Translator: Alessandro Briosi <ts...@br...>\n"
+"Language-Team: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Poedit-KeywordsList: tr\n"
+"X-Poedit-Basepath: .\n"
+"X-Poedit-Language: Italian\n"
+"X-Poedit-SearchPath-0: ../../../lib\n"
+"X-Poedit-SearchPath-1: ../../../plugins\n"
+
+#: ../../../lib/classes.inc.php:129
+msgid "Login incorrect!"
+msgstr "Login incorretto!"
+
+#: ../../../lib/main.inc.php:153
+msgid "plugin include file not found: %1"
+msgstr "Il plugin non è stato trovato: %1"
+
+#: ../../../lib/modules/db/txt.inc.php:40
+msgid "ERROR: database folder not found!"
+msgstr "ERRORE: Cartella database non trovata!"
+
+#: ../../../lib/modules/db/txt.inc.php:46
+msgid "ERROR: Could not create folder for %1 table!"
+msgstr "ERRORE: Impossibile create cartella per la tabella %1!"
+
+#: ../../../lib/modules/db/mysql.inc.php:13
+msgid "ERROR: connection to database failed!"
+msgstr "ERRORE: Fallita connessione al database!"
+
+#: ../../../lib/modules/default/auth.inc.php:22
+#: ../../../lib/modules/default/auth.inc.php:32
+msgid "Login"
+msgstr "Accedi"
+
+#: ../../../lib/modules/default/auth.inc.php:25
+msgid "User registration"
+msgstr "Registrazione utente"
+
+#: ../../../lib/modules/default/auth.inc.php:34
+msgid "Logout"
+msgstr "Esci"
+
+#: ../../../lib/modules/default/auth.inc.php:113
+msgid "Username already taken, choose a new value"
+msgstr "Nome utente già registrato, prova un'altro nome"
+
+#: ../../../lib/modules/default/auth.inc.php:117
+msgid "Login name must be at least 5 characters long!"
+msgstr "Il nome utente deve essere lungo almeno 5 caratteri!"
+
+#: ../../../lib/modules/default/auth.inc.php:120
+msgid "Please insert Full Name"
+msgstr "Inserire il Nome Completo"
+
+#: ../../../lib/modules/default/auth.inc.php:124
+msgid "Please insert a valid e-mail!"
+msgstr "Inserire un indirizzo e-mail valido!"
+
+#: ../../../lib/modules/default/auth.inc.php:128
+msgid "Password must be at least 5 characters long!"
+msgstr "La password deve essere lunga almento 5 caratteri!"
+
+#: ../../../lib/modules/default/auth.inc.php:132
+msgid "Passwords do not match! please retype."
+msgstr "Le password non corrispondono! Riprova."
+
+#: ../../../lib/modules/default/auth.inc.php:156
+msgid "Registration completed successfully. Have fun!"
+msgstr "Registrazione completata con successo. Buon divertimento!"
+
+#: ../../../lib/modules/default/files.inc.php:31
+msgid "File upload"
+msgstr "Carica file"
+
+#: ../../../lib/modules/default/files.inc.php:34
+msgid "File download"
+msgstr "Scarica file"
+
+#: ../../../lib/modules/default/files.inc.php:37
+msgid "File Removal"
+msgstr "Rimozione file"
+
+#: ../../../lib/modules/default/files.inc.php:41
+msgid "File Upload"
+msgstr "Carica file"
+
+#: ../../../lib/modules/default/files.inc.php:181
+msgid "Requested file does not exsist!"
+msgstr "Il file richiesto non esiste!"
+
+#: ../../../lib/modules/default/files.inc.php:260
+#: ../../../lib/modules/default/files.inc.php:263
+#: ../../../lib/modules/default/files.inc.php:274
+msgid "Wrong file id!"
+msgstr "ID del file errata!"
+
+#: ../../../plugins/mimetypes.inc.php:10
+#: ../../../plugins/mimetypes.inc.php:20
+msgid "WARNING: no mime types defined. Plugin has been disabled!"
+msgstr "ATTENZIONE: nessun tipo di file definito. Il plugin è stato disabilitato!"
+
+#: ../../../plugins/mimetypes.inc.php:22
+msgid "This file type (%1) is not allowed on this site!"
+msgstr "L'upload di questo tipo di file (%1) non è consentito!"
+
+#: ../../../plugins/captcha.inc.php:37
+#: ../../../plugins/captcha.inc.php:55
+msgid "Wrong captcha code! please try again."
+msgstr "Captcha errato! Riprova."
+
+#: ../../../plugins/email.inc.php:27
+msgid "Your e-mail address isn't valid!"
+msgstr "Il tuo indirizzo e-mail non è valido!"
+
+#: ../../../plugins/email.inc.php:37
+msgid "Destination e-mail address isn't valid!"
+msgstr "L'indirizzo e-mail del destinatario non è valido!"
+
+#: ../../../plugins/email.inc.php:52
+msgid "Information about your uploaded file: %1"
+msgstr "Informazioni relative al tuo file: %1"
+
+#: ../../../plugins/email.inc.php:56
+msgid "An upload was delivered to you"
+msgstr "Ti è stato inviato un file"
+
+#: ../../../plugins/password.inc.php:41
+msgid "Wrong password!"
+msgstr "Password errata!"
+
Added: trunk/locale/tools/trsmarty2c.php
===================================================================
--- trunk/locale/tools/trsmarty2c.php (rev 0)
+++ trunk/locale/tools/trsmarty2c.php 2008-10-15 14:05:56 UTC (rev 14)
@@ -0,0 +1,124 @@
+#!/usr/bin/env php
+<?php
+/**
+ * tsmarty2c.php - rips gettext strings from smarty template
+ *
+ * ------------------------------------------------------------------------- *
+ * This library is free software; you can redistribute it and/or *
+ * modify it under the terms of the GNU Lesser General Public *
+ * License as published by the Free Software Foundation; either *
+ * version 2.1 of the License, or (at your option) any later version. *
+ * *
+ * This library 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 *
+ * Lesser General Public License for more details. *
+ * *
+ * You should have received a copy of the GNU Lesser General Public *
+ * License along with this library; if not, write to the Free Software *
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *
+ * ------------------------------------------------------------------------- *
+ *
+ * This command line script rips gettext strings from smarty file,
+ * and prints them to stdout in C format, that can later be used with the
+ * standard gettext tools.
+ *
+ * Usage:
+ * ./tsmarty2c.php <filename or directory> <file2> <..> > smarty.c
+ *
+ * If a parameter is a directory, the template files within will be parsed.
+ *
+ * @package smarty-gettext
+ * @version $Id: tsmarty2c.php,v 1.3 2005/07/27 17:59:39 sagi Exp $
+ * @link http://smarty-gettext.sf.net/
+ * @author Sagi Bashari <sa...@bo...>
+ * @copyright 2004-2005 Sagi Bashari
+ */
+
+// smarty open tag
+$ldq = preg_quote('{');
+
+// smarty close tag
+$rdq = preg_quote('}');
+
+// smarty command
+$cmd = preg_quote('tr');
+
+// extensions of smarty files, used when going through a directory
+$extensions = array('tpl');
+
+// "fix" string - strip slashes, escape and convert new lines to \n
+function fs($str)
+{
+ $str = stripslashes($str);
+ $str = str_replace('"', '\"', $str);
+ $str = str_replace("\n", '\n', $str);
+ return $str;
+}
+
+// rips gettext strings from $file and prints them in C format
+function do_file($file)
+{
+ $content = @file_get_contents($file);
+
+ if (empty($content)) {
+ return;
+ }
+
+ global $ldq, $rdq, $cmd;
+
+ preg_match_all(
+ "/{$ldq}\s*({$cmd})\s*([^{$rdq}]*){$rdq}([^{$ldq}]*){$ldq}\/\\1{$rdq}/",
+ $content,
+ $matches
+ );
+
+ for ($i=0; $i < count($matches[0]); $i++) {
+ // TODO: add line number
+ echo "/* $file */\n"; // credit: Mike van Lammeren 2005-02-14
+
+ if (preg_match('/plural\s*=\s*["\']?\s*(.[^\"\']*)\s*["\']?/', $matches[2][$i], $match)) {
+ echo 'ngettext("'.fs($matches[3][$i]).'","'.fs($match[1]).'",x);'."\n";
+ } else {
+ echo 'gettext("'.fs($matches[3][$i]).'");'."\n";
+ }
+
+ echo "\n";
+ }
+}
+
+// go through a directory
+function do_dir($dir)
+{
+ $d = dir($dir);
+
+ while (false !== ($entry = $d->read())) {
+ if ($entry == '.' || $entry == '..') {
+ continue;
+ }
+
+ $entry = $dir.'/'.$entry;
+
+ if (is_dir($entry)) { // if a directory, go through it
+ do_dir($entry);
+ } else { // if file, parse only if extension is matched
+ $pi = pathinfo($entry);
+
+ if (isset($pi['extension']) && in_array($pi['extension'], $GLOBALS['extensions'])) {
+ do_file($entry);
+ }
+ }
+ }
+
+ $d->close();
+}
+
+for ($ac=1; $ac < $_SERVER['argc']; $ac++) {
+ if (is_dir($_SERVER['argv'][$ac])) { // go through directory
+ do_dir($_SERVER['argv'][$ac]);
+ } else { // do file
+ do_file($_SERVER['argv'][$ac]);
+ }
+}
+
+?>
Property changes on: trunk/locale/tools/trsmarty2c.php
___________________________________________________________________
Added: svn:executable
+ *
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|