From 2fd66f39768353065bfaf1554fe3ab2c9ea203dd Mon Sep 17 00:00:00 2001
From: Karoly Negyesi
Date: Fri, 20 Jul 2007 07:24:24 +0000
Subject: [PATCH] removed HEAD
---
CHANGELOG.txt | 78 -----
CREDITS.txt | 6 -
INSTALL.txt | 49 ---
README.txt | 1 -
TODO.txt | 19 --
po/de.po | 297 ------------------
po/es.po | 335 --------------------
po/he.po | 305 ------------------
po/it.po | 346 ---------------------
po/ja.po | 458 ---------------------------
po/nl.po | 306 ------------------
po/pl.po | 333 --------------------
po/privatemsg.pot | 305 ------------------
po/zh_hans.po | 289 -----------------
privatemsg.info | 4 -
privatemsg.install | 145 ---------
privatemsg.js | 11 -
privatemsg.module | 872 ----------------------------------------------------
18 files changed, 0 insertions(+), 4159 deletions(-)
delete mode 100644 CHANGELOG.txt
delete mode 100644 CREDITS.txt
delete mode 100644 INSTALL.txt
delete mode 100644 README.txt
delete mode 100644 TODO.txt
delete mode 100644 po/de.po
delete mode 100644 po/es.po
delete mode 100644 po/he.po
delete mode 100644 po/it.po
delete mode 100644 po/ja.po
delete mode 100644 po/nl.po
delete mode 100644 po/pl.po
delete mode 100644 po/privatemsg.pot
delete mode 100644 po/zh_hans.po
delete mode 100644 privatemsg.info
delete mode 100644 privatemsg.install
delete mode 100644 privatemsg.js
delete mode 100644 privatemsg.module
diff --git a/CHANGELOG.txt b/CHANGELOG.txt
deleted file mode 100644
index e6c8d4e..0000000
--- a/CHANGELOG.txt
+++ /dev/null
@@ -1,78 +0,0 @@
-30 April 2005
--------------
-- Added pager to message lists
-- Added PostgreSQL support
-- Use input formats for private messages (allow HTML in messages)
-
-26 March 2004
--------------
-- Removed custom _form_submit in favor of "attributes" argument in core form_submit (jik)
-- Added optional "write to author" links under nodes/comments (modified patch by jik)
-- Minor code updates/cleanup
-- Update to work with new CVS _user hook changes
-
-9 December 2003
----------------
-- updated to function with latest menu system changes
-- updated to work with latest theme system updates
- - themeable functions return their output rather than printing it
- - updated to use theme(page)
- - grouped themeable functions and added phpDoc comments
-- added {} to allow table prefixing
-
-23 May 2003, "qui, nell'ascensore?"
-----------------------------------
-- used $_POST instead of global vars
-- used theme() instead of $theme
-
-
-22 May 2003, "day of the Matrix"
---------------------------------
-- major rewrite
-- updated to latest cvs, should work in Drupal 4.2
-- added folders, you can move messages in folders, empty folders
-- mail once per day if you have unread messages (user option)
-- message pruning (move old messages to another table)
-- list of contacts: it's built automatically looking at users you write to
-- theme()ized
-- if you are updating run you just need to run privatemsg.sql
-
-
-20 August 2002
---------------
-- major cleanup, used t() and l() everywhere
-- minor bugs fixed
-
-
-19 June 2002
-------------
-- cached _privatemsg_get_new_messages(), saves 2-3 queries per page
-
-
-21 Feburary 2002
-----------------
-- moved link to private messages to the user block.
-- added link to send messages to user info pages.
-- some XHTML changes.
-- user system has changed from $user->id to $user->uid.
-
-
-19 December 2001 "giuro che mi trattengo"
---------------------------
-- sent messages; sender can delete unread messages (optional, see settings)
-- messages splitted in pages, setting for "how many messages per page"
-
-
-15 December 2001 "nice evening"
---------------------------
-- privatemsg_get_link() to add theme support; see INSTALL
-- throttle to limit abuse; setting in admin for max send rate
-- checked sql indexing and added index to recipient (should we index author?)
-- save sender ip address
-- code cleanup (less global variables, use drupal form functions, better date format in list, comply to coding standards)
-- minor cosmetic changes
-
-
-12 December 2001
---------------------------
-- initial release.
diff --git a/CREDITS.txt b/CREDITS.txt
deleted file mode 100644
index 8e59d57..0000000
--- a/CREDITS.txt
+++ /dev/null
@@ -1,6 +0,0 @@
-This module was made by Marco Molinari
-and is currently maintained by Tom Dobes .
-Some maintenance also done by Alan Harder .
-Almost whole concept from similar systems (for example phpbb).
-Documentation skeleton and some snippets from chatbox module by Steven Wittens.
-Feel free to contact me about it!
diff --git a/INSTALL.txt b/INSTALL.txt
deleted file mode 100644
index 088c603..0000000
--- a/INSTALL.txt
+++ /dev/null
@@ -1,49 +0,0 @@
-Readme
-------
-
-This is my first Drupal module: a very basic private messaging module.
-It allows your site's visitors to send private messages to each other.
-It does not use Jabber at all (but could be fun to use it).
-
-Features:
- - read/write/delete messages
- - reply to message with quoting
- - new messages support (block and page)
- - folders
- - pruning
- - contact list
- - option to get mail if you have unread messages
-
-If you want to create a link to send a user a message, use:
-l(t("send private message"), "privatemsg/msgto/$user->uid"))
-
-Send comments to marco@porciletto.org.
-
-
-Requirements
-------------
-This module requires Drupal 4.7+.
-
-
-Installation
-------------
-
-1. Copy the files to the Drupal modules/privatemsg directory. Drupal should automatically detect it. Enable in administration/site configuration/modules.
-
-2. Check "access private messages" in "roles and permissions" in the administration; anonymous users should not have permission. You can also change something in "settings and filters".
-
-3. Enjoy!
-
-
-Author
-------
-
-Marco Molinari
-
-
-Upgrading
----------
-
-If you are upgrading from versions before 29-Apr-2005, you will need to run the
-appropriate SQL statements from the privatemsg.install file. Open the file in a
-text editor to determine which statements you will need to run.
diff --git a/README.txt b/README.txt
deleted file mode 100644
index 5aa176e..0000000
--- a/README.txt
+++ /dev/null
@@ -1 +0,0 @@
-A module to send private messages in a Drupal site.
diff --git a/TODO.txt b/TODO.txt
deleted file mode 100644
index 83ce2a9..0000000
--- a/TODO.txt
+++ /dev/null
@@ -1,19 +0,0 @@
-TODO:
-- messages should be nodes (not a good idea, perfomance wise)
-- get rid of javascript (now used very few, just in contact list)
-- sort messages per author/date/ecc
-- mix with mail (receive a mail in your mailbox, answer by email)
-- option to have every message sent in a central box even from other sites
-- help and info
-- some watchdogs if someone tries something stupid/bad (e.g. delete someone else's messages)
-
-doubts:
-- is author to index?
-- preview message before sending(?)
-- change links (write new, reply, delete, etc) to form buttons?
-- admin with message search?
-- admin to probe messages (?)
-
-other ideas:
-- integration with jabber(?)
-- filters
diff --git a/po/de.po b/po/de.po
deleted file mode 100644
index cbb71bb..0000000
--- a/po/de.po
+++ /dev/null
@@ -1,297 +0,0 @@
-msgid ""
-msgstr ""
-"Project-Id-Version: Drupal privatemsg\n"
-"POT-Creation-Date: 2006-07-20 20:58-0400\n"
-"PO-Revision-Date: 2005-02-07 13:29+0100\n"
-"Last-Translator: Kenan Cevik \n"
-"Language-Team: Deutsch \n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-
-#: privatemsg.module:10
-msgid "The private messaging module allows users to send messages to each other without having to share email addresses. An inbox link will appear in the navigation menu. The \"write to author\" links are included in posts, allowing users to write a private message instead of commenting openly. Allowing users to communicate directly is an important part of building the strength of the community."
-msgstr ""
-
-#: privatemsg.module:11
-msgid "Users can also select whether to receive email notices of new messages by editing their user profile. The contacts list contains only users that you have previously messaged. To contact users not in your list, you need to know their local user name. Administrators can set messaging options such as frequency of emails, message status display, and number of messages to display per page. They can also configure 'Write to Author' options."
-msgstr ""
-
-#: privatemsg.module:12
-msgid "You can
\n\n- administer privatemsg at administer >> settings >> private message.
\n- view your private messages at view inbox.
\n"
-msgstr ""
-
-#: privatemsg.module:17
-msgid "For more information please read the configuration and customization handbook Privatemsg page."
-msgstr "Um mehr informationen zu erhalten, lesen sie bitte das Handbuch Privatemesg Seite."
-
-#: privatemsg.module:20
-msgid "Allows private messages between users."
-msgstr "Erlaubt private Nachrichten zwischen Benutzern."
-
-#: privatemsg.module:36
-msgid "write to author"
-msgstr "An den Verfasser Schreiben"
-
-#: privatemsg.module:55
-msgid "my inbox"
-msgstr "Mein Postfach"
-
-#: privatemsg.module:70;79;84;259;357
-msgid "Private messages"
-msgstr "Private Nachrichten"
-
-#: privatemsg.module:71
-msgid "send private message"
-msgstr "Versende private Nachricht"
-
-#: privatemsg.module:80
-msgid "login or registieren um eine private nachrich an diesen Benutzer zu versenden."
-msgstr " anmelden of registrieren um eine private nachrich an diesen Benutzer zu versenden."
-
-#: privatemsg.module:85
-msgid "login to send private messages to this user"
-msgstr " anmelden um eine private nachrich an diesen Benutzer zu versenden."
-
-#: privatemsg.module:96
-msgid "Private message settings"
-msgstr "Einstellungen private Nachrichten"
-
-#: privatemsg.module:102
-msgid "Allow private messages"
-msgstr ""
-
-#: privatemsg.module:104
-msgid "Check this box to allow users to send you private messages."
-msgstr ""
-
-#: privatemsg.module:108
-msgid "Receive daily e-mail for unread messages"
-msgstr ""
-
-#: privatemsg.module:110
-msgid "Check this box to receive e-mail notification for unread messages. Only one e-mail will be sent per day."
-msgstr ""
-
-#: privatemsg.module:124
-msgid "Private messaging max rate"
-msgstr "maximale Anzahl der private Nachrichten"
-
-#: privatemsg.module:127
-msgid "Max submit rate for private messaging. To prevent abuse."
-msgstr ""
-
-#: privatemsg.module:131
-msgid "Sent message status"
-msgstr "Nachrichtenstatus versenden"
-
-#: privatemsg.module:133
-msgid "Disabled"
-msgstr "Deaktivieren"
-
-#: privatemsg.module:133
-msgid "Enabled"
-msgstr "Aktivieren"
-
-#: privatemsg.module:134
-msgid "If enabled users can see whether a message has been read or not."
-msgstr ""
-
-#: privatemsg.module:138
-msgid "Messages per page"
-msgstr "Nachrichten pro Seite"
-
-#: privatemsg.module:141
-msgid "The maximum number of messages displayed per page; links to browse messages automatically appear."
-msgstr ""
-
-#: privatemsg.module:146
-msgid "\"Write to author\" links"
-msgstr "\"Nachricht an den Verfasser\" links"
-
-#: privatemsg.module:150
-msgid "Display link with posts"
-msgstr "Link mit zu den Postings anzeigen"
-
-#: privatemsg.module:153
-msgid "Provide a link to send private messages to users with posts they start."
-msgstr "Ein Link anzeigen, um private nachrichten an Bnutzer mit ihren Postings zu schicken"
-
-#: privatemsg.module:157
-msgid "Display link with comments"
-msgstr "Link mit Kommentaren anzeigen"
-
-#: privatemsg.module:160
-msgid "Provide a link to send private messages to users with their comments."
-msgstr "Ein Link anzeigen, um private nachrichten an Benutzern mit ihren Kommentaren zu schicken."
-
-#: privatemsg.module:219
-msgid "New private messages at %site."
-msgstr "Neue private Nachricht von %site"
-
-#: privatemsg.module:220
-msgid "Hi %name,\nThis is an automatic reminder from the site %site. You have %new unread private messages.\n\nTo read your messages, follow this link:\n%link1\n\nIf you don't want to receive these email again, change your preferences here:\n%link2"
-msgstr ""
-""
-""
-
-#: privatemsg.module:263
-msgid "Read message"
-msgstr "Nachrichten lesen"
-
-#: privatemsg.module:264;272;279;286;328
-msgid "Home"
-msgstr "Start"
-
-#: privatemsg.module:264;272;279;286
-msgid "private messages"
-msgstr "Private Nachrichten"
-
-#: privatemsg.module:266;271;278;709
-msgid "Write a new message"
-msgstr "Neue Nachricht schreiben"
-
-#: privatemsg.module:282;467
-msgid "Send private message"
-msgstr "Private Nachricht versenden"
-
-#: privatemsg.module:289;699
-msgid "Move to folder"
-msgstr "In den Ordner verschieben"
-
-#: privatemsg.module:303;685
-msgid "Delete messages"
-msgstr "Nachrichten löschen"
-
-#: privatemsg.module:317;738
-msgid "New folder"
-msgstr "Neuer Ordner"
-
-#: privatemsg.module:318;568
-msgid "Add folder"
-msgstr "Ordner hinzufügen"
-
-#: privatemsg.module:327
-msgid "Create new folder"
-msgstr "Neuen Ordner erstellen"
-
-#: privatemsg.module:333;719
-msgid "Delete folder"
-msgstr "Ordner löschen"
-
-#: privatemsg.module:342;727
-msgid "Empty folder"
-msgstr "Ordner leeren"
-
-#: privatemsg.module:376;391
-msgid "Inbox"
-msgstr "Posteingang"
-
-#: privatemsg.module:383;396
-msgid "Sent messages"
-msgstr "Nachrichten versenden"
-
-#: privatemsg.module:419;420
-msgid "Re:"
-msgstr "Re:"
-
-#: privatemsg.module:433;598;766
-msgid "To"
-msgstr "An"
-
-#: privatemsg.module:439
-msgid "Contacts"
-msgstr "Kontakte"
-
-#: privatemsg.module:452;599;767
-msgid "Subject"
-msgstr "Betreff"
-
-#: privatemsg.module:459
-msgid "Message"
-msgstr "Nachricht"
-
-#: privatemsg.module:478
-msgid "The Recipient field is required."
-msgstr "Der Empfänger Feld wird benötigt."
-
-#: privatemsg.module:486
-msgid "The Recipient does not exist."
-msgstr "De Empfänger existiert nicht"
-
-#: privatemsg.module:490
-msgid "%name does not accept private messages."
-msgstr "%name akzeptiert private Nachrichten nicht"
-
-#: privatemsg.module:494
-msgid "The Subject field is required."
-msgstr "Der Betreff wird benötigt"
-
-#: privatemsg.module:498
-msgid "The Message field is required."
-msgstr "Die Nachricht Feld ist ungültig"
-
-#: privatemsg.module:502
-msgid "The supplied input format is invalid."
-msgstr "Das Eingabeformat ist ungültig"
-
-#: privatemsg.module:507
-msgid "Message sent."
-msgstr "Nachricht versenden"
-
-#: privatemsg.module:562
-msgid "Name"
-msgstr "Name"
-
-#: privatemsg.module:597;766
-msgid "From"
-msgstr "Von"
-
-#: privatemsg.module:600;765
-msgid "Date"
-msgstr "Datum"
-
-#: privatemsg.module:606
-msgid "Reply to this message"
-msgstr "Auf diese Nachricht antworten"
-
-#: privatemsg.module:609
-msgid "Delete this message"
-msgstr "Nachricht löschen"
-
-#: privatemsg.module:609
-msgid "Are you sure to delete this message?"
-msgstr "Bist du dir sicher, dass du diese Nachricht löschen möchtest?"
-
-#: privatemsg.module:612
-msgid "List messages"
-msgstr "Liste der Nachrichten"
-
-#: privatemsg.module:616
-msgid "Error: you can't read this message"
-msgstr "Fehler: du kannst diese Nachricht nicht lesen"
-
-#: privatemsg.module:687
-msgid "Are you sure you want to delete these messages?"
-msgstr "Bist du dir sicher, dass du diese Nachrichten löschen möchtest?"
-
-#: privatemsg.module:721
-msgid "Are you sure you want to delete this folder and all its messages?"
-msgstr "Bist du dir sicher, dass du diesen Ordner und alle darin befindlichen Nachrichten löschen möchtest?"
-
-#: privatemsg.module:729
-msgid "Are you sure you want to delete every message in this folder?"
-msgstr "Bist du sicher, dass du alle Nachrichten in diesem Ordner löschen möchtest?"
-
-#: privatemsg.module:760
-msgid "No messages."
-msgstr "Keine Nachricht"
-
-#: privatemsg.module:170
-msgid "access private messages"
-msgstr "Zugriff auf private Nachrichten"
-
-#: privatemsg.module:0
-msgid "privatemsg"
-msgstr "privatemsg"
-
diff --git a/po/es.po b/po/es.po
deleted file mode 100644
index bb81f65..0000000
--- a/po/es.po
+++ /dev/null
@@ -1,335 +0,0 @@
-# SPANISH translation of DRUPAL privatemsg.module
-# Copyright 2005 Eduin Yezid Carrillo Vega
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: privatemsg.module $Id\n"
-"POT-Creation-Date: \n"
-"PO-Revision-Date: 2005-07-22 09:33-0500\n"
-"Last-Translator: Eduin Yezid Carrillo Vega\n"
-"Language-Team: SPANISH \n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=utf-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: nplurals=2; plural=n != 1;\n"
-"X-Poedit-Language: Spanish\n"
-"X-Poedit-Basepath: C:/projects/drupal/contributions/modules/privatemsg\n"
-"X-Poedit-KeywordsList: t\n"
-"X-Poedit-SearchPath-0: .\n"
-
-#: privatemsg.module:10
-msgid "Allows private messages between users."
-msgstr "Permitir mensajes privados entre usuarios."
-
-#: privatemsg.module:20
-msgid "write to author"
-msgstr "escribir al autor"
-
-#: privatemsg.module:34
-msgid "view inbox"
-msgstr "mensajes privados"
-
-#: privatemsg.module:49
-#: privatemsg.module:56
-#: privatemsg.module:59
-msgid "History"
-msgstr "Historial"
-
-#: privatemsg.module:49
-#: privatemsg.module:56
-#: privatemsg.module:59
-#: privatemsg.module:179
-#: privatemsg.module:276
-msgid "Private messages"
-msgstr "Mensajes Privados"
-
-#: privatemsg.module:49
-msgid "send private message"
-msgstr "enviar mensaje privado"
-
-#: privatemsg.module:56
-msgid "login or register to send private messages to this user"
-msgstr "inicie sesión o registrese para enviar mensajes privado a este usuario"
-
-#: privatemsg.module:59
-#, php-format
-msgid "login to send private messages to this user"
-msgstr "inicie sesión para enviar mensajes privados a este usuario"
-
-#: privatemsg.module:67
-msgid "Allow private messages"
-msgstr "Permitir mensajes privados"
-
-#: privatemsg.module:67
-msgid "Check this box to allow users to send you private messages."
-msgstr "Seleccione esta opción para permitir a otros usuarios que le envíen mensajes privados."
-
-#: privatemsg.module:68
-msgid "Receive daily e-mail for unread messages"
-msgstr "Recibir una notificación diaria de mensajes sin leer"
-
-#: privatemsg.module:68
-msgid "Check this box to receive e-mail notification for unread messages. Only one e-mail will be sent per day."
-msgstr "Seleccione esta opción para recibir una notificación vía correo electrónico del número de mensajes sin leer. Solo se enviará un mensaje diariamente."
-
-#: privatemsg.module:69
-msgid "Private message settings"
-msgstr "Opciones de mensajes privados"
-
-#: privatemsg.module:79
-msgid "Private messaging max rate"
-msgstr "Frecuencia máxima de mensajes privados"
-
-#: privatemsg.module:79
-msgid "Max submit rate for private messaging. To prevent abuse."
-msgstr "Frecuancia máxima de envío de mensajes privados. Sirve para evitar abusos."
-
-#: privatemsg.module:80
-msgid "Sent message status"
-msgstr "Estado de envío del mensaje"
-
-#: privatemsg.module:80
-msgid "Disabled"
-msgstr "Desactivado"
-
-#: privatemsg.module:80
-msgid "Enabled"
-msgstr "Activado"
-
-#: privatemsg.module:80
-msgid "If enabled users can see whether a message has been read or not."
-msgstr "Si está habilitado, los usuarios podrán ver si un mensaje ha sido leído o no."
-
-#: privatemsg.module:82
-msgid "Messages per page"
-msgstr "Mensajes por página"
-
-#: privatemsg.module:82
-msgid "The maximum number of messages displayed per page; links to browse messages automatically appear."
-msgstr "El número máximo de mensajes mostrados por página; los enlaces para navegar los otros mensajes serán agregados automáticamente."
-
-#: privatemsg.module:84
-msgid "Display link with posts"
-msgstr "Mostrar enlace con mensajes"
-
-#: privatemsg.module:84
-msgid "Provide a link to send private messages to users with posts they start."
-msgstr "Crea un enlace para enviar mensajes privados a los usuarios que han creado contenidos."
-
-#: privatemsg.module:85
-msgid "Display link with comments"
-msgstr "Mostrar enlace con comentarios"
-
-#: privatemsg.module:85
-msgid "Provide a link to send private messages to users with their comments."
-msgstr "Crea un enlace para enviar mensajes privados a los usuarios junto a sus comentarios."
-
-#: privatemsg.module:86
-msgid "\"Write to author\" links"
-msgstr "Enlaces \"Escribir al autor\""
-
-#: privatemsg.module:144
-#, php-format
-msgid "New private messages at %site."
-msgstr "Nuevos mensajes privados en %site."
-
-#: privatemsg.module:145
-#, fuzzy
-msgid ""
-"Hi %name,\n"
-"This is an automatic reminder from the site %site. You have %new unread private messages.\n"
-"\n"
-"To read your messages, follow this link:\n"
-"%link1\n"
-"\n"
-"If you don't want to receive these email again, change your preferences here:\n"
-"%link2"
-msgstr ""
-"Hola %name,\n"
-"este es un recordatorio automático del sitio %site. Tiene %new mensajes privados sin leer.\n"
-"\n"
-"Para leer los mensajes, siga este enlace:\n"
-"%link1\n"
-"\n"
-"Si no desea recibir este mensaje otra vez, cambie la preferencias para su usuario aquí:\n"
-"%link2\n"
-"\n"
-
-#: privatemsg.module:183
-msgid "Read message"
-msgstr "Leer mensaje"
-
-#: privatemsg.module:184
-#: privatemsg.module:192
-#: privatemsg.module:198
-#: privatemsg.module:205
-#: privatemsg.module:247
-msgid "Home"
-msgstr "Inicio"
-
-#: privatemsg.module:184
-#: privatemsg.module:192
-#: privatemsg.module:198
-#: privatemsg.module:205
-msgid "private messages"
-msgstr "mensajes privados"
-
-#: privatemsg.module:186
-#: privatemsg.module:191
-#: privatemsg.module:197
-#: privatemsg.module:563
-msgid "Write a new message"
-msgstr "Escrbir un nuevo mensaje"
-
-#: privatemsg.module:201
-#: privatemsg.module:368
-msgid "Send private message"
-msgstr "Enviar mensaje privado"
-
-#: privatemsg.module:208
-#: privatemsg.module:576
-msgid "Move to folder"
-msgstr "Mover a la carpeta"
-
-#: privatemsg.module:222
-#: privatemsg.module:565
-msgid "Delete messages"
-msgstr "Borrar mensajes"
-
-#: privatemsg.module:236
-#: privatemsg.module:588
-msgid "New folder"
-msgstr "Nueva carpeta"
-
-#: privatemsg.module:237
-#: privatemsg.module:454
-msgid "Add folder"
-msgstr "Agregar carpeta"
-
-#: privatemsg.module:246
-msgid "Create new folder"
-msgstr "Crear nueva carpeta"
-
-#: privatemsg.module:252
-#: privatemsg.module:582
-msgid "Delete folder"
-msgstr "Borrar carpeta"
-
-#: privatemsg.module:261
-#: privatemsg.module:585
-msgid "Empty folder"
-msgstr "Vaciar carpeta"
-
-#: privatemsg.module:295
-#: privatemsg.module:310
-msgid "Inbox"
-msgstr "Bandeja de Entrada"
-
-#: privatemsg.module:302
-#: privatemsg.module:315
-msgid "Sent messages"
-msgstr "Mensajes Enviados"
-
-#: privatemsg.module:336
-#: privatemsg.module:337
-msgid "Re:"
-msgstr "Re:"
-
-#: privatemsg.module:356
-#: privatemsg.module:482
-#: privatemsg.module:552
-msgid "To"
-msgstr "Para"
-
-#: privatemsg.module:357
-msgid "contacts"
-msgstr "contactos"
-
-#: privatemsg.module:365
-#: privatemsg.module:483
-#: privatemsg.module:553
-msgid "Subject"
-msgstr "Asunto"
-
-#: privatemsg.module:366
-msgid "Message"
-msgstr "Mensaje"
-
-#: privatemsg.module:377
-msgid "The Recipient field is required."
-msgstr "El campo Destinatario es obligatorio."
-
-#: privatemsg.module:385
-msgid "The Recipient does not exist."
-msgstr "El Destinatario no existe."
-
-#: privatemsg.module:389
-msgid "%name does not accept private messages."
-msgstr "%name no acepta mensajes privados."
-
-#: privatemsg.module:393
-msgid "The Subject field is required."
-msgstr "El campo Asunto es obligatorio."
-
-#: privatemsg.module:397
-msgid "The Message field is required."
-msgstr "El campo Mensaje es obligatorio."
-
-#: privatemsg.module:401
-msgid "The supplied input format is invalid."
-msgstr "El formato de entrada suministrado no es válido."
-
-#: privatemsg.module:406
-msgid "Message sent."
-msgstr "Mensaje enviado."
-
-#: privatemsg.module:453
-msgid "Name"
-msgstr "Nombre"
-
-#: privatemsg.module:481
-#: privatemsg.module:552
-msgid "From"
-msgstr "De"
-
-#: privatemsg.module:484
-#: privatemsg.module:551
-msgid "Date"
-msgstr "Fecha"
-
-#: privatemsg.module:488
-msgid "Reply to this message"
-msgstr "Responder este mensaje"
-
-#: privatemsg.module:491
-msgid "Delete this message"
-msgstr "Borrar este mensaje"
-
-#: privatemsg.module:491
-msgid "Are you sure to delete this message?"
-msgstr "¿Está seguro que desea eliminar este mensaje?"
-
-#: privatemsg.module:494
-msgid "List messages"
-msgstr "Lista de mensajes"
-
-#: privatemsg.module:498
-msgid "Error: you can't read this message"
-msgstr "Error: no puede leer este mensaje"
-
-#: privatemsg.module:546
-msgid "No messages
"
-msgstr "No hay mensajes
"
-
-#: privatemsg.module:565
-msgid "Are you sure you want to delete these messages?"
-msgstr "¿Está seguro que desea eliminar estos mensajes?"
-
-#: privatemsg.module:582
-msgid "Are you sure you want to delete this folder and all its messages?"
-msgstr "¿Está seguro que desea eliminar esta carpeta y todos sus mensajes?"
-
-#: privatemsg.module:585
-msgid "Are you sure you want to delete every message in this folder?"
-msgstr "¿Está seguro que desea eliminar este cada mensaje de esta carpeta?"
-
diff --git a/po/he.po b/po/he.po
deleted file mode 100644
index bb474b3..0000000
--- a/po/he.po
+++ /dev/null
@@ -1,305 +0,0 @@
-# translation of Drupal's privatemsg-module.po to Hebrew
-# Copyright 2006
-# Generated from file: privatemsg.module,v 1.52.2.1 2006/06/11 16:36:05
-#
-# Amnon Levav, 2006.
-msgid ""
-msgstr ""
-"Project-Id-Version: he\n"
-"POT-Creation-Date: 2006-06-12 16:03+0200\n"
-"PO-Revision-Date: 2006-10-19 16:28+0200\n"
-"Last-Translator: Amnon Levav \n"
-"Language-Team: \n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-
-#: privatemsg.module:10
-msgid "The private messaging module allows users to send messages to each other without having to share email addresses. An inbox link will appear in the navigation menu. The \"write to author\" links are included in posts, allowing users to write a private message instead of commenting openly. Allowing users to communicate directly is an important part of building the strength of the community."
-msgstr ""
-
-#: privatemsg.module:11
-msgid "Users can also select whether to receive email notices of new messages by editing their user profile. The contacts list contains only users that you have previously messaged. To contact users not in your list, you need to know their local user name. Administrators can set messaging options such as frequency of emails, message status display, and number of messages to display per page. They can also configure 'Write to Author' options."
-msgstr ""
-
-#: privatemsg.module:12
-msgid "You can
\n\n- administer privatemsg at administer >> settings >> private message.
\n- view your private messages at view inbox.
\n"
-msgstr ""
-
-#: privatemsg.module:17
-msgid "For more information please read the configuration and customization handbook Privatemsg page."
-msgstr ""
-
-#: privatemsg.module:20
-msgid "Allows private messages between users."
-msgstr "מאפשר הודעות פרטיות בין משתמשים"
-
-#: privatemsg.module:36
-msgid "write to author"
-msgstr "כתוב למחבר"
-
-#: privatemsg.module:55
-msgid "my inbox"
-msgstr "דואר נכנס"
-
-#: privatemsg.module:70;79;84;264;362
-msgid "Private messages"
-msgstr "הודעות פרטיות"
-
-#: privatemsg.module:71
-msgid "send private message"
-msgstr "שלח הודעה פרטית"
-
-#: privatemsg.module:80
-msgid "login or register to send private messages to this user"
-msgstr "כדי לשלוח הודעה פרטית למשתמש זה, יש %name להיכנס או להצטרף.\r\n"
-
-#: privatemsg.module:85
-msgid "login to send private messages to this user"
-msgstr "למשלוח הודעה פרטית, יש להיכנס"
-
-#: privatemsg.module:96
-msgid "Private message settings"
-msgstr "הגדרות הודעות פרטיות"
-
-#: privatemsg.module:102
-msgid "Allow private messages"
-msgstr "אפשר הודעות פרטיות"
-
-#: privatemsg.module:104
-msgid "Check this box to allow users to send you private messages."
-msgstr "סימון תיבה זו מאפשר לחברי האתר לשלוח "
-"לך הודעות פרטיות."
-
-#: privatemsg.module:108
-msgid "Receive daily e-mail for unread messages"
-msgstr "קבל הודעה בדוא\"ל אם יש הודעות פרטיות שטרם נקראו"
-
-#: privatemsg.module:110
-msgid "Check this box to receive e-mail notification for unread messages. Only one e-mail will be sent per day."
-msgstr "יש לסמן תיבה כדי לקבל התרעה יומית בדוא\"ל עבור הודעות פרטיות שלא נקראו. תישלח רק הודעת דוא\"ל אחת ביום."
-
-#: privatemsg.module:124
-msgid "Private messaging max rate"
-msgstr "קצב מקסימלי להודעות פרטיות"
-
-#: privatemsg.module:127
-msgid "Max submit rate for private messaging. To prevent abuse."
-msgstr "קצב ההגשה המקסימלי של הודעות פרטיות. מיועד למניעת שימוש לרעה."
-
-#: privatemsg.module:131
-msgid "Sent message status"
-msgstr "תצוגת מצב משלוח"
-
-#: privatemsg.module:133
-msgid "Disabled"
-msgstr "מבוטל"
-
-#: privatemsg.module:133
-msgid "Enabled"
-msgstr "מאופשר"
-
-#: privatemsg.module:134
-msgid "If enabled users can see whether a message has been read or not."
-msgstr "אם מאופשר, חברי האתר יכולים לראות אם הודעה נקראה או לא."
-
-#: privatemsg.module:138
-msgid "Messages per page"
-msgstr "הודעות לעמוד"
-
-#: privatemsg.module:141
-msgid "The maximum number of messages displayed per page; links to browse messages automatically appear."
-msgstr "המספר המקסימלי של הודעות שיוצגו לעמוד; קישורים לדפדוף בהודעות יופיעו אוטומטית."
-
-#: privatemsg.module:146
-msgid "\"Write to author\" links"
-msgstr "קישורי ''כתוב למחבר''"
-
-#: privatemsg.module:150
-msgid "Display link with posts"
-msgstr "הצג קישור בפרסומים"
-
-#: privatemsg.module:153
-msgid "Provide a link to send private messages to users with posts they start."
-msgstr "הצג קישור למשלוח הודעות פרטיות לחברי האתר עבור כל פרסום שאותו הם יצרו."
-
-#: privatemsg.module:157
-msgid "Display link with comments"
-msgstr "הצג קישור בתגובות"
-
-#: privatemsg.module:160
-msgid "Provide a link to send private messages to users with their comments."
-msgstr "הצג קישור למשלוח הודעות פרטיות לחברי האתר עבור התגובות שלהם. "
-
-#: privatemsg.module:219
-msgid "New private messages at %site."
-msgstr "הודעות פרטיות חדשות באתר %site."
-
-#: privatemsg.module:220
-msgid "Hi %name,\nThis is an automatic reminder from the site %site. You have %new unread private messages.\n\nTo read your messages, follow this link:\n%link1\n\nIf you don't want to receive these email again, change your preferences here:\n%link2"
-msgstr "שלום %name,\nזו תזכורת אוטומטית מאתר %site. יש לך %new הודעות שלא נקראו.\n\nכדי לקרוא את ההודעות, יש ללחוץ על הקישור הבא:\n%link1\n\nאם אינך רוצה לקבל הודעות כאלו שוב, תוכל\י לשנות את ההעדפות שלך כאן:\n%link2"
-
-#: privatemsg.module:256;287;471
-msgid "Send private message"
-msgstr "שלח הודעה פרטית"
-
-#: privatemsg.module:268
-msgid "Read message"
-msgstr "תוכן ההודעה"
-
-#: privatemsg.module:269;277;284;291;333
-msgid "Home"
-msgstr "בית"
-
-#: privatemsg.module:269;277;284;291
-msgid "private messages"
-msgstr "הודעות פרטיות"
-
-#: privatemsg.module:271;276;283;719
-msgid "Write a new message"
-msgstr "כתוב הודעה חדשה"
-
-#: privatemsg.module:294;709
-msgid "Move to folder"
-msgstr "העבר לתיקיה"
-
-#: privatemsg.module:308;695
-msgid "Delete messages"
-msgstr "מחק הודעות"
-
-#: privatemsg.module:322;748
-msgid "New folder"
-msgstr "תיקייה חדשה"
-
-#: privatemsg.module:323;572
-msgid "Add folder"
-msgstr "הוסף תיקיה"
-
-#: privatemsg.module:332
-msgid "Create new folder"
-msgstr "צור תיקייה חדשה"
-
-#: privatemsg.module:338;729
-msgid "Delete folder"
-msgstr "מחק תיקיה"
-
-#: privatemsg.module:347;737
-msgid "Empty folder"
-msgstr "רוקן תיקיה"
-
-#: privatemsg.module:380;395
-msgid "Inbox"
-msgstr "דואר נכנס"
-
-#: privatemsg.module:387;400
-msgid "Sent messages"
-msgstr "הודעות שנשלחו"
-
-#: privatemsg.module:423;424
-msgid "Re:"
-msgstr "בעניין:"
-
-#: privatemsg.module:437;602;776
-msgid "To"
-msgstr "אל:"
-
-#: privatemsg.module:443
-msgid "Contacts"
-msgstr "אנשי קשר"
-
-#: privatemsg.module:456;603;777
-msgid "Subject"
-msgstr "נושא"
-
-#: privatemsg.module:463
-msgid "Message"
-msgstr "הודעה"
-
-#: privatemsg.module:482
-msgid "The Recipient field is required."
-msgstr "אל מי ההודעה נשלחת? שזה זה הושאר ריק."
-
-#: privatemsg.module:490
-msgid "The Recipient does not exist."
-msgstr "מקבל ההודעה אינו קיים."
-
-#: privatemsg.module:494
-msgid "%name does not accept private messages."
-msgstr "%name לא מקבל הודעות פרטיות."
-
-#: privatemsg.module:498
-msgid "The Subject field is required."
-msgstr "חובה להכניס נושא להודעה."
-
-#: privatemsg.module:502
-msgid "The Message field is required."
-msgstr "חובה להכניס תוכן לגוף ההודעה."
-
-#: privatemsg.module:506
-msgid "The supplied input format is invalid."
-msgstr "מבנה הקלט אינו תקין."
-
-#: privatemsg.module:511
-msgid "Message sent."
-msgstr "ההודעה נשלחה."
-
-#: privatemsg.module:566
-msgid "Name"
-msgstr "שם"
-
-#: privatemsg.module:601;776
-msgid "From"
-msgstr "מאת"
-
-#: privatemsg.module:604;775
-msgid "Date"
-msgstr "תאריך"
-
-#: privatemsg.module:612
-msgid "Reply to this message"
-msgstr "השב להודעה זו"
-
-#: privatemsg.module:615
-msgid "Sender does not accept replies"
-msgstr "שולח ההודעה אינו מקבל תשובות."
-
-#: privatemsg.module:619
-msgid "Delete this message"
-msgstr "מחק הודעה זו"
-
-#: privatemsg.module:619
-msgid "Are you sure to delete this message?"
-msgstr "האמנם ברצונך למחוק הודעה זו?"
-
-#: privatemsg.module:622
-msgid "List messages"
-msgstr "בחזרה לתא דואר נכנס"
-
-#: privatemsg.module:626
-msgid "Error: you can't read this message"
-msgstr "שגיאה: אינך יכול לקרוא הודעה זו"
-
-#: privatemsg.module:697
-msgid "Are you sure you want to delete these messages?"
-msgstr "האמנם ברצונך למחוק הודעות אלו?"
-
-#: privatemsg.module:731
-msgid "Are you sure you want to delete this folder and all its messages?"
-msgstr "האמנם ברצונך למחוק את התיקיה הזו ואת כל ההודעות שבה?"
-
-#: privatemsg.module:739
-msgid "Are you sure you want to delete every message in this folder?"
-msgstr "האמנם ברצונך למחוק את כל ההודעות בתיקיה זו?"
-
-#: privatemsg.module:770
-msgid "No messages."
-msgstr "אין הודעות."
-
-#: privatemsg.module:170
-msgid "access private messages"
-msgstr "גישה להודעות פרטיות"
-
-#: privatemsg.module:0
-msgid "privatemsg"
-msgstr "הודעות פרטיות"
-
diff --git a/po/it.po b/po/it.po
deleted file mode 100644
index d91fe72..0000000
--- a/po/it.po
+++ /dev/null
@@ -1,346 +0,0 @@
-# Exported from Drupal
-msgid ""
-msgstr ""
-"Project-Id-Version: Drupal-4.7\n"
-"POT-Creation-Date: 2004-11-10 22:34+0100\n"
-"PO-Revision-Date: 2006-10-18 17:08+0100\n"
-"Last-Translator: Uccio \n"
-"Language-Team: www.drupalitalia.org \n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=utf-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: nplurals=2; plural=n != 1;\n"
-"X-Poedit-Language: Italian\n"
-"X-Poedit-Country: ITALY\n"
-
-#: privatemsg.module:10
-msgid "The private messaging module allows users to send messages to each other without having to share email addresses. An inbox link will appear in the navigation menu. The \"write to author\" links are included in posts, allowing users to write a private message instead of commenting openly. Allowing users to communicate directly is an important part of building the strength of the community."
-msgstr "Il modulo Messaggi Privati consente la spedizione di messagi tra utenti senza la necessita di condividere caselle email. Un link alla casella apparirà nel menù di navigazione. Il collegamento \"scrivi all'autore\" verrà incluso in ogni post, consentendo all'utente di scrivere un messaggio privato invece di fare un commento pubblico. Consentire agli utenti di comunicare direttamente è importante ed aumenta il legame di unione della comunità stessa."
-
-#: privatemsg.module:11
-msgid "Users can also select whether to receive email notices of new messages by editing their user profile. The contacts list contains only users that you have previously messaged. To contact users not in your list, you need to know their local user name. Administrators can set messaging options such as frequency of emails, message status display, and number of messages to display per page. They can also configure 'Write to Author' options."
-msgstr "Gli utenti possono decidere se ricevere un email di avviso per i messagi non letti nel loro profilo utente. La lista dei contatti che viene visualizzata contiene solo il nome degli utenti a cui si è già scritto, se devi scrivere un messaggio devi conoscere il nome dell'utente.L'amministratore puo decidere quanti messaggi vedere per pagina, la frequenza massimo di invio dei messaggi e se mostrare un collegamento per l'invio di messaggi all'autore del post."
-
-#: privatemsg.module:12
-msgid ""
-"You can
\r\n"
-"\r\n"
-"- administer privatemsg at administer >> settings >> private message.
\r\n"
-"- view your private messages at view inbox.
\r\n"
-msgstr ""
-"Puoi
\r\n"
-"\r\n"
-"- Configurare i messaggi privati at administer >> settings >> private message.
\r\n"
-"- vedere i tui messaggi privati view inbox.
\r\n"
-
-#: privatemsg.module:17
-msgid "For more information please read the configuration and customization handbook Privatemsg page."
-msgstr "Per maggiori informazioni, per favore leggi il manuale di configurazione e personalizzazione qui "
-
-#: privatemsg.module:20
-msgid "Allows private messages between users."
-msgstr "Consenti lo scambio di messaggi privati tra utenti."
-
-#: privatemsg.module:36
-msgid "write to author"
-msgstr "scrivi all'autore"
-
-#: privatemsg.module:55
-msgid "my inbox"
-msgstr "La mia casella"
-
-#: privatemsg.module:70
-#: ;79;84;264;362
-msgid "Private messages"
-msgstr "Messaggi privati"
-
-#: privatemsg.module:71
-msgid "send private message"
-msgstr "invia messaggio privato"
-
-#: privatemsg.module:80
-msgid "login or register to send private messages to this user"
-msgstr "login or registrati per inviare un messaggio privato a questo utente."
-
-#: privatemsg.module:85
-msgid "login to send private messages to this user"
-msgstr "accedi per mandare un messaggio privato a questo utente "
-
-#: privatemsg.module:96
-msgid "Private message settings"
-msgstr "Impostazioni messaggio privato"
-
-#: privatemsg.module:102
-msgid "Allow private messages"
-msgstr "Consenti messaggi privati"
-
-#: privatemsg.module:104
-msgid "Check this box to allow users to send you private messages."
-msgstr "Spunta questa casellina per consentire agli utenti di spedirti messaggi privati."
-
-#: privatemsg.module:108
-msgid "Receive daily e-mail for unread messages"
-msgstr "Ricevi una e-mail al giorno in caso di messaggi non letti"
-
-#: privatemsg.module:110
-msgid "Check this box to receive e-mail notification for unread messages. Only one e-mail will be sent per day."
-msgstr "Seleziona questa casella per ricevere un avviso via e-mail per i messaggi non letti. Verrà inviata una sola e-mail al giorno."
-
-#: privatemsg.module:124
-msgid "Private messaging max rate"
-msgstr "Frequenza massima messaggi privati"
-
-#: privatemsg.module:127
-msgid "Max submit rate for private messaging. To prevent abuse."
-msgstr "Frequenza massima di invio dei messaggi. Serve a prevenire gli abusi."
-
-#: privatemsg.module:131
-msgid "Sent message status"
-msgstr "Spedisci stato messaggio inviato"
-
-#: privatemsg.module:133
-msgid "Disabled"
-msgstr "Disattivato"
-
-#: privatemsg.module:133
-msgid "Enabled"
-msgstr "Attivo"
-
-#: privatemsg.module:134
-msgid "If enabled users can see whether a message has been read or not."
-msgstr "Se attivo gli utenti possono vedere se un messaggio stato letto o no."
-
-#: privatemsg.module:138
-msgid "Messages per page"
-msgstr "Messaggi per pagina"
-
-#: privatemsg.module:141
-msgid "The maximum number of messages displayed per page; links to browse messages automatically appear."
-msgstr "Il numero massimo di messaggi mostrati per pagina; i collegamenti per navigare tra i messaggi appariranno automaticamente."
-
-#: privatemsg.module:146
-msgid "\"Write to author\" links"
-msgstr "Collegamenti \"Messaggio all'autore\""
-
-#: privatemsg.module:150
-msgid "Display link with posts"
-msgstr "Mostra collegamento nei messaggi"
-
-#: privatemsg.module:153
-msgid "Provide a link to send private messages to users with posts they start."
-msgstr "Crea un collegamento per inviare messaggi privati agli utenti a partire dai messaggi."
-
-#: privatemsg.module:157
-msgid "Display link with comments"
-msgstr "Mostra collegamento nei commenti"
-
-#: privatemsg.module:160
-msgid "Provide a link to send private messages to users with their comments."
-msgstr "Crea un collegamento per inviare messaggi privati agli utenti a partire dai commenti."
-
-#: privatemsg.module:219
-msgid "New private messages at %site."
-msgstr "Nuovo messaggio privato su %site."
-
-#: privatemsg.module:220
-msgid ""
-"Hi %name,\r\n"
-"This is an automatic reminder from the site %site. You have %new unread private messages.\r\n"
-"\r\n"
-"To read your messages, follow this link:\r\n"
-"%link1\r\n"
-"\r\n"
-"If you don't want to receive these email again, change your preferences here:\r\n"
-"%link2"
-msgstr ""
-"Ciao %name,\n"
-" questa mail un promemoria automatico dal sito %site. Hai %new messaggi privati non letti.\n"
-"\n"
-" Per leggere i tuoi messatti, seleziona questo collegamento:\n"
-"%link1\n"
-" \n"
-"%link2\n"
-" \n"
-" "
-
-#: privatemsg.module:256
-#: ;287;471
-msgid "Send private message"
-msgstr "Invia messaggio privato"
-
-#: privatemsg.module:268
-msgid "Read message"
-msgstr "Leggi messaggio"
-
-#: privatemsg.module:269
-#: ;277;284;291;333
-msgid "Home"
-msgstr "Home"
-
-#: privatemsg.module:269
-#: ;277;284;291
-msgid "private messages"
-msgstr "messaggi privati"
-
-#: privatemsg.module:271
-#: ;276;283;719
-msgid "Write a new message"
-msgstr "Scrivi nuovo messaggio"
-
-#: privatemsg.module:294
-#: ;709
-msgid "Move to folder"
-msgstr "Sposta nella cartella"
-
-#: privatemsg.module:308
-#: ;695
-msgid "Delete messages"
-msgstr "Elimina messaggi"
-
-#: privatemsg.module:322
-#: ;748
-msgid "New folder"
-msgstr "Nuova cartella"
-
-#: privatemsg.module:323
-#: ;572
-msgid "Add folder"
-msgstr "Aggiungi cartella"
-
-#: privatemsg.module:332
-msgid "Create new folder"
-msgstr "Crea nuova cartella"
-
-#: privatemsg.module:338
-#: ;729
-msgid "Delete folder"
-msgstr "Elimina cartella"
-
-#: privatemsg.module:347
-#: ;737
-msgid "Empty folder"
-msgstr "Vuota cartella"
-
-#: privatemsg.module:380
-#: ;395
-msgid "Inbox"
-msgstr "Posta in arrivo"
-
-#: privatemsg.module:387
-#: ;400
-msgid "Sent messages"
-msgstr "Messaggi inviati"
-
-#: privatemsg.module:423
-#: ;424
-msgid "Re:"
-msgstr "R:"
-
-#: privatemsg.module:437
-#: ;602;776
-msgid "To"
-msgstr "A"
-
-#: privatemsg.module:443
-msgid "Contacts"
-msgstr "Contatti"
-
-#: privatemsg.module:456
-#: ;603;777
-msgid "Subject"
-msgstr "Soggetto"
-
-#: privatemsg.module:463
-msgid "Message"
-msgstr "Messaggio"
-
-#: privatemsg.module:482
-msgid "The Recipient field is required."
-msgstr "Il campo Destinatario richiesto."
-
-#: privatemsg.module:490
-msgid "The Recipient does not exist."
-msgstr "Il campo Destinatario non esiste."
-
-#: privatemsg.module:494
-msgid "%name does not accept private messages."
-msgstr "%name non accetta messaggi privati"
-
-#: privatemsg.module:498
-msgid "The Subject field is required."
-msgstr "Il campo Soggetto richiesto."
-
-#: privatemsg.module:502
-msgid "The Message field is required."
-msgstr "Il campo Messaggio richiesto."
-
-#: privatemsg.module:506
-msgid "The supplied input format is invalid."
-msgstr "Il formato di input non valido"
-
-#: privatemsg.module:511
-msgid "Message sent."
-msgstr "Messaggio inviato."
-
-#: privatemsg.module:566
-msgid "Name"
-msgstr "Nome"
-
-#: privatemsg.module:601
-#: ;776
-msgid "From"
-msgstr "Da"
-
-#: privatemsg.module:604
-#: ;775
-msgid "Date"
-msgstr "Data"
-
-#: privatemsg.module:612
-msgid "Reply to this message"
-msgstr "Rispondi al messaggio"
-
-#: privatemsg.module:615
-msgid "Sender does not accept replies"
-msgstr "Chi ti ha scritto non accetta risposte"
-
-#: privatemsg.module:619
-msgid "Delete this message"
-msgstr "Elimina il messaggio"
-
-#: privatemsg.module:619
-msgid "Are you sure to delete this message?"
-msgstr "Sei sicuro di voler eliminare questo messaggio?"
-
-#: privatemsg.module:622
-msgid "List messages"
-msgstr "Elenca messaggi"
-
-#: privatemsg.module:626
-msgid "Error: you can't read this message"
-msgstr "Errore: non puoi leggere questo messaggio"
-
-#: privatemsg.module:697
-msgid "Are you sure you want to delete these messages?"
-msgstr "Sei sicuro di voler eliminare questi messaggi?"
-
-#: privatemsg.module:731
-msgid "Are you sure you want to delete this folder and all its messages?"
-msgstr "Sei sicuro di voler eliminare questa cartella con tutti i messaggi?"
-
-#: privatemsg.module:739
-msgid "Are you sure you want to delete every message in this folder?"
-msgstr "sei sicuro di voler cancellare tutti i messaggi in questa cartella?"
-
-#: privatemsg.module:770
-msgid "No messages."
-msgstr "Nessun messaggio"
-
-#: privatemsg.module:170
-msgid "access private messages"
-msgstr "accede ai messaggi privati"
-
-#: privatemsg.module:0
-msgid "privatemsg"
-msgstr "Messaggi privati"
-
diff --git a/po/ja.po b/po/ja.po
deleted file mode 100644
index f995326..0000000
--- a/po/ja.po
+++ /dev/null
@@ -1,458 +0,0 @@
-# $Id$
-# -----------------------------------------------------------------------------
-# Japanese translation of Drupal (privatemsg.module)
-#
-# Copyright (c) 2006-2007 Drupal Japan ( http://drupal.jp/ ) /
-# Drupal Nippon ( http://drupon.org/ ) /
-# Takafumi ( jp.drupal@imagine **reverse order**)
-#
-# Generated from file:
-# privatemsg.module,v 1.70.2.24 2007/03/08 00:33:14 mindless
-# privatemsg.info,v 1.1 2007/01/27 00:56:10 mindless
-#
-# -----------------------------------------------------------------------------
-msgid ""
-msgstr ""
-"POT-Creation-Date: 2007-04-15 18:28+0900\n"
-"Last-Translator: Takafumi \n"
-"Language-Team: Drupal Japan / Drupal Nippon\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: nplurals=2; plural=(n!=1);\n"
-
-#: privatemsg.module:14
-msgid "To move the inbox link to another menu location, enable this menu item and set the location, then disable this menu item again. To change the text for the inbox link, visit privatemsg settings."
-msgstr "「受信箱」を別のメニューに移動したい場合、このメニューアイテムの配置と有効化を行い、その後、再びこのメニューアイテムを無効にしてください。 「受信箱」のテキスト変更は、 プライベートメッセージの設定ページで行えます。"
-
-#: privatemsg.module:19
-msgid "The private messaging module allows users to send messages to each other without having to share email addresses. An inbox link will appear in the navigation menu. The \"write to author\" links are included in posts, allowing users to write a private message instead of commenting openly. Allowing users to communicate directly is an important part of building the strength of the community."
-msgstr "プライベートメッセージモジュールは、メールを介することなくユーザ同士がメッセージを送信できるようにします。 ナビゲーションメニューには、「受信箱」リンクが表示されます。 投稿に表示される「投稿者へPM送信」リンクは、ユーザが表立ってコメントする代わりにプライベートメッセージを書けるようにします。 ユーザ同士が直接更新できることは、コミュニティの強さを構築する上で重要な役割を占めます。"
-
-#: privatemsg.module:20
-msgid "Users can also select whether to receive email notices of new messages by editing their user profile. The contacts list contains only users that you have previously messaged. To contact users not in your list, you need to know their local user name. Administrators can set messaging options such as frequency of emails, message status display, and number of messages to display per page. They can also configure 'Write to Author' options."
-msgstr "ユーザは自身のユーザプロフィールを編集して、新着メッセージがあった際にメール通知を受け取るかどうかを選択できます。 コンタクトリストには、以前にメッセージを送信したことのあるユーザのみが含まれます。 リストにないユーザにメッセージを送信したい場合は、そのユーザ名がわかっている必要があります。 管理者は、メール送信の頻度やメッセージ状況の表示、ページあたりのメッセージ表示数などのオプションを設定できます。 また、コンテンツタイプの設定を通じて、「投稿者へPM送信」リンクの設定を行うこともできます。"
-
-# 削除し忘れ? リンク先は無効
-#: privatemsg.module:21
-msgid ""
-"You can
\n"
-"
';
- $output .= ''. t('Users can also select whether to receive email notices of new messages by editing their user profile. The contacts list contains only users that you have previously messaged. To contact users not in your list, you need to know their local user name. Administrators can set messaging options such as frequency of emails, message status display, and number of messages to display per page. They can also configure \'Write to Author\' options.') .'
';
- $output .= t('You can
-';
- $output .= ''. t('For more information please read the configuration and customization handbook Privatemsg page.', array('%privatemsg' => 'http://www.drupal.org/handbook/modules/privatemsg/')) .'
';
- return $output;
- }
-}
-
-/**
- * Implementation of hook_link().
- */
-function privatemsg_link($type, $node = 0, $main = 0) {
- global $user;
- static $access = array();
- $links = array();
- if (user_access('access private messages') && ($type == 'node' || $type == 'comment') && variable_get("privatemsg_link_$type", 0) && (isset($user->privatemsg_allow) ? $user->privatemsg_allow : 1)) {
- if (!isset($access[$node->uid])) {
- $author = user_load(array('uid' => $node->uid));
- $access[$node->uid] = user_access('access private messages', $author) && $author->uid && (isset($author->privatemsg_allow) ? $author->privatemsg_allow : 1);
- }
- if ($access[$node->uid]) {
- $links['privatemsg_write_to_author'] = array(
- 'title' => t('Write to author'),
- 'href' => "privatemsg/msgto/$node->uid"
- );
- }
- }
- return $links;
-}
-
-/**
- * Implementation of hook_menu().
- */
-function privatemsg_menu($may_cache) {
- global $user;
- $items = array();
-
- if ($may_cache) {
- $items[] = array('path' => 'admin/settings/privatemsg',
- 'title' => t('Privatemsg'),
- 'description' => t('Configure Privatemsg settings.'),
- 'callback' => 'drupal_get_form',
- 'callback arguments' => array('privatemsg_configure'));
- }
- else {
- $new = (int)_privatemsg_get_new_messages();
- $items[] = array('path' => 'privatemsg',
- 'title' => t('My inbox') . ($new ? ' ('. $new .')' : ''),
- 'callback' => 'privatemsg_page',
- 'access' => user_access('access private messages'),
- 'type' => $user->uid && (isset($user->privatemsg_allow) ? $user->privatemsg_allow : 1) ? MENU_DYNAMIC_ITEM : MENU_CALLBACK);
- $items[] = array('path' => 'privatemsg/autocomplete',
- 'title' => t('Privatemsg autocomplete'),
- 'callback' => 'privatemsg_autocomplete',
- 'access' => user_access('access private messages'),
- 'type' => MENU_CALLBACK);
-
- if ($new && (isset($user->privatemsg_setmessage_notify) ? $user->privatemsg_setmessage_notify : 1)) {
- $m = drupal_set_message();
- if (empty($m)) {
- drupal_set_message(strtr(format_plural($new, 'You have one new private message', 'You have @count new private messages'), array('%url' => url('privatemsg'))));
- }
- }
- }
- return $items;
-}
-
-/**
- * Implementation of hook_user().
- */
-function privatemsg_user($type, &$edit, &$user, $category = NULL) {
- switch ($type) {
- case 'view':
- if (user_access('access private messages') && (isset($user->privatemsg_allow) ? $user->privatemsg_allow : 1)) {
- return array(t('Private messages') => array(array(
- 'value' => l(t('send private message'), 'privatemsg/msgto/'. $user->uid),
- 'class' => 'send-message')));
- }
- else if ($GLOBALS['user']->uid) {
- return;
- }
- else if (isset($user->privatemsg_allow) ? $user->privatemsg_allow : 1) {
- if (variable_get('user_register', 1)) {
- return array(t('Private messages') => array(array(
- 'value' => t('login or register to send private messages to this user', array('%login' => url('user/login'), '%register' => url('user/register'))),
- 'class' => 'need-login')));
- }
- else {
- return array(t('Private messages') => array(array(
- 'value' => t('login to send private messages to this user', array('%login' => url('user/login'))),
- 'class' => 'need-login')));
- }
- }
- break;
-
- case 'form':
- if (user_access('access private messages') && $category == 'account') {
- $form = array();
- $form['privatemsg_settings'] = array(
- '#type' => 'fieldset',
- '#title' => t('Private message settings'),
- '#weight' => 4,
- '#collapsible' => TRUE
- );
- $form['privatemsg_settings']['privatemsg_allow'] = array(
- '#type' => 'checkbox',
- '#title' => t('Allow private messages'),
- '#default_value' => isset($edit['privatemsg_allow']) ? $edit['privatemsg_allow'] : 1,
- '#description' => t('Check this box to allow users to send you private messages.')
- );
- $form['privatemsg_settings']['privatemsg_setmessage_notify'] = array(
- '#type' => 'checkbox',
- '#title' => t('Aggressive notification of new messages'),
- '#default_value' => isset($edit['privatemsg_setmessage_notify']) ? $edit['privatemsg_setmessage_notify'] : 1,
- '#description' => t('Show status message on every page until new messages are read.')
- );
- $form['privatemsg_settings']['privatemsg_mailalert'] = array(
- '#type' => 'radios',
- '#title' => t('Receive e-mail for unread messages'),
- '#options' => array(PRIVATEMSG_MAIL_NONE => t('Never'), PRIVATEMSG_MAIL_DIGEST => t('Daily'), PRIVATEMSG_MAIL_INDIVIDUAL => t('Every message')),
- '#default_value' => isset($edit['privatemsg_mailalert']) ? $edit['privatemsg_mailalert'] : PRIVATEMSG_MAIL_NONE,
- '#description' => t('Select when to receive e-mail notification for unread messages.')
- );
-
- return $form;
- }
- break;
- }
-}
-
-function privatemsg_configure() {
- $form = array();
-
- $form['privatemsg_max_rate'] = array(
- '#type' => 'select',
- '#title' => t('Private messaging max rate'),
- '#default_value' => variable_get('privatemsg_max_rate', 15),
- '#options' => drupal_map_assoc(array(5, 10, 15, 20, 30, 60), 'format_interval'),
- '#description' => t('Max submit rate for private messaging. To prevent abuse.')
- );
- $form['privatemsg_sent_status'] = array(
- '#type' => 'select',
- '#title' => t('Sent message status'),
- '#default_value' => variable_get('privatemsg_sent_status', 1),
- '#options' => array(t('Disabled'), t('Enabled')),
- '#description' => t('If enabled users can see whether a message has been read or not.')
- );
- $form['privatemsg_per_page'] = array(
- '#type' => 'select',
- '#title' => t('Messages per page'),
- '#default_value' => variable_get('privatemsg_per_page', 10),
- '#options' => drupal_map_assoc(array(5, 10, 15, 20, 25, 30, 35, 40, 50, 60, 80, 100)),
- '#description' => t('The maximum number of messages displayed per page; links to browse messages automatically appear.')
- );
-
- $form['links'] = array(
- '#type' => 'fieldset',
- '#title' => t('"Write to author" links')
- );
- $form['links']['privatemsg_link_node'] = array(
- '#type' => 'checkbox',
- '#title' => t('Display link with posts'),
- '#return_value' => 1,
- '#default_value' => variable_get('privatemsg_link_node', 0),
- '#description' => t('Provide a link to send private messages to users with posts they start.')
- );
- $form['links']['privatemsg_link_comment'] = array(
- '#type' => 'checkbox',
- '#title' => t('Display link with comments'),
- '#return_value' => 1,
- '#default_value' => variable_get('privatemsg_link_comment', 0),
- '#description' => t('Provide a link to send private messages to users with their comments.')
- );
-
- return system_settings_form($form);
-}
-
-/**
- * Implementation of hook_perm().
- */
-function privatemsg_perm() {
- return array('access private messages');
-}
-
-/**
- * Implementation of hook_cron().
- */
-function privatemsg_cron() {
- // perform these actions just once per day
- if (variable_get('privatemsg_last_cron', 0) < (time() - 3600*24)) {
- _privatemsg_prune();
- _privatemsg_mailalert();
- variable_set('privatemsg_last_cron', time());
- }
-}
-
-function _privatemsg_prune() {
- // move deleted message older than 1 month to archive table, and optimize table
- $result = db_query("SELECT * FROM {privatemsg} WHERE author_del = 1 AND recipient_del = 1 AND timestamp < '%d'", (time() - 3600*24*30));
- while ($message = db_fetch_object($result)) {
- db_query("INSERT INTO {privatemsg_archive} (id, author, recipient, subject, message, timestamp, hostname, format, folder) VALUES ('%d', '%d', '%d', '%s', '%s', '%d', '%s', '%d', '%d')", $message->id, $message->author, $message->recipient, $message->subject, $message->message, $message->timestamp, $message->hostname, $message->format, $message->folder);
- db_query("DELETE FROM {privatemsg} WHERE id = '%d'", $message->id);
- }
-
- // this is MySQL-specific
- if ($GLOBALS['db_type'] == 'mysql') {
- db_query("OPTIMIZE TABLE {privatemsg}");
- }
-}
-
-function _privatemsg_mailalert() {
- $result = db_query('SELECT COUNT(*) AS c, recipient FROM {privatemsg} WHERE newmsg = 1 AND recipient_del = 0 GROUP BY recipient');
-
- while ($alert = db_fetch_object($result)) {
- $user = user_load(array('uid' => $alert->recipient));
-
- if ((isset($user->privatemsg_allow) ? $user->privatemsg_allow : 1) && isset($user->privatemsg_mailalert) && $user->privatemsg_mailalert == PRIVATEMSG_MAIL_DIGEST && $user->status != 0) {
- _privatemsg_sendmail($user, $alert->c);
- }
- }
-}
-
-function _privatemsg_sendmail($user, $new_count) {
- global $locale;
- static $from, $languages;
- if (!isset($from)) {
- $from = variable_get('site_mail', ini_get('sendmail_from'));
- $languages = array();
- if (function_exists('locale')) {
- $languages = locale_supported_languages();
- $languages = $languages['name'];
- }
- }
- $save_locale = $locale;
-
- // use each user's individual locale
- if (isset($languages[$user->language])) {
- $locale = $user->language;
- }
-
- $subject = t('New private messages at %site.', array('%site' => variable_get('site_name', 'drupal')));
- $message = strtr(format_plural($new_count, 'Hi %name,
-This is an automatic reminder from the site %site. You have received a new private message.
-
-To read your message, follow this link:
-%link1
-
-If you don\'t want to receive these emails again, change your preferences here:
-%link2', 'Hi %name,
-This is an automatic reminder from the site %site. You have @count unread private messages.
-
-To read your messages, follow this link:
-%link1
-
-If you don\'t want to receive these emails again, change your preferences here:
-%link2'), array('%name' => $user->name, '%site' => variable_get('site_name', 'drupal'), '%link1' => url('user/login', 'destination=privatemsg', NULL, 1), '%link2' => url('user/'. $user->uid .'/edit', NULL, NULL, 1)));
-
- drupal_mail('privatemsg_mailalert', $user->mail, $subject, $message, $from, "X-Mailer: Drupal\n");
-
- // revert to previous (site default) locale
- $locale = $save_locale;
-}
-
-function privatemsg_autocomplete($string) {
- $matches = array();
- $result = db_query_range("SELECT name FROM {users} u WHERE LOWER(name) LIKE LOWER('%s%%') AND data NOT LIKE '%\"privatemsg_allow\";s:0%'", $string, 0, 10);
- while ($user = db_fetch_object($result)) {
- $matches[$user->name] = check_plain($user->name);
- }
- print drupal_to_js($matches);
- exit();
-}
-
-function privatemsg_page() {
- global $user;
-
- $breadcrumb = NULL;
- $op = $_POST['op'];
- $edit = $_POST['edit'];
- if (isset($_POST['messages'])) {
- $msg = array_keys($_POST['messages']);
- }
- else {
- $msg = array();
- }
-
- if (empty($op)) {
- $op = arg(1);
- }
- $arg = arg(2);
-
- if (!$user->uid && !in_array($op, array('form', 'msgto', 'send', t('Send private message')))) {
- // If guest is given access to privatemsg, only allow sending messages
- return drupal_access_denied();
- }
-
- switch ($op) {
- case 'list':
- $output = _privatemsg_list($arg);
- $title = t('Private messages');
- break;
- case 'view':
- $output = _privatemsg_view($arg);
- $title = t("Read message");
- $breadcrumb = array(l(t('Home'), ''), l(t('private messages'), 'privatemsg'));
- break;
- case t('Write a new message'):
- $arg = "";
- case 'form':
- case 'reply':
- $output = _privatemsg_form($arg);
- $title = t("Write a new message");
- $breadcrumb = array(l(t('Home'), ''), l(t('private messages'), 'privatemsg'));
- break;
- case 'msgto':
- $msg = (object)$msg;
- $msg->recipient = db_result(db_query("SELECT name FROM {users} WHERE uid = '%d'", $arg));
- $output = _privatemsg_form($msg);
- $title = t("Write a new message");
- $breadcrumb = array(l(t('Home'), ''), l(t('private messages'), 'privatemsg'));
- break;
- case 'send':
- case t('Send private message'):
- $edit['recipient'] = $_POST['recipient'];
- $edit['subject'] = $_POST['subject'];
- $edit['privatemsgbody'] = $_POST['privatemsgbody'];
- $edit['format'] = $_POST['format'];
- $breadcrumb = array(l(t('Home'), ''), l(t('private messages'), 'privatemsg'));
- $output = _privatemsg_edit($edit);
- break;
- case t('Move to folder'):
- if ($edit["folder"] == 0 || db_result(db_query("SELECT fid FROM {privatemsg_folder} WHERE fid = '%d' AND uid = '%d'", $edit["folder"], $user->uid))) {
- // this folder belongs to him
- if ($msg) {
- foreach ($msg as $mid) {
- _privatemsg_move($mid, $edit["folder"]);
- }
- drupal_goto('privatemsg/list/'. $edit['folder']);
- break;
- }
- }
-
- $output = _privatemsg_list();
- break;
- case t('Delete messages'):
- if ($msg) {
- foreach ($msg as $id) {
- _privatemsg_delete($id);
- }
- }
- $output = _privatemsg_list();
- break;
-
- case 'delete':
- _privatemsg_delete($arg);
- $output = _privatemsg_list();
- break;
-
- case t('New folder'):
- case t('Add folder'):
- if (!$edit['name']) {
- $title = t('Create new folder');
- $breadcrumb = array(l(t('Home'), ''), l('Private messages', 'privatemsg'));
- $output = drupal_get_form('privatemsg_new_folder');
- }
- break;
-
- case t('Delete folder'):
- // check ownership
- if (db_result(db_query("SELECT fid FROM {privatemsg_folder} WHERE fid = '%d' AND uid = '%d'", $arg, $user->uid))) {
- db_query("DELETE FROM {privatemsg_folder} WHERE fid = '%d'", $arg);
- db_query("UPDATE {privatemsg} SET recipient_del = 1 WHERE folder = '%d'", $arg);
- }
-
- $output = _privatemsg_list();
- break;
- case t('Empty folder'):
- $fid = $edit["current_folder"];
-
- if ($fid == 1) {
- db_query("UPDATE {privatemsg} SET author_del = 1 WHERE author = '%d'", $user->uid);
- }
- else if ($fid == 0 || db_result(db_query("SELECT fid FROM {privatemsg_folder} WHERE fid = '%d' AND uid = '%d'", $fid, $user->uid))) {
- // check ownership
- db_query("UPDATE {privatemsg} SET recipient_del = 1 WHERE folder = '%d' AND recipient = '%d'", $edit["current_folder"], $user->uid);
- }
-
- $output = _privatemsg_list();
- break;
- default;
- $output = _privatemsg_list();
- $title = t('Private messages');
- break;
- }
- drupal_set_title($title);
- drupal_set_breadcrumb($breadcrumb);
- return $output;
-}
-
-function _privatemsg_list($current_folder = 0) {
- global $user;
-
- if ($current_folder != 1) {
- $result = pager_query("SELECT id, subject, p.timestamp, u.uid, u.name, newmsg FROM {privatemsg} p, {users} u WHERE p.author = u.uid AND p.recipient = %d AND folder = '%s' AND p.recipient_del = 0 ORDER BY p.timestamp DESC", variable_get("privatemsg_per_page", 10), 0, NULL, $user->uid, $current_folder);
-
- if ($current_folder > 0) {
- $folder_name = db_result(db_query("SELECT name FROM {privatemsg_folder} WHERE fid = %d AND uid = %d", $current_folder, $user->uid));
- }
- else {
- $folder_name = t("Inbox");
- }
- }
- else {
- // sent messages
- $result = pager_query("SELECT id, subject, p.timestamp, u.uid, u.name, newmsg FROM {privatemsg} p, {users} u WHERE p.recipient = u.uid AND p.author = %d AND p.author_del = 0 ORDER BY p.timestamp DESC", variable_get("privatemsg_per_page", 10), 0, NULL, $user->uid);
-
- $folder_name = t("Sent messages");
- }
-
- $messages = array();
- while ($message = db_fetch_object($result)) {
- $messages[] = $message;
- }
-
- $folders[] = array(0, t("Inbox"));
- $result = db_query("SELECT fid, name FROM {privatemsg_folder} WHERE uid = %d", $user->uid);
- while ($folder = db_fetch_object($result)) {
- $folders[] = array($folder->fid, $folder->name);
- }
- $folders[] = array(1, t("Sent messages"));
-
- return theme("privatemsg_list", $current_folder, $messages, $folders);
-}
-
-function _privatemsg_format_folder($current, $fid, $name) {
- if ($current == $fid) {
- return array('title' => "$name", 'html' => true);
- }
- return array('title' => $name, 'href' => "privatemsg/list/$fid");
-}
-
-function _privatemsg_form($message = 0) {
- return drupal_get_form('_privatemsg_form_form', $message);
-}
-
-function _privatemsg_form_form($message) {
- global $user;
- $form = array();
-
- if ($message) {
- // This is a reply to another message
- if (!is_object($message)) {
- $message = db_fetch_object(db_query("SELECT subject, message, u.name AS recipient FROM {privatemsg} p, {users} u WHERE u.uid = p.author AND id = '%d' AND recipient = '%d'", $message, $user->uid));
-
- if (!stristr($message->subject, t("Re:"))) {
- $message->subject = t("Re:").' '.$message->subject;
- }
-
- // quoting
- $message->message = "\n".str_replace("\n", "\n> ", "\n".$message->message);
- }
- }
-
- drupal_add_js(drupal_get_path('module', 'privatemsg') .'/privatemsg.js');
-
- $form['recipient'] = array(
- '#prefix' => '',
- '#type' => 'textfield',
- '#title' => t('To'),
- '#default_value' => $message->recipient,
- '#autocomplete_path' => 'privatemsg/autocomplete',
- '#size' => 50,
- '#maxlength' => 64
- );
- $result = db_query("SELECT DISTINCT(name) AS name FROM {privatemsg} p, {users} u WHERE p.author = u.uid AND recipient = '%d' AND p.timestamp > (UNIX_TIMESTAMP(NOW()) - (3600 * 24 * 30)) ORDER BY name", $user->uid);
- $contacts = array(t('Contacts'));
- while ($name = db_fetch_object($result)) {
- $contacts[] = check_plain($name->name);
- }
- if (module_exists('buddylist')) {
- $result = db_query("SELECT u.name FROM {buddylist} b, {users} u WHERE b.buddy = u.uid AND b.uid = '%d'", $user->uid);
- while ($name = db_fetch_object($result)) {
- $buddyname = check_plain($name->name);
- if (!in_array($buddyname, $contacts)) {
- $contacts[] = $buddyname;
- }
- }
- sort($contacts);
- }
- $form['quick'] = array(
- '#type' => 'select',
- '#options' => drupal_map_assoc($contacts),
- '#attributes' => array('style' => 'display: none;'), // hidden unless JS is working
- '#suffix' => '
'
- );
-
- $form['subject'] = array(
- '#type' => 'textfield',
- '#title' => t("Subject"),
- '#default_value' => $message->subject,
- '#size' => 50,
- '#maxlength' => 64
- );
- $form['privatemsgbody'] = array(
- '#type' => 'textarea',
- '#title' => t("Message"),
- '#default_value' => $message->message,
- '#cols' => 80,
- '#rows' => 5
- );
- $form[] = filter_form($message->format);
- $form['op'] = array(
- '#type' => 'submit',
- '#value' => t("Send private message"),
- '#name' => 'op'
- );
-
- return $form;
-}
-
-function _privatemsg_edit($edit) {
- global $user;
-
- if ($edit['recipient'] == '') {
- form_set_error('recipient', t('The Recipient field is required.'));
- return _privatemsg_form((object)$edit);
- }
- else {
- $recipient = user_load(array('name' => $edit['recipient']));
- }
-
- if (!$recipient->uid) {
- form_set_error('recipient', t('The Recipient does not exist.'));
- return _privatemsg_form((object)$edit);
- }
- else if (!(isset($recipient->privatemsg_allow) ? $recipient->privatemsg_allow : 1)) {
- form_set_error('recipient', t('%name does not accept private messages.', array('%name' => $recipient->name)));
- return _privatemsg_form((object)$edit);
- }
- else if (trim($edit['subject']) == '') {
- form_set_error('subject', t('The Subject field is required.'));
- return _privatemsg_form((object)$edit);
- }
- if (trim($edit['privatemsgbody']) == '') {
- form_set_error('privatemsgbody', t('The Message field is required.'));
- return _privatemsg_form((object)$edit);
- }
- else if (array_key_exists('format', $edit) && !filter_access($edit['format'])) {
- form_set_error('format', t('The supplied input format is invalid.'));
- return _privatemsg_form((object)$edit);
- }
- else {
- $result = _privatemsg_send($user, $recipient, $edit['subject'], $edit['privatemsgbody'], $edit['format']);
- drupal_set_message(t('Message sent.'));
- drupal_goto($user->uid ? 'privatemsg' : '');
- }
-}
-
-// API callable from other modules:
-function privatemsg_send($recipient, $subject, $body, $format = FILTER_FORMAT_DEFAULT) {
- global $user;
- return _privatemsg_send($user, $recipient, $subject, $body, $format);
-}
-
-function _privatemsg_send($sender, $recipient, $subject, $body, $format) {
- $result = db_query("INSERT INTO {privatemsg} (author, recipient, subject, message, timestamp, newmsg, hostname, format) VALUES ('%d', '%d', '%s', '%s', '%d', '%d', '%s', '%d')", $sender->uid, $recipient->uid, $subject, $body, time(), 1, getenv('REMOTE_ADDR'), $format);
- if ($result !== false && isset($recipient->privatemsg_mailalert) && $recipient->privatemsg_mailalert == PRIVATEMSG_MAIL_INDIVIDUAL) {
- _privatemsg_sendmail($recipient, 1);
- }
- return $result;
-}
-
-function _privatemsg_view($message_id) {
- global $user;
-
- $result = db_query("SELECT p.id, u.uid, u.name, p.author, p.timestamp, p.subject, p.message, p.newmsg, p.recipient, p.format FROM {privatemsg} p, {users} u WHERE (recipient = '%d' OR author = '%d') AND author = u.uid AND id = '%d'", $user->uid, $user->uid, $message_id);
-
- $message = db_fetch_object($result);
- if (($message->newmsg) && ($user->uid == $message->recipient)) {
- $result = db_query("UPDATE {privatemsg} SET newmsg = 0 WHERE id = %d", $message_id);
- }
-
- return theme("privatemsg_view", $message);
-}
-
-function _privatemsg_delete($id) {
- global $user;
-
- $result = db_query("SELECT author, recipient FROM {privatemsg} WHERE (recipient = %d OR author = %d) AND id = %d", $user->uid, $user->uid, $id);
-
- if ($message = db_fetch_object($result)) {
- if ($message->author == $user->uid) {
- db_query("UPDATE {privatemsg} SET author_del = 1 WHERE id = '%d'", $id);
- }
- if ($message->recipient == $user->uid) {
- db_query("UPDATE {privatemsg} SET recipient_del = 1 WHERE id = '%d'", $id);
- }
-
- return true;
- }
- else {
- return false;
- }
-}
-
-function _privatemsg_get_new_messages($uid = 0) {
- global $user;
- static $cache = array();
- if ($uid == 0) {
- $uid = $user->uid;
- }
- if (!isset($cache[$uid])) {
- $cache[$uid] = db_result(db_query("SELECT COUNT(*) FROM {privatemsg} WHERE recipient = '%d' AND newmsg = 1 AND recipient_del = 0", $uid));
- }
- return $cache[$uid];
-}
-
-function privatemsg_new_folder() {
- $form = array();
-
- $form['name'] = array(
- '#type' => 'textfield',
- '#title' => t('Name'),
- '#size' => 50,
- '#maxlength' => 64
- );
- $form['op'] = array(
- '#type' => 'submit',
- '#value' => t('Add folder'),
- '#name' => 'op'
- );
-
- return $form;
-}
-
-function privatemsg_new_folder_submit($form_id, $form_values) {
- global $user;
- // check for uniqueness
- if (!db_result(db_query("SELECT name FROM {privatemsg_folder} WHERE name = '%s' AND uid = '%d'", $form_values['name'], $user->uid))) {
- db_query("INSERT INTO {privatemsg_folder} (uid, name) VALUES ('%d', '%s')", $user->uid, $form_values['name']);
- drupal_set_message(t('Folder created successfully.'));
- }
- else {
- drupal_set_message(t('A folder with this name already exists.'));
- }
- drupal_goto('privatemsg');
-}
-
-function _privatemsg_move($mid, $fid) {
- global $user;
- db_query("UPDATE {privatemsg} SET folder = '%d' WHERE id = '%d' AND recipient = '%d'", $fid, $mid, $user->uid);
-}
-
-/**
- @addtogroup theme_system
-
- Privatemsg module specific theme functions
- @{
-**/
-
-/**
- Returns content to view a private message
-
- @param message
-**/
-function theme_privatemsg_view($message) {
- global $user;
-
- if ($message) {
- $body = '
- '.t('From').': '. theme('username', $message) .'
- '.t('To').': '. theme('username', user_load(array('uid' => $message->recipient))) .'
- '.t('Subject').': '.check_plain($message->subject) .'
- '.t('Date').': '. format_date($message->timestamp) .'
-
- '. check_markup($message->message, $message->format, FALSE).
- '
';
- $links = array();
- if ($message->recipient == $user->uid) {
- $author = user_load(array('uid' => $message->uid));
- if ($author->uid && (isset($author->privatemsg_allow) ? $author->privatemsg_allow : 1)) {
- $links['privatemsg_reply'] = array('title' => t('Reply to this message'), 'href' => "privatemsg/reply/$message->id");
- }
- else {
- $links['privatemsg_noreply'] = array('title' => t('Sender does not accept replies'), 'href' => NULL);
- }
- }
- if (($message->recipient == $user->uid) || (variable_get("privatemsg_sent_status", 1))) {
- $links['privatemsg_delete'] = array('title' => t('Delete this message'), 'href' => "privatemsg/delete/$message->id", 'attributes' => array('onClick' => "return confirm('". t('Are you sure to delete this message?') ."')"));
- }
-
- $links['privatemsg_list'] = array('title' => t('List messages'), 'href' => 'privatemsg');
- $body .= ''. theme('links', $links) .'
';
- }
- else {
- drupal_set_message(t('Error: you can\'t read this message'), 'error');
- $body = '';
- }
-
- return $body;
-}
-
-/**
- Returns content to view a list of private messages
-
- @param current_folder
- @param messages
- @param folders
-**/
-function theme_privatemsg_list($current_folder, $messages, $folders) {
- $extra_folders = array();
- foreach ($folders as $folder) {
- $folder_list[] = _privatemsg_format_folder($current_folder, $folder[0], $folder[1]);
- if ($folder[0] != 1 && $folder[0] != $current_folder) {
- $extra_folders[$folder[0]] = $folder[1];
- }
- }
-
- return theme('links', $folder_list) . drupal_get_form('privatemsg_list_form', $current_folder, $messages, $folders);
-}
-
-function privatemsg_list_form($current_folder, $messages, $folders) {
- $form = array();
-
- $form['messages'] = array(
- '#theme' => 'privatemsg_message_table',
- '#tree' => TRUE
- );
- $form['messages']['current_folder'] = array(
- '#type' => 'value',
- '#value' => $current_folder
- );
- foreach ($messages as $message) {
- if ($current_folder != 1) {
- $new = $message->newmsg;
- }
- else {
- $new = variable_get('privatemsg_sent_status', 1) ? $message->newmsg : 0;
- }
-
- $form['messages'][$message->id] = array();
- $form['messages'][$message->id]['selected'] = array(
- '#type' => 'checkbox',
- );
- $form['messages'][$message->id]['date'] = array(
- '#type' => 'value',
- '#value' => format_date($message->timestamp, 'small')
- );
- $form['messages'][$message->id]['user'] = array(
- '#type' => 'value',
- '#value' => theme('username', $message)
- );
- $form['messages'][$message->id]['subject'] = array(
- '#type' => 'value',
- '#value' => l($message->subject, 'privatemsg/view/'. $message->id) . ($new ? (' '. theme('mark')) : '')
- );
- }
- $form[] = array('#type' => 'markup', '#value' => theme('pager', array(), variable_get('privatemsg_per_page', 10)));
-
- if (count($messages) > 0) {
- $form['delete_messages'] = array(
- '#type' => 'submit',
- '#value' => t('Delete messages'),
- '#name' => 'op',
- '#attributes' => array('onclick' => "return confirm('". t('Are you sure you want to delete these messages?') ."')")
- );
- }
- // folder management
- if ((count($extra_folders) > 0) && ($current_folder != 1) && (count($messages) > 0)) {
- $form['folder'] = array(
- '#prefix' => '',
- '#type' => 'select',
- '#options' => $extra_folders
- );
- $form['move_messages'] = array(
- '#type' => 'submit',
- '#value' => t('Move to folder'),
- '#name' => 'op',
- '#suffix' => '
'
- );
- }
-
- $form[] = array('#type' => 'markup', '#value' => '
');
-
- $form['new_message'] = array(
- '#type' => 'submit',
- '#value' => t('Write a new message'),
- '#name' => 'op'
- );
-
- $form[] = array('#type' => 'markup', '#value' => '
');
-
- if ($current_folder > 1) {
- // you can't delete Inbox
- $form['privatemsg_delete_folder'] = array(
- '#type' => 'submit',
- '#value' => t('Delete folder'),
- '#name' => 'op',
- '#attributes' => array('onclick' => "return confirm('". t('Are you sure you want to delete this folder and all its messages?') ."')")
- );
- }
- if (count($messages) > 0) {
- $form['empty_folder'] = array(
- '#type' => 'submit',
- '#value' => t('Empty folder'),
- '#name' => 'op',
- '#attributes' => array('onclick' => "return confirm('". t('Are you sure you want to delete every message in this folder?') ."')")
- );
- }
- $form['current_folder'] = array(
- '#type' => 'hidden',
- '#value' => $current_folder
- );
- $form['new_folder'] = array(
- '#type' => 'submit',
- '#value' => t('New folder'),
- '#name' => 'op'
- );
-
- return $form;
-}
-
-function theme_privatemsg_message_table($form) {
- $rows = array();
-
- foreach (element_children($form) as $key) {
- if ($key != 'current_folder') {
- $row = array();
- $row[] = drupal_render($form[$key]['selected']);
- $row[] = $form[$key]['date']['#value'];
- $row[] = $form[$key]['user']['#value'];
- $row[] = $form[$key]['subject']['#value'];
- $rows[] = $row;
- }
- }
-
- if (count($rows) == 0) {
- $rows[] = array(array('data' => t('No messages.'), 'colspan' => 4));
- }
-
- $header = array(
- NULL,
- t('Date'),
- ($form['current_folder']['#value'] == 1 ? t('To') : t('From')),
- t('Subject'),
- );
-
- return theme('table', $header, $rows);
-}
-
-/** @} End of addtogroup theme_system **/
-
-?>
--
1.7.4.1