Skip to content
This repository has been archived by the owner on Jan 15, 2019. It is now read-only.

Italian translation #61

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added knowledge/locale/it_IT/django.mo
Binary file not shown.
313 changes: 313 additions & 0 deletions knowledge/locale/it_IT/django.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,313 @@
# 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: 1.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2012-09-07 09:14+0900\n"
"PO-Revision-Date: 2013-11-10 21:49+0100\n"
"Last-Translator: Linda <[email protected]>\n"
"Language-Team: ITALIANO <[email protected]>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=1; plural=0;\n"
"X-Generator: Poedit 1.5.7\n"

#: forms.py:46 models.py:12
msgid "Internal"
msgstr "Interno"

#: models.py:10
msgid "Public"
msgstr "Pubblico"

#: models.py:11
msgid "Private"
msgstr "Privato"

#: models.py:17
msgid "Inherit"
msgstr "Ereditato"

#: models.py:33
msgid "Category"
msgstr "Categoria"

#: models.py:34 templates/django_knowledge/sidebar.html:18
msgid "Categories"
msgstr "Categorie"

#: models.py:49
msgid "Alert"
msgstr "Avviso"

#: models.py:50
msgid "Check this if you want to be alerted when a new response is added."
msgstr ""
"Spunta questa casella se desideri essere avvisato quando una nuova risposta "
"sarà disponibile"

#: models.py:55
msgid "Name"
msgstr "Nome"

#: models.py:56
msgid "Enter your first and last name."
msgstr "Inserisci il tuo nome e cognome."

#: models.py:58
msgid "Email"
msgstr "Email"

#: models.py:59
msgid "Enter a valid email address."
msgstr "inserisci un indirizzo email valido."

#: models.py:146 models.py:165
msgid "Question"
msgstr "Domanda"

#: models.py:147
msgid "Enter your question or suggestion."
msgstr "Inserisci la tua domanda o il tuo suggerimento."

#: models.py:149
msgid "Description"
msgstr "Descrizione"

#: models.py:150
msgid "Please offer details. Markdown enabled."
msgstr "Per favore aggiungi dettagli. Puoi usare la sintassi Markdown."

#: models.py:153 models.py:256
msgid "Status"
msgstr "Status"

#: models.py:166
msgid "Questions"
msgstr "Domande"

#: models.py:253 models.py:265
msgid "Response"
msgstr "Risposta"

#: models.py:254
msgid "Please enter your response. Markdown enabled."
msgstr "Per favore inserisci la tua risposta. Puoi usare la sintassi Markdown."

#: models.py:266
msgid "Responses"
msgstr "Risposte"

#: templates/django_knowledge/ask.html:5 templates/django_knowledge/ask.html:9
#: templates/django_knowledge/list.html:42
msgid "Ask a Question"
msgstr "Poni una domanda"

#: templates/django_knowledge/ask.html:15
msgid "Please log in to ask a question."
msgstr "Per favore accedi per porre la tua domanda."

#: templates/django_knowledge/form.html:9
msgid "required"
msgstr "richiesto"

#: templates/django_knowledge/index.html:5
msgid "Support"
msgstr "Assistenza"

#: templates/django_knowledge/index.html:10
#, python-format
msgid "Top %(count)s Questions"
msgstr "Le %(count)s domande più lette."

#: templates/django_knowledge/inner.html:13
msgid "Start typing your question here."
msgstr "Inserisci qui la tua domanda."

#: templates/django_knowledge/list.html:20
msgid "No results found."
msgstr "Nessun risultato trovato."

#: templates/django_knowledge/list.html:28
msgid "previous"
msgstr "precedente"

#: templates/django_knowledge/list.html:31
#, python-format
msgid "page %(number)s of %(page)s"
msgstr "pagina %(number)s di %(page)s"

#: templates/django_knowledge/list.html:34
msgid "next"
msgstr "prossima"

#: templates/django_knowledge/question_list.html:5
msgid "no responses"
msgstr "Non sono presenti risposte"

#: templates/django_knowledge/question_list.html:5
msgid "accepted"
msgstr "accettata"

#: templates/django_knowledge/question_list.html:5
#: templates/django_knowledge/thread.html:19
#: templates/django_knowledge/thread.html:44
msgid "staff"
msgstr "staff"

#: templates/django_knowledge/sidebar.html:5
msgid "My Questions"
msgstr "Le mie domande"

#: templates/django_knowledge/sidebar.html:29
msgid "Navigate"
msgstr "Naviga"

#: templates/django_knowledge/sidebar.html:33
msgid "Ask a question or give suggestion."
msgstr "Poni una domanda o fornisci un suggerimento."

#: templates/django_knowledge/sidebar.html:34
msgid "Return to homepage."
msgstr "Ritorna all'home page."

#: templates/django_knowledge/thread.html:20
#: templates/django_knowledge/thread.html:45
msgid "user"
msgstr "utente"

#: templates/django_knowledge/thread.html:41
msgid "accepted answer"
msgstr "risposta accettata."

#: templates/django_knowledge/thread.html:42
msgid "poster"
msgstr "autore"

#: templates/django_knowledge/thread.html:56
msgid "No responses yet."
msgstr "Ancora nessuna risposta."

#: templates/django_knowledge/thread.html:69
msgid "This question has been closed."
msgstr "Questa domanda è stata chiusa."

#: templates/django_knowledge/thread.html:71
msgid "Please log in to respond."
msgstr "Per favore accedi per rispondere."

#: templates/django_knowledge/welcome.html:4
msgid "Welcome to our Support Center."
msgstr "Benvenuti nel nostro centro assistenza."

#: templates/django_knowledge/welcome.html:5
msgid "Search for answers to your questions below, or ask your own."
msgstr "Cerca risposte alle tue domande qui sotto, o poni le tue richieste."

#: templates/django_knowledge/emails/message.html:6
#: templates/django_knowledge/emails/message.txt:4
#, python-format
msgid "Hello %(name)s,"
msgstr "Benvenuto %(name)s, "

#: templates/django_knowledge/emails/message.html:9
#, python-format
msgid ""
"\n"
" We just wanted to let you know that a new response has been added to "
"the question \"%(title)s\". You can visit it here: <a href=\"%(domain)s"
"%(url)s\">%(domain)s%(url)s</a>.\n"
" "
msgstr ""
"\n"
"volevamo informati che una nuova risposta è stata aggiunta alla domanda "
"\"%(title)s\". Puoi leggerla qui: <a href=\"%(domain)s%(url)s\">%(domain)s"
"%(url)s</a>.\n"
" "

#: templates/django_knowledge/emails/message.html:17
#: templates/django_knowledge/emails/message.txt:13
msgid ""
"You are receiving these messages because you checked the 'alert' box when "
"you originally posted."
msgstr ""
"Ricevi questo messaggio in quanto hai spuntato la casella 'avviso' quando "
"hai originariamente posto la domanda."

#: templates/django_knowledge/emails/message.html:21
#, python-format
msgid ""
"\n"
" We just wanted to let you know that a new question has been added: "
"\"%(title)s\". You can visit it here: <a href=\"%(domain)s%(url)s\">"
"%(domain)s%(url)s</a>\n"
" "
msgstr ""
"\n"
"Volevamo informarti che una nuova domanda è stata posta: \"%(title)s\". Puoi "
"leggerla qui: <a href=\"%(domain)s%(url)s\">%(domain)s%(url)s</a>\n"
" "

#: templates/django_knowledge/emails/message.html:29
#: templates/django_knowledge/emails/message.txt:23
msgid "You are receiving these messages because you are a staff member."
msgstr "Ricevi questo messaggio in quanto membro dello staff."

#: templates/django_knowledge/emails/message.html:32
#, python-format
msgid ""
"Thank you,\n"
" %(name)s team"
msgstr ""
"Grazie.\n"
"%(name)s"

#: templates/django_knowledge/emails/message.txt:7
#, python-format
msgid ""
"\n"
" We just wanted to let you know that a new response has been added to the "
"question \"%(title)s\". You can visit it here: %(domain)s%(url)s\n"
" "
msgstr ""
"\n"
"Volevamo informati che una nuova risposta è stata aggiunta alla domanda "
"\"%(title)s\". Puoi leggerla qui: %(domain)s%(url)s\n"
" "

#: templates/django_knowledge/emails/message.txt:17
#, python-format
msgid ""
"\n"
" We just wanted to let you know that a new question has been added: "
"\"%(title)s\". You can visit it here: %(domain)s%(url)s\n"
" "
msgstr ""
"\n"
"Volevamo informarti che una nuova domanda è stata posta: \"%(title)s\". Puoi "
"leggerla qui: %(domain)s%(url)s\n"
" "

#: templates/django_knowledge/emails/message.txt:26
#, python-format
msgid ""
"Thank you,\n"
"%(name)s team"
msgstr ""
"Grazie,\n"
"%(name)s"

#: templates/django_knowledge/emails/subject.txt:1
#, python-format
msgid "New response on \"%(title)s\" on %(name)s."
msgstr "Nuova risposta di %(name)s riguardo \"%(title)s\"."

#: templates/django_knowledge/emails/subject.txt:1
#, python-format
msgid "New question \"%(title)s\" on %(name)s."
msgstr "Nuova domanda di %(name)s riguardo \"%(title)s\"."
11 changes: 7 additions & 4 deletions knowledge/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,13 @@ def get_name(self):
Get local name, then self.user's first/last, and finally
their username if all else fails.
"""
name = (self.name or (self.user and (
u'{0} {1}'.format(self.user.first_name, self.user.last_name).strip()\
or self.user.username
)))
try:
name = (self.name or (self.user and (
u'{0} {1}'.format(self.user.first_name, self.user.last_name).strip()\
or self.user.username
)))
except:
name = self.user.email.split('@')[0]
return name.strip() or _("Anonymous")

get_email = lambda s: s.email or (s.user and s.user.email)
Expand Down
5 changes: 2 additions & 3 deletions knowledge/signals.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from knowledge.utils import get_module
from knowledge import settings

from django.contrib.auth import get_user_model

def send_alerts(target_dict, response=None, question=None, **kwargs):
"""
Expand Down Expand Up @@ -48,7 +48,6 @@ def knowledge_post_save(sender, instance, created, **kwargs):
and shuttles them to the predefined module.
"""
from knowledge.models import Question, Response
from django.contrib.auth.models import User

func = get_module(settings.ALERTS_FUNCTION_PATH)

Expand All @@ -64,7 +63,7 @@ def knowledge_post_save(sender, instance, created, **kwargs):
for i in instances if i.alert])

elif isinstance(instance, Question):
staffers = User.objects.filter(is_staff=True)
staffers = get_user_model().objects.filter(is_staff=True)
out_dict = dict([[user.email, user] for user in staffers
if user.has_perm('change_question')])

Expand Down
2 changes: 1 addition & 1 deletion knowledge/templates/django_knowledge/inner.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

<div class="dk-search">
<form action="{% if category %}{% url "knowledge_list_category" category.slug %}{% else %}{% url "knowledge_list" %}{% endif %}" method="get">
<input class="question-search" {% if search %}value="{{ search|force_escape }}"{% else %}placeholder="{% trans "Start typing your question here." %}"{% endif %} type="text" name="title"/> <input value="Search" type="submit" class="submit-question-search" />
<input class="question-search" {% if search %}value="{{ search|force_escape }}"{% else %}placeholder="{% trans "Start typing your question here." %}"{% endif %} type="text" name="title"/> <input value="{% trans 'Search' %}" type="submit" class="submit-question-search" />
</form>
<div class="clear"></div>
</div>
Expand Down