diff --git a/.gitignore b/.gitignore index 851e457..ba3299b 100644 --- a/.gitignore +++ b/.gitignore @@ -8,12 +8,15 @@ /build /dist /local.cfg +.coverage /*.egg-info +/*.egg /.installed.cfg *.pyc /.Python /include /lib +/local /.project /.pydevproject /.mr.developer.cfg diff --git a/CHANGES.txt b/CHANGES.rst similarity index 77% rename from CHANGES.txt rename to CHANGES.rst index 33f7280..86bcb2c 100644 --- a/CHANGES.txt +++ b/CHANGES.rst @@ -1,20 +1,332 @@ Changelog ========= -2.1.6 (unreleased) +2.3.3 (unreleased) ------------------ + - Add permission to allow comment authors to delete their own comments if there are no replies yet. [gaudenz] +- Register events as Content Rules Event Types if plone.contentrules is present + [avoinea] + +- Trigger custom events on comment add/remove/reply + [avoinea] + +- Replace $.live with $.on for jQuery >= 1.9 compatibility. This works on + jQuery >= 1.7 (Plone 4.3 onwards). + [gaudenz] + +- Update Traditional Chinese translations. + [marr] + +- Make comments editable. + [pjstevns, gyst] + +- Provide 'Delete comments' permission to handle comments deletion + [cekk] + +- Fixed Italian translations [cekk] + + +2.3.2 (2014-04-05) +------------------ + +- bugfix: according to IDiscussionSettings.anonymous_email_enabled (cite): + "If selected, anonymous user will have to give their email." - But field + was not required. Now it is. + [jensens] + +- bugfix: anonymous email field was never saved. + [jensens] + +- updated german translations: added some missing msgstr. + [jensens] + +- added i18ndude and a script ``update_translations`` to buildout in order + to make translation updates simpler. + [jensens] + +- Fix reindexObject for content_object in moderation views. + Now reindex only "total_comments" index and not all the indexes + [cekk] + +- Fix comments Title if utf-8 characters in author_name + [huub_bouma] + +- use member.getId as author_username, so membrane users having different id + then username still have there picture shown and author path is correct. + [maartenkling] + + +2.3.1 (2014-02-22) +------------------ + +- 2.3.0 was a brown bag release. + [timo] + + +2.3.0 (2014-02-22) +------------------ + +- Remove DL's from portal message in templates. + https://github.com/plone/Products.CMFPlone/issues/153 + [khink] + +- Execute the proper workflow change when using the moderation buttons instead + of hardcoding the workflow action to always publish + [omiron] + +- Corrections and additions to the Danish translation + [aputtu] + + +2.2.12 (2014-01-13) +------------------- + +- Show author email to Moderator when it is available in anonymous comment. + [gotcha, smoussiaux] + +- Put defaultUser.png instead of old defaultUser.gif + [bsuttor] + +- Remove bbb directory. bbb was never really implemented. + [timo] + +- Replace deprecated test assert statements. + [timo] + +- Remove portal_discussion tool. + [timo] + +- Refactor tests to use the PLONE_APP_CONTENTTYPES_FIXTURE instead of + PLONE_FIXTURE. + [timo] + +- Fix ownership of comments. + [toutpt] + + +2.2.10 (2013-09-24) +------------------- + +- Revert "Refactor tests to use the PLONE_APP_CONTENTTYPES_FIXTURE instead of + the PLONE_FIXTURE." that has been accidentially introduced into the 2.2.9 + release. + [timo] + + +2.2.9 (2013-09-24) +------------------ + +- Portuguese translation added. + [Rui Silva] + +- Rename CHANGES.txt to CHANGES.rst. + [timo] + +- Fix ajax form submit for delete comment action: add 'data' to the request. + [toutpt] + + +2.2.8 (2013-08-20) +------------------ + +- Re-release 2.2.7 with .mo files. Seems like 2.2.7 has been released twice on + two different dates. The first release seems to be made without a github + push. + [timo] + +- Fix comments viewlet's get_replies for non-annotatable objects. + [witsch] + + +2.2.7 (2013-07-04) +------------------ + +- making sure .mo files are present at release + [garbas] + +- Revert change that silently added mime_type attribute values + to old discussion items that had none. + [pjstevns] + + +2.2.6 (2013-05-23) +------------------ + +- Fix migration to not fail when member has been deleted. + [datakurre] + + +2.2.5 (2013-04-06) +------------------ + +- Update pt_BR translation [ericof] + +- Do not raise an error when no workflow is assigned to the comment type. + [timo] + +- Add a conversation property public_commentators that only lists + commentators of comments that are public. + The commentators indexer indexes this field now. + The behavior of the conversation property commentators is + unchanged. + [do3cc] + +- The last comment date now only returns the date of the newest + published comment. + [do3cc] + + +2.2.4 (2013-03-05) +------------------ + +- Check for 'checked' attribute in a way that work also for jQuery 1.7 + [ichimdav] + +- Better fix for #13037 by removing submit event trigger altogether + [ichimdav] + +- Added Romanian translation + [ichimdav] + +- Updated Ukrainian translation + [kroman0] + +2.2.3 (2013-01-13) +------------------ + +- add anonymous_email_enabled settings to really let integrator activate + the email field on comment add form when anonymous. + [toutpt] + +2.2.2 (2012-11-16) +------------------ + +- first check if captcha is installed before we open browsers zcml + files that depend on these packages, fixes #12118 and #12774 + [maartenkling] + + +2.2.1 (2012-11-16) +------------------ + +- Make conversation view not break when comment-id cannot be converted to long. + Fixes #13327 + [khink] + +- fix insufficient privileges when trying to view + the RSS feed of a comment collection + [maartenkling] + +- removed inline border=0 and move it to css + [maartenkling] + +- For migrations of comments without a valid old_status, apply the 'published' + state. + [thet] + +- Re-apply eleddy's "Revert modification date since this is fixed in + p.a.caching now." as her commit was lost later on due to some git magic. + [thet] + +- Remove submitting the controlpanel form again after removing disabled tags + fixes #13037 and #12357 + [maartenkling] + +- Remove inline styles, fixes #12399 + [maartenkling] + +- add fallback border color for i8, fixes #11324 + [maartenkling] + +- Replace discussionitem_icon.gif with png version. + [timo] + +- Fix catalog updates for IObjectMovedEvent + [gaudenz] + +- Fix non-functioning user_notification feature + [izak] + + +2.2.0 (2012-08-30) +------------------ + +- Refactor the comment creator/author_name to comply with the Plone core + convention to store the username on the creator attribute and not the + fullname. + [timo] + +- Rename the id of the text widgets because there can be css-id clashes with + the text field of documents when using TinyMCE in overlays or multiple + instances of TinyMCE on a single page. + [timo] + +- text/html added to the possible mime types for comments. + [timo] + +- Make 'text/plain' the default mime type for comments and make sure the + default type is set properly when creating a new comment. + [timo] + +- Fix handling of comments with invalid transforms. Write an error msg + to the log and just return the untransformed text. + [timo] + + +2.1.8 (unreleased) +------------------ + +- Support for Dexterity added. The conversation enabled method now detects and + supports Dexterity-based content types. + [timo] + +- No more recursive came_from redirection after logged_in. + [kcleong, huubbouma] + +- Danish translation updated. + [stonor] + +- Documentation and howtos updated. + [timo] + +- Remove development buildout files and directories. + [timo] + + +2.1.7 (2012-06-29) +------------------ + +- Prune duplicated test code. + [pjstevns] + +- Update version in buildout.cfg to allow development. + [pjstevns] + +- Conversation.total_comments only counts published comments. + Fixes bug #11591. + [pjstevns] + +- Set workflow status of comments during migration based on + the state of the Discussion Item. + [pjstevns] + + +2.1.6 (2012-05-30) +------------------ + - Add Site Administrator role to Review comments permission. [gaudenz] -- Add permission to allow comment authors to delete their own comments if - there are no replies yet. +- Fix excessive JS comment deletion. [gaudenz] -- Fix excessive JS comment deletion. +- Hide Conversation objects from breadcrumb navigation. The breadcrumbs + navigation is also used in the search results view. This lead to Conversation + objects showing up if 'Discussion Items' are searchable. [gaudenz] - No longer depend on zope.app packages. diff --git a/MANIFEST.in b/MANIFEST.in index e0cdcf4..f3e0bd5 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,4 +1,5 @@ include *.txt +include *.rst recursive-include docs * recursive-include plone * diff --git a/README.rst b/README.rst index e48123f..3b5b627 100644 --- a/README.rst +++ b/README.rst @@ -28,8 +28,8 @@ Requirements Plone 3.3 or later. -Plone 3.x Buildout Installation -=============================== +Plone 3.3.x Buildout Installation +================================= To install plone.app.discussion, add the following code to your buildout.cfg:: @@ -55,7 +55,7 @@ To install plone.app.discussion, add the following code to your buildout.cfg:: ... -Plone 4.x Buildout Installation +Plone 4.0 Buildout Installation =============================== To install plone.app.discussion, add the following code to your buildout.cfg:: diff --git a/bootstrap.py b/bootstrap.py index b964024..1b28969 100644 --- a/bootstrap.py +++ b/bootstrap.py @@ -1,6 +1,6 @@ ############################################################################## # -# Copyright (c) 2006 Zope Corporation and Contributors. +# Copyright (c) 2006 Zope Foundation and Contributors. # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, @@ -16,106 +16,155 @@ Simply run this script in a directory containing a buildout.cfg. The script accepts buildout command-line options, so you can use the -c option to specify an alternate configuration file. - -$Id$ """ -import os, shutil, sys, tempfile, urllib2 +import os +import shutil +import sys +import tempfile + from optparse import OptionParser tmpeggs = tempfile.mkdtemp() -is_jython = sys.platform.startswith('java') +usage = '''\ +[DESIRED PYTHON FOR BUILDOUT] bootstrap.py [options] -# parsing arguments -parser = OptionParser() -parser.add_option("-v", "--version", dest="version", - help="use a specific zc.buildout version") -parser.add_option("-d", "--distribute", - action="store_true", dest="distribute", default=False, - help="Use Disribute rather than Setuptools.") +Bootstraps a buildout-based project. + +Simply run this script in a directory containing a buildout.cfg, using the +Python that you want bin/buildout to use. + +Note that by using --find-links to point to local resources, you can keep +this script from going over the network. +''' + +parser = OptionParser(usage=usage) +parser.add_option("-v", "--version", help="use a specific zc.buildout version") + +parser.add_option("-t", "--accept-buildout-test-releases", + dest='accept_buildout_test_releases', + action="store_true", default=False, + help=("Normally, if you do not specify a --version, the " + "bootstrap script and buildout gets the newest " + "*final* versions of zc.buildout and its recipes and " + "extensions for you. If you use this flag, " + "bootstrap and buildout will get the newest releases " + "even if they are alphas or betas.")) +parser.add_option("-c", "--config-file", + help=("Specify the path to the buildout configuration " + "file to be used.")) +parser.add_option("-f", "--find-links", + help=("Specify a URL to search for buildout releases")) -parser.add_option("-c", None, action="store", dest="config_file", - help=("Specify the path to the buildout configuration " - "file to be used.")) options, args = parser.parse_args() -# if -c was provided, we push it back into args for buildout' main function -if options.config_file is not None: - args += ['-c', options.config_file] - -if options.version is not None: - VERSION = '==%s' % options.version -else: - VERSION = '' - -USE_DISTRIBUTE = options.distribute -args = args + ['bootstrap'] +###################################################################### +# load/install setuptools to_reload = False try: import pkg_resources - if not hasattr(pkg_resources, '_distribute'): - to_reload = True - raise ImportError + import setuptools except ImportError: ez = {} - if USE_DISTRIBUTE: - exec urllib2.urlopen('http://python-distribute.org/distribute_setup.py' - ).read() in ez - ez['use_setuptools'](to_dir=tmpeggs, download_delay=0, no_fake=True) - else: - exec urllib2.urlopen('http://peak.telecommunity.com/dist/ez_setup.py' - ).read() in ez - ez['use_setuptools'](to_dir=tmpeggs, download_delay=0) + + try: + from urllib.request import urlopen + except ImportError: + from urllib2 import urlopen + + # XXX use a more permanent ez_setup.py URL when available. + exec(urlopen('https://bitbucket.org/pypa/setuptools/raw/0.7.2/ez_setup.py' + ).read(), ez) + setup_args = dict(to_dir=tmpeggs, download_delay=0) + ez['use_setuptools'](**setup_args) if to_reload: reload(pkg_resources) - else: - import pkg_resources + import pkg_resources + # This does not (always?) update the default working set. We will + # do it. + for path in sys.path: + if path not in pkg_resources.working_set.entries: + pkg_resources.working_set.add_entry(path) -if sys.platform == 'win32': - def quote(c): - if ' ' in c: - return '"%s"' % c # work around spawn lamosity on windows - else: - return c -else: - def quote (c): - return c +###################################################################### +# Install buildout -cmd = 'from setuptools.command.easy_install import main; main()' -ws = pkg_resources.working_set +ws = pkg_resources.working_set -if USE_DISTRIBUTE: - requirement = 'distribute' -else: - requirement = 'setuptools' +cmd = [sys.executable, '-c', + 'from setuptools.command.easy_install import main; main()', + '-mZqNxd', tmpeggs] -if is_jython: - import subprocess +find_links = os.environ.get( + 'bootstrap-testing-find-links', + options.find_links or + ('http://downloads.buildout.org/' + if options.accept_buildout_test_releases else None) + ) +if find_links: + cmd.extend(['-f', find_links]) - assert subprocess.Popen([sys.executable] + ['-c', quote(cmd), '-mqNxd', - quote(tmpeggs), 'zc.buildout' + VERSION], - env=dict(os.environ, - PYTHONPATH= - ws.find(pkg_resources.Requirement.parse(requirement)).location - ), - ).wait() == 0 +setuptools_path = ws.find( + pkg_resources.Requirement.parse('setuptools')).location -else: - assert os.spawnle( - os.P_WAIT, sys.executable, quote (sys.executable), - '-c', quote (cmd), '-mqNxd', quote (tmpeggs), 'zc.buildout' + VERSION, - dict(os.environ, - PYTHONPATH= - ws.find(pkg_resources.Requirement.parse(requirement)).location - ), - ) == 0 +requirement = 'zc.buildout' +version = options.version +if version is None and not options.accept_buildout_test_releases: + # Figure out the most recent final version of zc.buildout. + import setuptools.package_index + _final_parts = '*final-', '*final' + + def _final_version(parsed_version): + for part in parsed_version: + if (part[:1] == '*') and (part not in _final_parts): + return False + return True + index = setuptools.package_index.PackageIndex( + search_path=[setuptools_path]) + if find_links: + index.add_find_links((find_links,)) + req = pkg_resources.Requirement.parse(requirement) + if index.obtain(req) is not None: + best = [] + bestv = None + for dist in index[req.project_name]: + distv = dist.parsed_version + if _final_version(distv): + if bestv is None or distv > bestv: + best = [dist] + bestv = distv + elif distv == bestv: + best.append(dist) + if best: + best.sort() + version = best[-1].version +if version: + requirement = '=='.join((requirement, version)) +cmd.append(requirement) + +import subprocess +if subprocess.call(cmd, env=dict(os.environ, PYTHONPATH=setuptools_path)) != 0: + raise Exception( + "Failed to execute command:\n%s", + repr(cmd)[1:-1]) + +###################################################################### +# Import and run buildout ws.add_entry(tmpeggs) -ws.require('zc.buildout' + VERSION) +ws.require(requirement) import zc.buildout.buildout + +if not [a for a in args if '=' not in a]: + args.append('bootstrap') + +# if -c was provided, we push it back into args for buildout' main function +if options.config_file is not None: + args[0:0] = ['-c', options.config_file] + zc.buildout.buildout.main(args) shutil.rmtree(tmpeggs) diff --git a/buildout.cfg b/buildout.cfg index eaff488..2d918f7 100644 --- a/buildout.cfg +++ b/buildout.cfg @@ -1,15 +1,62 @@ [buildout] -extends = - http://svn.plone.org/svn/collective/buildout/plonetest/plone-4.1.x.cfg -index = http://d.pypi.python.org/simple +extends = https://raw.github.com/collective/buildout.plonetest/master/test-4.3.x.cfg package-name = plone.app.discussion -package-directory = plone/app/discussion -parts += instance +package-extras = [test] +parts += + mkrelease + pocompile + code-analysis + i18ndude + update_translations -versions = versions +[mkrelease] +recipe = zc.recipe.egg +eggs = jarn.mkrelease -[instance] -eggs += plone.app.discussion [test] +[pocompile] +recipe = zc.recipe.egg +eggs = zest.pocompile + +[code-analysis] +recipe = plone.recipe.codeanalysis +directory = ${buildout:directory}/plone/app/discussion +flake8-max-complexity = 50 [versions] -plone.app.discussion = 2.1.5 +plone.app.discussion = +zope.interface = 4.0.5 +plone.app.portlets = 2.5a1 +plone.dexterity = 2.2.1 +plone.app.querystring = 1.1.0 +plone.app.jquery = 1.8.3 +plone.app.testing = 4.2.4 +plone.app.vocabularies = 2.1.14 + + +[i18ndude] +recipe = zc.recipe.egg +eggs = + i18ndude + +[update_translations] +recipe = collective.recipe.template +output = ${buildout:bin-directory}/update_translations +input = inline: + #!/usr/bin/env bash + + DOMAIN="plone.app.discussion" + BASE_PATH=${buildout:directory}/plone/app/discussion + I18NDUDE=${buildout:bin-directory}/i18ndude + + $I18NDUDE rebuild-pot --pot $BASE_PATH/locales/$DOMAIN.pot --create "$DOMAIN" $BASE_PATH* + $I18NDUDE rebuild-pot --pot $BASE_PATH/i18n/plone.pot --create "plone" $BASE_PATH/profiles/ + + for LANG in `find $BASE_PATH/locales -maxdepth 1 -mindepth 1 -type d \ + | sed -e "s/.*locales\/\(.*\)$/\1/"`; do + $I18NDUDE sync --pot $BASE_PATH/locales/$DOMAIN.pot $BASE_PATH/locales/de/LC_MESSAGES/$DOMAIN.po + msgfmt --no-hash -o $BASE_PATH/locales/$LANG/LC_MESSAGES/$DOMAIN.mo $BASE_PATH/locales/$LANG/LC_MESSAGES/$DOMAIN.po + + $I18NDUDE sync --pot $BASE_PATH/i18n/plone.pot $BASE_PATH/i18n/plone-$LANG.po + msgfmt --no-hash -o $BASE_PATH/i18n/plone-$LANG.mo $BASE_PATH/i18n/plone-$LANG.po + done +mode = 755 \ No newline at end of file diff --git a/dev.cfg b/dev.cfg deleted file mode 100644 index c90b587..0000000 --- a/dev.cfg +++ /dev/null @@ -1,68 +0,0 @@ -[buildout] -extends = - buildout.cfg -extensions = buildout.eggtractor mr.developer -tractor-src-directory = - . - src -auto-checkout = - collective.autoresizetextarea - collective.akismet - collective.z3cform.norobots - plone.formwidget.captcha - plone.formwidget.recaptcha - -parts += - omelette - releaser - pocompile - zopepy - sphinxbuilder - sphinxupload - -[instance] -eggs += - Products.PdbDebugMode - Products.PrintingMailHost - roman - Sphinx - Sphinx-PyPI-upload - repoze.sphinx.autointerface - -[omelette] -recipe = collective.recipe.omelette -eggs = ${instance:eggs} -packages = ${instance:location}/lib/python ./ - -[releaser] -recipe = zc.recipe.egg -eggs = jarn.mkrelease - -[pocompile] -recipe = zc.recipe.egg -eggs = zest.pocompile - -[zopepy] -recipe = zc.recipe.egg -eggs = ${instance:eggs} -interpreter = zopepy -scripts = zopepy - -[sphinxbuilder] -recipe = collective.recipe.sphinxbuilder -interpreter = ${buildout:directory}/bin/zopepy - -[sphinxupload] -recipe = collective.recipe.template -input = inline: - #!/bin/sh - bin/zopepy setup.py upload_sphinx -output = ${buildout:directory}/bin/sphinxupload -mode = 755 - -[sources] -collective.akismet = svn https://svn.plone.org/svn/collective/collective.akismet/trunk -collective.autoresizetextarea = svn https://svn.plone.org/svn/collective/collective.autoresizetextarea/trunk -collective.z3cform.norobots = svn https://svn.plone.org/svn/collective/collective.z3cform.norobots/trunk -plone.formwidget.captcha = svn https://svn.plone.org/svn/plone/plone.formwidget.captcha/trunk/ -plone.formwidget.recaptcha = svn https://svn.plone.org/svn/plone/plone.formwidget.recaptcha/trunk/ diff --git a/docs/source/api/comment.txt b/docs/source/api/comment.txt new file mode 100644 index 0000000..4d5cf79 --- /dev/null +++ b/docs/source/api/comment.txt @@ -0,0 +1 @@ +.. include:: ../../../plone/app/discussion/comment.txt \ No newline at end of file diff --git a/docs/source/api/conversation.txt b/docs/source/api/conversation.txt new file mode 100644 index 0000000..a1c3ea4 --- /dev/null +++ b/docs/source/api/conversation.txt @@ -0,0 +1 @@ +.. include:: ../../../plone/app/discussion/conversation.txt \ No newline at end of file diff --git a/docs/source/api.txt b/docs/source/api/index.txt similarity index 57% rename from docs/source/api.txt rename to docs/source/api/index.txt index 31819ab..a7b72f8 100644 --- a/docs/source/api.txt +++ b/docs/source/api/index.txt @@ -1,5 +1,6 @@ -API/Interfaces --------------- +=== +API +=== The conversation and replies adapters. @@ -7,19 +8,14 @@ The conversation is responsible for storing all comments. It provides a dict-like API for accessing comments, where keys are integers and values are IComment objects. It also provides features for finding comments quickly. -The IReplies adapter provides an API for finding and manipulating the comments -directly in reply to a particular comment (implemented by the CommentReplies -adpater) or at the top level of the conversation (implemented by the -ConversationReplies adapter). +The IReplies adapter provides an API for finding and manipulating the comments +directly in reply to a particular comment (implemented by the CommentReplies +adpater) or at the top level of the conversation (implemented by the +ConversationReplies adapter). -.. autointerface:: plone.app.discussion.interfaces.IConversation - :members: -.. autointerface:: plone.app.discussion.interfaces.IReplies - :members: - -.. autointerface:: plone.app.discussion.interfaces.IComment - :members: - - - \ No newline at end of file +.. toctree:: + :maxdepth: 1 + + conversation.txt + comment.txt diff --git a/docs/source/changes.txt b/docs/source/changes.txt deleted file mode 100644 index a3e71a0..0000000 --- a/docs/source/changes.txt +++ /dev/null @@ -1 +0,0 @@ -.. include:: ../../CHANGES.txt \ No newline at end of file diff --git a/docs/source/conf.py b/docs/source/conf.py index 08ca111..d2a393e 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -3,7 +3,7 @@ # plone.app.discussion documentation build configuration file, created by # sphinx-quickstart on Thu Mar 18 10:17:15 2010. # -# This file is execfile()d with the current directory set to its containing dir. +# This file is execfile()d with the current directory set to its containing dir # # Note that not all possible configuration values are present in this # autogenerated file. @@ -11,24 +11,26 @@ # All configuration values have a default; values that are commented out # serve to show the default. -import sys, os +import sys +import os # If extensions (or modules to document with autodoc) are in another directory, # add these directories to sys.path here. If the directory is relative to the # documentation root, use os.path.abspath to make it absolute, like shown here. #sys.path.append(os.path.abspath('.')) -# -- General configuration ----------------------------------------------------- +# -- General configuration ---------------------------------------------------- + +# Add any Sphinx extension module names here, as strings. They can be +# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom ones. +extensions = ['sphinx.ext.autodoc', + 'sphinx.ext.doctest', + 'sphinx.ext.intersphinx', + 'sphinx.ext.todo', + 'sphinx.ext.coverage', + 'repoze.sphinx.autointerface' + ] -# Add any Sphinx extension module names here, as strings. They can be extensions -# coming with Sphinx (named 'sphinx.ext.*') or your custom ones. -extensions = ['sphinx.ext.autodoc', - 'sphinx.ext.doctest', - 'sphinx.ext.intersphinx', - 'sphinx.ext.todo', - 'sphinx.ext.coverage', - 'repoze.sphinx.autointerface',] - # Add any paths that contain templates here, relative to this directory. templates_path = ['_templates'] diff --git a/docs/source/email-notification.txt b/docs/source/email-notification.txt index 6b5c709..883ceef 100644 --- a/docs/source/email-notification.txt +++ b/docs/source/email-notification.txt @@ -8,25 +8,25 @@ This document describes the plone.app.discussion email notification feature. Introduction ============ -plone.app.discussion allows users and administrators to be notified about new +plone.app.discussion allows users and administrators to be notified about new comments by email. There are two kinds of email notification: 1) **User notification**: Tell users when a comment has been added. - - This method composes and sends emails to all users that have added a comment + + This method composes and sends emails to all users that have added a comment to this conversation and enabled user notification. - - This requires the user_notification setting to be enabled in the discussion - control panel. - - + + This requires the user_notification setting to be enabled in the discussion + control panel. + + 2) **Moderator notification**: Tell the moderator when a comment needs attention. - + This method sends an email to the site admin (mail control panel setting) if comment moderation is enabled and a new comment has been added that needs to - be approved. - - This requires the moderator_notification to be enabled in the discussion + be approved. + + This requires the moderator_notification to be enabled in the discussion control panel and the comment_review_workflow enabled for the comment content type. @@ -60,16 +60,16 @@ Moderator Notification Event Subscribers ================= -Email notifications are triggered by event subscribers that are called when a +Email notifications are triggered by event subscribers that are called when a comment has been added to a page. .. note:: - In Plone 3, the event subscribers were located in the zope.lifecycleevent - package. They moved to zope.app.container in Plone 4. Therefore - plone.app.discussion registers one of the two subscribers, dependent on the - Plone version. + In Plone 3, the event subscribers were located in the zope.lifecycleevent + package. They moved to zope.app.container in Plone 4. Therefore + plone.app.discussion registers one of the two subscribers, dependent on the + Plone version. -To create custom email notifications, register a new event subscriber or +To create custom email notifications, register a new event subscriber or override an existing one. *plone/app/discussion/notifications.zcml* diff --git a/docs/source/howtos/howto_make_pad_work_with_a_dexterity_content_type.txt b/docs/source/howtos/howto_make_pad_work_with_a_dexterity_content_type.txt index fd17fd0..b134648 100644 --- a/docs/source/howtos/howto_make_pad_work_with_a_dexterity_content_type.txt +++ b/docs/source/howtos/howto_make_pad_work_with_a_dexterity_content_type.txt @@ -1,3 +1,12 @@ +=============================================================================== +How to make plone.app.discussion work with a dexterity content type +=============================================================================== + +This document explains how to make plone.app.discussion work with a custom +dexterity content type. + +XXX: TODO + configure.zcml:: -Define an interface IMyDexterityContentType groked schema, I added: +Define an interface IMyDexterityContentType groked schema, I added:: allowDiscussion = schema.Bool( title=_(u"Allow Users to Comment"), @@ -18,7 +27,7 @@ are shown at the end of each page"), default=True, ) -and added this class: +and added this class:: from plone.app.discussion.browser.comments import CommentsViewlet class ConversationView(object): diff --git a/docs/source/howtos/howto_set_discussion_settings_with_generic_setup.txt b/docs/source/howtos/howto_set_discussion_settings_with_generic_setup.txt index 0f7a8bb..d94d93b 100644 --- a/docs/source/howtos/howto_set_discussion_settings_with_generic_setup.txt +++ b/docs/source/howtos/howto_set_discussion_settings_with_generic_setup.txt @@ -5,12 +5,14 @@ How to set discussion settings with generic setup This document explains how to set plone.app.discussion's settings with a generic setup profile. -plone.app.discussion uses plone.app.registry ... - -registry.xml:: +plone.app.discussion uses plone.app.registry to store its global settings. +You can set or override the settings in the registry.xml file of your generic +setup profile:: - + False help_anonymous_comments @@ -19,7 +21,10 @@ registry.xml:: False - + disabled help_captcha @@ -28,7 +33,10 @@ registry.xml:: disabled - + False help_globally_enabled @@ -37,7 +45,9 @@ registry.xml:: False - + False help_moderation_enabled @@ -46,7 +56,10 @@ registry.xml:: False - + help_moderator_email False @@ -54,7 +67,10 @@ registry.xml:: - + False help_moderator_notification_enabled @@ -63,7 +79,10 @@ registry.xml:: False - + True help_show_commenter_image @@ -72,7 +91,10 @@ registry.xml:: True - + text/plain help_text_transform @@ -81,7 +103,10 @@ registry.xml:: text/plain - + False help_user_notification_enabled @@ -91,4 +116,3 @@ registry.xml:: False - diff --git a/docs/source/howtos/howto_write_a_custom_email_notification.txt b/docs/source/howtos/howto_write_a_custom_email_notification.txt index 2b538b3..a32ae99 100644 --- a/docs/source/howtos/howto_write_a_custom_email_notification.txt +++ b/docs/source/howtos/howto_write_a_custom_email_notification.txt @@ -3,4 +3,6 @@ Howto write a custom email notification =============================================================================== This document explains how to write a custom email notification for -plone.app.discussion. \ No newline at end of file +plone.app.discussion. + +XXX: TODO \ No newline at end of file diff --git a/docs/source/howtos/index.txt b/docs/source/howtos/index.txt index 4297372..2eeaa68 100644 --- a/docs/source/howtos/index.txt +++ b/docs/source/howtos/index.txt @@ -6,4 +6,8 @@ Howtos :maxdepth: 1 howto_extend_the_comment_form.txt + howto_make_pad_work_with_a_dexterity_content_type.txt + howto_override_comments_viewlet.txt howto_override_enable_conversation.txt + howto_set_discussion_settings_with_generic_setup.txt + howto_write_a_custom_email_notification.txt diff --git a/docs/source/index.txt b/docs/source/index.txt index b5bfa4b..c8def7f 100644 --- a/docs/source/index.txt +++ b/docs/source/index.txt @@ -17,12 +17,10 @@ Contents: architecture.txt design.txt workflow.txt - comments.txt captcha.txt email-notification.txt + api/index.txt howtos/index.txt - api.txt - changes.txt diff --git a/docs/source/workflow.txt b/docs/source/workflow.txt index 3e37b91..33fbf8e 100644 --- a/docs/source/workflow.txt +++ b/docs/source/workflow.txt @@ -2,14 +2,14 @@ Permissions and Workflows ========================= -This document describes how plone.app.discussion handles permissions and +This document describes how plone.app.discussion handles permissions and workflows. Introduction ============ -plone.app.discussion uses permissions and workflows to control what a user is +plone.app.discussion uses permissions and workflows to control what a user is allowed to do. It tries to use the default Plone permissions and workflow engine as much as possible. @@ -17,77 +17,77 @@ engine as much as possible. Permissions =========== -plone.app.discussion knows two permissions to control what a user is allowed to -do. The 'Reply to item' permission to control who is allowed to post a comment -on a content object and the 'Review comments' permission to control who is +plone.app.discussion knows two permissions to control what a user is allowed to +do. The 'Reply to item' permission to control who is allowed to post a comment +on a content object and the 'Review comments' permission to control who is allowed to review comments. 1) **Permission to post a comment**: The permission to post a comment is controlled by the 'Reply to item' - permission. By default, this permission is granted to the 'Member', + permission. By default, this permission is granted to the 'Member', 'Reviewer', and 'Manager' role. 2) **Permission to review comments**: - The permission to review comments is controlled by the 'Review comments' + The permission to review comments is controlled by the 'Review comments' permission. By default, this permission is granted to the 'Reviewer' and 'Manager' role. Changing permissions -------------------- -If you want to change the way plone.app.discussion allows users to post or +If you want to change the way plone.app.discussion allows users to post or review comments you can do that by changing which permissions are granted to which rules. In Plone permissions are always granted to roles, not to users directly. -For instance, if you want to allow users without the 'Member' role to post -comments, you have to grant the 'Reply to item' permission to the +For instance, if you want to allow users without the 'Member' role to post +comments, you have to grant the 'Reply to item' permission to the 'Authenticated' role. -Or, if you don't want to allow 'Reviewers' to review comments anymore, you +Or, if you don't want to allow 'Reviewers' to review comments anymore, you can just remove the 'Review comments' permission from the 'Reviewer' role. .. note:: For a general introduction to permissions and roles in Plone see: http://plone.org/documentation/kb/understanding-permissions/permissions-and-roles - + http://plone.org/products/dexterity/documentation/manual/developer-manual/advanced/permissions Workflows ========= -plone.app.discussion ships with a simple one-state +plone.app.discussion ships with a simple one-state workflow and a review workflow for comments: -1) **Comment Single State Workflow**: +1) **Comment Single State Workflow**: - Essentially a workflow with no transitions, but it has a published state, + Essentially a workflow with no transitions, but it has a published state, so portlets and applications that expect that state will continue to work. 2) **Comment Review Workflow**: A simple review workflow for comments - + A simple review workflow that comes with two states (pending and published) and a single transition (publish). - + The 'pending' state is the initial state. 'published' is the state where the comment is visible to everyone and non-editable. - + The 'publish' transition is protected by the 'Review comments' permission. - + :: - + * --> [pending] -- {publish} --> [published]--> * -.. note:: For a general introduction to workflows in Plone see: +.. note:: For a general introduction to workflows in Plone see: http://plone.org/documentation/kb/creating-workflows-in-plone/ Custom comment workflow ----------------------- -You can create and enable any custom workflow on the "comment" content type. +You can create and enable any custom workflow on the "comment" content type. Though, there are some special hooks in plone.app.discussion that check if the workflow that is enabled for the "comment" content type has a 'pending' state in order to do the following things: @@ -95,12 +95,12 @@ order to do the following things: 1) A portal message will be shown to the user after posting a comment, if the comment just entered the 'pending' state. - 2) A message is shown to the user if he/she accesses the bulk moderation view + 2) A message is shown to the user if he/she accesses the bulk moderation view and workflow is enabled for comments that does not implement a 'pending' state. 3) A moderator will only be emailed when comment moderation is enabled in the discussion control panel and the comment workflow contains a 'pending' - state. + state. + - diff --git a/jenkins.cfg b/jenkins.cfg index 9dafe0b..209b2f4 100644 --- a/jenkins.cfg +++ b/jenkins.cfg @@ -1,8 +1,32 @@ [buildout] extends = - buildout.cfg + https://raw.github.com/collective/buildout.plonetest/master/plone-4.3.x.cfg https://raw.github.com/plone/buildout.jenkins/master/jenkins.cfg https://raw.github.com/plone/buildout.jenkins/master/jenkins-code-analysis.cfg jenkins-test-eggs = plone.app.discussion [test] jenkins-test-directories = plone/app/discussion +parts += + flake8 + code-analysis +extensions = mr.developer +auto-checkout = + plone.recipe.codeanalysis + collective.xmltestreport +[flake8] +recipe = zc.recipe.egg +eggs = flake8 +entry-points = flake8=flake8.main:main + +[code-analysis] +recipe = plone.recipe.codeanalysis + +[sources] +plone.recipe.codeanalysis = git git://github.com/tisto/plone.recipe.codeanalysis.git pushurl=git@github.com:tisto/plone.recipe.codeanalysis.git +collective.xmltestreport = git git://github.com/collective/collective.xmltestreport.git + +[versions] +plone.app.discussion = +zope.interface = 3.6.1 +zc.buildout = 2.1.0 +zc.recipe.egg = 2.0.0 diff --git a/plone/app/discussion/bbb/__init__.py b/plone/app/discussion/bbb/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/plone/app/discussion/bbb/discussiontool.py b/plone/app/discussion/bbb/discussiontool.py deleted file mode 100644 index e69de29..0000000 diff --git a/plone/app/discussion/bbb/migration.py b/plone/app/discussion/bbb/migration.py deleted file mode 100644 index e69de29..0000000 diff --git a/plone/app/discussion/bbb/talkback.py b/plone/app/discussion/bbb/talkback.py deleted file mode 100644 index e69de29..0000000 diff --git a/plone/app/discussion/browser/comment.py b/plone/app/discussion/browser/comment.py index 97eec23..03e0732 100644 --- a/plone/app/discussion/browser/comment.py +++ b/plone/app/discussion/browser/comment.py @@ -1,8 +1,16 @@ from Acquisition import aq_inner, aq_parent +from AccessControl import getSecurityManager +from zope.component import getMultiAdapter +from Products.statusmessages.interfaces import IStatusMessage from Products.Five.browser import BrowserView from Products.CMFCore.utils import getToolByName +from plone.app.discussion import PloneAppDiscussionMessageFactory as _ +from comments import CommentForm +from z3c.form import button +from plone.z3cform.layout import wrap_form + class View(BrowserView): """Comment View. @@ -37,3 +45,64 @@ class View(BrowserView): url = "%s/view" % url self.request.response.redirect('%s#%s' % (url, context.id)) + + +class EditCommentForm(CommentForm): + """Form to edit an existing comment.""" + ignoreContext = True + id = "edit-comment-form" + label = _(u'edit_comment_form_title', default=u'Edit comment') + + def updateWidgets(self): + super(EditCommentForm, self).updateWidgets() + self.widgets['text'].value = self.context.text + # We have to rename the id, otherwise TinyMCE can't initialize + # because there are two textareas with the same id. + self.widgets['text'].id = 'overlay-comment-text' + + def _redirect(self, target=''): + if not target: + portal_state = getMultiAdapter((self.context, self.request), + name=u'plone_portal_state') + target = portal_state.portal_url() + self.request.response.redirect(target) + + @button.buttonAndHandler(_(u"edit_comment_form_button", + default=u"Edit comment"), name='comment') + def handleComment(self, action): + + # Validate form + data, errors = self.extractData() + if errors: + return + + # Check permissions + can_edit = getSecurityManager().checkPermission( + 'Edit comments', + self.context) + mtool = getToolByName(self.context, 'portal_membership') + if mtool.isAnonymousUser() or not can_edit: + return + + # Update text + self.context.text = data['text'] + + # Redirect to comment + IStatusMessage(self.request).add(_(u'comment_edit_notification', + default="Comment was edited"), + type='info') + return self._redirect( + target=self.action.replace("@@edit-comment", "@@view")) + + @button.buttonAndHandler(_(u'cancel_form_button', + default=u'Cancel'), name='cancel') + def handle_cancel(self, action): + IStatusMessage(self.request).add( + _(u'comment_edit_cancel_notification', + default=u'Edit comment cancelled'), + type='info') + return self._redirect(target=self.context.absolute_url()) + +EditComment = wrap_form(EditCommentForm) + +#EOF diff --git a/plone/app/discussion/browser/comments.pt b/plone/app/discussion/browser/comments.pt index fbc95eb..fa2c6b2 100644 --- a/plone/app/discussion/browser/comments.pt +++ b/plone/app/discussion/browser/comments.pt @@ -1,6 +1,7 @@
-
- + alt reply/author_name" /> - + alt reply/author_name" />
Poster Name - Anonymous + tal:replace="reply/author_name" /> + Anonymous says:
+
+ +
+ +
- 0: + if len(conversation.objectIds()): if workflow_actions: return replies_with_workflow_actions() else: @@ -410,13 +461,14 @@ class CommentsViewlet(ViewletBase): if username is None: # return the default user image if no username is given - return 'defaultUser.gif' + return 'defaultUser.png' else: portal_membership = getToolByName(self.context, 'portal_membership', None) - return portal_membership.getPersonalPortrait(username)\ - .absolute_url() + return portal_membership\ + .getPersonalPortrait(username)\ + .absolute_url() def anonymous_discussion_allowed(self): # Check if anonymous comments are allowed in the registry @@ -424,6 +476,12 @@ class CommentsViewlet(ViewletBase): settings = registry.forInterface(IDiscussionSettings, check=False) return settings.anonymous_comments + def edit_comment_allowed(self): + # Check if editing comments is allowed in the registry + registry = queryUtility(IRegistry) + settings = registry.forInterface(IDiscussionSettings, check=False) + return settings.edit_comment_enabled + def show_commenter_image(self): # Check if showing commenter image is enabled in the registry registry = queryUtility(IRegistry) diff --git a/plone/app/discussion/browser/configure.zcml b/plone/app/discussion/browser/configure.zcml index b60a64d..7464501 100644 --- a/plone/app/discussion/browser/configure.zcml +++ b/plone/app/discussion/browser/configure.zcml @@ -71,13 +71,24 @@ permission="zope2.View" /> - + + + + -
-
+ Warning -
-
+ + You have not configured a mail host or a site 'From' address, various features including contact forms, email notification and password reset will not work. Go to the @@ -38,15 +38,15 @@ >Mail control panel to fix this. -
-
+ +
-
-
+ Warning -
-
+ + You have configured a custom workflow for the 'Discussion Item' content type. You can enable/disable the comment moderation in this control panel only if you use one of the default @@ -58,15 +58,15 @@ >Types control panel to choose a workflow for the 'Discussion Item' type. -
-
+ +
-
-
+ Warning -
-
+ + You have comments that have not been migrated to the new commenting system that has been introduced in Plone 4.1. Please @@ -77,8 +77,8 @@ >migrate your comments to fix this. -
-
+ +
Portal status message @@ -89,12 +89,14 @@ tal:attributes="href string:$portal_url/plone_control_panel" i18n:translate=""> Site Setup - › +

View Title

-
- +
+
+ +
diff --git a/plone/app/discussion/browser/controlpanel.py b/plone/app/discussion/browser/controlpanel.py index c330656..822ca2b 100644 --- a/plone/app/discussion/browser/controlpanel.py +++ b/plone/app/discussion/browser/controlpanel.py @@ -24,6 +24,7 @@ from z3c.form import button from z3c.form.browser.checkbox import SingleCheckBoxFieldWidget from plone.app.discussion.interfaces import IDiscussionSettings, _ +from plone.app.discussion.upgrades import update_registry class DiscussionSettingsEditForm(controlpanel.RegistryEditForm): @@ -32,16 +33,18 @@ class DiscussionSettingsEditForm(controlpanel.RegistryEditForm): schema = IDiscussionSettings id = "DiscussionSettingsEditForm" label = _(u"Discussion settings") - description = _(u"help_discussion_settings_editform", - default=u"Some discussion related settings are not " - "located in the Discussion Control Panel.\n" - "To enable comments for a specific content type, " - "go to the Types Control Panel of this type and " - "choose \"Allow comments\".\n" - "To enable the moderation workflow for comments, " - "go to the Types Control Panel, choose " - "\"Comment\" and set workflow to " - "\"Comment Review Workflow\".") + description = _( + u"help_discussion_settings_editform", + default=u"Some discussion related settings are not " + u"located in the Discussion Control Panel.\n" + u"To enable comments for a specific content type, " + u"go to the Types Control Panel of this type and " + u"choose \"Allow comments\".\n" + u"To enable the moderation workflow for comments, " + u"go to the Types Control Panel, choose " + u"\"Comment\" and set workflow to " + u"\"Comment Review Workflow\"." + ) def updateFields(self): super(DiscussionSettingsEditForm, self).updateFields() @@ -49,6 +52,8 @@ class DiscussionSettingsEditForm(controlpanel.RegistryEditForm): SingleCheckBoxFieldWidget self.fields['moderation_enabled'].widgetFactory = \ SingleCheckBoxFieldWidget + self.fields['edit_comment_enabled'].widgetFactory = \ + SingleCheckBoxFieldWidget self.fields['anonymous_comments'].widgetFactory = \ SingleCheckBoxFieldWidget self.fields['show_commenter_image'].widgetFactory = \ @@ -59,7 +64,13 @@ class DiscussionSettingsEditForm(controlpanel.RegistryEditForm): SingleCheckBoxFieldWidget def updateWidgets(self): - super(DiscussionSettingsEditForm, self).updateWidgets() + try: + super(DiscussionSettingsEditForm, self).updateWidgets() + except KeyError: + # upgrade profile not visible in prefs_install_products_form + # provide auto-upgrade + update_registry(self.context) + super(DiscussionSettingsEditForm, self).updateWidgets() self.widgets['globally_enabled'].label = _(u"Enable Comments") self.widgets['anonymous_comments'].label = _(u"Anonymous Comments") self.widgets['show_commenter_image'].label = _(u"Commenter Image") @@ -108,12 +119,17 @@ class DiscussionSettingsControlPanel(controlpanel.ControlPanelFormWrapper): output.append("globally_enabled") # Comment moderation - if 'one_state_workflow' not in workflow_chain and \ - 'comment_review_workflow' not in workflow_chain: + one_state_worklow_disabled = 'one_state_workflow' not in workflow_chain + comment_review_workflow_disabled = \ + 'comment_review_workflow' not in workflow_chain + if one_state_worklow_disabled and comment_review_workflow_disabled: output.append("moderation_custom") elif settings.moderation_enabled: output.append("moderation_enabled") + if settings.edit_comment_enabled: + output.append("edit_comment_enabled") + # Anonymous comments if settings.anonymous_comments: output.append("anonymous_comments") @@ -151,8 +167,10 @@ class DiscussionSettingsControlPanel(controlpanel.ControlPanelFormWrapper): """ wftool = getToolByName(self.context, "portal_workflow", None) workflow_chain = wftool.getChainForPortalType('Discussion Item') - if 'one_state_workflow' in workflow_chain \ - or 'comment_review_workflow' in workflow_chain: + one_state_workflow_enabled = 'one_state_workflow' in workflow_chain + comment_review_workflow_enabled = \ + 'comment_review_workflow' in workflow_chain + if one_state_workflow_enabled or comment_review_workflow_enabled: return return True @@ -176,7 +194,7 @@ def notify_configuration_changed(event): # Discussion control panel setting changed if event.record.fieldName == 'moderation_enabled': # Moderation enabled has changed - if event.record.value == True: + if event.record.value is True: # Enable moderation workflow wftool.setChainForPortalTypes(('Discussion Item',), 'comment_review_workflow') diff --git a/plone/app/discussion/browser/conversation.py b/plone/app/discussion/browser/conversation.py index e605354..3e05416 100644 --- a/plone/app/discussion/browser/conversation.py +++ b/plone/app/discussion/browser/conversation.py @@ -14,10 +14,22 @@ from Products.CMFPlone.interfaces import INonStructuralFolder from plone.app.discussion.interfaces import IDiscussionSettings +try: + from plone.dexterity.interfaces import IDexterityContent + DEXTERITY_INSTALLED = True +except: + DEXTERITY_INSTALLED = False + class ConversationView(object): def enabled(self): + if DEXTERITY_INSTALLED and IDexterityContent.providedBy(self.context): + return self._enabled_for_dexterity_types() + else: + return self._enabled_for_archetypes() + + def _enabled_for_archetypes(self): """ Returns True if discussion is enabled for this conversation. This method checks five different settings in order to figure out if @@ -52,8 +64,9 @@ class ConversationView(object): return False # Always return False if object is a folder - if (IFolderish.providedBy(context) and - not INonStructuralFolder.providedBy(context)): + context_is_folderish = IFolderish.providedBy(context) + context_is_structural = not INonStructuralFolder.providedBy(context) + if (context_is_folderish and context_is_structural): return False def traverse_parents(context): @@ -61,8 +74,9 @@ class ConversationView(object): # enabled in a parent folder. for obj in aq_chain(context): if not IPloneSiteRoot.providedBy(obj): - if (IFolderish.providedBy(obj) and - not INonStructuralFolder.providedBy(obj)): + obj_is_folderish = IFolderish.providedBy(obj) + obj_is_stuctural = not INonStructuralFolder.providedBy(obj) + if (obj_is_folderish and obj_is_stuctural): flag = getattr(obj, 'allow_discussion', None) if flag is not None: return flag @@ -94,3 +108,38 @@ class ConversationView(object): return False return True + + def _enabled_for_dexterity_types(self): + """ Returns True if discussion is enabled for this conversation. + + This method checks five different settings in order to figure out if + discussion is enable on a specific content object: + + 1) Check if discussion is enabled globally in the plone.app.discussion + registry/control panel. + + 2) Check if the allow_discussion boolean flag on the content object is + set. If it is set to True or False, return the value. If it set to + None, try further. + + 3) Check if discussion is allowed for the content type. + """ + context = aq_inner(self.context) + + # Fetch discussion registry + registry = queryUtility(IRegistry) + settings = registry.forInterface(IDiscussionSettings, check=False) + + # Check if discussion is allowed globally + if not settings.globally_enabled: + return False + + # Check if discussion is allowed on the content object + if hasattr(context, "allow_discussion"): + if context.allow_discussion is not None: + return context.allow_discussion + + # Check if discussion is allowed on the content type + portal_types = getToolByName(self, 'portal_types') + document_fti = getattr(portal_types, context.portal_type) + return document_fti.getProperty('allow_discussion') diff --git a/plone/app/discussion/browser/javascripts/comments.js b/plone/app/discussion/browser/javascripts/comments.js index f0de4b2..3060a3d 100644 --- a/plone/app/discussion/browser/javascripts/comments.js +++ b/plone/app/discussion/browser/javascripts/comments.js @@ -35,8 +35,9 @@ */ reply_div.appendTo(comment_div).css("display", "none"); - /* Remove id="reply" attribute, since we use it to uniquely + /* Remove id="commenting" attribute, since we use it to uniquely define the main reply form. */ + // Still belongs to class="reply" reply_div.removeAttr("id"); /* Hide the reply button (only hide, because we may want to show it @@ -47,6 +48,13 @@ /* Fetch the reply form inside the reply div */ var reply_form = reply_div.find("form"); + /* Change the id of the textarea of the reply form + * To avoid conflict later between textareas with same id 'form-widgets-comment-text' while implementing a seperate instance of TinyMCE + * */ + reply_form.find('#formfield-form-widgets-comment-text').attr('id', 'formfield-form-widgets-new-textarea'+comment_id ); + reply_form.find('#form-widgets-comment-text').attr('id', 'form-widgets-new-textarea'+comment_id ); + + /* Populate the hidden 'in_reply_to' field with the correct comment id */ reply_form.find("input[name='form.widgets.in_reply_to']") @@ -127,23 +135,23 @@ parents(). filter(".comment"). find(".reply-to-comment-button"); - + /* Find the reply-to-comment form and hide and remove it again. */ $.reply_to_comment_form = $(this).parents().filter(".reply"); $.reply_to_comment_form.slideUp("slow", function () { $(this).remove(); }); - + /* Show the reply-to-comment button again. */ reply_to_comment_button.css("display", "inline"); - + }); /********************************************************************** * Publish a single comment. **********************************************************************/ - $("input[name='form.button.PublishComment']").live('click', function () { + $("input[name='form.button.PublishComment']").on('click', function () { var trigger = this; var form = $(this).parents("form"); var data = $(form).serialize(); @@ -151,7 +159,7 @@ $.ajax({ type: "GET", url: form_url, - data: "workflow_action=publish", + data: data, context: trigger, success: function (msg) { // remove button (trigger object can't be directly removed) @@ -165,11 +173,20 @@ return false; }); + /********************************************************************** + * Edit a comment + **********************************************************************/ + $("form[name='edit']").prepOverlay({ + cssclass: 'overlay-edit-comment', + width: '60%', + subtype: 'ajax', + filter: '#content>*' + }) /********************************************************************** * Delete a comment and its answers. **********************************************************************/ - $("input[name='form.button.DeleteComment']").live('click', function () { + $("input[name='form.button.DeleteComment']").on('click', function () { var trigger = this; var form = $(this).parents("form"); var data = $(form).serialize(); @@ -177,6 +194,7 @@ $.ajax({ type: 'POST', url: form_url, + data: data, context: $(trigger).parents(".comment"), success: function (data) { var comment = $(this); diff --git a/plone/app/discussion/browser/javascripts/controlpanel.js b/plone/app/discussion/browser/javascripts/controlpanel.js index 19f5898..e379f6f 100644 --- a/plone/app/discussion/browser/javascripts/controlpanel.js +++ b/plone/app/discussion/browser/javascripts/controlpanel.js @@ -7,39 +7,40 @@ // This unnamed function allows us to use $ inside of a block of code // without permanently overwriting $. // http://docs.jquery.com/Using_jQuery_with_Other_Libraries - + /* Disable a control panel setting */ $.disableSettings = function (settings) { $.each(settings, function (intIndex, setting) { setting.addClass('unclickable'); var setting_field = $(setting).find("input,select"); setting_field.attr('disabled', 'disabled'); - }); + }); }; - + /* Enable a control panel setting */ $.enableSettings = function (settings) { $.each(settings, function (intIndex, setting) { setting.removeClass('unclickable'); var setting_field = $(setting).find("input,select"); setting_field.removeAttr('disabled'); - }); + }); }; - + /* Update settings */ $.updateSettings = function () { - + var globally_enabled = $("#content").hasClass("globally_enabled"); var anonymous_comments = $("#content").hasClass("anonymous_comments"); var moderation_enabled = $("#content").hasClass("moderation_enabled"); var moderation_custom = $("#content").hasClass("moderation_custom"); var invalid_mail_setup = $("#content").hasClass("invalid_mail_setup"); - + /* If commenting is globally disabled, disable all settings. */ if (globally_enabled === true) { $.enableSettings([ $('#formfield-form-widgets-anonymous_comments'), $('#formfield-form-widgets-moderation_enabled'), + $('#formfield-form-widgets-edit_comment_enabled'), $('#formfield-form-widgets-text_transform'), $('#formfield-form-widgets-captcha'), $('#formfield-form-widgets-show_commenter_image'), @@ -52,6 +53,7 @@ $.disableSettings([ $('#formfield-form-widgets-anonymous_comments'), $('#formfield-form-widgets-moderation_enabled'), + $('#formfield-form-widgets-edit_comment_enabled'), $('#formfield-form-widgets-text_transform'), $('#formfield-form-widgets-captcha'), $('#formfield-form-widgets-show_commenter_image'), @@ -60,7 +62,7 @@ $('#formfield-form-widgets-user_notification_enabled') ]); } - + /* If the mail setup is invalid, disable the mail settings. */ if (invalid_mail_setup === true) { $.disableSettings([ @@ -73,14 +75,14 @@ /* Enable mail setup only if discussion is enabled. */ if (globally_enabled === true) { $.enableSettings([ - $('#formfield-form-widgets-moderator_notification_enabled'), - $('#formfield-form-widgets-moderator_email'), + $('#formfield-form-widgets-moderator_notification_enabled'), + $('#formfield-form-widgets-moderator_email'), $('#formfield-form-widgets-user_notification_enabled') ]); } } - - /* If a custom workflow for comments is enabled, disable the moderation + + /* If a custom workflow for comments is enabled, disable the moderation switch. */ if (moderation_custom === true) { $.disableSettings([ @@ -89,21 +91,21 @@ } }; //#JSCOVERAGE_IF 0 - + /************************************************************************** * Window Load Function: Executes when complete page is fully loaded, * including all frames, **************************************************************************/ $(window).load(function () { - + // Update settings on page load $.updateSettings(); - + // Set #content class and update settings afterwards - $("input,select").live("change", function (e) { + $("input,select").on("change", function (e) { var id = $(this).attr("id"); - if (id === "form-widgets-globally_enabled-0") { - if ($(this).attr("checked") === true) { + if (id === "form-widgets-globally_enabled-0") { + if ($(this).attr("checked")) { $("#content").addClass("globally_enabled"); } else { @@ -112,17 +114,16 @@ $.updateSettings(); } }); - + /********************************************************************** - * Remove the disabled attribute from all form elements before + * Remove the disabled attribute from all form elements before * submitting the form. Otherwise the z3c.form will raise errors on * the required attributes. **********************************************************************/ $("form#DiscussionSettingsEditForm").bind("submit", function (e) { $(this).find("input,select").removeAttr('disabled'); - $(this).submit(); }); - + }); //#JSCOVERAGE_ENDIF diff --git a/plone/app/discussion/browser/javascripts/javascripts.txt b/plone/app/discussion/browser/javascripts/javascripts.txt index 59fffb5..99f3056 100644 --- a/plone/app/discussion/browser/javascripts/javascripts.txt +++ b/plone/app/discussion/browser/javascripts/javascripts.txt @@ -17,7 +17,7 @@ content object. Each comment div has a unique id::
- +
@@ -34,7 +34,7 @@ The comment form is rendered inside a "commenting" div::
diff --git a/plone/app/discussion/browser/javascripts/moderation.js b/plone/app/discussion/browser/javascripts/moderation.js index a5cade1..320477d 100644 --- a/plone/app/discussion/browser/javascripts/moderation.js +++ b/plone/app/discussion/browser/javascripts/moderation.js @@ -1,22 +1,22 @@ /****************************************************************************** - * + * * jQuery functions for the plone.app.discussion bulk moderation. - * + * ******************************************************************************/ (function ($) { - // This unnamed function allows us to use $ inside of a block of code + // This unnamed function allows us to use $ inside of a block of code // without permanently overwriting $. // http://docs.jquery.com/Using_jQuery_with_Other_Libraries - + //#JSCOVERAGE_IF 0 - + /************************************************************************** - * Window Load Function: Executes when complete page is fully loaded, + * Window Load Function: Executes when complete page is fully loaded, * including all frames, - **************************************************************************/ + **************************************************************************/ $(window).load(function () { - + /********************************************************************** * Delete a single comment. **********************************************************************/ @@ -47,8 +47,8 @@ } }); }); - - + + /********************************************************************** * Publish a single comment. **********************************************************************/ @@ -78,8 +78,8 @@ } }); }); - - + + /********************************************************************** * Bulk actions for comments (delete, publish) **********************************************************************/ @@ -116,8 +116,8 @@ selectField.find("option[value='-1']").attr('selected', 'selected'); } }); - - + + /********************************************************************** * Check or uncheck all checkboxes from the batch moderation page. **********************************************************************/ @@ -134,12 +134,12 @@ $(this).val("0"); } }); - - + + /********************************************************************** * Show full text of a comment in the batch moderation page. **********************************************************************/ - $(".show-full-comment-text").click(function (e) { + $(".show-full-comment-text").click(function (e) { e.preventDefault(); var target = $(this).attr("href"); var td = $(this).parent(); @@ -156,9 +156,9 @@ } }); }); - + }); - + //#JSCOVERAGE_ENDIF - + }(jQuery)); diff --git a/plone/app/discussion/browser/migration.py b/plone/app/discussion/browser/migration.py index e7ed98d..cf615ce 100644 --- a/plone/app/discussion/browser/migration.py +++ b/plone/app/discussion/browser/migration.py @@ -14,6 +14,9 @@ from plone.app.discussion.comment import CommentFactory from plone.app.discussion.interfaces import IConversation, IReplies, IComment +from types import TupleType +from DateTime import DateTime + def DT2dt(DT): """Convert a Zope DateTime (with timezone) into a Python datetime (GMT).""" @@ -64,8 +67,15 @@ class View(BrowserView): if len(replies) == 0: return True - for reply in replies: + workflow = context.portal_workflow + oldchain = workflow.getChainForPortalType('Discussion Item') + new_workflow = workflow.comment_review_workflow + mt = getToolByName(self.context, 'portal_membership') + if type(oldchain) == TupleType and len(oldchain) > 0: + oldchain = oldchain[0] + + for reply in replies: # log indent = " " for i in range(depth): @@ -87,9 +97,30 @@ class View(BrowserView): comment.mime_type = 'text/html' comment.creator = reply.Creator() - email = reply.getProperty('email', None) - if email: - comment.author_email = email + try: + comment.author_username = reply.author_username + except AttributeError: + comment.author_username = reply.Creator() + + member = mt.getMemberById(comment.author_username) + if member: + comment.author_name = member.fullname + + if not comment.author_name: + # In migrated site member.fullname = '' + # while member.getProperty('fullname') has the + # correct value + if member: + comment.author_name = member.getProperty( + 'fullname' + ) + else: + comment.author_name = comment.author_username + + try: + comment.author_email = reply.email + except AttributeError: + comment.author_email = None comment.creation_date = DT2dt(reply.creation_date) comment.modification_date = DT2dt(reply.modification_date) @@ -105,6 +136,32 @@ class View(BrowserView): replies = IReplies(comment_to_reply_to) new_in_reply_to = replies.addComment(comment) + # migrate the review state + old_status = workflow.getStatusOf(oldchain, reply) + new_status = { + 'action': None, + 'actor': None, + 'comment': 'Migrated workflow state', + 'review_state': old_status and old_status.get( + 'review_state', + new_workflow.initial_state + ) or 'published', + 'time': DateTime() + } + workflow.setStatusOf('comment_review_workflow', + comment, + new_status) + + auto_transition = new_workflow._findAutomaticTransition( + comment, + new_workflow._getWorkflowStateOf(comment)) + if auto_transition is not None: + new_workflow._changeStateOf(comment, auto_transition) + else: + new_workflow.updateRoleMappingsFor(comment) + comment.reindexObject(idxs=['allowedRolesAndUsers', + 'review_state']) + self.total_comments_migrated += 1 # migrate all talkbacks of the reply @@ -133,13 +190,17 @@ class View(BrowserView): object_provides='Products.CMFCore.interfaces._content.IContentish') log("Found %s content objects." % len(brains)) - count_discussion_items = len(catalog.searchResults( - Type='Discussion Item')) - count_comments_pad = len(catalog.searchResults( - object_provides=IComment.__identifier__)) - count_comments_old = len(catalog.searchResults( - object_provides=IDiscussionResponse.\ - __identifier__)) + count_discussion_items = len( + catalog.searchResults(Type='Discussion Item') + ) + count_comments_pad = len( + catalog.searchResults(object_provides=IComment.__identifier__) + ) + count_comments_old = len( + catalog.searchResults( + object_provides=IDiscussionResponse.__identifier__ + ) + ) log("Found %s Discussion Item objects." % count_discussion_items) log("Found %s old discussion items." % count_comments_old) @@ -172,10 +233,14 @@ class View(BrowserView): obj.talkback = None if self.total_comments_deleted != self.total_comments_migrated: - log("Something went wrong during migration. The number of \ - migrated comments (%s) differs from the number of deleted \ - comments (%s)." # pragma: no cover - % (self.total_comments_migrated, self.total_comments_deleted)) + log( + "Something went wrong during migration. The number of " + + "migrated comments (%s) differs from the number of deleted " + + "comments (%s)." % ( + self.total_comments_migrated, + self.total_comments_deleted + ) + ) if not test: # pragma: no cover transaction.abort() # pragma: no cover log("Abort transaction") # pragma: no cover @@ -188,9 +253,11 @@ class View(BrowserView): % (self.total_comments_migrated, count_comments_old)) if self.total_comments_migrated != count_comments_old: - log("%s comments could not be migrated." % - (count_comments_old - \ - self.total_comments_migrated)) # pragma: no cover + log( + "%s comments could not be migrated." % ( + count_comments_old - self.total_comments_migrated + ) + ) # pragma: no cover log("Please make sure your " + "portal catalog is up-to-date.") # pragma: no cover diff --git a/plone/app/discussion/browser/moderation.pt b/plone/app/discussion/browser/moderation.pt index 09c1020..d5c2065 100644 --- a/plone/app/discussion/browser/moderation.pt +++ b/plone/app/discussion/browser/moderation.pt @@ -25,18 +25,18 @@ Moderate comments -
-
Warning
-
+ Warning + Moderation workflow is disabled. You have to enable the 'Comment Review Workflow' for the Comment content type before you can moderate comments here. -
-
+ +
@@ -56,7 +56,7 @@
- +
- "},F={option:[1,""],legend:[1,"
","
"],thead:[1,"
@@ -87,7 +87,7 @@
diff --git a/plone/app/discussion/browser/moderation.py b/plone/app/discussion/browser/moderation.py index 30c5f72..93f0b97 100644 --- a/plone/app/discussion/browser/moderation.py +++ b/plone/app/discussion/browser/moderation.py @@ -1,5 +1,7 @@ # -*- coding: utf-8 -*- from Acquisition import aq_inner, aq_parent +from AccessControl import getSecurityManager +from zope.component import queryUtility from AccessControl import Unauthorized, getSecurityManager @@ -10,6 +12,8 @@ from Products.CMFCore.utils import getToolByName from Products.statusmessages.interfaces import IStatusMessage +from plone.registry.interfaces import IRegistry +from plone.app.discussion.interfaces import IDiscussionSettings from plone.app.discussion.interfaces import _ from plone.app.discussion.interfaces import IComment from plone.app.discussion.interfaces import IReplies @@ -97,15 +101,28 @@ class DeleteComment(BrowserView): comment = aq_inner(self.context) conversation = aq_parent(comment) content_object = aq_parent(conversation) - del conversation[comment.id] - IStatusMessage(self.context.REQUEST).addStatusMessage( - _("Comment deleted."), - type="info") + # conditional security + # base ZCML condition zope2.deleteObject allows 'delete own object' + # modify this for 'delete_own_comment_allowed' controlpanel setting + if self.can_delete(comment): + del conversation[comment.id] + content_object.reindexObject() + IStatusMessage(self.context.REQUEST).addStatusMessage( + _("Comment deleted."), + type="info") came_from = self.context.REQUEST.HTTP_REFERER - if len(came_from) == 0: + # if the referrer already has a came_from in it, don't redirect back + if len(came_from) == 0 or 'came_from=' in came_from: came_from = content_object.absolute_url() return self.context.REQUEST.RESPONSE.redirect(came_from) + def can_delete(self, reply): + """By default requires 'Review comments'. + If 'delete own comments' is enabled, requires 'Edit comments'. + """ + return getSecurityManager().checkPermission('Delete comments', + aq_inner(reply)) + class DeleteOwnComment(DeleteComment): """Delete an own comment if it has no replies. Following conditions have to be true @@ -160,16 +177,16 @@ class PublishComment(BrowserView): comment = aq_inner(self.context) content_object = aq_parent(aq_parent(comment)) workflowTool = getToolByName(comment, 'portal_workflow', None) - current_state = workflowTool.getInfoFor(comment, 'review_state') - if current_state != 'published': - workflowTool.doActionFor(comment, 'publish') - catalogTool = getToolByName(comment, 'portal_catalog') - catalogTool.reindexObject(comment) + workflow_action = self.request.form.get('workflow_action', 'publish') + workflowTool.doActionFor(comment, workflow_action) + comment.reindexObject() + content_object.reindexObject(idxs=['total_comments']) IStatusMessage(self.context.REQUEST).addStatusMessage( _("Comment approved."), type="info") came_from = self.context.REQUEST.HTTP_REFERER - if len(came_from) == 0: + # if the referrer already has a came_from in it, don't redirect back + if len(came_from) == 0 or 'came_from=' in came_from: came_from = content_object.absolute_url() return self.context.REQUEST.RESPONSE.redirect(came_from) @@ -230,12 +247,13 @@ class BulkActionsView(BrowserView): context = aq_inner(self.context) for path in self.paths: comment = context.restrictedTraverse(path) + content_object = aq_parent(aq_parent(comment)) workflowTool = getToolByName(comment, 'portal_workflow') current_state = workflowTool.getInfoFor(comment, 'review_state') if current_state != 'published': workflowTool.doActionFor(comment, 'publish') - catalog = getToolByName(comment, 'portal_catalog') - catalog.reindexObject(comment) + comment.reindexObject() + content_object.reindexObject(idxs=['total_comments']) def mark_as_spam(self): raise NotImplementedError @@ -252,4 +270,6 @@ class BulkActionsView(BrowserView): for path in self.paths: comment = context.restrictedTraverse(path) conversation = aq_parent(comment) + content_object = aq_parent(conversation) del conversation[comment.id] + content_object.reindexObject(idxs=['total_comments']) diff --git a/plone/app/discussion/browser/stylesheets/discussion.css b/plone/app/discussion/browser/stylesheets/discussion.css index 548d23d..3857836 100644 --- a/plone/app/discussion/browser/stylesheets/discussion.css +++ b/plone/app/discussion/browser/stylesheets/discussion.css @@ -11,7 +11,7 @@ .discussion, #commenting { /* Clear "float: left" from "manage portlets" div above the - comment viewlet. This will get fixed in the next Plone 4 + comment viewlet. This will get fixed in the next Plone 4 release. */ clear: both; } @@ -46,6 +46,7 @@ clear: both; margin: 1em 0; overflow: auto; + border: 1px solid #ccc; } .commentBody p { @@ -55,7 +56,7 @@ .discussion .documentByLine { float: left; margin-left: 0; - margin-bottom: 0.5em; + margin-bottom: 0.5em; } .commentActions { @@ -65,8 +66,52 @@ .discussion .discreet { color: #666666; - font-size: 85%; + font-size: 85%; } +.loginbutton { + margin-bottom: 1.25em; +} +.commentactionsform { + display: inline; +} + +.replyTreeLevel0 { + margin-left: 0em; +} +.replyTreeLevel1 { + margin-left: 1em; +} +.replyTreeLevel2 { + margin-left: 2em; +} +.replyTreeLevel3 { + margin-left: 3em; +} +.replyTreeLevel4 { + margin-left: 4em; +} +.replyTreeLevel5 { + margin-left: 5em; +} +.replyTreeLevel6 { + margin-left: 6em; +} +.replyTreeLevel7 { + margin-left: 7em; +} +.replyTreeLevel8 { + margin-left: 8em; +} +.replyTreeLevel9 { + margin-left: 9em; +} +.replyTreeLevel10 { + margin-left: 10em; +} +.defaultuserimg { + border: 0; +} + /* Reply Form -------------------------------------------------------------------------- */ @@ -78,7 +123,7 @@ .reply .text-widget { /* Make sure the input fields are always below the label. This sometimes - * break when the reply form is copied from the main comment form. + * break when the reply form is copied from the main comment form. */ display: block; } @@ -120,6 +165,10 @@ #review-comments { margin: 0; + width: 100%; +} +#review-comments tbody tr { + vertical-align: top } #fieldset-moderate-comments { @@ -137,7 +186,7 @@ /* Plone 4 Styles -------------------------------------------------------------------------- */ -/* These styles are only applied for Plone 4, since Plone 3.x does +/* These styles are only applied for Plone 4, since Plone 3.x does not have a .row class for portal-column-content. */ .row #dobulkaction { @@ -174,3 +223,9 @@ .row .discussion label { font-weight:bold; } + +/* editing comments */ + +.overlay-edit-comment textarea { + height: 10em; +} \ No newline at end of file diff --git a/plone/app/discussion/browser/validator.py b/plone/app/discussion/browser/validator.py index 87d4914..9c5b5dd 100644 --- a/plone/app/discussion/browser/validator.py +++ b/plone/app/discussion/browser/validator.py @@ -32,7 +32,7 @@ except ImportError: pass try: - from plone.formwidget.recaptcha.validator import WrongCaptchaCode + from plone.formwidget.recaptcha.validator import WrongCaptchaCode # noqa except ImportError: pass diff --git a/plone/app/discussion/catalog.py b/plone/app/discussion/catalog.py index e7d321b..12382df 100644 --- a/plone/app/discussion/catalog.py +++ b/plone/app/discussion/catalog.py @@ -61,7 +61,7 @@ def commentators(object): if object.meta_type != 'Discussion Item': try: conversation = IConversation(object) - return tuple(conversation.commentators.keys()) + return conversation.public_commentators except TypeError: # pragma: no cover # The item is contentish but nobody # implemented an adapter for it diff --git a/plone/app/discussion/comment.py b/plone/app/discussion/comment.py index 14822fd..193f30e 100644 --- a/plone/app/discussion/comment.py +++ b/plone/app/discussion/comment.py @@ -10,6 +10,7 @@ from smtplib import SMTPException from zope.annotation.interfaces import IAnnotatable +from zope.event import notify from zope.component.factory import Factory from zope.component import queryUtility @@ -32,6 +33,11 @@ from OFS.Traversable import Traversable from plone.registry.interfaces import IRegistry +from plone.app.discussion.events import CommentAddedEvent +from plone.app.discussion.events import CommentRemovedEvent +from plone.app.discussion.events import ReplyAddedEvent +from plone.app.discussion.events import ReplyRemovedEvent + from plone.app.discussion import PloneAppDiscussionMessageFactory as _ from plone.app.discussion.interfaces import IComment from plone.app.discussion.interfaces import IConversation @@ -41,29 +47,32 @@ from Products.CMFCore.CMFCatalogAware import CatalogAware from Products.CMFCore.CMFCatalogAware import WorkflowAware from OFS.role import RoleManager +from AccessControl import ClassSecurityInfo +from AccessControl.SecurityManagement import getSecurityManager +from Products.CMFCore import permissions COMMENT_TITLE = _( u"comment_title", - default=u"${creator} on ${content}") + default=u"${author_name} on ${content}") MAIL_NOTIFICATION_MESSAGE = _( u"mail_notification_message", default=u"A comment on '${title}' " - "has been posted here: ${link}\n\n" - "---\n" - "${text}\n" - "---\n") + u"has been posted here: ${link}\n\n" + u"---\n" + u"${text}\n" + u"---\n") MAIL_NOTIFICATION_MESSAGE_MODERATOR = _( u"mail_notification_message_moderator", default=u"A comment on '${title}' " - "has been posted here: ${link}\n\n" - "---\n" - "${text}\n" - "---\n\n" - "Approve comment:\n${link_approve}\n\n" - "Delete comment:\n${link_delete}\n") + u"has been posted here: ${link}\n\n" + u"---\n" + u"${text}\n" + u"---\n\n" + u"Approve comment:\n${link_approve}\n\n" + u"Delete comment:\n${link_delete}\n") logger = logging.getLogger("plone.app.discussion") @@ -78,6 +87,7 @@ class Comment(CatalogAware, WorkflowAware, DynamicType, Traversable, """ implements(IComment) + security = ClassSecurityInfo() meta_type = portal_type = 'Discussion Item' # This needs to be kept in sync with types/Discussion_Item.xml title @@ -110,6 +120,15 @@ class Comment(CatalogAware, WorkflowAware, DynamicType, Traversable, def __init__(self): self.creation_date = self.modification_date = datetime.utcnow() + self.mime_type = 'text/plain' + + user = getSecurityManager().getUser() + if user and user.getId(): + aclpath = [x for x in user.getPhysicalPath() if x] + self._owner = (aclpath, user.getId(),) + self.__ac_local_roles__ = { + user.getId(): ['Owner'] + } @property def __name__(self): @@ -142,10 +161,23 @@ class Comment(CatalogAware, WorkflowAware, DynamicType, Traversable, return '' if isinstance(text, unicode): text = text.encode('utf8') - return transforms.convertTo(targetMimetype, - text, - context=self, - mimetype=sourceMimetype).getData() + transform = transforms.convertTo( + targetMimetype, + text, + context=self, + mimetype=sourceMimetype) + if transform: + return transform.getData() + else: + logger = logging.getLogger("plone.app.discussion") + logger.error(_( + u"Transform '%s' => '%s' not available." % ( + sourceMimetype, + targetMimetype + ) + + u"Failed to transform comment '%s'." % self.absolute_url() + )) + return text def Title(self): """The title of the comment. @@ -154,26 +186,31 @@ class Comment(CatalogAware, WorkflowAware, DynamicType, Traversable, if self.title: return self.title - if not self.creator: - creator = translate(Message(_(u"label_anonymous", - default=u"Anonymous"))) + if not self.author_name: + author_name = translate( + Message(_( + u"label_anonymous", + default=u"Anonymous" + )) + ) else: - creator = self.creator - creator = creator + author_name = self.author_name # Fetch the content object (the parent of the comment is the # conversation, the parent of the conversation is the content object). content = aq_base(self.__parent__.__parent__) title = translate( Message(COMMENT_TITLE, - mapping={'creator': creator, + mapping={'author_name': safe_unicode(author_name), 'content': safe_unicode(content.Title())})) return title def Creator(self): """The name of the person who wrote the comment. """ - return self.creator + return self.creator or self.author_name + + security.declareProtected(permissions.View, 'Type') def Type(self): """The Discussion Item content type. @@ -208,9 +245,7 @@ def notify_content_object(obj, event): content_obj = aq_parent(aq_parent(obj)) content_obj.reindexObject(idxs=('total_comments', 'last_comment_date', - 'commentators', - )) - + 'commentators')) def notify_content_object_deleted(obj, event): """Remove all comments of a content object when the content object has been @@ -221,28 +256,59 @@ def notify_content_object_deleted(obj, event): while conversation: del conversation[conversation.keys()[0]] +def notify_comment_added(obj, event): + """ Notify custom discussion events when a comment is added or replied + """ + conversation = aq_parent(obj) + context = aq_parent(conversation) + if getattr(obj, 'in_reply_to', None): + return notify(ReplyAddedEvent(context, obj)) + return notify(CommentAddedEvent(context, obj)) + +def notify_comment_removed(obj, event): + """ Notify custom discussion events when a comment or reply is removed + """ + conversation = aq_parent(obj) + context = aq_parent(conversation) + if getattr(obj, 'in_reply_to', None): + return notify(ReplyRemovedEvent(context, obj)) + return notify(CommentRemovedEvent(context, obj)) def notify_content_object_moved(obj, event): """Update all comments of a content object that has been moved. """ if event.oldParent is None or event.newParent is None \ - or event.oldName is None or event.newName is None: + or event.oldName is None or event.newName is None: return + + # This method is also called for sublocations of moved objects. We + # therefore can't assume that event.object == obj and event. + # {old,new}{Parent,Name} may refer to the actually moved object further up + # in the object hierarchy. The object is already moved at this point. so + # obj.getPhysicalPath retruns the new path get the part of the path that + # was moved. + moved_path = obj.getPhysicalPath()[ + len(event.newParent.getPhysicalPath()) + 1: + ] + # Remove comments at the old location from catalog catalog = getToolByName(obj, 'portal_catalog') - old_path = '/'.join(event.oldParent.getPhysicalPath() + (event.oldName,)) + old_path = '/'.join( + event.oldParent.getPhysicalPath() + + (event.oldName,) + + moved_path + ) brains = catalog.searchResults(dict( - path={'query': old_path}, - portal_type="Discussion Item" - )) + path={'query': old_path}, + portal_type="Discussion Item" + )) for brain in brains: catalog.uncatalog_object(brain.getPath()) # Reindex comment at the new location conversation = IConversation(obj, None) if conversation is not None: for comment in conversation.getComments(): - aq_base(comment).__parent__.__parent__.__parent__ = event.newParent - catalog.reindexObject(aq_base(comment)) + comment.reindexObject() def notify_user(obj, event): @@ -280,8 +346,9 @@ def notify_user(obj, event): # when he has commented multiple times. emails = set() for comment in conversation.getComments(): - if (obj != comment and - comment.user_notification and comment.author_email): + obj_is_not_the_comment = obj != comment + valid_user_email = comment.user_notification and comment.author_email + if obj_is_not_the_comment and valid_user_email: emails.add(comment.author_email) if not emails: @@ -289,13 +356,17 @@ def notify_user(obj, event): subject = translate(_(u"A comment has been posted."), context=obj.REQUEST) - message = translate(Message( + message = translate( + Message( MAIL_NOTIFICATION_MESSAGE, - mapping={'title': safe_unicode(content_object.title), - 'link': content_object.absolute_url() + - '/view#' + obj.id, - 'text': obj.text}), - context=obj.REQUEST) + mapping={ + 'title': safe_unicode(content_object.title), + 'link': content_object.absolute_url() + '/view#' + obj.id, + 'text': obj.text + } + ), + context=obj.REQUEST + ) for email in emails: # Send email try: @@ -350,15 +421,21 @@ def notify_moderator(obj, event): # Compose email subject = translate(_(u"A comment has been posted."), context=obj.REQUEST) - message = translate(Message(MAIL_NOTIFICATION_MESSAGE_MODERATOR, - mapping={ - 'title': safe_unicode(content_object.title), - 'link': content_object.absolute_url() + '/view#' + obj.id, - 'text': obj.text, - 'link_approve': obj.absolute_url() + '/@@moderate-publish-comment', - 'link_delete': obj.absolute_url() + '/@@moderate-delete-comment', - }), - context=obj.REQUEST) + link_approve = obj.absolute_url() + '/@@moderate-publish-comment' + link_delete = obj.absolute_url() + '/@@moderate-delete-comment' + message = translate( + Message( + MAIL_NOTIFICATION_MESSAGE_MODERATOR, + mapping={ + 'title': safe_unicode(content_object.title), + 'link': content_object.absolute_url() + '/view#' + obj.id, + 'text': obj.text, + 'link_approve': link_approve, + 'link_delete': link_delete, + } + ), + context=obj.REQUEST + ) # Send email try: diff --git a/plone/app/discussion/comment.txt b/plone/app/discussion/comment.txt new file mode 100644 index 0000000..2a03ce2 --- /dev/null +++ b/plone/app/discussion/comment.txt @@ -0,0 +1,20 @@ +======= +Comment +======= + +Member: + + creator: username of the commenter (None for anonymous commenters). + author_name: full name of the commenter + author_email: email of the commenter + + author_username: username of the commenter + + +.. literalinclude:: interfaces.py + :language: python + :pyobject: IComment + + +.. autointerface:: plone.app.discussion.interfaces.IComment + :members: diff --git a/plone/app/discussion/configure.zcml b/plone/app/discussion/configure.zcml index 57c23d5..66c5296 100644 --- a/plone/app/discussion/configure.zcml +++ b/plone/app/discussion/configure.zcml @@ -14,10 +14,22 @@ + + + + + + + + + + + + @@ -32,6 +44,27 @@ for="Products.CMFPlone.interfaces.IPloneSiteRoot" /> + + + + + @@ -81,14 +114,6 @@ name="plone.app.discussion.vocabularies.TextTransformVocabulary" provides="zope.schema.interfaces.IVocabularyFactory" /> - - - - - - - - diff --git a/plone/app/discussion/contentrules.py b/plone/app/discussion/contentrules.py new file mode 100644 index 0000000..4f2b58e --- /dev/null +++ b/plone/app/discussion/contentrules.py @@ -0,0 +1,101 @@ +""" Content rules handlers +""" +from plone.app.discussion import PloneAppDiscussionMessageFactory as _ + + +try: + from plone.stringinterp.adapters import BaseSubstitution +except ImportError: + class BaseSubstitution(object): + """ Fallback class if plone.stringinterp is not available + """ + def __init__(self, context, **kwargs): + self.context = context + +try: + from plone.app.contentrules.handlers import execute +except ImportError: + execute = lambda context, event: False + + +def execute_comment(event): + """ Execute comment content rules + """ + execute(event.object, event) + +class CommentSubstitution(BaseSubstitution): + """ Comment string substitution + """ + def __init__(self, context, **kwargs): + super(CommentSubstitution, self).__init__(context, **kwargs) + self._session = None + + @property + def session(self): + """ User session + """ + if self._session is None: + sdm = getattr(self.context, 'session_data_manager', None) + self._session = sdm.getSessionData(create=False) if sdm else {} + return self._session + + @property + def comment(self): + """ Get changed inline comment + """ + return self.session.get('comment', {}) + +class Id(CommentSubstitution): + """ Comment id string substitution + """ + category = _(u'Comments') + description = _(u'Comment id') + + def safe_call(self): + """ Safe call + """ + return self.comment.get('comment_id', u'') + +class Text(CommentSubstitution): + """ Comment text + """ + category = _(u'Comments') + description = _(u'Comment text') + + def safe_call(self): + """ Safe call + """ + return self.comment.get('text', u'') + +class AuthorUserName(CommentSubstitution): + """ Comment author user name string substitution + """ + category = _(u'Comments') + description = _(u'Comment author user name') + + def safe_call(self): + """ Safe call + """ + return self.comment.get('author_username', u'') + +class AuthorFullName(CommentSubstitution): + """ Comment author full name string substitution + """ + category = _(u'Comments') + description = _(u'Comment author full name') + + def safe_call(self): + """ Safe call + """ + return self.comment.get('author_name', u'') + +class AuthorEmail(CommentSubstitution): + """ Comment author email string substitution + """ + category = _(u'Comments') + description = _(u'Comment author email') + + def safe_call(self): + """ Safe call + """ + return self.comment.get('author_email', u'') diff --git a/plone/app/discussion/contentrules.zcml b/plone/app/discussion/contentrules.zcml new file mode 100644 index 0000000..5dd222a --- /dev/null +++ b/plone/app/discussion/contentrules.zcml @@ -0,0 +1,98 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/plone/app/discussion/conversation.py b/plone/app/discussion/conversation.py index e9f5a29..ba27c0f 100644 --- a/plone/app/discussion/conversation.py +++ b/plone/app/discussion/conversation.py @@ -42,10 +42,14 @@ from BTrees.OIBTree import OIBTree from BTrees.LOBTree import LOBTree from BTrees.LLBTree import LLSet +from Products.CMFPlone.interfaces import IHideFromBreadcrumbs + from plone.app.discussion.interfaces import IConversation from plone.app.discussion.interfaces import IReplies from plone.app.discussion.comment import Comment +from AccessControl.SpecialUsers import nobody as user_nobody + ANNOTATION_KEY = 'plone.app.discussion:conversation' @@ -56,7 +60,7 @@ class Conversation(Traversable, Persistent, Explicit): comment lookup. """ - implements(IConversation) + implements(IConversation, IHideFromBreadcrumbs) __allow_access_to_unprotected_subobjects__ = True @@ -85,19 +89,36 @@ class Conversation(Traversable, Persistent, Explicit): @property def total_comments(self): - return len(self._comments) + public_comments = [ + x for x in self._comments.values() + if user_nobody.has_permission('View', x) + ] + return len(public_comments) @property def last_comment_date(self): - try: - return self._comments[self._comments.maxKey()].creation_date - except (ValueError, KeyError, AttributeError,): - return None + # self._comments is an Instance of a btree. The keys + # are always ordered + comment_keys = self._comments.keys() + for comment_key in reversed(comment_keys): + comment = self._comments[comment_key] + if user_nobody.has_permission('View', comment): + return comment.creation_date + return None @property def commentators(self): return self._commentators + @property + def public_commentators(self): + retval = set() + for comment in self._comments.values(): + if not user_nobody.has_permission('View', comment): + continue + retval.add(comment.author_username) + return tuple(retval) + def objectIds(self): return self._comments.keys() @@ -204,7 +225,11 @@ class Conversation(Traversable, Persistent, Explicit): def __getitem__(self, key): """Get an item by its long key """ - return self._comments[long(key)].__of__(self) + try: + comment_id = long(key) + except ValueError: + return + return self._comments[comment_id].__of__(self) def __delitem__(self, key, suppress_container_modified=False): """Delete an item by its long key @@ -281,12 +306,12 @@ def conversationAdapterFactory(content): """ Adapter factory to fetch the default conversation from annotations. """ - annotions = IAnnotations(content) - if not ANNOTATION_KEY in annotions: + annotations = IAnnotations(content) + if not ANNOTATION_KEY in annotations: conversation = Conversation() conversation.__parent__ = aq_base(content) else: - conversation = annotions[ANNOTATION_KEY] + conversation = annotations[ANNOTATION_KEY] return conversation.__of__(content) @@ -405,9 +430,11 @@ class CommentReplies(ConversationReplies): def __init__(self, context): self.comment = context self.conversation = aq_parent(self.comment) - - if (self.conversation is None or - not hasattr(self.conversation, '_children')): + conversation_has_no_children = not hasattr( + self.conversation, + '_children' + ) + if self.conversation is None or conversation_has_no_children: raise TypeError("This adapter doesn't know what to do with the " "parent conversation") diff --git a/plone/app/discussion/conversation.txt b/plone/app/discussion/conversation.txt new file mode 100644 index 0000000..5c03b7b --- /dev/null +++ b/plone/app/discussion/conversation.txt @@ -0,0 +1,9 @@ +============ +Conversation +============ + +.. autointerface:: plone.app.discussion.interfaces.IConversation + :members: + +.. autointerface:: plone.app.discussion.interfaces.IReplies + :members: diff --git a/plone/app/discussion/events.py b/plone/app/discussion/events.py new file mode 100644 index 0000000..30d49a1 --- /dev/null +++ b/plone/app/discussion/events.py @@ -0,0 +1,51 @@ +""" Custom discussion events +""" +from zope.interface import implements +from plone.app.discussion.interfaces import IComment +from plone.app.discussion.interfaces import IDiscussionEvent +from plone.app.discussion.interfaces import ICommentAddedEvent +from plone.app.discussion.interfaces import ICommentRemovedEvent +from plone.app.discussion.interfaces import IReplyAddedEvent +from plone.app.discussion.interfaces import IReplyRemovedEvent + +class DiscussionEvent(object): + """ Custom event + """ + implements(IDiscussionEvent) + + def __init__(self, context, comment, **kwargs): + self.object = context + self.comment = comment + for key, value in kwargs.items(): + setattr(self, key, value) + + # Add comment on session to easily define content-rules dynamic strings + sdm = getattr(context, 'session_data_manager', None) + session = sdm.getSessionData(create=True) if sdm else None + + if session: + sessionComment = dict( + (field, getattr(comment, field, None)) for field in IComment + if not field.startswith('_') + ) + session.set('comment', sessionComment) + +class CommentAddedEvent(DiscussionEvent): + """ Event to be triggered when a Comment is added + """ + implements(ICommentAddedEvent) + +class CommentRemovedEvent(DiscussionEvent): + """ Event to be triggered when a Comment is removed + """ + implements(ICommentRemovedEvent) + +class ReplyAddedEvent(DiscussionEvent): + """ Event to be triggered when a Comment reply is added + """ + implements(IReplyAddedEvent) + +class ReplyRemovedEvent(DiscussionEvent): + """ Event to be triggered when a Comment reply is removed + """ + implements(IReplyRemovedEvent) diff --git a/plone/app/discussion/i18n/plone-ca.po b/plone/app/discussion/i18n/plone-ca.po index 9044daf..cd8adc1 100644 --- a/plone/app/discussion/i18n/plone-ca.po +++ b/plone/app/discussion/i18n/plone-ca.po @@ -1,7 +1,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" -"POT-Creation-Date: 2011-04-22 17:12+0000\n" +"POT-Creation-Date: 2014-05-16 13:47+0000\n" "PO-Revision-Date: YEAR-MO-DA HO:MI +ZONE\n" "Last-Translator: Victor Fernandez de Alba \n" "Language-Team: LANGUAGE \n" @@ -34,12 +34,7 @@ msgstr "Comentari" msgid "Comment Review Workflow" msgstr "Worfklow de moderació de comentaris" -#: ../profiles/default/workflows/one_state_workflow/definition.xml -msgid "Comment Single State Workflow" -msgstr "Workflow d'estat únic per comentaris" - #: ../profiles/default/workflows/comment_review_workflow/definition.xml -#: ../profiles/default/workflows/one_state_workflow/definition.xml msgid "Comment about the last transition" msgstr "Comentari sobre la última transició" @@ -55,10 +50,6 @@ msgstr "Comentaris afegits" msgid "Discussion" msgstr "Comentaris" -#: ../profiles/default/workflows/one_state_workflow/definition.xml -msgid "Essentially a workflow with no transitions, but has a Published state, so portlets and applications that expect that state will continue to work." -msgstr "Essencialment un workflow sense transicions i amb un sol estat 'Publicat' per permetre que portlets i altres aplicacions que esperen la existència d'aquest estat contiuin funcionant." - #: ../profiles/default/actions.xml msgid "Moderate comments" msgstr "Modera comentaris" @@ -68,17 +59,14 @@ msgid "Pending" msgstr "Pendent" #: ../profiles/default/workflows/comment_review_workflow/definition.xml -#: ../profiles/default/workflows/one_state_workflow/definition.xml msgid "Previous transition" msgstr "Transició anterior" #: ../profiles/default/workflows/comment_review_workflow/definition.xml -#: ../profiles/default/workflows/one_state_workflow/definition.xml msgid "Provides access to workflow history" msgstr "Accés a la història del workflow" #: ../profiles/default/workflows/comment_review_workflow/definition.xml -#: ../profiles/default/workflows/one_state_workflow/definition.xml msgid "Published" msgstr "Publicat" @@ -91,7 +79,6 @@ msgid "Submitted, pending review." msgstr "Enviat, pendent de moderació" #: ../profiles/default/workflows/comment_review_workflow/definition.xml -#: ../profiles/default/workflows/one_state_workflow/definition.xml msgid "The ID of the user who performed the previous transition" msgstr "L'identificador únic de l'usuari que va executar la transició anterior" @@ -107,16 +94,11 @@ msgstr "Número de comentaris d'aquest contingut." msgid "Users who have commented on the item" msgstr "Usuaris que han comentat el contingut." -#: ../profiles/default/workflows/one_state_workflow/definition.xml -msgid "Visible to everyone, editable by the owner." -msgstr "Visible per a tots, editable per l'autor." - #: ../profiles/default/workflows/comment_review_workflow/definition.xml msgid "Visible to everyone, non-editable." msgstr "Visible per a tots, no editable." #: ../profiles/default/workflows/comment_review_workflow/definition.xml -#: ../profiles/default/workflows/one_state_workflow/definition.xml msgid "When the previous transition was performed" msgstr "Quan es va executar la transició anterior" diff --git a/plone/app/discussion/i18n/plone-cs.po b/plone/app/discussion/i18n/plone-cs.po index 1df1b9d..358c58e 100644 --- a/plone/app/discussion/i18n/plone-cs.po +++ b/plone/app/discussion/i18n/plone-cs.po @@ -1,7 +1,7 @@ msgid "" msgstr "" "Project-Id-Version: plone.app.discussion\n" -"POT-Creation-Date: 2011-04-22 17:12+0000\n" +"POT-Creation-Date: 2014-05-16 13:47+0000\n" "PO-Revision-Date: 2010-11-03 14:51+0100\n" "Last-Translator: Radim Novotny \n" "Language-Team: DMS4U \n" @@ -34,12 +34,7 @@ msgstr "Komentář" msgid "Comment Review Workflow" msgstr "Schvalovací workflow pro komentáře" -#: ../profiles/default/workflows/one_state_workflow/definition.xml -msgid "Comment Single State Workflow" -msgstr "Jednoduché workflow pro komentáře" - #: ../profiles/default/workflows/comment_review_workflow/definition.xml -#: ../profiles/default/workflows/one_state_workflow/definition.xml msgid "Comment about the last transition" msgstr "Poznámka k poslední transakci" @@ -55,10 +50,6 @@ msgstr "Komentář byl přidán." msgid "Discussion" msgstr "Komentáře" -#: ../profiles/default/workflows/one_state_workflow/definition.xml -msgid "Essentially a workflow with no transitions, but has a Published state, so portlets and applications that expect that state will continue to work." -msgstr "Jednoduché workflow bez žádných přechodů mezi stavy, pouze se stavem Zveřejněno." - #: ../profiles/default/actions.xml msgid "Moderate comments" msgstr "Moderovat komentáře" @@ -68,17 +59,14 @@ msgid "Pending" msgstr "Čekající" #: ../profiles/default/workflows/comment_review_workflow/definition.xml -#: ../profiles/default/workflows/one_state_workflow/definition.xml msgid "Previous transition" msgstr "Předchozí přechod stavu" #: ../profiles/default/workflows/comment_review_workflow/definition.xml -#: ../profiles/default/workflows/one_state_workflow/definition.xml msgid "Provides access to workflow history" msgstr "Zpřístupní historii workflow" #: ../profiles/default/workflows/comment_review_workflow/definition.xml -#: ../profiles/default/workflows/one_state_workflow/definition.xml msgid "Published" msgstr "Zveřejněno" @@ -91,7 +79,6 @@ msgid "Submitted, pending review." msgstr "Předáno k posouzení." #: ../profiles/default/workflows/comment_review_workflow/definition.xml -#: ../profiles/default/workflows/one_state_workflow/definition.xml msgid "The ID of the user who performed the previous transition" msgstr "ID uživatele, který způsobil předchozí změnu stavu" @@ -107,16 +94,11 @@ msgstr "Celkový počet komentářů k této položce." msgid "Users who have commented on the item" msgstr "Uživatelé, kteří komentovali tuto položku" -#: ../profiles/default/workflows/one_state_workflow/definition.xml -msgid "Visible to everyone, editable by the owner." -msgstr "Viditelné pro všechny, editovatelné vlastníkem položky." - #: ../profiles/default/workflows/comment_review_workflow/definition.xml msgid "Visible to everyone, non-editable." msgstr "Viditelné všem, nelze editovat." #: ../profiles/default/workflows/comment_review_workflow/definition.xml -#: ../profiles/default/workflows/one_state_workflow/definition.xml msgid "When the previous transition was performed" msgstr "Kdy byla provedena poslední změna stavu" diff --git a/plone/app/discussion/i18n/plone-da.po b/plone/app/discussion/i18n/plone-da.po index 6fbfd71..2547543 100644 --- a/plone/app/discussion/i18n/plone-da.po +++ b/plone/app/discussion/i18n/plone-da.po @@ -1,7 +1,7 @@ msgid "" msgstr "" "Project-Id-Version: plone.app.discussion\n" -"POT-Creation-Date: 2011-04-22 17:12+0000\n" +"POT-Creation-Date: 2014-05-16 13:47+0000\n" "PO-Revision-Date: 2010-01-28 15:00+0000\n" "Last-Translator: Anton Stonor \n" "Language-Team: Anton Stonor \n" @@ -34,12 +34,7 @@ msgstr "Kommentar" msgid "Comment Review Workflow" msgstr "Godkendelses-workflow for kommentarer" -#: ../profiles/default/workflows/one_state_workflow/definition.xml -msgid "Comment Single State Workflow" -msgstr "Et-trinsworkflow for kommentarer" - #: ../profiles/default/workflows/comment_review_workflow/definition.xml -#: ../profiles/default/workflows/one_state_workflow/definition.xml msgid "Comment about the last transition" msgstr "Kommentar om seneste workflow" @@ -55,10 +50,6 @@ msgstr "Kommentarer tilføjet til indholdet" msgid "Discussion" msgstr "Kommentering" -#: ../profiles/default/workflows/one_state_workflow/definition.xml -msgid "Essentially a workflow with no transitions, but has a Published state, so portlets and applications that expect that state will continue to work." -msgstr "Et workflow med kun 1 tilstand, nemlig publiceret." - #: ../profiles/default/actions.xml msgid "Moderate comments" msgstr "Moderér kommentarer" @@ -68,17 +59,14 @@ msgid "Pending" msgstr "Afventer" #: ../profiles/default/workflows/comment_review_workflow/definition.xml -#: ../profiles/default/workflows/one_state_workflow/definition.xml msgid "Previous transition" msgstr "Foregående workflow-ændringer" #: ../profiles/default/workflows/comment_review_workflow/definition.xml -#: ../profiles/default/workflows/one_state_workflow/definition.xml msgid "Provides access to workflow history" msgstr "Giver adgang til workflow-historikken" #: ../profiles/default/workflows/comment_review_workflow/definition.xml -#: ../profiles/default/workflows/one_state_workflow/definition.xml msgid "Published" msgstr "Publiceret" @@ -91,7 +79,6 @@ msgid "Submitted, pending review." msgstr "Gemt, afventer godkendelse" #: ../profiles/default/workflows/comment_review_workflow/definition.xml -#: ../profiles/default/workflows/one_state_workflow/definition.xml msgid "The ID of the user who performed the previous transition" msgstr "Brugernavnet på den, der gennemført det seneste workflow-trin" @@ -107,16 +94,11 @@ msgstr "Antal kommentarer på denne side." msgid "Users who have commented on the item" msgstr "Brugere, der har kommenteret på denne side" -#: ../profiles/default/workflows/one_state_workflow/definition.xml -msgid "Visible to everyone, editable by the owner." -msgstr "Synlig for alle, kan redigeres af ejeren." - #: ../profiles/default/workflows/comment_review_workflow/definition.xml msgid "Visible to everyone, non-editable." msgstr "Synligt for alle, kan ikke redigeres." #: ../profiles/default/workflows/comment_review_workflow/definition.xml -#: ../profiles/default/workflows/one_state_workflow/definition.xml msgid "When the previous transition was performed" msgstr "Tidspunktet for det seneste workflow-trin" diff --git a/plone/app/discussion/i18n/plone-de.po b/plone/app/discussion/i18n/plone-de.po index 17dc1cd..28a446a 100644 --- a/plone/app/discussion/i18n/plone-de.po +++ b/plone/app/discussion/i18n/plone-de.po @@ -1,7 +1,7 @@ msgid "" msgstr "" "Project-Id-Version: plone.app.discussion\n" -"POT-Creation-Date: 2011-04-22 17:12+0000\n" +"POT-Creation-Date: 2014-05-16 13:47+0000\n" "PO-Revision-Date: 2010-03-17 16:11+0100\n" "Last-Translator: Timo Stollenwerk \n" "Language-Team: Deutsch \n" @@ -16,15 +16,15 @@ msgstr "" #: ../profiles/default/workflows/comment_review_workflow/definition.xml msgid "A simple review workflow for comments" -msgstr "" +msgstr "Ein einfacher redaktioneller Workflow für Kommentare" #: ../profiles/default/workflows/comment_review_workflow/definition.xml msgid "Approve" -msgstr "" +msgstr "Genehmigen" #: ../profiles/default/workflows/comment_review_workflow/definition.xml msgid "Approving the comment makes it visible to other users." -msgstr "" +msgstr "Durch die Genehmigung des Kommentars wird es für andere Benutzer sichtbar." #: ../profiles/default/types/Discussion_Item.xml msgid "Comment" @@ -34,12 +34,7 @@ msgstr "Kommentar" msgid "Comment Review Workflow" msgstr "Arbeitsablauf für moderierte Kommentare" -#: ../profiles/default/workflows/one_state_workflow/definition.xml -msgid "Comment Single State Workflow" -msgstr "" - #: ../profiles/default/workflows/comment_review_workflow/definition.xml -#: ../profiles/default/workflows/one_state_workflow/definition.xml msgid "Comment about the last transition" msgstr "Kommentar zum letzten Zustandsübergang" @@ -55,10 +50,6 @@ msgstr "Ein Kommentar zu einem Artikel." msgid "Discussion" msgstr "Kommentare" -#: ../profiles/default/workflows/one_state_workflow/definition.xml -msgid "Essentially a workflow with no transitions, but has a Published state, so portlets and applications that expect that state will continue to work." -msgstr "" - #: ../profiles/default/actions.xml msgid "Moderate comments" msgstr "Kommentare moderieren" @@ -68,30 +59,26 @@ msgid "Pending" msgstr "Zur Redaktion eingereicht" #: ../profiles/default/workflows/comment_review_workflow/definition.xml -#: ../profiles/default/workflows/one_state_workflow/definition.xml msgid "Previous transition" msgstr "Letzter Übergang" #: ../profiles/default/workflows/comment_review_workflow/definition.xml -#: ../profiles/default/workflows/one_state_workflow/definition.xml msgid "Provides access to workflow history" msgstr "Erlaubt Zugang zur Historie des Arbeitsablaufs" #: ../profiles/default/workflows/comment_review_workflow/definition.xml -#: ../profiles/default/workflows/one_state_workflow/definition.xml msgid "Published" msgstr "Veröffentlicht" #: ../profiles/default/workflows/comment_review_workflow/definition.xml msgid "Reviewer approves content" -msgstr "" +msgstr "Der Redakteur genehmigt den Inhalt" #: ../profiles/default/workflows/comment_review_workflow/definition.xml msgid "Submitted, pending review." msgstr "Zur Redaktion eingereicht" #: ../profiles/default/workflows/comment_review_workflow/definition.xml -#: ../profiles/default/workflows/one_state_workflow/definition.xml msgid "The ID of the user who performed the previous transition" msgstr "Die ID des Benutzers welcher den vorherigen Zustandsübergang durchgeführt hat" @@ -107,16 +94,11 @@ msgstr "Anzahl der Kommentare zu diesem Artikel." msgid "Users who have commented on the item" msgstr "Benutzer, die den Artikel kommentiert haben" -#: ../profiles/default/workflows/one_state_workflow/definition.xml -msgid "Visible to everyone, editable by the owner." -msgstr "" - #: ../profiles/default/workflows/comment_review_workflow/definition.xml msgid "Visible to everyone, non-editable." msgstr "Für alle Benutzer sichtbar, nicht editierbar" #: ../profiles/default/workflows/comment_review_workflow/definition.xml -#: ../profiles/default/workflows/one_state_workflow/definition.xml msgid "When the previous transition was performed" msgstr "Wann der vorherige Übergang durchgeführt wurde" diff --git a/plone/app/discussion/i18n/plone-el.po b/plone/app/discussion/i18n/plone-el.po index 4b348fc..75218cf 100644 --- a/plone/app/discussion/i18n/plone-el.po +++ b/plone/app/discussion/i18n/plone-el.po @@ -1,7 +1,7 @@ msgid "" msgstr "" "Project-Id-Version: plone.app.discussion\n" -"POT-Creation-Date: 2011-04-22 17:12+0000\n" +"POT-Creation-Date: 2014-05-16 13:47+0000\n" "PO-Revision-Date: 2010-02-23 10:26+0100\n" "Last-Translator: Yiorgis Gozadinos \n" "Language-Team: Greek \n" @@ -34,12 +34,7 @@ msgstr "Σχόλιο" msgid "Comment Review Workflow" msgstr "Ροή εργασίας σχολίων" -#: ../profiles/default/workflows/one_state_workflow/definition.xml -msgid "Comment Single State Workflow" -msgstr "" - #: ../profiles/default/workflows/comment_review_workflow/definition.xml -#: ../profiles/default/workflows/one_state_workflow/definition.xml msgid "Comment about the last transition" msgstr "Σχόλιο για την τελευταία μετάβαση" @@ -55,10 +50,6 @@ msgstr "Σχόλια που προστέθηκαν σε ένα αντικείμ msgid "Discussion" msgstr "Συζήτηση" -#: ../profiles/default/workflows/one_state_workflow/definition.xml -msgid "Essentially a workflow with no transitions, but has a Published state, so portlets and applications that expect that state will continue to work." -msgstr "" - #: ../profiles/default/actions.xml msgid "Moderate comments" msgstr "Επιθεώρηση σχολίων" @@ -68,17 +59,14 @@ msgid "Pending" msgstr "Σε αναμονή" #: ../profiles/default/workflows/comment_review_workflow/definition.xml -#: ../profiles/default/workflows/one_state_workflow/definition.xml msgid "Previous transition" msgstr "Προηγούμενη μετάβαση" #: ../profiles/default/workflows/comment_review_workflow/definition.xml -#: ../profiles/default/workflows/one_state_workflow/definition.xml msgid "Provides access to workflow history" msgstr "Δίνει πρόσβαση στο ιστορικό της ροής εργασίας" #: ../profiles/default/workflows/comment_review_workflow/definition.xml -#: ../profiles/default/workflows/one_state_workflow/definition.xml msgid "Published" msgstr "Δημοσιευμένο" @@ -91,7 +79,6 @@ msgid "Submitted, pending review." msgstr "Υποβλήθηκε, σε αναμονή επιθεώρησης" #: ../profiles/default/workflows/comment_review_workflow/definition.xml -#: ../profiles/default/workflows/one_state_workflow/definition.xml msgid "The ID of the user who performed the previous transition" msgstr "Η ταυτότητα του χρήστη που εφάρμοσε την τελευταία μετάβαση" @@ -107,16 +94,11 @@ msgstr "Σύνολικός αριθμός σχολίων για το αντικ msgid "Users who have commented on the item" msgstr "Χρήστες που έχουν σχολιάσει το αντικείμενο" -#: ../profiles/default/workflows/one_state_workflow/definition.xml -msgid "Visible to everyone, editable by the owner." -msgstr "" - #: ../profiles/default/workflows/comment_review_workflow/definition.xml msgid "Visible to everyone, non-editable." msgstr "Ορατό από όλους, μη επεξεργάσιμο" #: ../profiles/default/workflows/comment_review_workflow/definition.xml -#: ../profiles/default/workflows/one_state_workflow/definition.xml msgid "When the previous transition was performed" msgstr "Πότε εφαρμόστηκε η τελευταία μετάβαση" diff --git a/plone/app/discussion/i18n/plone-es.po b/plone/app/discussion/i18n/plone-es.po index 2a71855..83918db 100644 --- a/plone/app/discussion/i18n/plone-es.po +++ b/plone/app/discussion/i18n/plone-es.po @@ -1,7 +1,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" -"POT-Creation-Date: 2011-04-22 17:12+0000\n" +"POT-Creation-Date: 2014-05-16 13:47+0000\n" "PO-Revision-Date: YEAR-MO-DA HO:MI +ZONE\n" "Last-Translator: Mikel Larreategi \n" "Language-Team: Mikel Larreategi \n" @@ -34,12 +34,7 @@ msgstr "Comentario" msgid "Comment Review Workflow" msgstr "Worfklow de moderación de comentarios" -#: ../profiles/default/workflows/one_state_workflow/definition.xml -msgid "Comment Single State Workflow" -msgstr "Workflow de estado único para comentarios" - #: ../profiles/default/workflows/comment_review_workflow/definition.xml -#: ../profiles/default/workflows/one_state_workflow/definition.xml msgid "Comment about the last transition" msgstr "Comentario sobre la última transición" @@ -55,10 +50,6 @@ msgstr "Comentarios añadidos" msgid "Discussion" msgstr "Discusión" -#: ../profiles/default/workflows/one_state_workflow/definition.xml -msgid "Essentially a workflow with no transitions, but has a Published state, so portlets and applications that expect that state will continue to work." -msgstr "Esencialmente un workflow sin transiciones, pero tiene un estado Publicado, por lo que los portlets u otras aplicaciones que esperan ese estado seguirán funcionando" - #: ../profiles/default/actions.xml msgid "Moderate comments" msgstr "Moderar comentarios" @@ -68,17 +59,14 @@ msgid "Pending" msgstr "Pendiente" #: ../profiles/default/workflows/comment_review_workflow/definition.xml -#: ../profiles/default/workflows/one_state_workflow/definition.xml msgid "Previous transition" msgstr "Transición anterior" #: ../profiles/default/workflows/comment_review_workflow/definition.xml -#: ../profiles/default/workflows/one_state_workflow/definition.xml msgid "Provides access to workflow history" msgstr "Acceso a la historia del workflow" #: ../profiles/default/workflows/comment_review_workflow/definition.xml -#: ../profiles/default/workflows/one_state_workflow/definition.xml msgid "Published" msgstr "Publicado" @@ -91,7 +79,6 @@ msgid "Submitted, pending review." msgstr "Enviado, pendiente de moderación" #: ../profiles/default/workflows/comment_review_workflow/definition.xml -#: ../profiles/default/workflows/one_state_workflow/definition.xml msgid "The ID of the user who performed the previous transition" msgstr "El ID del usuario que ejecutó la transición anterior" @@ -107,16 +94,11 @@ msgstr "Número de comentarios de este elemento" msgid "Users who have commented on the item" msgstr "Usuarios que han comentado el elemento" -#: ../profiles/default/workflows/one_state_workflow/definition.xml -msgid "Visible to everyone, editable by the owner." -msgstr "Visible para todos, editable por el autor" - #: ../profiles/default/workflows/comment_review_workflow/definition.xml msgid "Visible to everyone, non-editable." msgstr "Visible para todos, no-editable" #: ../profiles/default/workflows/comment_review_workflow/definition.xml -#: ../profiles/default/workflows/one_state_workflow/definition.xml msgid "When the previous transition was performed" msgstr "Cuándo se ejecutó la transición anterior" diff --git a/plone/app/discussion/i18n/plone-eu.po b/plone/app/discussion/i18n/plone-eu.po index 3faa056..f5f59ec 100644 --- a/plone/app/discussion/i18n/plone-eu.po +++ b/plone/app/discussion/i18n/plone-eu.po @@ -1,7 +1,7 @@ msgid "" msgstr "" "Project-Id-Version: plone.app.discussion\n" -"POT-Creation-Date: 2011-04-22 17:12+0000\n" +"POT-Creation-Date: 2014-05-16 13:47+0000\n" "PO-Revision-Date: 2010-01-28 15:00+0000\n" "Last-Translator: Mikel Larreategi \n" "Language-Team: Mikel Larreategi \n" @@ -34,12 +34,7 @@ msgstr "Erantzuna" msgid "Comment Review Workflow" msgstr "Erantzunen Moderazio Workflowa" -#: ../profiles/default/workflows/one_state_workflow/definition.xml -msgid "Comment Single State Workflow" -msgstr "Erantzunen Egoera Bakarreko Workflowa" - #: ../profiles/default/workflows/comment_review_workflow/definition.xml -#: ../profiles/default/workflows/one_state_workflow/definition.xml msgid "Comment about the last transition" msgstr "Azken trantsizioari buruzko iruzkina" @@ -55,10 +50,6 @@ msgstr "Elementuari gehitutako erantzunak" msgid "Discussion" msgstr "Eztabaida" -#: ../profiles/default/workflows/one_state_workflow/definition.xml -msgid "Essentially a workflow with no transitions, but has a Published state, so portlets and applications that expect that state will continue to work." -msgstr "Trantsiziorik ez duen workflowa, hala ere Argitaratuta egoera bat du, beraz hori espero duten portlet edo gainontzeko aplikazioek funtzionatzen jarraituko dute" - #: ../profiles/default/actions.xml msgid "Moderate comments" msgstr "Erantzunak moderatu" @@ -68,17 +59,14 @@ msgid "Pending" msgstr "Moderazio kolan" #: ../profiles/default/workflows/comment_review_workflow/definition.xml -#: ../profiles/default/workflows/one_state_workflow/definition.xml msgid "Previous transition" msgstr "Aurreko trantsizioa" #: ../profiles/default/workflows/comment_review_workflow/definition.xml -#: ../profiles/default/workflows/one_state_workflow/definition.xml msgid "Provides access to workflow history" msgstr "Workflowaren historia ikus dezakezu" #: ../profiles/default/workflows/comment_review_workflow/definition.xml -#: ../profiles/default/workflows/one_state_workflow/definition.xml msgid "Published" msgstr "Argitaratuta" @@ -91,7 +79,6 @@ msgid "Submitted, pending review." msgstr "Bidalita, moderazio kolan zain." #: ../profiles/default/workflows/comment_review_workflow/definition.xml -#: ../profiles/default/workflows/one_state_workflow/definition.xml msgid "The ID of the user who performed the previous transition" msgstr "Azken trantsizioa egin zuen erabiltzailearen IDa" @@ -107,16 +94,11 @@ msgstr "Elementu honen erantzun kopurua" msgid "Users who have commented on the item" msgstr "Elementuaren inguruan erantzuna eman duten erabiltzaileak" -#: ../profiles/default/workflows/one_state_workflow/definition.xml -msgid "Visible to everyone, editable by the owner." -msgstr "Guztiek ikusteko, jabeak aldatzeko." - #: ../profiles/default/workflows/comment_review_workflow/definition.xml msgid "Visible to everyone, non-editable." msgstr "Guztiek ikusteko, ez da editagarria." #: ../profiles/default/workflows/comment_review_workflow/definition.xml -#: ../profiles/default/workflows/one_state_workflow/definition.xml msgid "When the previous transition was performed" msgstr "Aurreko trantsizioa noiz exekutatu zen." diff --git a/plone/app/discussion/i18n/plone-fr.po b/plone/app/discussion/i18n/plone-fr.po index ae83d01..7bcdc3e 100644 --- a/plone/app/discussion/i18n/plone-fr.po +++ b/plone/app/discussion/i18n/plone-fr.po @@ -1,7 +1,7 @@ msgid "" msgstr "" "Project-Id-Version: plone.app.discussion\n" -"POT-Creation-Date: 2011-04-22 17:12+0000\n" +"POT-Creation-Date: 2014-05-16 13:47+0000\n" "PO-Revision-Date: 2010-08-06 19:23+0100\n" "Last-Translator: Vincent Fretin \n" "Language-Team: Vincent Fretin \n" @@ -34,12 +34,7 @@ msgstr "Commentaire" msgid "Comment Review Workflow" msgstr "Workflow de modération des commentaires" -#: ../profiles/default/workflows/one_state_workflow/definition.xml -msgid "Comment Single State Workflow" -msgstr "Workflow commentaire à un seul état" - #: ../profiles/default/workflows/comment_review_workflow/definition.xml -#: ../profiles/default/workflows/one_state_workflow/definition.xml msgid "Comment about the last transition" msgstr "Commentaire à propos de la dernière transition" @@ -55,10 +50,6 @@ msgstr "Commentaires ajoutés à un élément." msgid "Discussion" msgstr "Discussion" -#: ../profiles/default/workflows/one_state_workflow/definition.xml -msgid "Essentially a workflow with no transitions, but has a Published state, so portlets and applications that expect that state will continue to work." -msgstr "" - #: ../profiles/default/actions.xml msgid "Moderate comments" msgstr "Modération des commentaires" @@ -68,17 +59,14 @@ msgid "Pending" msgstr "En attente" #: ../profiles/default/workflows/comment_review_workflow/definition.xml -#: ../profiles/default/workflows/one_state_workflow/definition.xml msgid "Previous transition" msgstr "Transition précédente" #: ../profiles/default/workflows/comment_review_workflow/definition.xml -#: ../profiles/default/workflows/one_state_workflow/definition.xml msgid "Provides access to workflow history" msgstr "Permet d'accéder à l'historique du workflow" #: ../profiles/default/workflows/comment_review_workflow/definition.xml -#: ../profiles/default/workflows/one_state_workflow/definition.xml msgid "Published" msgstr "Publié" @@ -91,7 +79,6 @@ msgid "Submitted, pending review." msgstr "Soumis, en attente de modération." #: ../profiles/default/workflows/comment_review_workflow/definition.xml -#: ../profiles/default/workflows/one_state_workflow/definition.xml msgid "The ID of the user who performed the previous transition" msgstr "L'identifiant utilisateur qui a effectué la transition précédente" @@ -107,16 +94,11 @@ msgstr "Nombre total de commentaires pour cet élément." msgid "Users who have commented on the item" msgstr "Utilisateurs qui ont commenté sur cet élément" -#: ../profiles/default/workflows/one_state_workflow/definition.xml -msgid "Visible to everyone, editable by the owner." -msgstr "Visible par tout le monde, modifiable par le propriétaire." - #: ../profiles/default/workflows/comment_review_workflow/definition.xml msgid "Visible to everyone, non-editable." msgstr "Visible par tout le monde, non modifiable." #: ../profiles/default/workflows/comment_review_workflow/definition.xml -#: ../profiles/default/workflows/one_state_workflow/definition.xml msgid "When the previous transition was performed" msgstr "Quand la précédente transition a été effectué" diff --git a/plone/app/discussion/i18n/plone-it.po b/plone/app/discussion/i18n/plone-it.po index 5f1b1bc..3a73214 100644 --- a/plone/app/discussion/i18n/plone-it.po +++ b/plone/app/discussion/i18n/plone-it.po @@ -1,7 +1,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" -"POT-Creation-Date: 2011-04-22 17:12+0000\n" +"POT-Creation-Date: 2014-05-16 13:47+0000\n" "PO-Revision-Date: YEAR-MO-DA HO:MI +ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -34,12 +34,7 @@ msgstr "Commento" msgid "Comment Review Workflow" msgstr "Workflow per revisione del commento" -#: ../profiles/default/workflows/one_state_workflow/definition.xml -msgid "Comment Single State Workflow" -msgstr "Workflow per commento a stato singolo" - #: ../profiles/default/workflows/comment_review_workflow/definition.xml -#: ../profiles/default/workflows/one_state_workflow/definition.xml msgid "Comment about the last transition" msgstr "Commento" @@ -55,10 +50,6 @@ msgstr "Commenti aggiunti al contenuto" msgid "Discussion" msgstr "Commenti" -#: ../profiles/default/workflows/one_state_workflow/definition.xml -msgid "Essentially a workflow with no transitions, but has a Published state, so portlets and applications that expect that state will continue to work." -msgstr "" - #: ../profiles/default/actions.xml msgid "Moderate comments" msgstr "Moderazione commenti" @@ -68,17 +59,14 @@ msgid "Pending" msgstr "In attesa" #: ../profiles/default/workflows/comment_review_workflow/definition.xml -#: ../profiles/default/workflows/one_state_workflow/definition.xml msgid "Previous transition" msgstr "Transizione precedente" #: ../profiles/default/workflows/comment_review_workflow/definition.xml -#: ../profiles/default/workflows/one_state_workflow/definition.xml msgid "Provides access to workflow history" msgstr "Fornisce accesso alla storia del workflow" #: ../profiles/default/workflows/comment_review_workflow/definition.xml -#: ../profiles/default/workflows/one_state_workflow/definition.xml msgid "Published" msgstr "Pubblicato" @@ -91,7 +79,6 @@ msgid "Submitted, pending review." msgstr "Inviato, in attesa di revisione" #: ../profiles/default/workflows/comment_review_workflow/definition.xml -#: ../profiles/default/workflows/one_state_workflow/definition.xml msgid "The ID of the user who performed the previous transition" msgstr "L'ID dell'utente che ha eseguito l'ultima transizione" @@ -107,16 +94,11 @@ msgstr "Numero totale di commenti per questo elemento" msgid "Users who have commented on the item" msgstr "Utenti che hanno commentato l'elemento" -#: ../profiles/default/workflows/one_state_workflow/definition.xml -msgid "Visible to everyone, editable by the owner." -msgstr "Visibile a tutti, modificabile dal proprietario" - #: ../profiles/default/workflows/comment_review_workflow/definition.xml msgid "Visible to everyone, non-editable." msgstr "Visibile a tutti, non modificabile" #: ../profiles/default/workflows/comment_review_workflow/definition.xml -#: ../profiles/default/workflows/one_state_workflow/definition.xml msgid "When the previous transition was performed" msgstr "Quando l'ultima transizione è stata eseguita" diff --git a/plone/app/discussion/i18n/plone-ja.po b/plone/app/discussion/i18n/plone-ja.po index 786a005..203e0d1 100644 --- a/plone/app/discussion/i18n/plone-ja.po +++ b/plone/app/discussion/i18n/plone-ja.po @@ -1,7 +1,7 @@ msgid "" msgstr "" "Project-Id-Version: plone.app.discussion\n" -"POT-Creation-Date: 2011-04-22 17:12+0000\n" +"POT-Creation-Date: 2014-05-16 13:47+0000\n" "PO-Revision-Date: 2011-04-18 13:13+0900\n" "Last-Translator: Takeshi Yamamoto \n" "Language-Team: Hanno Schlichting \n" @@ -34,12 +34,7 @@ msgstr "コメント" msgid "Comment Review Workflow" msgstr "コメント審査ワークフロー" -#: ../profiles/default/workflows/one_state_workflow/definition.xml -msgid "Comment Single State Workflow" -msgstr "コメント単一状態ワークフロー" - #: ../profiles/default/workflows/comment_review_workflow/definition.xml -#: ../profiles/default/workflows/one_state_workflow/definition.xml msgid "Comment about the last transition" msgstr "最後の遷移についてのコメント" @@ -55,10 +50,6 @@ msgstr "コンテンツアイテムにコメントが追加されました" msgid "Discussion" msgstr "議論" -#: ../profiles/default/workflows/one_state_workflow/definition.xml -msgid "Essentially a workflow with no transitions, but has a Published state, so portlets and applications that expect that state will continue to work." -msgstr "本質的に遷移のないワークフローですが、公開状態を持つので、その状態を期待するポートレットやアプリケーションが機能し続けます。" - #: ../profiles/default/actions.xml msgid "Moderate comments" msgstr "コメントをモデレートする" @@ -68,17 +59,14 @@ msgid "Pending" msgstr "保留" #: ../profiles/default/workflows/comment_review_workflow/definition.xml -#: ../profiles/default/workflows/one_state_workflow/definition.xml msgid "Previous transition" msgstr "前の遷移" #: ../profiles/default/workflows/comment_review_workflow/definition.xml -#: ../profiles/default/workflows/one_state_workflow/definition.xml msgid "Provides access to workflow history" msgstr "ワークフロー履歴へのアクセスを提供する" #: ../profiles/default/workflows/comment_review_workflow/definition.xml -#: ../profiles/default/workflows/one_state_workflow/definition.xml msgid "Published" msgstr "公開中" @@ -91,7 +79,6 @@ msgid "Submitted, pending review." msgstr "提出され、審査待ち" #: ../profiles/default/workflows/comment_review_workflow/definition.xml -#: ../profiles/default/workflows/one_state_workflow/definition.xml msgid "The ID of the user who performed the previous transition" msgstr "前の遷移を実施したユーザのID" @@ -107,16 +94,11 @@ msgstr "このアイテムについてのコメントの合計数" msgid "Users who have commented on the item" msgstr "このアイテムにコメントしたユーザ" -#: ../profiles/default/workflows/one_state_workflow/definition.xml -msgid "Visible to everyone, editable by the owner." -msgstr "誰にでも見え、所有者によって編集可能" - #: ../profiles/default/workflows/comment_review_workflow/definition.xml msgid "Visible to everyone, non-editable." msgstr "誰にでも見え、編集不可能" #: ../profiles/default/workflows/comment_review_workflow/definition.xml -#: ../profiles/default/workflows/one_state_workflow/definition.xml msgid "When the previous transition was performed" msgstr "前の遷移が実施された時" diff --git a/plone/app/discussion/i18n/plone-nl.po b/plone/app/discussion/i18n/plone-nl.po index 59b0d8a..8811833 100644 --- a/plone/app/discussion/i18n/plone-nl.po +++ b/plone/app/discussion/i18n/plone-nl.po @@ -1,11 +1,10 @@ msgid "" msgstr "" "Project-Id-Version: plone.app.discussion\n" -"POT-Creation-Date: 2011-04-22 17:12+0000\n" +"POT-Creation-Date: 2014-05-16 13:47+0000\n" "PO-Revision-Date: 2011-09-30 16:02+0100\n" "Last-Translator: NFG Net Facilities Group BV \n" "Language-Team: Nederlands \n" -"Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -14,6 +13,7 @@ msgstr "" "Language-Name: Dutch\n" "Preferred-Encodings: utf-8 latin1\n" "Domain: plone\n" +"Language: \n" #: ../profiles/default/workflows/comment_review_workflow/definition.xml msgid "A simple review workflow for comments" @@ -35,12 +35,7 @@ msgstr "Reactie" msgid "Comment Review Workflow" msgstr "Reactie Review Werkstroom" -#: ../profiles/default/workflows/one_state_workflow/definition.xml -msgid "Comment Single State Workflow" -msgstr "Reactie Enkelvoudige Status Werkstroom" - #: ../profiles/default/workflows/comment_review_workflow/definition.xml -#: ../profiles/default/workflows/one_state_workflow/definition.xml msgid "Comment about the last transition" msgstr "Reactie op de laatste transitie" @@ -56,10 +51,6 @@ msgstr "Reacties op een content item" msgid "Discussion" msgstr "Discussie" -#: ../profiles/default/workflows/one_state_workflow/definition.xml -msgid "Essentially a workflow with no transitions, but has a Published state, so portlets and applications that expect that state will continue to work." -msgstr "In essentie een werkstroom zonder transities, maar met een Gepubliceerd status, zodat portlets en toepassingen die een status verwachten blijven werken." - #: ../profiles/default/actions.xml msgid "Moderate comments" msgstr "Reacties modereren" @@ -69,17 +60,14 @@ msgid "Pending" msgstr "In afwachting" #: ../profiles/default/workflows/comment_review_workflow/definition.xml -#: ../profiles/default/workflows/one_state_workflow/definition.xml msgid "Previous transition" msgstr "Vorige transitie" #: ../profiles/default/workflows/comment_review_workflow/definition.xml -#: ../profiles/default/workflows/one_state_workflow/definition.xml msgid "Provides access to workflow history" msgstr "Biedt toegang tot de werkstroom geschiedenis" #: ../profiles/default/workflows/comment_review_workflow/definition.xml -#: ../profiles/default/workflows/one_state_workflow/definition.xml msgid "Published" msgstr "Gepubliceerd" @@ -92,7 +80,6 @@ msgid "Submitted, pending review." msgstr "Ingediend, in afwaching van herziening." #: ../profiles/default/workflows/comment_review_workflow/definition.xml -#: ../profiles/default/workflows/one_state_workflow/definition.xml msgid "The ID of the user who performed the previous transition" msgstr "Het ID van de gebruiker die de vorige transitie heeft uitgevoerd" @@ -108,16 +95,11 @@ msgstr "Totaal aantal reacties op dit item." msgid "Users who have commented on the item" msgstr "Gebruikers die hebben gereageerd op dit item" -#: ../profiles/default/workflows/one_state_workflow/definition.xml -msgid "Visible to everyone, editable by the owner." -msgstr "Zichtbaar voor iedereen, bewerkbaar voor de eigenaar." - #: ../profiles/default/workflows/comment_review_workflow/definition.xml msgid "Visible to everyone, non-editable." msgstr "Zichtbaar voor iedereen, niet bewerkbaar." #: ../profiles/default/workflows/comment_review_workflow/definition.xml -#: ../profiles/default/workflows/one_state_workflow/definition.xml msgid "When the previous transition was performed" msgstr "Wanneer de vorige transitie werd uitgevoerd" diff --git a/plone/app/discussion/i18n/plone-no.po b/plone/app/discussion/i18n/plone-no.po index 0da35a6..dc914f0 100644 --- a/plone/app/discussion/i18n/plone-no.po +++ b/plone/app/discussion/i18n/plone-no.po @@ -1,7 +1,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" -"POT-Creation-Date: 2011-04-22 17:12+0000\n" +"POT-Creation-Date: 2014-05-16 13:47+0000\n" "PO-Revision-Date: YEAR-MO-DA HO:MI +ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -34,12 +34,7 @@ msgstr "" msgid "Comment Review Workflow" msgstr "" -#: ../profiles/default/workflows/one_state_workflow/definition.xml -msgid "Comment Single State Workflow" -msgstr "" - #: ../profiles/default/workflows/comment_review_workflow/definition.xml -#: ../profiles/default/workflows/one_state_workflow/definition.xml msgid "Comment about the last transition" msgstr "" @@ -55,10 +50,6 @@ msgstr "" msgid "Discussion" msgstr "" -#: ../profiles/default/workflows/one_state_workflow/definition.xml -msgid "Essentially a workflow with no transitions, but has a Published state, so portlets and applications that expect that state will continue to work." -msgstr "" - #: ../profiles/default/actions.xml msgid "Moderate comments" msgstr "" @@ -68,17 +59,14 @@ msgid "Pending" msgstr "" #: ../profiles/default/workflows/comment_review_workflow/definition.xml -#: ../profiles/default/workflows/one_state_workflow/definition.xml msgid "Previous transition" msgstr "" #: ../profiles/default/workflows/comment_review_workflow/definition.xml -#: ../profiles/default/workflows/one_state_workflow/definition.xml msgid "Provides access to workflow history" msgstr "" #: ../profiles/default/workflows/comment_review_workflow/definition.xml -#: ../profiles/default/workflows/one_state_workflow/definition.xml msgid "Published" msgstr "" @@ -91,7 +79,6 @@ msgid "Submitted, pending review." msgstr "" #: ../profiles/default/workflows/comment_review_workflow/definition.xml -#: ../profiles/default/workflows/one_state_workflow/definition.xml msgid "The ID of the user who performed the previous transition" msgstr "" @@ -107,16 +94,11 @@ msgstr "" msgid "Users who have commented on the item" msgstr "" -#: ../profiles/default/workflows/one_state_workflow/definition.xml -msgid "Visible to everyone, editable by the owner." -msgstr "" - #: ../profiles/default/workflows/comment_review_workflow/definition.xml msgid "Visible to everyone, non-editable." msgstr "" #: ../profiles/default/workflows/comment_review_workflow/definition.xml -#: ../profiles/default/workflows/one_state_workflow/definition.xml msgid "When the previous transition was performed" msgstr "" diff --git a/plone/app/discussion/i18n/plone-pt_BR.po b/plone/app/discussion/i18n/plone-pt_BR.po index 3fa51fb..ad4906d 100644 --- a/plone/app/discussion/i18n/plone-pt_BR.po +++ b/plone/app/discussion/i18n/plone-pt_BR.po @@ -1,7 +1,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" -"POT-Creation-Date: 2011-04-22 17:12+0000\n" +"POT-Creation-Date: 2014-05-16 13:47+0000\n" "PO-Revision-Date: 2011-04-14 17:38-0300\n" "Last-Translator: Andre Nogueira \n" "Language-Team: Plone i18n \n" @@ -34,12 +34,7 @@ msgstr "Comentário" msgid "Comment Review Workflow" msgstr "Worfklow de Moderação de Comentários" -#: ../profiles/default/workflows/one_state_workflow/definition.xml -msgid "Comment Single State Workflow" -msgstr "Workflow de estado único para comentários" - #: ../profiles/default/workflows/comment_review_workflow/definition.xml -#: ../profiles/default/workflows/one_state_workflow/definition.xml msgid "Comment about the last transition" msgstr "Comentário sobre a última transição" @@ -55,10 +50,6 @@ msgstr "Comentários adicionados a um conteúdo." msgid "Discussion" msgstr "Discussão" -#: ../profiles/default/workflows/one_state_workflow/definition.xml -msgid "Essentially a workflow with no transitions, but has a Published state, so portlets and applications that expect that state will continue to work." -msgstr "Essencialmente um fluxo de trabalho sem transições, mas possui um estado Publicado, para que portlets e aplicativos que esperam este estado funcionem." - #: ../profiles/default/actions.xml msgid "Moderate comments" msgstr "Moderar comentários" @@ -68,17 +59,14 @@ msgid "Pending" msgstr "Pendente" #: ../profiles/default/workflows/comment_review_workflow/definition.xml -#: ../profiles/default/workflows/one_state_workflow/definition.xml msgid "Previous transition" msgstr "Transição anterior" #: ../profiles/default/workflows/comment_review_workflow/definition.xml -#: ../profiles/default/workflows/one_state_workflow/definition.xml msgid "Provides access to workflow history" msgstr "Fornece acesso ao histórico do Workflow" #: ../profiles/default/workflows/comment_review_workflow/definition.xml -#: ../profiles/default/workflows/one_state_workflow/definition.xml msgid "Published" msgstr "Publicado" @@ -91,7 +79,6 @@ msgid "Submitted, pending review." msgstr "Enviado, pendente de moderação." #: ../profiles/default/workflows/comment_review_workflow/definition.xml -#: ../profiles/default/workflows/one_state_workflow/definition.xml msgid "The ID of the user who performed the previous transition" msgstr "O ID do usuário que realizou a transição anterior" @@ -107,16 +94,11 @@ msgstr "Número total de comentários deste item." msgid "Users who have commented on the item" msgstr "Usuários que comentáram este item" -#: ../profiles/default/workflows/one_state_workflow/definition.xml -msgid "Visible to everyone, editable by the owner." -msgstr "Visível para todos, editável pelo autor." - #: ../profiles/default/workflows/comment_review_workflow/definition.xml msgid "Visible to everyone, non-editable." msgstr "Visível para todos, não editável." #: ../profiles/default/workflows/comment_review_workflow/definition.xml -#: ../profiles/default/workflows/one_state_workflow/definition.xml msgid "When the previous transition was performed" msgstr "Quando a transição anterior foi realizada" diff --git a/plone/app/discussion/i18n/plone-sk.po b/plone/app/discussion/i18n/plone-sk.po new file mode 100644 index 0000000..19dc7ce --- /dev/null +++ b/plone/app/discussion/i18n/plone-sk.po @@ -0,0 +1,104 @@ +msgid "" +msgstr "" +"Project-Id-Version: plone.app.discussion\n" +"POT-Creation-Date: 2014-05-16 13:47+0000\n" +"PO-Revision-Date: 2012-07-02 17:54+0100\n" +"Last-Translator: Radim Novotny \n" +"Language-Team: Hanno Schlichting \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" +"Language-Code: sk\n" +"Language-Name: Slovak\n" +"Preferred-Encodings: utf-8\n" +"Domain: plone\n" + +#: ../profiles/default/workflows/comment_review_workflow/definition.xml +msgid "A simple review workflow for comments" +msgstr "" + +#: ../profiles/default/workflows/comment_review_workflow/definition.xml +msgid "Approve" +msgstr "" + +#: ../profiles/default/workflows/comment_review_workflow/definition.xml +msgid "Approving the comment makes it visible to other users." +msgstr "" + +#: ../profiles/default/types/Discussion_Item.xml +msgid "Comment" +msgstr "" + +#: ../profiles/default/workflows/comment_review_workflow/definition.xml +msgid "Comment Review Workflow" +msgstr "" + +#: ../profiles/default/workflows/comment_review_workflow/definition.xml +msgid "Comment about the last transition" +msgstr "" + +#: ../profiles/default/portal_atct.xml +msgid "Commentators" +msgstr "" + +#: ../profiles/default/types/Discussion_Item.xml +msgid "Comments added to a content item." +msgstr "" + +#: ../profiles/default/controlpanel.xml +msgid "Discussion" +msgstr "" + +#: ../profiles/default/actions.xml +msgid "Moderate comments" +msgstr "" + +#: ../profiles/default/workflows/comment_review_workflow/definition.xml +msgid "Pending" +msgstr "" + +#: ../profiles/default/workflows/comment_review_workflow/definition.xml +msgid "Previous transition" +msgstr "" + +#: ../profiles/default/workflows/comment_review_workflow/definition.xml +msgid "Provides access to workflow history" +msgstr "" + +#: ../profiles/default/workflows/comment_review_workflow/definition.xml +msgid "Published" +msgstr "" + +#: ../profiles/default/workflows/comment_review_workflow/definition.xml +msgid "Reviewer approves content" +msgstr "" + +#: ../profiles/default/workflows/comment_review_workflow/definition.xml +msgid "Submitted, pending review." +msgstr "" + +#: ../profiles/default/workflows/comment_review_workflow/definition.xml +msgid "The ID of the user who performed the previous transition" +msgstr "" + +#: ../profiles/default/portal_atct.xml +msgid "Total number of comments" +msgstr "" + +#: ../profiles/default/portal_atct.xml +msgid "Total number of comments on this item." +msgstr "" + +#: ../profiles/default/portal_atct.xml +msgid "Users who have commented on the item" +msgstr "" + +#: ../profiles/default/workflows/comment_review_workflow/definition.xml +msgid "Visible to everyone, non-editable." +msgstr "" + +#: ../profiles/default/workflows/comment_review_workflow/definition.xml +msgid "When the previous transition was performed" +msgstr "" + diff --git a/plone/app/discussion/i18n/plone-uk.po b/plone/app/discussion/i18n/plone-uk.po index 2e205c9..7515c1d 100644 --- a/plone/app/discussion/i18n/plone-uk.po +++ b/plone/app/discussion/i18n/plone-uk.po @@ -1,9 +1,9 @@ msgid "" msgstr "" "Project-Id-Version: plone.app.discussion\n" -"POT-Creation-Date: 2011-04-22 17:12+0000\n" -"PO-Revision-Date: 2011-08-18 14:54+0300\n" -"Last-Translator: Olha \n" +"POT-Creation-Date: 2014-05-16 13:47+0000\n" +"PO-Revision-Date: 2013-04-12 14:55+0300\n" +"Last-Translator: Roman Kozlovskyi \n" "Language-Team: Hanno Schlichting \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" @@ -16,7 +16,7 @@ msgstr "" #: ../profiles/default/workflows/comment_review_workflow/definition.xml msgid "A simple review workflow for comments" -msgstr "" +msgstr "Простий робочий проце для розгляду коментарів" #: ../profiles/default/workflows/comment_review_workflow/definition.xml msgid "Approve" @@ -32,16 +32,11 @@ msgstr "Коментар" #: ../profiles/default/workflows/comment_review_workflow/definition.xml msgid "Comment Review Workflow" -msgstr "" - -#: ../profiles/default/workflows/one_state_workflow/definition.xml -msgid "Comment Single State Workflow" -msgstr "" +msgstr "Робочий процес розгляду коментарів" #: ../profiles/default/workflows/comment_review_workflow/definition.xml -#: ../profiles/default/workflows/one_state_workflow/definition.xml msgid "Comment about the last transition" -msgstr "" +msgstr "Коментар про останню зміну стану" #: ../profiles/default/portal_atct.xml msgid "Commentators" @@ -55,45 +50,37 @@ msgstr "Коментарі, додані до об'єкта." msgid "Discussion" msgstr "Коментування" -#: ../profiles/default/workflows/one_state_workflow/definition.xml -msgid "Essentially a workflow with no transitions, but has a Published state, so portlets and applications that expect that state will continue to work." -msgstr "" - #: ../profiles/default/actions.xml msgid "Moderate comments" -msgstr "" +msgstr "Модерування коментарів" #: ../profiles/default/workflows/comment_review_workflow/definition.xml msgid "Pending" msgstr "Непідтверджений" #: ../profiles/default/workflows/comment_review_workflow/definition.xml -#: ../profiles/default/workflows/one_state_workflow/definition.xml msgid "Previous transition" -msgstr "" +msgstr "Попередня зміна стану" #: ../profiles/default/workflows/comment_review_workflow/definition.xml -#: ../profiles/default/workflows/one_state_workflow/definition.xml msgid "Provides access to workflow history" -msgstr "" +msgstr "Надає доступ до історії робочого процесу" #: ../profiles/default/workflows/comment_review_workflow/definition.xml -#: ../profiles/default/workflows/one_state_workflow/definition.xml msgid "Published" msgstr "Опублікований" #: ../profiles/default/workflows/comment_review_workflow/definition.xml msgid "Reviewer approves content" -msgstr "" +msgstr "Рецензент затвердив зміст" #: ../profiles/default/workflows/comment_review_workflow/definition.xml msgid "Submitted, pending review." msgstr "Подано на публікацію." #: ../profiles/default/workflows/comment_review_workflow/definition.xml -#: ../profiles/default/workflows/one_state_workflow/definition.xml msgid "The ID of the user who performed the previous transition" -msgstr "" +msgstr "Ідентифікатор користувача який спровокував останню зміну стану" #: ../profiles/default/portal_atct.xml msgid "Total number of comments" @@ -107,16 +94,11 @@ msgstr "Загальне число коментарів до цього об'є msgid "Users who have commented on the item" msgstr "Користувачі, які прокоментували цей об'єкт." -#: ../profiles/default/workflows/one_state_workflow/definition.xml -msgid "Visible to everyone, editable by the owner." -msgstr "Видимий для всіх, редагує автор." - #: ../profiles/default/workflows/comment_review_workflow/definition.xml msgid "Visible to everyone, non-editable." msgstr "Видимий для всіх, не редагується." #: ../profiles/default/workflows/comment_review_workflow/definition.xml -#: ../profiles/default/workflows/one_state_workflow/definition.xml msgid "When the previous transition was performed" -msgstr "" +msgstr "Коли була здійснена попередня зміна стану" diff --git a/plone/app/discussion/i18n/plone-zh_CN.po b/plone/app/discussion/i18n/plone-zh_CN.po index ea7c04a..62e313d 100644 --- a/plone/app/discussion/i18n/plone-zh_CN.po +++ b/plone/app/discussion/i18n/plone-zh_CN.po @@ -1,7 +1,7 @@ msgid "" msgstr "" "Project-Id-Version: plone.app.discussion\n" -"POT-Creation-Date: 2011-04-22 17:12+0000\n" +"POT-Creation-Date: 2014-05-16 13:47+0000\n" "PO-Revision-Date: 2011-08-19 12:23+0800\n" "Last-Translator: Jian Aijun \n" "Language-Team: plone \n" @@ -34,12 +34,7 @@ msgstr "评论" msgid "Comment Review Workflow" msgstr "评论审核工作流" -#: ../profiles/default/workflows/one_state_workflow/definition.xml -msgid "Comment Single State Workflow" -msgstr "评论单一状态工作流" - #: ../profiles/default/workflows/comment_review_workflow/definition.xml -#: ../profiles/default/workflows/one_state_workflow/definition.xml msgid "Comment about the last transition" msgstr "最后状态转换的注释" @@ -55,10 +50,6 @@ msgstr "评论已添加到内容条目。" msgid "Discussion" msgstr "评论" -#: ../profiles/default/workflows/one_state_workflow/definition.xml -msgid "Essentially a workflow with no transitions, but has a Published state, so portlets and applications that expect that state will continue to work." -msgstr "没有状态转换的基本工作流,只有一个发布状态,所以依赖该状态的面板和应用可以继续正常工作。" - #: ../profiles/default/actions.xml msgid "Moderate comments" msgstr "评论审核" @@ -68,17 +59,14 @@ msgid "Pending" msgstr "待审核" #: ../profiles/default/workflows/comment_review_workflow/definition.xml -#: ../profiles/default/workflows/one_state_workflow/definition.xml msgid "Previous transition" msgstr "上一步状态转换" #: ../profiles/default/workflows/comment_review_workflow/definition.xml -#: ../profiles/default/workflows/one_state_workflow/definition.xml msgid "Provides access to workflow history" msgstr "提供访问工作流历史记录功能" #: ../profiles/default/workflows/comment_review_workflow/definition.xml -#: ../profiles/default/workflows/one_state_workflow/definition.xml msgid "Published" msgstr "已发布" @@ -91,7 +79,6 @@ msgid "Submitted, pending review." msgstr "已提交,等待审核。" #: ../profiles/default/workflows/comment_review_workflow/definition.xml -#: ../profiles/default/workflows/one_state_workflow/definition.xml msgid "The ID of the user who performed the previous transition" msgstr "执行上一步状态转换的用户 ID" @@ -107,16 +94,11 @@ msgstr "此条目的评论总数。" msgid "Users who have commented on the item" msgstr "此条目的评论者。" -#: ../profiles/default/workflows/one_state_workflow/definition.xml -msgid "Visible to everyone, editable by the owner." -msgstr "对任何人可见,所有者可编辑。" - #: ../profiles/default/workflows/comment_review_workflow/definition.xml msgid "Visible to everyone, non-editable." msgstr "对任何人可见,不可编辑。" #: ../profiles/default/workflows/comment_review_workflow/definition.xml -#: ../profiles/default/workflows/one_state_workflow/definition.xml msgid "When the previous transition was performed" msgstr "当上一步状态转换被执行" diff --git a/plone/app/discussion/i18n/plone-zh_TW.po b/plone/app/discussion/i18n/plone-zh_TW.po index 58cf224..efb78ac 100644 --- a/plone/app/discussion/i18n/plone-zh_TW.po +++ b/plone/app/discussion/i18n/plone-zh_TW.po @@ -1,7 +1,7 @@ msgid "" msgstr "" "Project-Id-Version: plone.app.discussion\n" -"POT-Creation-Date: 2011-04-22 17:12+0000\n" +"POT-Creation-Date: 2014-05-16 13:47+0000\n" "PO-Revision-Date: 2010-08-07 23:11+0800\n" "Last-Translator: TsungWei Hu \n" "Language-Team: Taiwan Python User Group \n" @@ -34,12 +34,7 @@ msgstr "留言" msgid "Comment Review Workflow" msgstr "留言審核流程" -#: ../profiles/default/workflows/one_state_workflow/definition.xml -msgid "Comment Single State Workflow" -msgstr "單一狀態的工作流程" - #: ../profiles/default/workflows/comment_review_workflow/definition.xml -#: ../profiles/default/workflows/one_state_workflow/definition.xml msgid "Comment about the last transition" msgstr "最後狀態轉移的備註" @@ -55,10 +50,6 @@ msgstr "新增到內容項目的留言" msgid "Discussion" msgstr "討論" -#: ../profiles/default/workflows/one_state_workflow/definition.xml -msgid "Essentially a workflow with no transitions, but has a Published state, so portlets and applications that expect that state will continue to work." -msgstr "" - #: ../profiles/default/actions.xml msgid "Moderate comments" msgstr "審核留言" @@ -68,17 +59,14 @@ msgid "Pending" msgstr "待審核" #: ../profiles/default/workflows/comment_review_workflow/definition.xml -#: ../profiles/default/workflows/one_state_workflow/definition.xml msgid "Previous transition" msgstr "前一個移轉狀態" #: ../profiles/default/workflows/comment_review_workflow/definition.xml -#: ../profiles/default/workflows/one_state_workflow/definition.xml msgid "Provides access to workflow history" msgstr "提供工作流程歷史記錄的功能" #: ../profiles/default/workflows/comment_review_workflow/definition.xml -#: ../profiles/default/workflows/one_state_workflow/definition.xml msgid "Published" msgstr "已發佈" @@ -91,7 +79,6 @@ msgid "Submitted, pending review." msgstr "已送出,待審核中。" #: ../profiles/default/workflows/comment_review_workflow/definition.xml -#: ../profiles/default/workflows/one_state_workflow/definition.xml msgid "The ID of the user who performed the previous transition" msgstr "執行前一個狀態移轉的使用者識別碼" @@ -107,16 +94,11 @@ msgstr "在此項目留言的總數。" msgid "Users who have commented on the item" msgstr "在此項目留言的使用者" -#: ../profiles/default/workflows/one_state_workflow/definition.xml -msgid "Visible to everyone, editable by the owner." -msgstr "所有人可檢視,擁有者可編輯。" - #: ../profiles/default/workflows/comment_review_workflow/definition.xml msgid "Visible to everyone, non-editable." msgstr "每個人都看得到,但無法編輯。" #: ../profiles/default/workflows/comment_review_workflow/definition.xml -#: ../profiles/default/workflows/one_state_workflow/definition.xml msgid "When the previous transition was performed" msgstr "當前一個移轉動作被執行時" diff --git a/plone/app/discussion/i18n/plone.pot b/plone/app/discussion/i18n/plone.pot index 4ad8692..03eb8b7 100644 --- a/plone/app/discussion/i18n/plone.pot +++ b/plone/app/discussion/i18n/plone.pot @@ -1,7 +1,7 @@ msgid "" msgstr "" "Project-Id-Version: plone.app.discussion\n" -"POT-Creation-Date: 2011-04-22 17:12+0000\n" +"POT-Creation-Date: 2014-05-16 13:47+0000\n" "PO-Revision-Date: 2010-01-28 15:00+0000\n" "Last-Translator: Hanno Schlichting \n" "Language-Team: Hanno Schlichting \n" @@ -34,12 +34,7 @@ msgstr "" msgid "Comment Review Workflow" msgstr "" -#: ../profiles/default/workflows/one_state_workflow/definition.xml -msgid "Comment Single State Workflow" -msgstr "" - #: ../profiles/default/workflows/comment_review_workflow/definition.xml -#: ../profiles/default/workflows/one_state_workflow/definition.xml msgid "Comment about the last transition" msgstr "" @@ -55,10 +50,6 @@ msgstr "" msgid "Discussion" msgstr "" -#: ../profiles/default/workflows/one_state_workflow/definition.xml -msgid "Essentially a workflow with no transitions, but has a Published state, so portlets and applications that expect that state will continue to work." -msgstr "" - #: ../profiles/default/actions.xml msgid "Moderate comments" msgstr "" @@ -68,17 +59,14 @@ msgid "Pending" msgstr "" #: ../profiles/default/workflows/comment_review_workflow/definition.xml -#: ../profiles/default/workflows/one_state_workflow/definition.xml msgid "Previous transition" msgstr "" #: ../profiles/default/workflows/comment_review_workflow/definition.xml -#: ../profiles/default/workflows/one_state_workflow/definition.xml msgid "Provides access to workflow history" msgstr "" #: ../profiles/default/workflows/comment_review_workflow/definition.xml -#: ../profiles/default/workflows/one_state_workflow/definition.xml msgid "Published" msgstr "" @@ -91,7 +79,6 @@ msgid "Submitted, pending review." msgstr "" #: ../profiles/default/workflows/comment_review_workflow/definition.xml -#: ../profiles/default/workflows/one_state_workflow/definition.xml msgid "The ID of the user who performed the previous transition" msgstr "" @@ -107,16 +94,11 @@ msgstr "" msgid "Users who have commented on the item" msgstr "" -#: ../profiles/default/workflows/one_state_workflow/definition.xml -msgid "Visible to everyone, editable by the owner." -msgstr "" - #: ../profiles/default/workflows/comment_review_workflow/definition.xml msgid "Visible to everyone, non-editable." msgstr "" #: ../profiles/default/workflows/comment_review_workflow/definition.xml -#: ../profiles/default/workflows/one_state_workflow/definition.xml msgid "When the previous transition was performed" msgstr "" diff --git a/plone/app/discussion/interfaces.py b/plone/app/discussion/interfaces.py index 92560cd..a807580 100644 --- a/plone/app/discussion/interfaces.py +++ b/plone/app/discussion/interfaces.py @@ -4,6 +4,7 @@ from zope.interface import Interface from zope.interface.common.mapping import IIterableMapping +from zope.component.interfaces import IObjectEvent from zope import schema from plone.app.discussion import PloneAppDiscussionMessageFactory as _ @@ -31,20 +32,28 @@ class IConversation(IIterableMapping): """ total_comments = schema.Int( - title=_(u"Total number of comments on this item"), + title=_(u"Total number of public comments on this item"), min=0, readonly=True, - ) + ) last_comment_date = schema.Date( - title=_(u"Date of the most recent comment"), + title=_(u"Date of the most recent public comment"), readonly=True, - ) + ) commentators = schema.Set( title=_(u"The set of unique commentators (usernames)"), readonly=True, - ) + ) + + public_commentators = schema.Set( + title=_( + u"The set of unique commentators (usernames) of" + u" published_comments" + ), + readonly=True, + ) def addComment(comment): """Adds a new comment to the list of comments, and returns the @@ -124,7 +133,7 @@ class IComment(Interface): portal_type = schema.ASCIILine( title=_(u"Portal type"), default="Discussion Item", - ) + ) __parent__ = schema.Object( title=_(u"Conversation"), schema=Interface) @@ -137,7 +146,7 @@ class IComment(Interface): in_reply_to = schema.Int( title=_(u"Id of comment this comment is in reply to"), required=False, - ) + ) # for logged in comments - set to None for anonymous author_username = schema.TextLine(title=_(u"Name"), required=False) @@ -150,14 +159,21 @@ class IComment(Interface): default=u"Subject")) mime_type = schema.ASCIILine(title=_(u"MIME type"), default="text/plain") - text = schema.Text(title=_(u"label_comment", - default=u"Comment")) + text = schema.Text( + title=_( + u"label_comment", + default=u"Comment" + ) + ) - user_notification = schema.Bool(title=_(u"Notify me of new comments via " - "email."), - required=False) + user_notification = schema.Bool( + title=_( + u"Notify me of new comments via email." + ), + required=False + ) - creator = schema.TextLine(title=_(u"Author name (for display)")) + creator = schema.TextLine(title=_(u"Username of the commenter")) creation_date = schema.Date(title=_(u"Creation date")) modification_date = schema.Date(title=_(u"Modification date")) @@ -169,38 +185,6 @@ class ICaptcha(Interface): required=False) -class ICommentingTool(Interface): - """A tool that indexes all comments for usage by the management interface. - - This means the management interface can still work even though we don't - index the comments in portal_catalog. - - The default implementation of this interface simply defers to - portal_catalog, but a custom version of the tool can be used to provide - an alternate indexing mechanism. - """ - - def indexObject(comment): - """Indexes a comment - """ - - def reindexObject(comment): - """Reindex a comment - """ - - def unindexObject(comment): - """Removes a comment from the indexes - """ - - def uniqueValuesFor(name): - """Get unique values for FieldIndex name - """ - - def searchResults(REQUEST=None, **kw): - """Perform a search over all indexed comments. - """ - - class IDiscussionSettings(Interface): """Global discussion settings. This describes records stored in the configuration registry and obtainable via plone.registry. @@ -215,110 +199,149 @@ class IDiscussionSettings(Interface): globally_enabled = schema.Bool( title=_(u"label_globally_enabled", default=u"Globally enable comments"), - description=_(u"help_globally_enabled", - default=u"If selected, users are able to post comments on the " - "site. Though, you have to enable comments for " - "specific content types, folders or content objects " - "before users will be able to post comments."), + description=_( + u"help_globally_enabled", + default=u"If selected, users are able to post comments on the " + u"site. Though, you have to enable comments for " + u"specific content types, folders or content objects " + u"before users will be able to post comments." + ), required=False, default=False, - ) + ) anonymous_comments = schema.Bool( title=_(u"label_anonymous_comments", default="Enable anonymous comments"), - description=_(u"help_anonymous_comments", - default=u"If selected, anonymous users are able to post " - "comments without loggin in. It is highly " - "recommended to use a captcha solution to prevent " - "spam if this setting is enabled."), + description=_( + u"help_anonymous_comments", + default=u"If selected, anonymous users are able to post " + u"comments without loggin in. It is highly " + u"recommended to use a captcha solution to prevent " + u"spam if this setting is enabled." + ), required=False, default=False, - ) + ) moderation_enabled = schema.Bool( - title=_(u"label_moderation_enabled", - default="Enable comment moderation"), - description=_(u"help_moderation_enabled", - default=u"If selected, comments will enter a 'Pending' state " - "in which they are invisible to the public. A user " - "with the 'Review comments' permission ('Reviewer' " - "or 'Manager') can approve comments to make them " - "visible to the public. If you want to enable a " - "custom comment workflow, you have to go to the " - "types control panel."), + title=_( + u"label_moderation_enabled", + default="Enable comment moderation" + ), + description=_( + u"help_moderation_enabled", + default=u"If selected, comments will enter a 'Pending' state " + u"in which they are invisible to the public. A user " + u"with the 'Review comments' permission ('Reviewer' " + u"or 'Manager') can approve comments to make them " + u"visible to the public. If you want to enable a " + u"custom comment workflow, you have to go to the " + u"types control panel." + ), required=False, default=False, - ) + ) + + edit_comment_enabled = schema.Bool( + title=_(u"label_edit_comment_enabled", + default="Enable editing of comments"), + description=_(u"help_edit_comment_enabled", + default=u"If selected, supports editing and deletion " + "of comments for users with the 'Edit comments' " + "permission."), + required=False, + default=False, + ) text_transform = schema.Choice( title=_(u"label_text_transform", default="Comment text transform"), - description=_(u"help_text_transform", - default=u"Use this setting to choose if the comment text " + - "should be transformed in any way. You can choose " - "between 'Plain text' and 'Intelligent text'. " + - "'Intelligent text' converts plain text into HTML " + - "where line breaks and indentation is preserved, " + - "and web and email addresses are made into " + - "clickable links."), + description=_( + u"help_text_transform", + default=u"Use this setting to choose if the comment text " + + u"should be transformed in any way. You can choose " + u"between 'Plain text' and 'Intelligent text'. " + + u"'Intelligent text' converts plain text into HTML " + + u"where line breaks and indentation is preserved, " + + u"and web and email addresses are made into " + + u"clickable links."), required=True, default='text/plain', vocabulary='plone.app.discussion.vocabularies.TextTransformVocabulary', - ) + ) captcha = schema.Choice( title=_(u"label_captcha", default="Captcha"), - description=_(u"help_captcha", - default=u"Use this setting to enable or disable Captcha " - "validation for comments. Install " - "plone.formwidget.captcha, " - "plone.formwidget.recaptcha, collective.akismet, or " - "collective.z3cform.norobots if there are no options " - "available."), + description=_( + u"help_captcha", + default=u"Use this setting to enable or disable Captcha " + u"validation for comments. Install " + u"plone.formwidget.captcha, " + u"plone.formwidget.recaptcha, collective.akismet, or " + u"collective.z3cform.norobots if there are no options " + u"available."), required=True, default='disabled', vocabulary='plone.app.discussion.vocabularies.CaptchaVocabulary', - ) + ) show_commenter_image = schema.Bool( title=_(u"label_show_commenter_image", default=u"Show commenter image"), - description=_(u"help_show_commenter_image", - default=u"If selected, an image of the user is shown next to " - "the comment."), + description=_( + u"help_show_commenter_image", + default=u"If selected, an image of the user is shown next to " + u"the comment."), required=False, default=True, - ) + ) moderator_notification_enabled = schema.Bool( title=_(u"label_moderator_notification_enabled", default=u"Enable moderator email notification"), - description=_(u"help_moderator_notification_enabled", - default=u"If selected, the moderator is notified if a comment " - "needs attention. The moderator email address can " + - "be found in the 'Mail settings' control panel " - "(Site 'From' address)"), + description=_( + u"help_moderator_notification_enabled", + default=u"If selected, the moderator is notified if a comment " + u"needs attention. The moderator email address can " + + u"be set below."), required=False, default=False, - ) + ) moderator_email = schema.ASCIILine( - title=_(u'label_moderator_email', - default=u'Moderator Email Address'), - description=_(u'help_moderator_email', - default=u"Address to which moderator notifications " - u"will be sent."), + title=_( + u'label_moderator_email', + default=u'Moderator Email Address' + ), + description=_( + u'help_moderator_email', + default=u"Address to which moderator notifications " + u"will be sent."), required=False, - ) + ) user_notification_enabled = schema.Bool( - title=_(u"label_user_notification_enabled", - default=u"Enable user email notification"), - description=_(u"help_user_notification_enabled", - default=u"If selected, users can choose to be notified " - "of new comments by email."), + title=_( + u"label_user_notification_enabled", + default=u"Enable user email notification" + ), + description=_( + u"help_user_notification_enabled", + default=u"If selected, users can choose to be notified " + u"of new comments by email."), + required=False, + default=False + ) + + anonymous_email_enabled = schema.Bool( + title=_(u"label_anonymous_email_enabled", + default=u"Enable anonymous email field"), + description=_( + u"help_anonymous_email_enabled", + default=u"If selected, anonymous user will have to " + u"give their email."), required=False, default=False) @@ -326,3 +349,35 @@ class IDiscussionSettings(Interface): class IDiscussionLayer(Interface): """Request marker installed via browserlayer.xml. """ + + +class ICommentingTool(Interface): + """For backwards-compatibility. + + This can be removed once we no longer support upgrading from versions + of Plone that had a portal_discussion tool. + """ + +# +# Custom events +# + +class IDiscussionEvent(IObjectEvent): + """ Discussion custom event + """ + +class ICommentAddedEvent(IDiscussionEvent): + """ Comment added + """ + +class ICommentRemovedEvent(IDiscussionEvent): + """ Comment removed + """ + +class IReplyAddedEvent(IDiscussionEvent): + """ Comment reply added + """ + +class IReplyRemovedEvent(IDiscussionEvent): + """ Comment reply removed + """ diff --git a/plone/app/discussion/locales/af/LC_MESSAGES/plone.app.discussion.po b/plone/app/discussion/locales/af/LC_MESSAGES/plone.app.discussion.po index 8154e04..0770096 100644 --- a/plone/app/discussion/locales/af/LC_MESSAGES/plone.app.discussion.po +++ b/plone/app/discussion/locales/af/LC_MESSAGES/plone.app.discussion.po @@ -33,103 +33,123 @@ msgstr "" "Preferred-Encodings: utf-8 latin1\n" "Domain: plone.app.discussion\n" -#: ../comment.py:264 +#: ../comment.py:357 msgid "A comment has been posted." msgstr "'n Opmerking is geplaas." -#: ../interfaces.py:257 +#: ../interfaces.py:144 msgid "A comment id unique to this conversation" msgstr "'n ID uniek tot hierdie gesprek" -#: ../browser/comments.py:67 +#: ../browser/comments.py:72 msgid "Add a comment" msgstr "Voeg 'n opmerking by" -#: ../browser/controlpanel.py:62 +#: ../browser/controlpanel.py:75 msgid "Anonymous Comments" msgstr "Anonieme kommentaar" -#: ../interfaces.py:282 -msgid "Author name (for display)" -msgstr "Outeur naam (om te vertoon)" - -#: ../browser/comments.py:248 -#: ../browser/controlpanel.py:80 +#: ../browser/comments.py:274 +#: ../browser/controlpanel.py:93 msgid "Cancel" msgstr "Kanselleer" -#: ../browser/controlpanel.py:76 +#: ../browser/controlpanel.py:89 msgid "Changes saved" msgstr "" -#: ../browser/moderation.py:133 +#: ../browser/moderation.py:154 msgid "Comment approved." msgstr "Opmerking goedgekeur" -#: ../browser/moderation.py:94 +#: ../contentrules.py:96 +msgid "Comment author email" +msgstr "" + +#: ../contentrules.py:85 +msgid "Comment author full name" +msgstr "" + +#: ../contentrules.py:74 +msgid "Comment author user name" +msgstr "" + +#: ../browser/moderation.py:108 msgid "Comment deleted." msgstr "Opmerking verwyder" -#: ../browser/controlpanel.py:63 +#: ../contentrules.py:52 +msgid "Comment id" +msgstr "" + +#: ../contentrules.py:63 +msgid "Comment text" +msgstr "" + +#: ../browser/controlpanel.py:76 msgid "Commenter Image" msgstr "Kommentator se Profielfoto" msgid "Commenting infrastructure for Plone" msgstr "Kommentaarinfrastruktuur vir Plone" -#: ../interfaces.py:252 +#: ../contentrules.py:51 +msgid "Comments" +msgstr "" + +#: ../interfaces.py:139 msgid "Conversation" msgstr "Gesprek" -#: ../interfaces.py:283 +#: ../interfaces.py:177 msgid "Creation date" msgstr "Skeppingsdatum" -#: ../interfaces.py:162 -msgid "Date of the most recent comment" -msgstr "Datum van die laaste opmerking" +#: ../interfaces.py:41 +msgid "Date of the most recent public comment" +msgstr "" #: ../vocabularies.py:44 msgid "Disabled" msgstr "Uitgeskakel" -#: ../browser/controlpanel.py:32 +#: ../browser/controlpanel.py:35 msgid "Discussion settings" msgstr "Kommentaar instellings" -#: ../browser/controlpanel.py:82 +#: ../browser/controlpanel.py:95 msgid "Edit cancelled" msgstr "" -#: ../interfaces.py:269 +#: ../interfaces.py:156 msgid "Email" msgstr "E-pos" -#: ../browser/controlpanel.py:61 +#: ../browser/controlpanel.py:74 msgid "Enable Comments" msgstr "Laat kommentare toe" -#: ../interfaces.py:260 +#: ../interfaces.py:147 msgid "Id of comment this comment is in reply to" msgstr "Id van dié opmerking waarop hierdie een antwoord" -#: ../interfaces.py:274 +#: ../interfaces.py:161 msgid "MIME type" msgstr "MIME-tipe" -#: ../browser/controlpanel.py:65 +#: ../browser/controlpanel.py:78 msgid "Moderator Email Notification" msgstr "E-pos in kennis stelling vir die redaksie" -#: ../interfaces.py:284 +#: ../interfaces.py:178 msgid "Modification date" msgstr "Wysigingsdatum" -#: ../interfaces.py:254 +#: ../interfaces.py:141 msgid "Name" msgstr "Naam" -#: ../interfaces.py:278 +#: ../interfaces.py:170 msgid "Notify me of new comments via email." msgstr "Stel my in kennis van nuwe opmerkings m.b.v e-pos" @@ -137,32 +157,44 @@ msgstr "Stel my in kennis van nuwe opmerkings m.b.v e-pos" msgid "Plone Discussions" msgstr "Plone Kommentare" -#: ../interfaces.py:247 +#: ../interfaces.py:134 msgid "Portal type" msgstr "Portaaltipe" -#: ../browser/controlpanel.py:69 +#: ../browser/controlpanel.py:82 msgid "Save" msgstr "" -#: ../interfaces.py:167 +#: ../interfaces.py:46 msgid "The set of unique commentators (usernames)" msgstr "Lys van kommentators (gebruikersname)" -#: ../interfaces.py:156 -msgid "Total number of comments on this item" -msgstr "Totale aantal opmerkings op hierdie item" +#: ../interfaces.py:51 +msgid "The set of unique commentators (usernames) of published_comments" +msgstr "" -#: ../browser/controlpanel.py:67 +#: ../interfaces.py:35 +msgid "Total number of public comments on this item" +msgstr "" + +#: ../comment.py:173 +msgid "Transform '%s' => '%s' not available." +msgstr "" + +#: ../browser/controlpanel.py:80 msgid "User Email Notification" msgstr "Gebruik e-pos in kennis stelling" -#: ../browser/comments.py:241 +#: ../interfaces.py:176 +msgid "Username of the commenter" +msgstr "" + +#: ../browser/comments.py:267 msgid "Your comment awaits moderator approval." msgstr "Die opmerking sal geplaas word sodra dit goedgekeur is." #. Default: "Comment" -#: ../browser/comments.py:123 +#: ../browser/comments.py:138 msgid "add_comment_button" msgstr "Lewer kommentaar" @@ -176,26 +208,57 @@ msgstr "Skrap" msgid "bulkactions_publish" msgstr "Keur goed" +#. Default: "Cancel" +#: ../browser/comment.py:97 +msgid "cancel_form_button" +msgstr "" + #. Default: "You can add a comment by filling out the form below. Plain text formatting. Web and email addresses are transformed into clickable links." -#: ../browser/comments.py:52 +#: ../browser/comments.py:57 msgid "comment_description_intelligent_text" msgstr "" +#. Default: "You can add a comment by filling out the form below. Plain text formatting. You can use the Markdown syntax for links and images." +#: ../browser/comments.py:51 +msgid "comment_description_markdown" +msgstr "" + #. Default: "Comments are moderated." -#: ../browser/comments.py:58 +#: ../browser/comments.py:63 msgid "comment_description_moderation_enabled" msgstr "" #. Default: "You can add a comment by filling out the form below. Plain text formatting." -#: ../browser/comments.py:47 +#: ../browser/comments.py:46 msgid "comment_description_plain_text" msgstr "" -#. Default: "${creator} on ${content}" -#: ../comment.py:46 +#. Default: "Edit comment cancelled" +#: ../browser/comment.py:101 +msgid "comment_edit_cancel_notification" +msgstr "" + +#. Default: "Comment was edited" +#: ../browser/comment.py:91 +msgid "comment_edit_notification" +msgstr "" + +#. Default: "${author_name} on ${content}" +#: ../comment.py:55 +#, fuzzy msgid "comment_title" msgstr "${creator} op ${content}" +#. Default: "Edit comment" +#: ../browser/comment.py:70 +msgid "edit_comment_form_button" +msgstr "" + +#. Default: "Edit comment" +#: ../browser/comment.py:54 +msgid "edit_comment_form_title" +msgstr "" + #. Default: "Action" #: ../browser/moderation.pt:85 msgid "heading_action" @@ -227,85 +290,101 @@ msgid "heading_moderate_comments" msgstr "Modereer kommentaar" #. Default: "If selected, anonymous users are able to post comments without loggin in. It is highly recommended to use a captcha solution to prevent spam if this setting is enabled." -#: ../interfaces.py:38 +#: ../interfaces.py:216 msgid "help_anonymous_comments" msgstr "Indien geselekteer, sal anonieme besoekers opmerkings kan laat sonder om aan te meld. Die captcha-oplossing word aanbeveel indien hierdie opsie aangeskakel word, om gemorspos te voorkom." +#. Default: "If selected, anonymous user will have to give their email." +#: ../interfaces.py:341 +msgid "help_anonymous_email_enabled" +msgstr "" + #. Default: "Use this setting to enable or disable Captcha validation for comments. Install plone.formwidget.captcha, plone.formwidget.recaptcha, collective.akismet, or collective.z3cform.norobots if there are no options available." -#: ../interfaces.py:82 +#: ../interfaces.py:277 msgid "help_captcha" msgstr "Gebruik hierdie instelling om Captcha validasie vir kommentaar aan of af te skakel. Installeer plone.formwidget of plone.formwidget.captcha indien daar geen opsies beskikbaar is nie." #. Default: "Some discussion related settings are not located in the Discussion Control Panel.\nTo enable comments for a specific content type, go to the Types Control Panel of this type and choose \"Allow comments\".\nTo enable the moderation workflow for comments, go to the Types Control Panel, choose \"Comment\" and set workflow to \"Comment Review Workflow\"." -#: ../browser/controlpanel.py:33 +#: ../browser/controlpanel.py:36 msgid "help_discussion_settings_editform" msgstr "" "Sommige besprekingsinstellings kom nie op hierdie bladsy voor nie.\n" "Om kommentaar vir 'n spesifieke inhoudstipe aan te skakel, gaan na die Tipes Konfigurasie, kies 'Comment' en stel die werksvloei na \"Comment Review Workflow\"." +#. Default: "If selected, supports editing and deletion of comments for users with the 'Edit comments' permission." +#: ../interfaces.py:249 +msgid "help_edit_comment_enabled" +msgstr "" + #. Default: "If selected, users are able to post comments on the site. Though, you have to enable comments for specific content types, folders or content objects before users will be able to post comments." -#: ../interfaces.py:26 +#: ../interfaces.py:202 msgid "help_globally_enabled" msgstr "Indien geselekteer, sal gebruikers op die werf kommentare kan plaas. Kommentare moet moontlik ook nog vir sekere inhoudstipe, vouers en objekte aangeskakel word, voordat kommentaar daar gelewer kan word." #. Default: "If selected, comments will enter a 'Pending' state in which they are invisible to the public. A user with the 'Review comments' permission ('Reviewer' or 'Manager') can approve comments to make them visible to the public. If you want to enable a custom comment workflow, you have to go to the types control panel." -#: ../interfaces.py:50 +#: ../interfaces.py:232 msgid "help_moderation_enabled" msgstr "" #. Default: "Address to which moderator notifications will be sent." -#: ../interfaces.py:118 +#: ../interfaces.py:318 msgid "help_moderator_email" msgstr "" -#. Default: "If selected, the moderator is notified if a comment needs attention. The moderator email address can be found in the 'Mail settings' control panel (Site 'From' address)" -#: ../interfaces.py:107 +#. Default: "If selected, the moderator is notified if a comment needs attention. The moderator email address can be set below." +#: ../interfaces.py:304 #, fuzzy msgid "help_moderator_notification_enabled" msgstr "Indien geselekteer, sal die moderator in kennis gestel word wanneer 'n opmerking aandag verg." #. Default: "If selected, an image of the user is shown next to the comment." -#: ../interfaces.py:97 +#: ../interfaces.py:293 msgid "help_show_commenter_image" msgstr "Indien geselekteer, sal die profielfoto van 'n gebruiker langs sy opmerking vertoon." #. Default: "Use this setting to choose if the comment text should be transformed in any way. You can choose between 'Plain text' and 'Intelligent text'. 'Intelligent text' converts plain text into HTML where line breaks and indentation is preserved, and web and email addresses are made into clickable links." -#: ../interfaces.py:66 +#: ../interfaces.py:260 msgid "help_text_transform" msgstr "" #. Default: "If selected, users can choose to be notified of new comments by email." -#: ../interfaces.py:127 +#: ../interfaces.py:330 msgid "help_user_notification_enabled" msgstr "Indien geselekteer, sal gebruikers kan kies om per e-pos van nuwe kommentaar in kennis gestel te word." #. Default: "Anonymous" -#: ../comment.py:156 +#: ../browser/comments.pt:74 +#: ../comment.py:191 msgid "label_anonymous" msgstr "Anoniem" #. Default: "Enable anonymous comments" -#: ../interfaces.py:36 +#: ../interfaces.py:214 msgid "label_anonymous_comments" msgstr "Skakel anonieme kommentaar aan" +#. Default: "Enable anonymous email field" +#: ../interfaces.py:339 +msgid "label_anonymous_email_enabled" +msgstr "" + #. Default: "Apply" #: ../browser/moderation.pt:71 msgid "label_apply" msgstr "Pas toe" #. Default: "Captcha" -#: ../interfaces.py:80 +#: ../interfaces.py:275 msgid "label_captcha" msgstr "Captcha" #. Default: "Comment" -#: ../interfaces.py:275 +#: ../interfaces.py:163 msgid "label_comment" msgstr "Opmerking" #. Default: "Commenting has been disabled." -#: ../browser/comments.pt:130 +#: ../browser/comments.pt:148 msgid "label_commenting_disabled" msgstr "" @@ -314,23 +393,28 @@ msgstr "" msgid "label_delete" msgstr "Skrap" +#. Default: "Enable editing of comments" +#: ../interfaces.py:247 +msgid "label_edit_comment_enabled" +msgstr "" + #. Default: "Globally enable comments" -#: ../interfaces.py:24 +#: ../interfaces.py:200 msgid "label_globally_enabled" msgstr "Laat kommentare globaal toe" #. Default: "Enable comment moderation" -#: ../interfaces.py:48 +#: ../interfaces.py:228 msgid "label_moderation_enabled" msgstr "" #. Default: "Moderator Email Address" -#: ../interfaces.py:117 +#: ../interfaces.py:314 msgid "label_moderator_email" msgstr "" #. Default: "Enable moderator email notification" -#: ../interfaces.py:105 +#: ../interfaces.py:302 msgid "label_moderator_notification_enabled" msgstr "Skakel moderator e-pos in kennis stelling aan" @@ -340,12 +424,12 @@ msgid "label_publish" msgstr "Keur goed" #. Default: "says:" -#: ../browser/comments.pt:74 +#: ../browser/comments.pt:77 msgid "label_says" msgstr "sê:" #. Default: "Show commenter image" -#: ../interfaces.py:95 +#: ../interfaces.py:291 msgid "label_show_commenter_image" msgstr "Vertoon kommentaarleweraar se foto" @@ -355,28 +439,28 @@ msgid "label_show_full_comment_text" msgstr "Toon die volledige opmerking" #. Default: "Subject" -#: ../interfaces.py:271 +#: ../interfaces.py:158 msgid "label_subject" msgstr "Onderwerp" #. Default: "Comment text transform" -#: ../interfaces.py:64 +#: ../interfaces.py:258 msgid "label_text_transform" msgstr "Kommentaar tekstransformasie" #. Default: "Enable user email notification" -#: ../interfaces.py:125 +#: ../interfaces.py:326 msgid "label_user_notification_enabled" msgstr "Skakel e-pos in kennis stelling aan vir gebruikers" #. Default: "A comment on '${title}' has been posted here: ${link}\n\n---\n${text}\n---\n" -#: ../comment.py:50 +#: ../comment.py:59 #, fuzzy msgid "mail_notification_message" msgstr "'n Opmerking is op '${title}' gelewer: ${link}" #. Default: "A comment on '${title}' has been posted here: ${link}\n\n---\n${text}\n---\n\nApprove comment:\n${link_approve}\n\nDelete comment:\n${link_delete}\n" -#: ../comment.py:58 +#: ../comment.py:67 msgid "mail_notification_message_moderator" msgstr "" diff --git a/plone/app/discussion/locales/ca/LC_MESSAGES/plone.app.discussion.po b/plone/app/discussion/locales/ca/LC_MESSAGES/plone.app.discussion.po index d67d7b0..61dc606 100644 --- a/plone/app/discussion/locales/ca/LC_MESSAGES/plone.app.discussion.po +++ b/plone/app/discussion/locales/ca/LC_MESSAGES/plone.app.discussion.po @@ -14,103 +14,123 @@ msgstr "" "Preferred-Encodings: utf-8 latin1\n" "Domain: plone.app.discussion\n" -#: ../comment.py:264 +#: ../comment.py:357 msgid "A comment has been posted." msgstr "Comentari afegit." -#: ../interfaces.py:257 +#: ../interfaces.py:144 msgid "A comment id unique to this conversation" msgstr "Un identificador exclusiu assignat al comentari per aquesta conversa" -#: ../browser/comments.py:67 +#: ../browser/comments.py:72 msgid "Add a comment" msgstr "Afegir un comentari" -#: ../browser/controlpanel.py:62 +#: ../browser/controlpanel.py:75 msgid "Anonymous Comments" msgstr "Comentaris anònims" -#: ../interfaces.py:282 -msgid "Author name (for display)" -msgstr "Nom de l'autor (per mostrar)" - -#: ../browser/comments.py:248 -#: ../browser/controlpanel.py:80 +#: ../browser/comments.py:274 +#: ../browser/controlpanel.py:93 msgid "Cancel" msgstr "Cancel·la" -#: ../browser/controlpanel.py:76 +#: ../browser/controlpanel.py:89 msgid "Changes saved" msgstr "" -#: ../browser/moderation.py:133 +#: ../browser/moderation.py:154 msgid "Comment approved." msgstr "Comentari aprovat." -#: ../browser/moderation.py:94 +#: ../contentrules.py:96 +msgid "Comment author email" +msgstr "" + +#: ../contentrules.py:85 +msgid "Comment author full name" +msgstr "" + +#: ../contentrules.py:74 +msgid "Comment author user name" +msgstr "" + +#: ../browser/moderation.py:108 msgid "Comment deleted." msgstr "Comentari esborrat." -#: ../browser/controlpanel.py:63 +#: ../contentrules.py:52 +msgid "Comment id" +msgstr "" + +#: ../contentrules.py:63 +msgid "Comment text" +msgstr "" + +#: ../browser/controlpanel.py:76 msgid "Commenter Image" msgstr "Imatge de l'autor" msgid "Commenting infrastructure for Plone" msgstr "Infraestructura de comentaris per Plone" -#: ../interfaces.py:252 +#: ../contentrules.py:51 +msgid "Comments" +msgstr "" + +#: ../interfaces.py:139 msgid "Conversation" msgstr "Conversa" -#: ../interfaces.py:283 +#: ../interfaces.py:177 msgid "Creation date" msgstr "Data de creació" -#: ../interfaces.py:162 -msgid "Date of the most recent comment" -msgstr "Data del comentari més recent" +#: ../interfaces.py:41 +msgid "Date of the most recent public comment" +msgstr "" #: ../vocabularies.py:44 msgid "Disabled" msgstr "Desactivat" -#: ../browser/controlpanel.py:32 +#: ../browser/controlpanel.py:35 msgid "Discussion settings" msgstr "Configuració dels comentaris" -#: ../browser/controlpanel.py:82 +#: ../browser/controlpanel.py:95 msgid "Edit cancelled" msgstr "" -#: ../interfaces.py:269 +#: ../interfaces.py:156 msgid "Email" msgstr "Correu electrònic" -#: ../browser/controlpanel.py:61 +#: ../browser/controlpanel.py:74 msgid "Enable Comments" msgstr "Permetre comentaris" -#: ../interfaces.py:260 +#: ../interfaces.py:147 msgid "Id of comment this comment is in reply to" msgstr "Identificador únic del comentari en relació al comentari del qual és resposta" -#: ../interfaces.py:274 +#: ../interfaces.py:161 msgid "MIME type" msgstr "Tipus MIME" -#: ../browser/controlpanel.py:65 +#: ../browser/controlpanel.py:78 msgid "Moderator Email Notification" msgstr "Notificació al moderador per correu electrònic" -#: ../interfaces.py:284 +#: ../interfaces.py:178 msgid "Modification date" msgstr "Data de modificació" -#: ../interfaces.py:254 +#: ../interfaces.py:141 msgid "Name" msgstr "Nom" -#: ../interfaces.py:278 +#: ../interfaces.py:170 msgid "Notify me of new comments via email." msgstr "Notifica'm de la creació de nous comentaris via correu electrònic." @@ -118,32 +138,44 @@ msgstr "Notifica'm de la creació de nous comentaris via correu electrònic." msgid "Plone Discussions" msgstr "Plone Discussions" -#: ../interfaces.py:247 +#: ../interfaces.py:134 msgid "Portal type" msgstr "Tipus d'objecte" -#: ../browser/controlpanel.py:69 +#: ../browser/controlpanel.py:82 msgid "Save" msgstr "" -#: ../interfaces.py:167 +#: ../interfaces.py:46 msgid "The set of unique commentators (usernames)" msgstr "Llistat d'usuaris que han comentat (noms d'usuari)" -#: ../interfaces.py:156 -msgid "Total number of comments on this item" -msgstr "Número total de comentaris en aquest contingut" +#: ../interfaces.py:51 +msgid "The set of unique commentators (usernames) of published_comments" +msgstr "" -#: ../browser/controlpanel.py:67 +#: ../interfaces.py:35 +msgid "Total number of public comments on this item" +msgstr "" + +#: ../comment.py:173 +msgid "Transform '%s' => '%s' not available." +msgstr "" + +#: ../browser/controlpanel.py:80 msgid "User Email Notification" msgstr "Notificació a l'usuari via mail" -#: ../browser/comments.py:241 +#: ../interfaces.py:176 +msgid "Username of the commenter" +msgstr "" + +#: ../browser/comments.py:267 msgid "Your comment awaits moderator approval." msgstr "El vostre comentari està pendent d'aprovació per part del moderador de l'espai" #. Default: "Comment" -#: ../browser/comments.py:123 +#: ../browser/comments.py:138 msgid "add_comment_button" msgstr "Comenta" @@ -157,26 +189,57 @@ msgstr "Esborra" msgid "bulkactions_publish" msgstr "Publica" +#. Default: "Cancel" +#: ../browser/comment.py:97 +msgid "cancel_form_button" +msgstr "" + #. Default: "You can add a comment by filling out the form below. Plain text formatting. Web and email addresses are transformed into clickable links." -#: ../browser/comments.py:52 +#: ../browser/comments.py:57 msgid "comment_description_intelligent_text" msgstr "" +#. Default: "You can add a comment by filling out the form below. Plain text formatting. You can use the Markdown syntax for links and images." +#: ../browser/comments.py:51 +msgid "comment_description_markdown" +msgstr "" + #. Default: "Comments are moderated." -#: ../browser/comments.py:58 +#: ../browser/comments.py:63 msgid "comment_description_moderation_enabled" msgstr "" #. Default: "You can add a comment by filling out the form below. Plain text formatting." -#: ../browser/comments.py:47 +#: ../browser/comments.py:46 msgid "comment_description_plain_text" msgstr "" -#. Default: "${creator} on ${content}" -#: ../comment.py:46 +#. Default: "Edit comment cancelled" +#: ../browser/comment.py:101 +msgid "comment_edit_cancel_notification" +msgstr "" + +#. Default: "Comment was edited" +#: ../browser/comment.py:91 +msgid "comment_edit_notification" +msgstr "" + +#. Default: "${author_name} on ${content}" +#: ../comment.py:55 +#, fuzzy msgid "comment_title" msgstr "${creator} sobre ${content}" +#. Default: "Edit comment" +#: ../browser/comment.py:70 +msgid "edit_comment_form_button" +msgstr "" + +#. Default: "Edit comment" +#: ../browser/comment.py:54 +msgid "edit_comment_form_title" +msgstr "" + #. Default: "Action" #: ../browser/moderation.pt:85 msgid "heading_action" @@ -208,83 +271,99 @@ msgid "heading_moderate_comments" msgstr "Moderar comentaris" #. Default: "If selected, anonymous users are able to post comments without loggin in. It is highly recommended to use a captcha solution to prevent spam if this setting is enabled." -#: ../interfaces.py:38 +#: ../interfaces.py:216 msgid "help_anonymous_comments" msgstr "Si està seleccionada, els usuaris anònims podran afegir comentaris sense identificar-se. Es recomana la utilització de una eina de captcha per evitar comentaris spam si aquesta opció està activada." +#. Default: "If selected, anonymous user will have to give their email." +#: ../interfaces.py:341 +msgid "help_anonymous_email_enabled" +msgstr "" + #. Default: "Use this setting to enable or disable Captcha validation for comments. Install plone.formwidget.captcha, plone.formwidget.recaptcha, collective.akismet, or collective.z3cform.norobots if there are no options available." -#: ../interfaces.py:82 +#: ../interfaces.py:277 msgid "help_captcha" msgstr "Utilitzeu aquesta opció per activar o desactivar una eina de captcha pels comentaris. Instal·leu plone.formwidget.captcha, plone.formwidget.recaptcha, collective.akismet o collective.z3cform.norobots si no teniu cap opció disponible." #. Default: "Some discussion related settings are not located in the Discussion Control Panel.\nTo enable comments for a specific content type, go to the Types Control Panel of this type and choose \"Allow comments\".\nTo enable the moderation workflow for comments, go to the Types Control Panel, choose \"Comment\" and set workflow to \"Comment Review Workflow\"." -#: ../browser/controlpanel.py:33 +#: ../browser/controlpanel.py:36 msgid "help_discussion_settings_editform" msgstr "Algunes de les configuracions dels comentaris no estan en la element de configuració 'Comentaris' del panell de control de l'espai. Per activar els comentaris per un tipus de contingut específic, dirigiu-vos al element de configuració 'Tipus' i activeu la opció 'Permetre comentaris'. Per activar el circuit de treball (workflow) de moderació de comentaris, dirigiu-vos al element de configuració de 'Tipus', seleccioneu 'Comentari' i escolliu el 'Workflow de moderació de comentaris'." +#. Default: "If selected, supports editing and deletion of comments for users with the 'Edit comments' permission." +#: ../interfaces.py:249 +msgid "help_edit_comment_enabled" +msgstr "" + #. Default: "If selected, users are able to post comments on the site. Though, you have to enable comments for specific content types, folders or content objects before users will be able to post comments." -#: ../interfaces.py:26 +#: ../interfaces.py:202 msgid "help_globally_enabled" msgstr "Si està seleccionada, es permet que els usuaris puguin afegir comentaris a l'espai. De tota manera, teniu que activar els comentaris per a cada tipus de contingut específicament abans de que pogueu afegir comentaris." #. Default: "If selected, comments will enter a 'Pending' state in which they are invisible to the public. A user with the 'Review comments' permission ('Reviewer' or 'Manager') can approve comments to make them visible to the public. If you want to enable a custom comment workflow, you have to go to the types control panel." -#: ../interfaces.py:50 +#: ../interfaces.py:232 msgid "help_moderation_enabled" msgstr "" #. Default: "Address to which moderator notifications will be sent." -#: ../interfaces.py:118 +#: ../interfaces.py:318 msgid "help_moderator_email" msgstr "" -#. Default: "If selected, the moderator is notified if a comment needs attention. The moderator email address can be found in the 'Mail settings' control panel (Site 'From' address)" -#: ../interfaces.py:107 +#. Default: "If selected, the moderator is notified if a comment needs attention. The moderator email address can be set below." +#: ../interfaces.py:304 #, fuzzy msgid "help_moderator_notification_enabled" msgstr "Si està seleccionada, es notificarà per correu electrònic al moderador els nous comentaris." #. Default: "If selected, an image of the user is shown next to the comment." -#: ../interfaces.py:97 +#: ../interfaces.py:293 msgid "help_show_commenter_image" msgstr "Si està seleccionada, es mostrarà el retrat (o imatge) que hagi configurat l'usuari en el seu perfil juntament amb el comentari." #. Default: "Use this setting to choose if the comment text should be transformed in any way. You can choose between 'Plain text' and 'Intelligent text'. 'Intelligent text' converts plain text into HTML where line breaks and indentation is preserved, and web and email addresses are made into clickable links." -#: ../interfaces.py:66 +#: ../interfaces.py:260 msgid "help_text_transform" msgstr "" #. Default: "If selected, users can choose to be notified of new comments by email." -#: ../interfaces.py:127 +#: ../interfaces.py:330 msgid "help_user_notification_enabled" msgstr "Si està seleccionada, els usuaris poden escollir si volen ser notificats cada cop que s'afegeixi un nou comentari al contingut." #. Default: "Anonymous" -#: ../comment.py:156 +#: ../browser/comments.pt:74 +#: ../comment.py:191 msgid "label_anonymous" msgstr "Anònim" #. Default: "Enable anonymous comments" -#: ../interfaces.py:36 +#: ../interfaces.py:214 msgid "label_anonymous_comments" msgstr "Permetre comentaris anònims" +#. Default: "Enable anonymous email field" +#: ../interfaces.py:339 +msgid "label_anonymous_email_enabled" +msgstr "" + #. Default: "Apply" #: ../browser/moderation.pt:71 msgid "label_apply" msgstr "Aplica" #. Default: "Captcha" -#: ../interfaces.py:80 +#: ../interfaces.py:275 msgid "label_captcha" msgstr "Captcha" #. Default: "Comment" -#: ../interfaces.py:275 +#: ../interfaces.py:163 msgid "label_comment" msgstr "Comentari" #. Default: "Commenting has been disabled." -#: ../browser/comments.pt:130 +#: ../browser/comments.pt:148 msgid "label_commenting_disabled" msgstr "" @@ -293,23 +372,28 @@ msgstr "" msgid "label_delete" msgstr "Esborra" +#. Default: "Enable editing of comments" +#: ../interfaces.py:247 +msgid "label_edit_comment_enabled" +msgstr "" + #. Default: "Globally enable comments" -#: ../interfaces.py:24 +#: ../interfaces.py:200 msgid "label_globally_enabled" msgstr "Activa els comentaris de forma global" #. Default: "Enable comment moderation" -#: ../interfaces.py:48 +#: ../interfaces.py:228 msgid "label_moderation_enabled" msgstr "" #. Default: "Moderator Email Address" -#: ../interfaces.py:117 +#: ../interfaces.py:314 msgid "label_moderator_email" msgstr "" #. Default: "Enable moderator email notification" -#: ../interfaces.py:105 +#: ../interfaces.py:302 msgid "label_moderator_notification_enabled" msgstr "Activa la notificació al moderador" @@ -319,12 +403,12 @@ msgid "label_publish" msgstr "Aprova" #. Default: "says:" -#: ../browser/comments.pt:74 +#: ../browser/comments.pt:77 msgid "label_says" msgstr "diu:" #. Default: "Show commenter image" -#: ../interfaces.py:95 +#: ../interfaces.py:291 msgid "label_show_commenter_image" msgstr "Mostra el retrat (o imatge) de l'autor" @@ -334,28 +418,28 @@ msgid "label_show_full_comment_text" msgstr "Mostra text complet" #. Default: "Subject" -#: ../interfaces.py:271 +#: ../interfaces.py:158 msgid "label_subject" msgstr "Tema" #. Default: "Comment text transform" -#: ../interfaces.py:64 +#: ../interfaces.py:258 msgid "label_text_transform" msgstr "Transformacions aplicades al text del comentari" #. Default: "Enable user email notification" -#: ../interfaces.py:125 +#: ../interfaces.py:326 msgid "label_user_notification_enabled" msgstr "Activa les notificacions als usuaris" #. Default: "A comment on '${title}' has been posted here: ${link}\n\n---\n${text}\n---\n" -#: ../comment.py:50 +#: ../comment.py:59 #, fuzzy msgid "mail_notification_message" msgstr "S'ha publicat un comentari sobre el contingut ${title} en aquesta adreça: ${link}" #. Default: "A comment on '${title}' has been posted here: ${link}\n\n---\n${text}\n---\n\nApprove comment:\n${link_approve}\n\nDelete comment:\n${link_delete}\n" -#: ../comment.py:58 +#: ../comment.py:67 msgid "mail_notification_message_moderator" msgstr "" diff --git a/plone/app/discussion/locales/cs/LC_MESSAGES/plone.app.discussion.po b/plone/app/discussion/locales/cs/LC_MESSAGES/plone.app.discussion.po index 9f42f65..2339a07 100644 --- a/plone/app/discussion/locales/cs/LC_MESSAGES/plone.app.discussion.po +++ b/plone/app/discussion/locales/cs/LC_MESSAGES/plone.app.discussion.po @@ -14,103 +14,123 @@ msgstr "" "Preferred-Encodings: utf-8 latin1\n" "Domain: DOMAIN\n" -#: ../comment.py:264 +#: ../comment.py:357 msgid "A comment has been posted." msgstr "Komentář byl přidán." -#: ../interfaces.py:257 +#: ../interfaces.py:144 msgid "A comment id unique to this conversation" msgstr "Identifikátor komentáře v této konverzaci." -#: ../browser/comments.py:67 +#: ../browser/comments.py:72 msgid "Add a comment" msgstr "Přidat komentář" -#: ../browser/controlpanel.py:62 +#: ../browser/controlpanel.py:75 msgid "Anonymous Comments" msgstr "Anonymní komentáře" -#: ../interfaces.py:282 -msgid "Author name (for display)" -msgstr "Jméno autora (pro zobrazení)" - -#: ../browser/comments.py:248 -#: ../browser/controlpanel.py:80 +#: ../browser/comments.py:274 +#: ../browser/controlpanel.py:93 msgid "Cancel" msgstr "Storno" -#: ../browser/controlpanel.py:76 +#: ../browser/controlpanel.py:89 msgid "Changes saved" msgstr "Změny byly uloženy" -#: ../browser/moderation.py:133 +#: ../browser/moderation.py:154 msgid "Comment approved." msgstr "Komentář byl schválen." -#: ../browser/moderation.py:94 +#: ../contentrules.py:96 +msgid "Comment author email" +msgstr "" + +#: ../contentrules.py:85 +msgid "Comment author full name" +msgstr "" + +#: ../contentrules.py:74 +msgid "Comment author user name" +msgstr "" + +#: ../browser/moderation.py:108 msgid "Comment deleted." msgstr "Komentář byl odebrán." -#: ../browser/controlpanel.py:63 +#: ../contentrules.py:52 +msgid "Comment id" +msgstr "" + +#: ../contentrules.py:63 +msgid "Comment text" +msgstr "" + +#: ../browser/controlpanel.py:76 msgid "Commenter Image" msgstr "Portét komentujícího" msgid "Commenting infrastructure for Plone" msgstr "Komentářový systém pro Plone" -#: ../interfaces.py:252 +#: ../contentrules.py:51 +msgid "Comments" +msgstr "" + +#: ../interfaces.py:139 msgid "Conversation" msgstr "Konverzace" -#: ../interfaces.py:283 +#: ../interfaces.py:177 msgid "Creation date" msgstr "Datum vytvoření" -#: ../interfaces.py:162 -msgid "Date of the most recent comment" -msgstr "Datum nejnovějšího komentáře" +#: ../interfaces.py:41 +msgid "Date of the most recent public comment" +msgstr "" #: ../vocabularies.py:44 msgid "Disabled" msgstr "Zakázáno" -#: ../browser/controlpanel.py:32 +#: ../browser/controlpanel.py:35 msgid "Discussion settings" msgstr "Nastavení komentářů" -#: ../browser/controlpanel.py:82 +#: ../browser/controlpanel.py:95 msgid "Edit cancelled" msgstr "Úpravy byly stornovány" -#: ../interfaces.py:269 +#: ../interfaces.py:156 msgid "Email" msgstr "Email" -#: ../browser/controlpanel.py:61 +#: ../browser/controlpanel.py:74 msgid "Enable Comments" msgstr "Povolit komentáře" -#: ../interfaces.py:260 +#: ../interfaces.py:147 msgid "Id of comment this comment is in reply to" msgstr "Id předchozího komentáře, na který je tento odpovědí" -#: ../interfaces.py:274 +#: ../interfaces.py:161 msgid "MIME type" msgstr "MIME typ" -#: ../browser/controlpanel.py:65 +#: ../browser/controlpanel.py:78 msgid "Moderator Email Notification" msgstr "Notifikace moderátorů emailem" -#: ../interfaces.py:284 +#: ../interfaces.py:178 msgid "Modification date" msgstr "Datum změny" -#: ../interfaces.py:254 +#: ../interfaces.py:141 msgid "Name" msgstr "Jméno" -#: ../interfaces.py:278 +#: ../interfaces.py:170 msgid "Notify me of new comments via email." msgstr "Chci zasílat notifikace o nových komentářích emailem." @@ -118,32 +138,44 @@ msgstr "Chci zasílat notifikace o nových komentářích emailem." msgid "Plone Discussions" msgstr "Komentáře" -#: ../interfaces.py:247 +#: ../interfaces.py:134 msgid "Portal type" msgstr "Typ položky" -#: ../browser/controlpanel.py:69 +#: ../browser/controlpanel.py:82 msgid "Save" msgstr "Uložit" -#: ../interfaces.py:167 +#: ../interfaces.py:46 msgid "The set of unique commentators (usernames)" msgstr "Seznam komentujících" -#: ../interfaces.py:156 -msgid "Total number of comments on this item" -msgstr "Celkový počet komentářů k této položce" +#: ../interfaces.py:51 +msgid "The set of unique commentators (usernames) of published_comments" +msgstr "" -#: ../browser/controlpanel.py:67 +#: ../interfaces.py:35 +msgid "Total number of public comments on this item" +msgstr "" + +#: ../comment.py:173 +msgid "Transform '%s' => '%s' not available." +msgstr "" + +#: ../browser/controlpanel.py:80 msgid "User Email Notification" msgstr "Notifikace emailem" -#: ../browser/comments.py:241 +#: ../interfaces.py:176 +msgid "Username of the commenter" +msgstr "" + +#: ../browser/comments.py:267 msgid "Your comment awaits moderator approval." msgstr "Váš komentář čeká na schválení." #. Default: "Comment" -#: ../browser/comments.py:123 +#: ../browser/comments.py:138 msgid "add_comment_button" msgstr "Přidat komentář" @@ -157,26 +189,57 @@ msgstr "Odebrat" msgid "bulkactions_publish" msgstr "Schválit" +#. Default: "Cancel" +#: ../browser/comment.py:97 +msgid "cancel_form_button" +msgstr "" + #. Default: "You can add a comment by filling out the form below. Plain text formatting. Web and email addresses are transformed into clickable links." -#: ../browser/comments.py:52 +#: ../browser/comments.py:57 msgid "comment_description_intelligent_text" msgstr "Pokud chcete přidat komentář, zadejte jej do formuláře níže. Nejsou povoleny žádné formátovací značky. Adresy na web nebo emailové adresy budou automaticky transformovány na aktivní odkazy." +#. Default: "You can add a comment by filling out the form below. Plain text formatting. You can use the Markdown syntax for links and images." +#: ../browser/comments.py:51 +msgid "comment_description_markdown" +msgstr "" + #. Default: "Comments are moderated." -#: ../browser/comments.py:58 +#: ../browser/comments.py:63 msgid "comment_description_moderation_enabled" msgstr "Komentáře jsou moderovány." #. Default: "You can add a comment by filling out the form below. Plain text formatting." -#: ../browser/comments.py:47 +#: ../browser/comments.py:46 msgid "comment_description_plain_text" msgstr "Pokud chcete přidat komentář, zadejte jej do formuláře níže. Nejsou povoleny žádné formátovací značky." -#. Default: "${creator} on ${content}" -#: ../comment.py:46 +#. Default: "Edit comment cancelled" +#: ../browser/comment.py:101 +msgid "comment_edit_cancel_notification" +msgstr "" + +#. Default: "Comment was edited" +#: ../browser/comment.py:91 +msgid "comment_edit_notification" +msgstr "" + +#. Default: "${author_name} on ${content}" +#: ../comment.py:55 +#, fuzzy msgid "comment_title" msgstr "${creator} k ${content}" +#. Default: "Edit comment" +#: ../browser/comment.py:70 +msgid "edit_comment_form_button" +msgstr "" + +#. Default: "Edit comment" +#: ../browser/comment.py:54 +msgid "edit_comment_form_title" +msgstr "" + #. Default: "Action" #: ../browser/moderation.pt:85 msgid "heading_action" @@ -208,85 +271,102 @@ msgid "heading_moderate_comments" msgstr "Správa komentářů" #. Default: "If selected, anonymous users are able to post comments without loggin in. It is highly recommended to use a captcha solution to prevent spam if this setting is enabled." -#: ../interfaces.py:38 +#: ../interfaces.py:216 msgid "help_anonymous_comments" msgstr "Je-li zaškrtnuto, nepřihlášení uživatelé mohou posílat komentáře. Doporučujeme použití Captcha, pokud povolíte tuto volbu." +#. Default: "If selected, anonymous user will have to give their email." +#: ../interfaces.py:341 +msgid "help_anonymous_email_enabled" +msgstr "" + #. Default: "Use this setting to enable or disable Captcha validation for comments. Install plone.formwidget.captcha, plone.formwidget.recaptcha, collective.akismet, or collective.z3cform.norobots if there are no options available." -#: ../interfaces.py:82 +#: ../interfaces.py:277 msgid "help_captcha" msgstr "Zde můžete povolit nebo zakázat Captcha pro komentáře. Pokud zde není žádná možnost k výběru, nainstalujte prosím balíček plone.formwidget.captcha nebo plone.formwidget.recaptcha, collective.akismet nebo collective.z3cform.norobots." #. Default: "Some discussion related settings are not located in the Discussion Control Panel.\nTo enable comments for a specific content type, go to the Types Control Panel of this type and choose \"Allow comments\".\nTo enable the moderation workflow for comments, go to the Types Control Panel, choose \"Comment\" and set workflow to \"Comment Review Workflow\"." -#: ../browser/controlpanel.py:33 +#: ../browser/controlpanel.py:36 msgid "help_discussion_settings_editform" msgstr "" "Nekterá nastavení pro diskuse nejsou k dispozici v ovládacím panelu komentářů.\n" " Povolení komentářů pro konkrétní typ položek se provádí v ovládacím panelu Typy, kde zaškrtnete \"Povolit komentáře\".\n" " Pokud chcete povolit moderování komentářů, přejděte do ovládacích panelů Typy, vyberte typ položky \"Komentář\" a nastavte workflow na \"Schvalovací workflow pro komentáře\"." +#. Default: "If selected, supports editing and deletion of comments for users with the 'Edit comments' permission." +#: ../interfaces.py:249 +msgid "help_edit_comment_enabled" +msgstr "" + #. Default: "If selected, users are able to post comments on the site. Though, you have to enable comments for specific content types, folders or content objects before users will be able to post comments." -#: ../interfaces.py:26 +#: ../interfaces.py:202 msgid "help_globally_enabled" msgstr "Je-li zaškrtnuto, uživatelé mohou přidávat komentáře. Navíc však musíte ověřit, že je povoleno přidávání komentářů k příslušným typům položek." #. Default: "If selected, comments will enter a 'Pending' state in which they are invisible to the public. A user with the 'Review comments' permission ('Reviewer' or 'Manager') can approve comments to make them visible to the public. If you want to enable a custom comment workflow, you have to go to the types control panel." -#: ../interfaces.py:50 +#: ../interfaces.py:232 msgid "help_moderation_enabled" msgstr "Je-li zaškrtnuto, pakbudou komentáře moderované. Po zadání komentáře bude tento komentář ve stavu \"čeká na schválení\" a nebude viditelný nepřihlášeným návštěvníkům. Moderátor (uživatel, ktewrý má opravnění schvalovat komentáře) může takové komentáře schválit a tedy zviditelnit všem." #. Default: "Address to which moderator notifications will be sent." -#: ../interfaces.py:118 +#: ../interfaces.py:318 msgid "help_moderator_email" msgstr "Adresa, na kterou budou zasílány notifikační emaily moderátorlů" -#. Default: "If selected, the moderator is notified if a comment needs attention. The moderator email address can be found in the 'Mail settings' control panel (Site 'From' address)" -#: ../interfaces.py:107 +#. Default: "If selected, the moderator is notified if a comment needs attention. The moderator email address can be set below." +#: ../interfaces.py:304 +#, fuzzy msgid "help_moderator_notification_enabled" msgstr "Je-li zaškrtnuto, moderátor je upozorněn na komentáře, které vyžadují jeho zásah." #. Default: "If selected, an image of the user is shown next to the comment." -#: ../interfaces.py:97 +#: ../interfaces.py:293 msgid "help_show_commenter_image" msgstr "Je-li zaškrtnuto, je vedle komentáře zobrazen portrét autora komentáře." #. Default: "Use this setting to choose if the comment text should be transformed in any way. You can choose between 'Plain text' and 'Intelligent text'. 'Intelligent text' converts plain text into HTML where line breaks and indentation is preserved, and web and email addresses are made into clickable links." -#: ../interfaces.py:66 +#: ../interfaces.py:260 msgid "help_text_transform" msgstr "Zde můžete nastavit, zda mají být komentáře nějak upraveny. Je možné vybrat mezi Plain text (prostý, neupravený text) nebo \"Intelligent text\". Intelligent text konvertuje odkazy na aktivní linky a převádí text do HTML tak, jak je vidět na obrazovce (tedy se zachováním nových řádků a odsazení)." #. Default: "If selected, users can choose to be notified of new comments by email." -#: ../interfaces.py:127 +#: ../interfaces.py:330 msgid "help_user_notification_enabled" msgstr "Je-li zaškrtnuto, uživatelé se mohou rozhodnout zda si přejí být upozorněni na nové komentáře emailem." #. Default: "Anonymous" -#: ../comment.py:156 +#: ../browser/comments.pt:74 +#: ../comment.py:191 msgid "label_anonymous" msgstr "Anonym" #. Default: "Enable anonymous comments" -#: ../interfaces.py:36 +#: ../interfaces.py:214 msgid "label_anonymous_comments" msgstr "Povolit anonymní komentáře" +#. Default: "Enable anonymous email field" +#: ../interfaces.py:339 +msgid "label_anonymous_email_enabled" +msgstr "" + #. Default: "Apply" #: ../browser/moderation.pt:71 msgid "label_apply" msgstr "Provést" #. Default: "Captcha" -#: ../interfaces.py:80 +#: ../interfaces.py:275 msgid "label_captcha" msgstr "Captcha" #. Default: "Comment" -#: ../interfaces.py:275 +#: ../interfaces.py:163 msgid "label_comment" msgstr "Komentář" #. Default: "Commenting has been disabled." -#: ../browser/comments.pt:130 +#: ../browser/comments.pt:148 msgid "label_commenting_disabled" msgstr "Komentáře byly zakázány." @@ -295,23 +375,28 @@ msgstr "Komentáře byly zakázány." msgid "label_delete" msgstr "Odebrat" +#. Default: "Enable editing of comments" +#: ../interfaces.py:247 +msgid "label_edit_comment_enabled" +msgstr "" + #. Default: "Globally enable comments" -#: ../interfaces.py:24 +#: ../interfaces.py:200 msgid "label_globally_enabled" msgstr "Globální povolení komentářů" #. Default: "Enable comment moderation" -#: ../interfaces.py:48 +#: ../interfaces.py:228 msgid "label_moderation_enabled" msgstr "Povolit moderování komentářů" #. Default: "Moderator Email Address" -#: ../interfaces.py:117 +#: ../interfaces.py:314 msgid "label_moderator_email" msgstr "Email adresa moderátora" #. Default: "Enable moderator email notification" -#: ../interfaces.py:105 +#: ../interfaces.py:302 msgid "label_moderator_notification_enabled" msgstr "Povolit emailovou notifikaci moderátorů" @@ -321,12 +406,12 @@ msgid "label_publish" msgstr "Schválit" #. Default: "says:" -#: ../browser/comments.pt:74 +#: ../browser/comments.pt:77 msgid "label_says" msgstr "píše:" #. Default: "Show commenter image" -#: ../interfaces.py:95 +#: ../interfaces.py:291 msgid "label_show_commenter_image" msgstr "Zobrazit portrét komentujícího" @@ -336,29 +421,45 @@ msgid "label_show_full_comment_text" msgstr "zobrazit celý text příspěvku" #. Default: "Subject" -#: ../interfaces.py:271 +#: ../interfaces.py:158 msgid "label_subject" msgstr "Předmět" #. Default: "Comment text transform" -#: ../interfaces.py:64 +#: ../interfaces.py:258 msgid "label_text_transform" msgstr "Transformace textu" #. Default: "Enable user email notification" -#: ../interfaces.py:125 +#: ../interfaces.py:326 msgid "label_user_notification_enabled" msgstr "Povolit notifikaci uživatelů emailem" #. Default: "A comment on '${title}' has been posted here: ${link}\n\n---\n${text}\n---\n" -#: ../comment.py:50 +#: ../comment.py:59 msgid "mail_notification_message" -msgstr "Na adrese ${link} byl přidán komentář k položce '${title}'}\n\n---\n${text}\n---" +msgstr "" +"Na adrese ${link} byl přidán komentář k položce '${title}'}\n" +"\n" +"---\n" +"${text}\n" +"---" #. Default: "A comment on '${title}' has been posted here: ${link}\n\n---\n${text}\n---\n\nApprove comment:\n${link_approve}\n\nDelete comment:\n${link_delete}\n" -#: ../comment.py:58 +#: ../comment.py:67 msgid "mail_notification_message_moderator" -msgstr "Na adrese ${link} byl vložen komentář k položce '${title}'\n\n---\n${text}\n---\n\nSchválit komentář:\n${link_approve}\n\nSmazat komentář:\n${link_delete}" +msgstr "" +"Na adrese ${link} byl vložen komentář k položce '${title}'\n" +"\n" +"---\n" +"${text}\n" +"---\n" +"\n" +"Schválit komentář:\n" +"${link_approve}\n" +"\n" +"Smazat komentář:\n" +"${link_delete}" #. Default: "enable the 'Comment Review Workflow' for the Comment content type" #: ../browser/moderation.pt:33 diff --git a/plone/app/discussion/locales/da/LC_MESSAGES/plone.app.discussion.po b/plone/app/discussion/locales/da/LC_MESSAGES/plone.app.discussion.po index e3a4148..8035c72 100644 --- a/plone/app/discussion/locales/da/LC_MESSAGES/plone.app.discussion.po +++ b/plone/app/discussion/locales/da/LC_MESSAGES/plone.app.discussion.po @@ -14,136 +14,168 @@ msgstr "" "Preferred-Encodings: utf-8\n" "Domain: plone.app.discussion\n" -#: ../comment.py:264 +#: ../comment.py:357 msgid "A comment has been posted." -msgstr "En kommentar er gem." +msgstr "Der er oprettet en kommentar." -#: ../interfaces.py:257 +#: ../interfaces.py:144 msgid "A comment id unique to this conversation" -msgstr "En kommentar-id som er unik for denne dialog" +msgstr "Et kommentar-id som er unikt for denne dialog" -#: ../browser/comments.py:67 +#: ../browser/comments.py:72 msgid "Add a comment" msgstr "Tilføj en kommentar" -#: ../browser/controlpanel.py:62 +#: ../browser/controlpanel.py:75 msgid "Anonymous Comments" msgstr "Anonyme kommentarer" -#: ../interfaces.py:282 -msgid "Author name (for display)" -msgstr "Forfatter" - -#: ../browser/comments.py:248 -#: ../browser/controlpanel.py:80 +#: ../browser/comments.py:274 +#: ../browser/controlpanel.py:93 msgid "Cancel" msgstr "Afbryd" -#: ../browser/controlpanel.py:76 +#: ../browser/controlpanel.py:89 msgid "Changes saved" -msgstr "" +msgstr "Ændringer gemt" -#: ../browser/moderation.py:133 +#: ../browser/moderation.py:154 msgid "Comment approved." msgstr "Kommentar godkendt." -#: ../browser/moderation.py:94 +#: ../contentrules.py:96 +msgid "Comment author email" +msgstr "" + +#: ../contentrules.py:85 +msgid "Comment author full name" +msgstr "" + +#: ../contentrules.py:74 +msgid "Comment author user name" +msgstr "" + +#: ../browser/moderation.py:108 msgid "Comment deleted." msgstr "Kommentar slettet." -#: ../browser/controlpanel.py:63 +#: ../contentrules.py:52 +msgid "Comment id" +msgstr "" + +#: ../contentrules.py:63 +msgid "Comment text" +msgstr "" + +#: ../browser/controlpanel.py:76 msgid "Commenter Image" msgstr "Kommentar-billede" msgid "Commenting infrastructure for Plone" msgstr "Kommentar-funktionalitet til Plone" -#: ../interfaces.py:252 +#: ../contentrules.py:51 +msgid "Comments" +msgstr "" + +#: ../interfaces.py:139 msgid "Conversation" msgstr "Dialog" -#: ../interfaces.py:283 +#: ../interfaces.py:177 msgid "Creation date" msgstr "Oprettelses-dato" -#: ../interfaces.py:162 -msgid "Date of the most recent comment" -msgstr "Dato for den seneste kommentar" +#: ../interfaces.py:41 +msgid "Date of the most recent public comment" +msgstr "Dato for den seneste, offentlige kommentar" #: ../vocabularies.py:44 msgid "Disabled" msgstr "Slået fra" -#: ../browser/controlpanel.py:32 +#: ../browser/controlpanel.py:35 msgid "Discussion settings" msgstr "Indstilling for kommentarer" -#: ../browser/controlpanel.py:82 +#: ../browser/controlpanel.py:95 msgid "Edit cancelled" -msgstr "" +msgstr "Redigering blev afbrudt" -#: ../interfaces.py:269 +#: ../interfaces.py:156 msgid "Email" -msgstr "Email" +msgstr "E-mail" -#: ../browser/controlpanel.py:61 +#: ../browser/controlpanel.py:74 msgid "Enable Comments" msgstr "Slå kommentarer til" -#: ../interfaces.py:260 +#: ../interfaces.py:147 msgid "Id of comment this comment is in reply to" -msgstr "Id'en på den kommentar, denne kommentar er et svar til" +msgstr "Id'et på den kommentar, denne kommentar er et svar til" -#: ../interfaces.py:274 +#: ../interfaces.py:161 msgid "MIME type" msgstr "MIME-type" -#: ../browser/controlpanel.py:65 +#: ../browser/controlpanel.py:78 msgid "Moderator Email Notification" msgstr "Notificering af moderator" -#: ../interfaces.py:284 +#: ../interfaces.py:178 msgid "Modification date" msgstr "Ændringsdato" -#: ../interfaces.py:254 +#: ../interfaces.py:141 msgid "Name" msgstr "Navn" -#: ../interfaces.py:278 +#: ../interfaces.py:170 msgid "Notify me of new comments via email." -msgstr "Send besked om nye kommentarer pr. email." +msgstr "Send besked om nye kommentarer per e-mail." #: ./plone.app.discussion/plone/app/discussion/configure.zcml msgid "Plone Discussions" msgstr "Plone diskussioner" -#: ../interfaces.py:247 +#: ../interfaces.py:134 msgid "Portal type" -msgstr "Portal type" +msgstr "Portaltype" -#: ../browser/controlpanel.py:69 +#: ../browser/controlpanel.py:82 msgid "Save" -msgstr "" +msgstr "Gem" -#: ../interfaces.py:167 +#: ../interfaces.py:46 msgid "The set of unique commentators (usernames)" msgstr "Liste over kommentatorer (brugernavne)" -#: ../interfaces.py:156 -msgid "Total number of comments on this item" -msgstr "Kommentarer i alt på denne side" +#: ../interfaces.py:51 +msgid "The set of unique commentators (usernames) of published_comments" +msgstr "Gruppen af unikke kommentatorer (brugernavne) fra published_comments" -#: ../browser/controlpanel.py:67 +#: ../interfaces.py:35 +msgid "Total number of public comments on this item" +msgstr "Det samlede antal offentlige kommentarer til dette element" + +#: ../comment.py:173 +msgid "Transform '%s' => '%s' not available." +msgstr "" + +#: ../browser/controlpanel.py:80 msgid "User Email Notification" -msgstr "Email-notificering af brugere" +msgstr "E-mail-notificering af brugere" -#: ../browser/comments.py:241 +#: ../interfaces.py:176 +msgid "Username of the commenter" +msgstr "Kommentatorens brugernavn" + +#: ../browser/comments.py:267 msgid "Your comment awaits moderator approval." -msgstr "Din kommentar venter på godkendelse." +msgstr "Din kommentar venter på godkendelse." #. Default: "Comment" -#: ../browser/comments.py:123 +#: ../browser/comments.py:138 msgid "add_comment_button" msgstr "Gem" @@ -157,26 +189,57 @@ msgstr "Slet" msgid "bulkactions_publish" msgstr "Godkend" +#. Default: "Cancel" +#: ../browser/comment.py:97 +msgid "cancel_form_button" +msgstr "" + #. Default: "You can add a comment by filling out the form below. Plain text formatting. Web and email addresses are transformed into clickable links." -#: ../browser/comments.py:52 +#: ../browser/comments.py:57 msgid "comment_description_intelligent_text" +msgstr "Du kan tilføje en kommentar ved at udfylde formularen nedenfor. Ren tekst-formattering. Web- og e-mailadresser bliver automatisk lavet om til klikbare links." + +#. Default: "You can add a comment by filling out the form below. Plain text formatting. You can use the Markdown syntax for links and images." +#: ../browser/comments.py:51 +msgid "comment_description_markdown" msgstr "" #. Default: "Comments are moderated." -#: ../browser/comments.py:58 +#: ../browser/comments.py:63 msgid "comment_description_moderation_enabled" -msgstr "" +msgstr "Kommentarer er modereret." #. Default: "You can add a comment by filling out the form below. Plain text formatting." -#: ../browser/comments.py:47 +#: ../browser/comments.py:46 msgid "comment_description_plain_text" +msgstr "Du kan tilføje en kommentar ved at udfylde formularen nedenfor. Ren tekst-formattering." + +#. Default: "Edit comment cancelled" +#: ../browser/comment.py:101 +msgid "comment_edit_cancel_notification" msgstr "" -#. Default: "${creator} on ${content}" -#: ../comment.py:46 +#. Default: "Comment was edited" +#: ../browser/comment.py:91 +msgid "comment_edit_notification" +msgstr "" + +#. Default: "${author_name} on ${content}" +#: ../comment.py:55 +#, fuzzy msgid "comment_title" msgstr "${creator} på ${content}" +#. Default: "Edit comment" +#: ../browser/comment.py:70 +msgid "edit_comment_form_button" +msgstr "" + +#. Default: "Edit comment" +#: ../browser/comment.py:54 +msgid "edit_comment_form_title" +msgstr "" + #. Default: "Action" #: ../browser/moderation.pt:85 msgid "heading_action" @@ -208,108 +271,129 @@ msgid "heading_moderate_comments" msgstr "Moderer kommentarer" #. Default: "If selected, anonymous users are able to post comments without loggin in. It is highly recommended to use a captcha solution to prevent spam if this setting is enabled." -#: ../interfaces.py:38 +#: ../interfaces.py:216 msgid "help_anonymous_comments" msgstr "Hvis du krydser af, kan anonyme brugere skrive kommentarer uden at være logget ind. I så fald er det en god ide at bruge CAPTCHA for at forhindre spam." +#. Default: "If selected, anonymous user will have to give their email." +#: ../interfaces.py:341 +msgid "help_anonymous_email_enabled" +msgstr "" + #. Default: "Use this setting to enable or disable Captcha validation for comments. Install plone.formwidget.captcha, plone.formwidget.recaptcha, collective.akismet, or collective.z3cform.norobots if there are no options available." -#: ../interfaces.py:82 +#: ../interfaces.py:277 msgid "help_captcha" msgstr "Her kan du slå CAPTCHA til og fra for kommentarer. Installer plone.formwidget.captcha, plone.formwidget.recaptcha, collective.akismet eller collective.z3cform.norobots, hvis der ikke er nogen valgmuligheder nedenfor." #. Default: "Some discussion related settings are not located in the Discussion Control Panel.\nTo enable comments for a specific content type, go to the Types Control Panel of this type and choose \"Allow comments\".\nTo enable the moderation workflow for comments, go to the Types Control Panel, choose \"Comment\" and set workflow to \"Comment Review Workflow\"." -#: ../browser/controlpanel.py:33 +#: ../browser/controlpanel.py:36 msgid "help_discussion_settings_editform" +msgstr "Du kan justere kommentarindstillingerne nedenfor. Bemærk, at der også er indstillinger andre steder, som påvirker kommentarer. For at slå kommentarer til for en bestemt indholdstype, så klik \"Typer\" på Kontrolpanelet og afkryds \"Tillad kommentarer\" for typen. For at slå modereringsworkflow til kommentarer, så vælg \"Kommentar\" under \"Typer\" på Kontrolpanelet og vælg workflowet \"Godkendelses-workflow for kommentarer\"" + +#. Default: "If selected, supports editing and deletion of comments for users with the 'Edit comments' permission." +#: ../interfaces.py:249 +msgid "help_edit_comment_enabled" msgstr "" #. Default: "If selected, users are able to post comments on the site. Though, you have to enable comments for specific content types, folders or content objects before users will be able to post comments." -#: ../interfaces.py:26 +#: ../interfaces.py:202 msgid "help_globally_enabled" msgstr "Hvis du krydser af, kan brugere skrive kommentarer på sitet. Du skal dog først slå kommentering til for bestemte indholdstyper, mapper eller indholdsobjekter, før det virker." #. Default: "If selected, comments will enter a 'Pending' state in which they are invisible to the public. A user with the 'Review comments' permission ('Reviewer' or 'Manager') can approve comments to make them visible to the public. If you want to enable a custom comment workflow, you have to go to the types control panel." -#: ../interfaces.py:50 +#: ../interfaces.py:232 msgid "help_moderation_enabled" -msgstr "" +msgstr "Hvis du krydser af, vil kommentarer automatisk bliver sat i en \"Afventer\"-tilstand, hvor de er usynlige for offentligheden. En bruger med rettigheder til at moderere kommentarer kan godkende kommentarer og gøre dem synlige for offentligheden." #. Default: "Address to which moderator notifications will be sent." -#: ../interfaces.py:118 +#: ../interfaces.py:318 msgid "help_moderator_email" -msgstr "" +msgstr "Adresse på den person, som skal modtage moderator-notificeringer." -#. Default: "If selected, the moderator is notified if a comment needs attention. The moderator email address can be found in the 'Mail settings' control panel (Site 'From' address)" -#: ../interfaces.py:107 +#. Default: "If selected, the moderator is notified if a comment needs attention. The moderator email address can be set below." +#: ../interfaces.py:304 #, fuzzy msgid "help_moderator_notification_enabled" msgstr "Hvis du krydser af, får en moderator besked, hvis en kommentarer skal vurderes." #. Default: "If selected, an image of the user is shown next to the comment." -#: ../interfaces.py:97 +#: ../interfaces.py:293 msgid "help_show_commenter_image" msgstr "Hvis du krydser af, bliver der vist et billede af brugeren ved siden af kommentaren." #. Default: "Use this setting to choose if the comment text should be transformed in any way. You can choose between 'Plain text' and 'Intelligent text'. 'Intelligent text' converts plain text into HTML where line breaks and indentation is preserved, and web and email addresses are made into clickable links." -#: ../interfaces.py:66 +#: ../interfaces.py:260 msgid "help_text_transform" -msgstr "" +msgstr "Vælg, hvordan kommentartekster skal vises. Du kan vælge mellem \"Plan text\", \"Markdown\" og \"Intelligent text\". Plain text gør ingenting. Markdown fortolker teksten efter Markdown-standarden. Intelligent text oversætter teksten til HTML og bibeholder indrykninger, linjeskift og oversætter emails og webadresser til klikbare links." #. Default: "If selected, users can choose to be notified of new comments by email." -#: ../interfaces.py:127 +#: ../interfaces.py:330 msgid "help_user_notification_enabled" msgstr "Hvis den er slået til, kan brugere få besked om nye kommentarer over email." #. Default: "Anonymous" -#: ../comment.py:156 +#: ../browser/comments.pt:74 +#: ../comment.py:191 msgid "label_anonymous" msgstr "Anonym" #. Default: "Enable anonymous comments" -#: ../interfaces.py:36 +#: ../interfaces.py:214 msgid "label_anonymous_comments" msgstr "Slå anonym kommentering til" +#. Default: "Enable anonymous email field" +#: ../interfaces.py:339 +msgid "label_anonymous_email_enabled" +msgstr "" + #. Default: "Apply" #: ../browser/moderation.pt:71 msgid "label_apply" msgstr "Udfør" #. Default: "Captcha" -#: ../interfaces.py:80 +#: ../interfaces.py:275 msgid "label_captcha" msgstr "CAPTCHA" #. Default: "Comment" -#: ../interfaces.py:275 +#: ../interfaces.py:163 msgid "label_comment" msgstr "Kommentar" #. Default: "Commenting has been disabled." -#: ../browser/comments.pt:130 +#: ../browser/comments.pt:148 msgid "label_commenting_disabled" -msgstr "" +msgstr "Kommentering er slået fra." #. Default: "Delete" #: ../browser/moderation.pt:130 msgid "label_delete" msgstr "Slet" +#. Default: "Enable editing of comments" +#: ../interfaces.py:247 +msgid "label_edit_comment_enabled" +msgstr "" + #. Default: "Globally enable comments" -#: ../interfaces.py:24 +#: ../interfaces.py:200 msgid "label_globally_enabled" -msgstr "Slå kommentarer til over alt" +msgstr "Tænd for kommentarer" #. Default: "Enable comment moderation" -#: ../interfaces.py:48 +#: ../interfaces.py:228 msgid "label_moderation_enabled" -msgstr "" +msgstr "Slå kommentarmoderering til" #. Default: "Moderator Email Address" -#: ../interfaces.py:117 +#: ../interfaces.py:314 msgid "label_moderator_email" -msgstr "" +msgstr "Email på moderator" #. Default: "Enable moderator email notification" -#: ../interfaces.py:105 +#: ../interfaces.py:302 msgid "label_moderator_notification_enabled" msgstr "Slå moderatorer-notificering til" @@ -319,12 +403,12 @@ msgid "label_publish" msgstr "Godkend" #. Default: "says:" -#: ../browser/comments.pt:74 +#: ../browser/comments.pt:77 msgid "label_says" msgstr "siger:" #. Default: "Show commenter image" -#: ../interfaces.py:95 +#: ../interfaces.py:291 msgid "label_show_commenter_image" msgstr "Vis kommentator-billede" @@ -334,30 +418,41 @@ msgid "label_show_full_comment_text" msgstr "Hvis fuld kommentar" #. Default: "Subject" -#: ../interfaces.py:271 +#: ../interfaces.py:158 msgid "label_subject" msgstr "Emne" #. Default: "Comment text transform" -#: ../interfaces.py:64 +#: ../interfaces.py:258 msgid "label_text_transform" msgstr "Formattering af kommentar-tekst" #. Default: "Enable user email notification" -#: ../interfaces.py:125 +#: ../interfaces.py:326 msgid "label_user_notification_enabled" msgstr "Slå bruger-notificering til" #. Default: "A comment on '${title}' has been posted here: ${link}\n\n---\n${text}\n---\n" -#: ../comment.py:50 +#: ../comment.py:59 #, fuzzy msgid "mail_notification_message" msgstr "En kommentarer om '${title}' er blevet gemt her: ${link}" #. Default: "A comment on '${title}' has been posted here: ${link}\n\n---\n${text}\n---\n\nApprove comment:\n${link_approve}\n\nDelete comment:\n${link_delete}\n" -#: ../comment.py:58 +#: ../comment.py:67 msgid "mail_notification_message_moderator" msgstr "" +"En kommentar til '${title}' er blevet indsendt her: ${link}\n" +"\n" +"---\n" +"${text}\n" +"---\n" +"\n" +"Godkend kommentar:\n" +"${link_approve}\n" +"\n" +"Slet kommentar:\n" +"${link_delete}\n" #. Default: "enable the 'Comment Review Workflow' for the Comment content type" #: ../browser/moderation.pt:33 diff --git a/plone/app/discussion/locales/de/LC_MESSAGES/.gitignore b/plone/app/discussion/locales/de/LC_MESSAGES/.gitignore deleted file mode 100644 index d8b1cbd..0000000 --- a/plone/app/discussion/locales/de/LC_MESSAGES/.gitignore +++ /dev/null @@ -1 +0,0 @@ -/plone.app.discussion.mo diff --git a/plone/app/discussion/locales/de/LC_MESSAGES/plone.app.discussion.po b/plone/app/discussion/locales/de/LC_MESSAGES/plone.app.discussion.po index a72e73a..37a228f 100644 --- a/plone/app/discussion/locales/de/LC_MESSAGES/plone.app.discussion.po +++ b/plone/app/discussion/locales/de/LC_MESSAGES/plone.app.discussion.po @@ -14,133 +14,168 @@ msgstr "" "Preferred-Encodings: utf-8 latin1\n" "Domain: plone.app.discussion\n" -#: ../comment.py:264 +#: ../comment.py:357 msgid "A comment has been posted." msgstr "Ein Kommentar wurde abgegeben." -#: ../interfaces.py:257 +#: ../interfaces.py:144 msgid "A comment id unique to this conversation" msgstr "Eine eindeutige ID des Kommentars" -#: ../browser/comments.py:67 +#: ../browser/comments.py:72 msgid "Add a comment" msgstr "Kommentar hinzufügen" -#: ../browser/controlpanel.py:62 +#: ../browser/controlpanel.py:75 msgid "Anonymous Comments" msgstr "Anonyme Kommentare" -#: ../interfaces.py:282 -msgid "Author name (for display)" -msgstr "Name des Autors (wird angezeigt)" - -#: ../browser/comments.py:248 -#: ../browser/controlpanel.py:80 +#: ../browser/comments.py:274 +#: ../browser/controlpanel.py:93 msgid "Cancel" msgstr "Abbrechen" -#: ../browser/controlpanel.py:76 +#: ../browser/controlpanel.py:89 msgid "Changes saved" msgstr "Änderungen gespeichert" -#: ../browser/moderation.py:133 +#: ../browser/moderation.py:154 msgid "Comment approved." msgstr "Kommentar zur Veröffentlichung freigegeben." -#: ../browser/moderation.py:94 +#: ../contentrules.py:96 +msgid "Comment author email" +msgstr "" + +#: ../contentrules.py:85 +msgid "Comment author full name" +msgstr "" + +#: ../contentrules.py:74 +msgid "Comment author user name" +msgstr "" + +#: ../browser/moderation.py:108 msgid "Comment deleted." msgstr "Kommentar gelöscht" -#: ../browser/controlpanel.py:63 +#: ../contentrules.py:52 +msgid "Comment id" +msgstr "" + +#: ../contentrules.py:63 +msgid "Comment text" +msgstr "" + +#: ../browser/controlpanel.py:76 msgid "Commenter Image" msgstr "Porträt des Benutzers" -#: ../interfaces.py:252 +msgid "Commenting infrastructure for Plone" +msgstr "" + +#: ../contentrules.py:51 +msgid "Comments" +msgstr "" + +#: ../interfaces.py:139 msgid "Conversation" msgstr "Diskussion" -#: ../interfaces.py:283 +#: ../interfaces.py:177 msgid "Creation date" msgstr "Erstellungsdatum" -#: ../interfaces.py:162 -msgid "Date of the most recent comment" -msgstr "Datum des letzten Kommentars" +#: ../interfaces.py:41 +msgid "Date of the most recent public comment" +msgstr "Datum des neuesten öffentlichen Kommentars" #: ../vocabularies.py:44 msgid "Disabled" msgstr "Ausgeschaltet" -#: ../browser/controlpanel.py:32 +#: ../browser/controlpanel.py:35 msgid "Discussion settings" msgstr "Kommentierungseinstellungen" -#: ../browser/controlpanel.py:82 +#: ../browser/controlpanel.py:95 msgid "Edit cancelled" -msgstr "" +msgstr "Bearbeitung abgebrochen" -#: ../interfaces.py:269 +#: ../interfaces.py:156 msgid "Email" msgstr "E-Mail" -#: ../browser/controlpanel.py:61 +#: ../browser/controlpanel.py:74 msgid "Enable Comments" msgstr "Kommentare einschalten" -#: ../interfaces.py:260 +#: ../interfaces.py:147 msgid "Id of comment this comment is in reply to" msgstr "ID des Kommentars, auf den geantwortet wird." -#: ../interfaces.py:274 +#: ../interfaces.py:161 msgid "MIME type" msgstr "MIME-Typ" -#: ../browser/controlpanel.py:65 +#: ../browser/controlpanel.py:78 msgid "Moderator Email Notification" msgstr "Moderator E-Mail Benachrichtigung" -#: ../interfaces.py:284 +#: ../interfaces.py:178 msgid "Modification date" msgstr "Änderungsdatum" -#: ../interfaces.py:254 +#: ../interfaces.py:141 msgid "Name" msgstr "Name" -#: ../interfaces.py:278 +#: ../interfaces.py:170 msgid "Notify me of new comments via email." msgstr "E-Mail-Benachrichtigung bei neuen Kommentaren" #: ./plone.app.discussion/plone/app/discussion/configure.zcml msgid "Plone Discussions" -msgstr "Plone Diskussionen" +msgstr "" -#: ../interfaces.py:247 +#: ../interfaces.py:134 msgid "Portal type" msgstr "Artikeltyp" -#: ../browser/controlpanel.py:69 +#: ../browser/controlpanel.py:82 msgid "Save" msgstr "Speichern" -#: ../interfaces.py:167 +#: ../interfaces.py:46 msgid "The set of unique commentators (usernames)" msgstr "Liste von Benutzern, die Kommentare abgegeben haben" -#: ../interfaces.py:156 -msgid "Total number of comments on this item" -msgstr "Anzahl der Kommentare zu diesem Artikel" +#: ../interfaces.py:51 +msgid "The set of unique commentators (usernames) of published_comments" +msgstr "" -#: ../browser/controlpanel.py:67 +#: ../interfaces.py:35 +msgid "Total number of public comments on this item" +msgstr "Summe der veröffentlichten Kommentare zu diesem Artikel" + +#: ../comment.py:173 +msgid "Transform '%s' => '%s' not available." +msgstr "Transformation '%s' => '%s' ist nicht verfügbar." + +#: ../browser/controlpanel.py:80 msgid "User Email Notification" msgstr "E-Mail-Benachrichtigungen für Benutzer" -#: ../browser/comments.py:241 +#: ../interfaces.py:176 +msgid "Username of the commenter" +msgstr "Benutzername des Kommentierenden" + +#: ../browser/comments.py:267 msgid "Your comment awaits moderator approval." msgstr "Ihr Kommentar muss noch vom Moderator freigegeben werden." #. Default: "Comment" -#: ../browser/comments.py:123 +#: ../browser/comments.py:138 msgid "add_comment_button" msgstr "Kommentieren" @@ -154,24 +189,54 @@ msgstr "Löschen" msgid "bulkactions_publish" msgstr "Veröffentlichen" +#. Default: "Cancel" +#: ../browser/comment.py:97 +msgid "cancel_form_button" +msgstr "" + #. Default: "You can add a comment by filling out the form below. Plain text formatting. Web and email addresses are transformed into clickable links." -#: ../browser/comments.py:52 +#: ../browser/comments.py:57 msgid "comment_description_intelligent_text" msgstr "Sie können einen Kommentar abgeben, indem Sie das untenstehende Formular ausfüllen. Nur Text. Web- und E-Mailadressen werden in anklickbare Links umgewandelt." +#. Default: "You can add a comment by filling out the form below. Plain text formatting. You can use the Markdown syntax for links and images." +#: ../browser/comments.py:51 +msgid "comment_description_markdown" +msgstr "Sie können einen Kommentar abgeben, indem Sie das untenstehende Formular ausfüllen. Sie können die Markdown-Syntax für Links und Bilder benutzen." + #. Default: "Comments are moderated." -#: ../browser/comments.py:58 +#: ../browser/comments.py:63 msgid "comment_description_moderation_enabled" msgstr "Kommentare werden moderiert." #. Default: "You can add a comment by filling out the form below. Plain text formatting." -#: ../browser/comments.py:47 +#: ../browser/comments.py:46 msgid "comment_description_plain_text" msgstr "Sie können einen Kommentar abgeben, indem Sie das untenstehende Formular ausfüllen. Nur Text." -#. Default: "${creator} on ${content}" -#: ../comment.py:46 +#. Default: "Edit comment cancelled" +#: ../browser/comment.py:101 +msgid "comment_edit_cancel_notification" +msgstr "" + +#. Default: "Comment was edited" +#: ../browser/comment.py:91 +msgid "comment_edit_notification" +msgstr "" + +#. Default: "${author_name} on ${content}" +#: ../comment.py:55 msgid "comment_title" +msgstr "${author_name} zu ${content}" + +#. Default: "Edit comment" +#: ../browser/comment.py:70 +msgid "edit_comment_form_button" +msgstr "" + +#. Default: "Edit comment" +#: ../browser/comment.py:54 +msgid "edit_comment_form_title" msgstr "" #. Default: "Action" @@ -205,18 +270,23 @@ msgid "heading_moderate_comments" msgstr "Kommentare moderieren" #. Default: "If selected, anonymous users are able to post comments without loggin in. It is highly recommended to use a captcha solution to prevent spam if this setting is enabled." -#: ../interfaces.py:38 +#: ../interfaces.py:216 msgid "help_anonymous_comments" msgstr "Wenn Sie diese Einstellung aktivieren, können anonyme Benutzer Kommentare abgeben. Es ist empfehlenswert, dann auch Captchas zu aktivieren." +#. Default: "If selected, anonymous user will have to give their email." +#: ../interfaces.py:341 +msgid "help_anonymous_email_enabled" +msgstr "Wenn Sie diese Einstellung aktivieren, müssen anonyme Benutzer ihre E-Mail-Adresse angeben." + #. Default: "Use this setting to enable or disable Captcha validation for comments. Install plone.formwidget.captcha, plone.formwidget.recaptcha, collective.akismet, or collective.z3cform.norobots if there are no options available." -#: ../interfaces.py:82 +#: ../interfaces.py:277 #, fuzzy msgid "help_captcha" msgstr "Wenn Sie diese Einstellung aktivieren, wird mit Hilfe der Captcha-Validierung überprüft, ob die Kommentare von einem echten Benutzer oder von einem automatisierten Skript stammen. Falls Sie die Option nicht einschalten können, fehlt evtl. ein benötigtes Programmmodul. Stellen Sie sicher, dass entweder plone.formwidget.captcha oder plone.formwidget.recaptcha installiert ist." #. Default: "Some discussion related settings are not located in the Discussion Control Panel.\nTo enable comments for a specific content type, go to the Types Control Panel of this type and choose \"Allow comments\".\nTo enable the moderation workflow for comments, go to the Types Control Panel, choose \"Comment\" and set workflow to \"Comment Review Workflow\"." -#: ../browser/controlpanel.py:33 +#: ../browser/controlpanel.py:36 #, fuzzy msgid "help_discussion_settings_editform" msgstr "" @@ -224,94 +294,111 @@ msgstr "" "\n" "Um die Moderation von Kommentaren zu aktivieren, wählen Sie den Artikeltyp 'Kommentar' aus und wählen Sie als neuen Arbeitsablauf 'Arbeitsablauf für moderierte Kommentare'." +#. Default: "If selected, supports editing and deletion of comments for users with the 'Edit comments' permission." +#: ../interfaces.py:249 +msgid "help_edit_comment_enabled" +msgstr "" + #. Default: "If selected, users are able to post comments on the site. Though, you have to enable comments for specific content types, folders or content objects before users will be able to post comments." -#: ../interfaces.py:26 +#: ../interfaces.py:202 #, fuzzy msgid "help_globally_enabled" msgstr "Wenn Sie diese Einstellung aktivieren, können Artikel generell kommentiert werden." #. Default: "If selected, comments will enter a 'Pending' state in which they are invisible to the public. A user with the 'Review comments' permission ('Reviewer' or 'Manager') can approve comments to make them visible to the public. If you want to enable a custom comment workflow, you have to go to the types control panel." -#: ../interfaces.py:50 +#: ../interfaces.py:232 msgid "help_moderation_enabled" -msgstr "" +msgstr "Falls ausgewählt werden Kommentare in einem für die Öffentlichkeit unsichtbaren Schwebezustand gehalten, bis sie ein Benutzer mit der 'Review comments' Berechtigung ('Reviewer' or 'Manager') genehmigt und damit für die Öffentlichkeit sichtbar macht. Wenn Sie einen angepassten Arbeitsablauf für Kommentare einstellen wollen, so geht das mit dem Menu unter Artikeltypen." #. Default: "Address to which moderator notifications will be sent." -#: ../interfaces.py:118 +#: ../interfaces.py:318 msgid "help_moderator_email" msgstr "E-Mail Adresse an welche die Moderatoren-Benachrichtigungen gesendet werden." -#. Default: "If selected, the moderator is notified if a comment needs attention. The moderator email address can be found in the 'Mail settings' control panel (Site 'From' address)" -#: ../interfaces.py:107 +#. Default: "If selected, the moderator is notified if a comment needs attention. The moderator email address can be set below." +#: ../interfaces.py:304 +#, fuzzy msgid "help_moderator_notification_enabled" -msgstr "" +msgstr "Falls ausgewählt erhält der Moderator eine E-Mail, wenn ein Kommentar Aufmerksamkeit braucht. Die E-Mail-Adresse des Moderators kann weiter unten angegeben werden." #. Default: "If selected, an image of the user is shown next to the comment." -#: ../interfaces.py:97 +#: ../interfaces.py:293 msgid "help_show_commenter_image" msgstr "Wenn Sie diese Einstellung aktivieren, wird das Porträt des kommentierenden Benutzers neben dem Kommentar angezeigt." #. Default: "Use this setting to choose if the comment text should be transformed in any way. You can choose between 'Plain text' and 'Intelligent text'. 'Intelligent text' converts plain text into HTML where line breaks and indentation is preserved, and web and email addresses are made into clickable links." -#: ../interfaces.py:66 +#: ../interfaces.py:260 msgid "help_text_transform" -msgstr "" +msgstr "Diese Einstellung wählen, wenn eine Transformation in irgend einer Art und Weise gewünscht ist. Sie können zwischen 'Plain text' und 'Intelligent text' wählen. 'Intelligent text' wandelt Plain Text in HTML um, dabei werden Zeilenumbrüche und Einrückungen beibehalten sowie Weblinks und E-Mail-Adressen in klickbare Links verwandelt." #. Default: "If selected, users can choose to be notified of new comments by email." -#: ../interfaces.py:127 +#: ../interfaces.py:330 msgid "help_user_notification_enabled" -msgstr "" +msgstr "Wenn Sie diese Einstellung auswählen, können Benutzer angeben, dass sie über neue Kommentare per E-Mail informiert werden möchten." #. Default: "Anonymous" -#: ../comment.py:156 +#: ../browser/comments.pt:74 +#: ../comment.py:191 msgid "label_anonymous" msgstr "Anonymer Benutzer" #. Default: "Enable anonymous comments" -#: ../interfaces.py:36 +#: ../interfaces.py:214 msgid "label_anonymous_comments" msgstr "Anonyme Kommentare" +#. Default: "Enable anonymous email field" +#: ../interfaces.py:339 +msgid "label_anonymous_email_enabled" +msgstr "E-Mail Feld für anonyme Kommentare einschalten" + #. Default: "Apply" #: ../browser/moderation.pt:71 msgid "label_apply" msgstr "Anwenden" #. Default: "Captcha" -#: ../interfaces.py:80 +#: ../interfaces.py:275 msgid "label_captcha" msgstr "Captcha" #. Default: "Comment" -#: ../interfaces.py:275 +#: ../interfaces.py:163 msgid "label_comment" msgstr "Kommentar" #. Default: "Commenting has been disabled." -#: ../browser/comments.pt:130 +#: ../browser/comments.pt:148 msgid "label_commenting_disabled" -msgstr "" +msgstr "Kommentare wurden abgeschaltet." #. Default: "Delete" #: ../browser/moderation.pt:130 msgid "label_delete" msgstr "Löschen" +#. Default: "Enable editing of comments" +#: ../interfaces.py:247 +msgid "label_edit_comment_enabled" +msgstr "" + #. Default: "Globally enable comments" -#: ../interfaces.py:24 +#: ../interfaces.py:200 msgid "label_globally_enabled" msgstr "Kommentierungsfunktion generell einschalten" #. Default: "Enable comment moderation" -#: ../interfaces.py:48 +#: ../interfaces.py:228 msgid "label_moderation_enabled" -msgstr "" +msgstr "Moderation für Kommentare einschalten" #. Default: "Moderator Email Address" -#: ../interfaces.py:117 +#: ../interfaces.py:314 msgid "label_moderator_email" -msgstr "" +msgstr "E-Mail Adresse des Moderators" #. Default: "Enable moderator email notification" -#: ../interfaces.py:105 +#: ../interfaces.py:302 msgid "label_moderator_notification_enabled" msgstr "Email-Benachrichtigungen für Moderatoren aktivieren" @@ -321,12 +408,12 @@ msgid "label_publish" msgstr "Veröffentlichen" #. Default: "says:" -#: ../browser/comments.pt:74 +#: ../browser/comments.pt:77 msgid "label_says" msgstr "sagt" #. Default: "Show commenter image" -#: ../interfaces.py:95 +#: ../interfaces.py:291 msgid "label_show_commenter_image" msgstr "Zeige das Portrait des Kommentators" @@ -336,29 +423,45 @@ msgid "label_show_full_comment_text" msgstr "Den vollständigen Kommentar anzeigen" #. Default: "Subject" -#: ../interfaces.py:271 +#: ../interfaces.py:158 msgid "label_subject" msgstr "Betreff" #. Default: "Comment text transform" -#: ../interfaces.py:64 +#: ../interfaces.py:258 msgid "label_text_transform" msgstr "Text transformationen" #. Default: "Enable user email notification" -#: ../interfaces.py:125 +#: ../interfaces.py:326 msgid "label_user_notification_enabled" msgstr "E-Mail-Benachrichtigungen für Benutzer aktivieren" #. Default: "A comment on '${title}' has been posted here: ${link}\n\n---\n${text}\n---\n" -#: ../comment.py:50 +#: ../comment.py:59 msgid "mail_notification_message" -msgstr "Ein Kommentar zu '${title}' wurde hier abgegeben: ${link}\n\n---\n${text}\n---\n" +msgstr "" +"Ein Kommentar zu '${title}' wurde hier abgegeben: ${link}\n" +"\n" +"---\n" +"${text}\n" +"---\n" #. Default: "A comment on '${title}' has been posted here: ${link}\n\n---\n${text}\n---\n\nApprove comment:\n${link_approve}\n\nDelete comment:\n${link_delete}\n" -#: ../comment.py:58 +#: ../comment.py:67 msgid "mail_notification_message_moderator" -msgstr "Ein Kommentar zu '${title}' wurde hier abgegeben: ${link}\n\n---\n${text}\n---\n\nKommentar zur Veröffentlichung freigeben:\n${link_approve}\n\nKommentar löschen:\n${link_delete}\n" +msgstr "" +"Ein Kommentar zu '${title}' wurde hier abgegeben: ${link}\n" +"\n" +"---\n" +"${text}\n" +"---\n" +"\n" +"Kommentar zur Veröffentlichung freigeben:\n" +"${link_approve}\n" +"\n" +"Kommentar löschen:\n" +"${link_delete}\n" #. Default: "enable the 'Comment Review Workflow' for the Comment content type" #: ../browser/moderation.pt:33 diff --git a/plone/app/discussion/locales/es/LC_MESSAGES/plone.app.discussion.po b/plone/app/discussion/locales/es/LC_MESSAGES/plone.app.discussion.po index 712b5a4..0b72e35 100644 --- a/plone/app/discussion/locales/es/LC_MESSAGES/plone.app.discussion.po +++ b/plone/app/discussion/locales/es/LC_MESSAGES/plone.app.discussion.po @@ -16,103 +16,123 @@ msgstr "" "Domain: plone.app.discussion\n" "X-Is-Fallback-For: es-ar es-bo es-cl es-co es-cr es-do es-ec es-es es-sv es-gt es-hn es-mx es-ni es-pa es-py es-pe es-pr es-us es-uy es-ve\n" -#: ../comment.py:264 +#: ../comment.py:357 msgid "A comment has been posted." msgstr "Comentario añadido." -#: ../interfaces.py:257 +#: ../interfaces.py:144 msgid "A comment id unique to this conversation" msgstr "Un comentario de ID exclusivo para esta conversación" -#: ../browser/comments.py:67 +#: ../browser/comments.py:72 msgid "Add a comment" msgstr "Añadir un comentario" -#: ../browser/controlpanel.py:62 +#: ../browser/controlpanel.py:75 msgid "Anonymous Comments" msgstr "Comentarios anónimos" -#: ../interfaces.py:282 -msgid "Author name (for display)" -msgstr "Nombre del autor (para mostrar)" - -#: ../browser/comments.py:248 -#: ../browser/controlpanel.py:80 +#: ../browser/comments.py:274 +#: ../browser/controlpanel.py:93 msgid "Cancel" msgstr "Cancelar" -#: ../browser/controlpanel.py:76 +#: ../browser/controlpanel.py:89 msgid "Changes saved" msgstr "Cambios guardados" -#: ../browser/moderation.py:133 +#: ../browser/moderation.py:154 msgid "Comment approved." msgstr "Comentario aprobado." -#: ../browser/moderation.py:94 +#: ../contentrules.py:96 +msgid "Comment author email" +msgstr "" + +#: ../contentrules.py:85 +msgid "Comment author full name" +msgstr "" + +#: ../contentrules.py:74 +msgid "Comment author user name" +msgstr "" + +#: ../browser/moderation.py:108 msgid "Comment deleted." msgstr "Comentario eliminado." -#: ../browser/controlpanel.py:63 +#: ../contentrules.py:52 +msgid "Comment id" +msgstr "" + +#: ../contentrules.py:63 +msgid "Comment text" +msgstr "" + +#: ../browser/controlpanel.py:76 msgid "Commenter Image" msgstr "Imagen del autor" msgid "Commenting infrastructure for Plone" msgstr "Infraestructura de comentarios para Plone" -#: ../interfaces.py:252 +#: ../contentrules.py:51 +msgid "Comments" +msgstr "" + +#: ../interfaces.py:139 msgid "Conversation" msgstr "Conversación" -#: ../interfaces.py:283 +#: ../interfaces.py:177 msgid "Creation date" msgstr "Fecha de creación" -#: ../interfaces.py:162 -msgid "Date of the most recent comment" -msgstr "Fecha del comentario más reciente" +#: ../interfaces.py:41 +msgid "Date of the most recent public comment" +msgstr "" #: ../vocabularies.py:44 msgid "Disabled" msgstr "Desactivado" -#: ../browser/controlpanel.py:32 +#: ../browser/controlpanel.py:35 msgid "Discussion settings" msgstr "Ajustes de discusión" -#: ../browser/controlpanel.py:82 +#: ../browser/controlpanel.py:95 msgid "Edit cancelled" msgstr "Edición cancelada" -#: ../interfaces.py:269 +#: ../interfaces.py:156 msgid "Email" msgstr "Correo electrónico" -#: ../browser/controlpanel.py:61 +#: ../browser/controlpanel.py:74 msgid "Enable Comments" msgstr "Permitir comentarios" -#: ../interfaces.py:260 +#: ../interfaces.py:147 msgid "Id of comment this comment is in reply to" msgstr "ID del comentario este comentario es en respuesta a" -#: ../interfaces.py:274 +#: ../interfaces.py:161 msgid "MIME type" msgstr "Tipo MIME" -#: ../browser/controlpanel.py:65 +#: ../browser/controlpanel.py:78 msgid "Moderator Email Notification" msgstr "Notificación al moderador por correo electrónico" -#: ../interfaces.py:284 +#: ../interfaces.py:178 msgid "Modification date" msgstr "Fecha de modificación" -#: ../interfaces.py:254 +#: ../interfaces.py:141 msgid "Name" msgstr "Nombre" -#: ../interfaces.py:278 +#: ../interfaces.py:170 msgid "Notify me of new comments via email." msgstr "Recibir avisos por correo cuando haya nuevos comentarios." @@ -120,32 +140,44 @@ msgstr "Recibir avisos por correo cuando haya nuevos comentarios." msgid "Plone Discussions" msgstr "Plone Discussions" -#: ../interfaces.py:247 +#: ../interfaces.py:134 msgid "Portal type" msgstr "Tipo de objeto" -#: ../browser/controlpanel.py:69 +#: ../browser/controlpanel.py:82 msgid "Save" msgstr "Guardar" -#: ../interfaces.py:167 +#: ../interfaces.py:46 msgid "The set of unique commentators (usernames)" msgstr "Listado de usuarios que han comentado (nombres de usuario)" -#: ../interfaces.py:156 -msgid "Total number of comments on this item" -msgstr "Número total de comentarios en este elemento" +#: ../interfaces.py:51 +msgid "The set of unique commentators (usernames) of published_comments" +msgstr "" -#: ../browser/controlpanel.py:67 +#: ../interfaces.py:35 +msgid "Total number of public comments on this item" +msgstr "" + +#: ../comment.py:173 +msgid "Transform '%s' => '%s' not available." +msgstr "" + +#: ../browser/controlpanel.py:80 msgid "User Email Notification" msgstr "Notificaciones de correo para usuarios" -#: ../browser/comments.py:241 +#: ../interfaces.py:176 +msgid "Username of the commenter" +msgstr "" + +#: ../browser/comments.py:267 msgid "Your comment awaits moderator approval." msgstr "Su comentario está pendiente de aprobación por el moderador." #. Default: "Comment" -#: ../browser/comments.py:123 +#: ../browser/comments.py:138 msgid "add_comment_button" msgstr "Comentar" @@ -159,26 +191,57 @@ msgstr "Borrar" msgid "bulkactions_publish" msgstr "Aprobar" +#. Default: "Cancel" +#: ../browser/comment.py:97 +msgid "cancel_form_button" +msgstr "" + #. Default: "You can add a comment by filling out the form below. Plain text formatting. Web and email addresses are transformed into clickable links." -#: ../browser/comments.py:52 +#: ../browser/comments.py:57 msgid "comment_description_intelligent_text" msgstr "Puede agregar un comentario llenando el siguiente formulario. Formato de texto plano. Las direcciones web y de correo electrónico se transforman en vínculos." +#. Default: "You can add a comment by filling out the form below. Plain text formatting. You can use the Markdown syntax for links and images." +#: ../browser/comments.py:51 +msgid "comment_description_markdown" +msgstr "" + #. Default: "Comments are moderated." -#: ../browser/comments.py:58 +#: ../browser/comments.py:63 msgid "comment_description_moderation_enabled" msgstr "Los comentarios son moderados." #. Default: "You can add a comment by filling out the form below. Plain text formatting." -#: ../browser/comments.py:47 +#: ../browser/comments.py:46 msgid "comment_description_plain_text" msgstr "Puede agregar un comentario llenando el sigueinte formulario. Formato de texto plano." -#. Default: "${creator} on ${content}" -#: ../comment.py:46 +#. Default: "Edit comment cancelled" +#: ../browser/comment.py:101 +msgid "comment_edit_cancel_notification" +msgstr "" + +#. Default: "Comment was edited" +#: ../browser/comment.py:91 +msgid "comment_edit_notification" +msgstr "" + +#. Default: "${author_name} on ${content}" +#: ../comment.py:55 +#, fuzzy msgid "comment_title" msgstr "${creator} sobre ${content}" +#. Default: "Edit comment" +#: ../browser/comment.py:70 +msgid "edit_comment_form_button" +msgstr "" + +#. Default: "Edit comment" +#: ../browser/comment.py:54 +msgid "edit_comment_form_title" +msgstr "" + #. Default: "Action" #: ../browser/moderation.pt:85 msgid "heading_action" @@ -210,85 +273,102 @@ msgid "heading_moderate_comments" msgstr "Moderar comentarios" #. Default: "If selected, anonymous users are able to post comments without loggin in. It is highly recommended to use a captcha solution to prevent spam if this setting is enabled." -#: ../interfaces.py:38 +#: ../interfaces.py:216 msgid "help_anonymous_comments" msgstr "Si está seleccionado, los usuarios anónimos podrán añadir comentarios sin tener que iniciar una sesión. Recomendamos encarecidamente que utilice una solución Captcha para evitar el spam si esta opción está activada." +#. Default: "If selected, anonymous user will have to give their email." +#: ../interfaces.py:341 +msgid "help_anonymous_email_enabled" +msgstr "" + #. Default: "Use this setting to enable or disable Captcha validation for comments. Install plone.formwidget.captcha, plone.formwidget.recaptcha, collective.akismet, or collective.z3cform.norobots if there are no options available." -#: ../interfaces.py:82 +#: ../interfaces.py:277 msgid "help_captcha" msgstr "Utilice esta opción para activar o desactivar Captcha para los comentarios. Instale plone.formwidget.captcha, plone.formwidget.recaptcha, collective.akismet o collective.z3cform.norobots si no tiene ninguna opción disponible." #. Default: "Some discussion related settings are not located in the Discussion Control Panel.\nTo enable comments for a specific content type, go to the Types Control Panel of this type and choose \"Allow comments\".\nTo enable the moderation workflow for comments, go to the Types Control Panel, choose \"Comment\" and set workflow to \"Comment Review Workflow\"." -#: ../browser/controlpanel.py:33 +#: ../browser/controlpanel.py:36 msgid "help_discussion_settings_editform" msgstr "" "Algunos de los ajustes sobre los comentarios no están en el Panel de Control de Discusiones.\n" "Para activar comentarios para un tipo de objeto específico, vaya al Panel de Control de Tipos y elija 'Activar Comentarios'.\n" "Para activar el workflow de moderación de comentarios, vaya al Panel de Control de Tipos, elija 'Comentario' y elija el 'Workflow de Moderación de Comentarios'." +#. Default: "If selected, supports editing and deletion of comments for users with the 'Edit comments' permission." +#: ../interfaces.py:249 +msgid "help_edit_comment_enabled" +msgstr "" + #. Default: "If selected, users are able to post comments on the site. Though, you have to enable comments for specific content types, folders or content objects before users will be able to post comments." -#: ../interfaces.py:26 +#: ../interfaces.py:202 msgid "help_globally_enabled" msgstr "Si está seleccionado, se permite que los visitantes hagan comentarios en la web. Sin embargo, tiene que activar los comentarios para cada tipo de objeto específicamente antes de que se puedan añadir los comentarios." #. Default: "If selected, comments will enter a 'Pending' state in which they are invisible to the public. A user with the 'Review comments' permission ('Reviewer' or 'Manager') can approve comments to make them visible to the public. If you want to enable a custom comment workflow, you have to go to the types control panel." -#: ../interfaces.py:50 +#: ../interfaces.py:232 msgid "help_moderation_enabled" msgstr "Si está seleccionado, los comentarios entraran en un estado 'Pendiente' en el cual ellos no son visibles para el público. Un usuario con el permiso 'Revisar comentarios' ('Revisor' o 'Administrador') puede aprobar los comentarios y hacerlos visibles al público. Si desea habilitar un workflow de comentarios diferente, puede hacerlo a través de la opción 'Configuración de Tipos' en el panel de control." #. Default: "Address to which moderator notifications will be sent." -#: ../interfaces.py:118 +#: ../interfaces.py:318 msgid "help_moderator_email" msgstr "La dirección de correo electrónico a la cual se enviarán las notificaciones de moderación." -#. Default: "If selected, the moderator is notified if a comment needs attention. The moderator email address can be found in the 'Mail settings' control panel (Site 'From' address)" -#: ../interfaces.py:107 +#. Default: "If selected, the moderator is notified if a comment needs attention. The moderator email address can be set below." +#: ../interfaces.py:304 +#, fuzzy msgid "help_moderator_notification_enabled" msgstr "Si está seleccionado, se notifica al moderador cuando un nuevo comentario requiere de su atención. La dirección de correo electrónico del moderador se puede encontrar en la opción 'Configuración de correo' del panel de control (Dirección del remitente del sitio)" #. Default: "If selected, an image of the user is shown next to the comment." -#: ../interfaces.py:97 +#: ../interfaces.py:293 msgid "help_show_commenter_image" msgstr "Si está seleccionado, se mostrará una imagen del autor junto al comentario." #. Default: "Use this setting to choose if the comment text should be transformed in any way. You can choose between 'Plain text' and 'Intelligent text'. 'Intelligent text' converts plain text into HTML where line breaks and indentation is preserved, and web and email addresses are made into clickable links." -#: ../interfaces.py:66 +#: ../interfaces.py:260 msgid "help_text_transform" msgstr "Elija si el texto de los comentario será transformado de algún modo. Puede seleccionar entre 'Texto plano' y 'Texto inteligente'. 'Texto inteligente' convierte el texto plano en HTML, conservando los cambios de línea y la indentación, y transformando las direcciones web y de correo electrónico en vínculos." #. Default: "If selected, users can choose to be notified of new comments by email." -#: ../interfaces.py:127 +#: ../interfaces.py:330 msgid "help_user_notification_enabled" msgstr "Si está seleccionado, los usuarios pueden solicitar recibir avisos por correo cuando haya nuevos comentarios." #. Default: "Anonymous" -#: ../comment.py:156 +#: ../browser/comments.pt:74 +#: ../comment.py:191 msgid "label_anonymous" msgstr "Anónimo" #. Default: "Enable anonymous comments" -#: ../interfaces.py:36 +#: ../interfaces.py:214 msgid "label_anonymous_comments" msgstr "Permitir comentarios anónimos" +#. Default: "Enable anonymous email field" +#: ../interfaces.py:339 +msgid "label_anonymous_email_enabled" +msgstr "" + #. Default: "Apply" #: ../browser/moderation.pt:71 msgid "label_apply" msgstr "Aplicar" #. Default: "Captcha" -#: ../interfaces.py:80 +#: ../interfaces.py:275 msgid "label_captcha" msgstr "Captcha" #. Default: "Comment" -#: ../interfaces.py:275 +#: ../interfaces.py:163 msgid "label_comment" msgstr "Comentario" #. Default: "Commenting has been disabled." -#: ../browser/comments.pt:130 +#: ../browser/comments.pt:148 msgid "label_commenting_disabled" msgstr "Los comentarios han sido inhabilitados." @@ -297,23 +377,28 @@ msgstr "Los comentarios han sido inhabilitados." msgid "label_delete" msgstr "Borrar" +#. Default: "Enable editing of comments" +#: ../interfaces.py:247 +msgid "label_edit_comment_enabled" +msgstr "" + #. Default: "Globally enable comments" -#: ../interfaces.py:24 +#: ../interfaces.py:200 msgid "label_globally_enabled" msgstr "Activar comentarios de forma global" #. Default: "Enable comment moderation" -#: ../interfaces.py:48 +#: ../interfaces.py:228 msgid "label_moderation_enabled" msgstr "Habilitar la moderación de comentarios" #. Default: "Moderator Email Address" -#: ../interfaces.py:117 +#: ../interfaces.py:314 msgid "label_moderator_email" msgstr "Dirección de correo electrónico del moderador" #. Default: "Enable moderator email notification" -#: ../interfaces.py:105 +#: ../interfaces.py:302 msgid "label_moderator_notification_enabled" msgstr "Activar notificación al moderador" @@ -323,12 +408,12 @@ msgid "label_publish" msgstr "Aprobar" #. Default: "says:" -#: ../browser/comments.pt:74 +#: ../browser/comments.pt:77 msgid "label_says" msgstr "dice:" #. Default: "Show commenter image" -#: ../interfaces.py:95 +#: ../interfaces.py:291 msgid "label_show_commenter_image" msgstr "Mostrar imagen del autor" @@ -338,22 +423,22 @@ msgid "label_show_full_comment_text" msgstr "Mostrar texto completo" #. Default: "Subject" -#: ../interfaces.py:271 +#: ../interfaces.py:158 msgid "label_subject" msgstr "Tema" #. Default: "Comment text transform" -#: ../interfaces.py:64 +#: ../interfaces.py:258 msgid "label_text_transform" msgstr "Transformaciones aplicadas al texto del comentario" #. Default: "Enable user email notification" -#: ../interfaces.py:125 +#: ../interfaces.py:326 msgid "label_user_notification_enabled" msgstr "Activar notificación de correo a los usuarios" #. Default: "A comment on '${title}' has been posted here: ${link}\n\n---\n${text}\n---\n" -#: ../comment.py:50 +#: ../comment.py:59 msgid "mail_notification_message" msgstr "" "Se ha agregado un comentario a ${title} aquí: ${link}\n" @@ -363,7 +448,7 @@ msgstr "" "---\n" #. Default: "A comment on '${title}' has been posted here: ${link}\n\n---\n${text}\n---\n\nApprove comment:\n${link_approve}\n\nDelete comment:\n${link_delete}\n" -#: ../comment.py:58 +#: ../comment.py:67 msgid "mail_notification_message_moderator" msgstr "" "Se ha agregado un comentario a '${title}' aquí: ${link}\n" diff --git a/plone/app/discussion/locales/eu/LC_MESSAGES/plone.app.discussion.po b/plone/app/discussion/locales/eu/LC_MESSAGES/plone.app.discussion.po index bd1037c..bad2b9c 100644 --- a/plone/app/discussion/locales/eu/LC_MESSAGES/plone.app.discussion.po +++ b/plone/app/discussion/locales/eu/LC_MESSAGES/plone.app.discussion.po @@ -2,7 +2,7 @@ msgid "" msgstr "" "Project-Id-Version: plone.app.discussion\n" "POT-Creation-Date: YEAR-MO-DA HO:MI +ZONE\n" -"PO-Revision-Date: 2012-02-08 09:14+0100\n" +"PO-Revision-Date: 2013-11-14 09:09+0100\n" "Last-Translator: Mikel Larreategi \n" "Language-Team: eu \n" "MIME-Version: 1.0\n" @@ -15,103 +15,123 @@ msgstr "" "Domain: DOMAIN\n" "X-Poedit-Language: Basque\n" -#: ../comment.py:294 +#: ../comment.py:357 msgid "A comment has been posted." msgstr "Erantzun bat argitaratu da." -#: ../interfaces.py:135 +#: ../interfaces.py:144 msgid "A comment id unique to this conversation" msgstr "Eztabaida honetarako bakarra den erantzunaren id-a." -#: ../browser/comments.py:73 +#: ../browser/comments.py:72 msgid "Add a comment" msgstr "Erantzuna gehitu" -#: ../browser/controlpanel.py:63 +#: ../browser/controlpanel.py:75 msgid "Anonymous Comments" msgstr "Erantzun anonimoak" -#: ../interfaces.py:160 -msgid "Author name (for display)" -msgstr "Egilearen izena (argitaratuko dena)" - -#: ../browser/comments.py:245 -#: ../browser/controlpanel.py:81 +#: ../browser/comments.py:274 +#: ../browser/controlpanel.py:93 msgid "Cancel" msgstr "Utzi" -#: ../browser/controlpanel.py:77 +#: ../browser/controlpanel.py:89 msgid "Changes saved" msgstr "Aldaketak gordeta" -#: ../browser/moderation.py:138 +#: ../browser/moderation.py:154 msgid "Comment approved." msgstr "Erantzuna onartuta." -#: ../browser/moderation.py:99 +#: ../contentrules.py:96 +msgid "Comment author email" +msgstr "" + +#: ../contentrules.py:85 +msgid "Comment author full name" +msgstr "" + +#: ../contentrules.py:74 +msgid "Comment author user name" +msgstr "" + +#: ../browser/moderation.py:108 msgid "Comment deleted." msgstr "Erantzuna ezabatuta." -#: ../browser/controlpanel.py:64 +#: ../contentrules.py:52 +msgid "Comment id" +msgstr "" + +#: ../contentrules.py:63 +msgid "Comment text" +msgstr "" + +#: ../browser/controlpanel.py:76 msgid "Commenter Image" msgstr "Erantzuna eman duenaren irudia." msgid "Commenting infrastructure for Plone" msgstr "Ploneren Erantzunen Azpiegitura" -#: ../interfaces.py:130 +#: ../contentrules.py:51 +msgid "Comments" +msgstr "" + +#: ../interfaces.py:139 msgid "Conversation" msgstr "Eztabaida" -#: ../interfaces.py:161 +#: ../interfaces.py:177 msgid "Creation date" msgstr "Sorrera data" -#: ../interfaces.py:40 -msgid "Date of the most recent comment" +#: ../interfaces.py:41 +msgid "Date of the most recent public comment" msgstr "Azken erantzunaren data" #: ../vocabularies.py:44 msgid "Disabled" msgstr "Desaktibatuta" -#: ../browser/controlpanel.py:33 +#: ../browser/controlpanel.py:35 msgid "Discussion settings" msgstr "Eztabaidaren ezarpenak" -#: ../browser/controlpanel.py:83 +#: ../browser/controlpanel.py:95 msgid "Edit cancelled" msgstr "Edizioa utzita" -#: ../interfaces.py:147 +#: ../interfaces.py:156 msgid "Email" msgstr "E-posta" -#: ../browser/controlpanel.py:62 +#: ../browser/controlpanel.py:74 msgid "Enable Comments" msgstr "Erantzunak aktibatu" -#: ../interfaces.py:138 +#: ../interfaces.py:147 msgid "Id of comment this comment is in reply to" msgstr "Erantzun honek erreferentzia egiten dion erantzunaren id-a" -#: ../interfaces.py:152 +#: ../interfaces.py:161 msgid "MIME type" msgstr "MIME mota" -#: ../browser/controlpanel.py:66 +#: ../browser/controlpanel.py:78 msgid "Moderator Email Notification" msgstr "Moderatzailea e-postaz abisatu" -#: ../interfaces.py:162 +#: ../interfaces.py:178 msgid "Modification date" msgstr "Aldaketa data" -#: ../interfaces.py:132 +#: ../interfaces.py:141 msgid "Name" msgstr "Izena" -#: ../interfaces.py:156 +#: ../interfaces.py:170 msgid "Notify me of new comments via email." msgstr "Erantzun berriak e-postaz bidali" @@ -119,32 +139,44 @@ msgstr "Erantzun berriak e-postaz bidali" msgid "Plone Discussions" msgstr "Plone Eztabaidak" -#: ../interfaces.py:125 +#: ../interfaces.py:134 msgid "Portal type" msgstr "Elementu mota" -#: ../browser/controlpanel.py:70 +#: ../browser/controlpanel.py:82 msgid "Save" msgstr "Gorde" -#: ../interfaces.py:45 +#: ../interfaces.py:46 msgid "The set of unique commentators (usernames)" msgstr "Erantzunak eman dituzten erabiltzaileak (erabiltzaile-izenak)" -#: ../interfaces.py:34 -msgid "Total number of comments on this item" -msgstr "Elementu honen erantzun kopurua" +#: ../interfaces.py:51 +msgid "The set of unique commentators (usernames) of published_comments" +msgstr "Erantzun-emaleen erabiltzaile izenak" -#: ../browser/controlpanel.py:68 +#: ../interfaces.py:35 +msgid "Total number of public comments on this item" +msgstr "Elementu honen erantzun publiko kopurua" + +#: ../comment.py:173 +msgid "Transform '%s' => '%s' not available." +msgstr "'%s' => '%s' eraldaketa ez dago erabilgarri." + +#: ../browser/controlpanel.py:80 msgid "User Email Notification" msgstr "E-posta abisuak" -#: ../browser/comments.py:238 +#: ../interfaces.py:176 +msgid "Username of the commenter" +msgstr "Erantzuna utzi duenaren erabiltzaile-izena" + +#: ../browser/comments.py:267 msgid "Your comment awaits moderator approval." msgstr "Zure erantzuna moderazio kolan dago." #. Default: "Comment" -#: ../browser/comments.py:129 +#: ../browser/comments.py:138 msgid "add_comment_button" msgstr "Eman erantzuna" @@ -158,30 +190,55 @@ msgstr "Ezabatu" msgid "bulkactions_publish" msgstr "Onartu" +#. Default: "Cancel" +#: ../browser/comment.py:97 +msgid "cancel_form_button" +msgstr "" + #. Default: "You can add a comment by filling out the form below. Plain text formatting. Web and email addresses are transformed into clickable links." -#: ../browser/comments.py:58 +#: ../browser/comments.py:57 msgid "comment_description_intelligent_text" msgstr "Erantzuna formulario hau betez utzi dezakezu. Formatua testu arruntarena da. Web eta e-posta helbideak automatikoki klikagarri agertuko dira." #. Default: "You can add a comment by filling out the form below. Plain text formatting. You can use the Markdown syntax for links and images." -#: ../browser/comments.py:52 +#: ../browser/comments.py:51 msgid "comment_description_markdown" msgstr "Erantzuna formulario hau betez utzi dezakezu. Formatua testu arruntarena da. Lotura era irudientzat 'Markdown' sintaxia erabili dezakezu." #. Default: "Comments are moderated." -#: ../browser/comments.py:64 +#: ../browser/comments.py:63 msgid "comment_description_moderation_enabled" msgstr "Erantzunak moderatuta daude." #. Default: "You can add a comment by filling out the form below. Plain text formatting." -#: ../browser/comments.py:47 +#: ../browser/comments.py:46 msgid "comment_description_plain_text" msgstr "Erantzuna formulario hau betez utzi dezakezu. Formatua testu arruntarena da." -#. Default: "${creator} on ${content}" -#: ../comment.py:46 +#. Default: "Edit comment cancelled" +#: ../browser/comment.py:101 +msgid "comment_edit_cancel_notification" +msgstr "" + +#. Default: "Comment was edited" +#: ../browser/comment.py:91 +msgid "comment_edit_notification" +msgstr "" + +#. Default: "${author_name} on ${content}" +#: ../comment.py:55 msgid "comment_title" -msgstr "${creator} ${content} buruz" +msgstr "${content} - ${creator}" + +#. Default: "Edit comment" +#: ../browser/comment.py:70 +msgid "edit_comment_form_button" +msgstr "" + +#. Default: "Edit comment" +#: ../browser/comment.py:54 +msgid "edit_comment_form_title" +msgstr "" #. Default: "Action" #: ../browser/moderation.pt:85 @@ -214,85 +271,102 @@ msgid "heading_moderate_comments" msgstr "Erantzunak moderatu" #. Default: "If selected, anonymous users are able to post comments without loggin in. It is highly recommended to use a captcha solution to prevent spam if this setting is enabled." -#: ../interfaces.py:230 +#: ../interfaces.py:216 msgid "help_anonymous_comments" msgstr "Aukeratuta badago, erabiltzaile anonimoek erantzunak gehitu ditzakete login egin gabe. Berariaz gomendatzen dizugu Captcha kontrolen bat aktibatzea anonimoen erantzunak baimentzen badituzu." +#. Default: "If selected, anonymous user will have to give their email." +#: ../interfaces.py:341 +msgid "help_anonymous_email_enabled" +msgstr "Aukeratuta badago, erabiltzaile anonimoek eposta helbidea idatzi beharko dute" + #. Default: "Use this setting to enable or disable Captcha validation for comments. Install plone.formwidget.captcha, plone.formwidget.recaptcha, collective.akismet, or collective.z3cform.norobots if there are no options available." -#: ../interfaces.py:273 +#: ../interfaces.py:277 msgid "help_captcha" msgstr "Erabili aukera hau Captcha aktibatu edo desaktibatzeko. Instalatu plone.formwidget.captcha, plone.formwidget.recaptcha, collective.akismet edo collective.z3cform.norobots aukerarik ez baldin badago." #. Default: "Some discussion related settings are not located in the Discussion Control Panel.\nTo enable comments for a specific content type, go to the Types Control Panel of this type and choose \"Allow comments\".\nTo enable the moderation workflow for comments, go to the Types Control Panel, choose \"Comment\" and set workflow to \"Comment Review Workflow\"." -#: ../browser/controlpanel.py:34 +#: ../browser/controlpanel.py:36 msgid "help_discussion_settings_editform" msgstr "" "Erantzunei dagozkien ezarpen batzuk ez daude Eztabaiden Kontrol Panelean.\n" "Elementu-mota jakin bati erantzunak aktibatzeko, joan elementu-moten kontrol panelera, aukeratu elementua eta aktibatu 'Erantzunak Baimendu'.\n" "Erantzunen Moderazio Workflowa aktibatzeko, joan elementu-moten kontrol panelera, aukeratu 'Erantzuna' eta ezarri 'Erantzunen Moderazio Workflowa'." +#. Default: "If selected, supports editing and deletion of comments for users with the 'Edit comments' permission." +#: ../interfaces.py:249 +msgid "help_edit_comment_enabled" +msgstr "" + #. Default: "If selected, users are able to post comments on the site. Though, you have to enable comments for specific content types, folders or content objects before users will be able to post comments." -#: ../interfaces.py:218 +#: ../interfaces.py:202 msgid "help_globally_enabled" msgstr "Aukeratuta badago, atarian erantzunak gehitu daitezke. Edonola ere, elementu-mota bakoitzarentzat erantzunak baimendu beharko dituzu erabiltzaileak erantzunak ematen hasi aurretik." #. Default: "If selected, comments will enter a 'Pending' state in which they are invisible to the public. A user with the 'Review comments' permission ('Reviewer' or 'Manager') can approve comments to make them visible to the public. If you want to enable a custom comment workflow, you have to go to the types control panel." -#: ../interfaces.py:242 +#: ../interfaces.py:232 msgid "help_moderation_enabled" msgstr "Aukeratuta badago, erantzuna 'Zain' izeneko egoeran geldituko da eta ez da argitaratuko. 'Erantzunak errebisatu' baimena duten erabiltzaileek ('Zuzentzailea' edo 'Kudeatzailea') argitaratu ditzakete albisteak. Erantzunen worfklowa pertsonalizatu nahi baduzu, elementu-moten kontrol panelera joan zaitez." #. Default: "Address to which moderator notifications will be sent." -#: ../interfaces.py:310 +#: ../interfaces.py:318 msgid "help_moderator_email" msgstr "Moderatzailearen notifikazioak bidali behar diren helbidea." -#. Default: "If selected, the moderator is notified if a comment needs attention. The moderator email address can be found in the 'Mail settings' control panel (Site 'From' address)" -#: ../interfaces.py:298 +#. Default: "If selected, the moderator is notified if a comment needs attention. The moderator email address can be set below." +#: ../interfaces.py:304 +#, fuzzy msgid "help_moderator_notification_enabled" msgstr "Aukeratuta badago, moderatzaileari e-posta abisua helduko zaio erantzun bat gehitzean. Moderatzailearen e-posta atariaren E-postaren konfigurazioan dago (Atariaren 'Nork' helbidea)" #. Default: "If selected, an image of the user is shown next to the comment." -#: ../interfaces.py:288 +#: ../interfaces.py:293 msgid "help_show_commenter_image" msgstr "Aukeratuta badago, erantzuna eman duenaren irudi bat agertuko da testuaren ondoan." #. Default: "Use this setting to choose if the comment text should be transformed in any way. You can choose between 'Plain text' and 'Intelligent text'. 'Intelligent text' converts plain text into HTML where line breaks and indentation is preserved, and web and email addresses are made into clickable links." -#: ../interfaces.py:257 +#: ../interfaces.py:260 msgid "help_text_transform" msgstr "Erabili aukera hau erantzunaren testua nolabait eraldatu behar bada. 'Testu arrunta' edo 'Testu argia'ren artean aukeratu dezakezu. 'Testu argia'-k testu arrunta HTML bihurtzen du lerro saltoak eta espazioak mantenduz, eta web helbideak eta e-postak klikagarri eginez." #. Default: "If selected, users can choose to be notified of new comments by email." -#: ../interfaces.py:319 +#: ../interfaces.py:330 msgid "help_user_notification_enabled" msgstr "Aukeratuta badago, erabiltzaileek euren erantzunen erantzunak e-postaz jasotzea aktibatu dezakete." #. Default: "Anonymous" -#: ../comment.py:158 +#: ../browser/comments.pt:74 +#: ../comment.py:191 msgid "label_anonymous" msgstr "Anonimoak" #. Default: "Enable anonymous comments" -#: ../interfaces.py:228 +#: ../interfaces.py:214 msgid "label_anonymous_comments" msgstr "Aktibatu erabiltzaile anonimoen erantzunak" +#. Default: "Enable anonymous email field" +#: ../interfaces.py:339 +msgid "label_anonymous_email_enabled" +msgstr "Aktibatu anonimoentzat eposta eremua" + #. Default: "Apply" #: ../browser/moderation.pt:71 msgid "label_apply" msgstr "Aplikatu" #. Default: "Captcha" -#: ../interfaces.py:271 +#: ../interfaces.py:275 msgid "label_captcha" msgstr "Captcha" #. Default: "Comment" -#: ../interfaces.py:153 +#: ../interfaces.py:163 msgid "label_comment" msgstr "Erantzuna" #. Default: "Commenting has been disabled." -#: ../browser/comments.pt:130 +#: ../browser/comments.pt:148 msgid "label_commenting_disabled" msgstr "Ezin da erantzunik gehitu." @@ -301,23 +375,28 @@ msgstr "Ezin da erantzunik gehitu." msgid "label_delete" msgstr "Ezabatu" +#. Default: "Enable editing of comments" +#: ../interfaces.py:247 +msgid "label_edit_comment_enabled" +msgstr "" + #. Default: "Globally enable comments" -#: ../interfaces.py:216 +#: ../interfaces.py:200 msgid "label_globally_enabled" msgstr "Erantzunak globalki aktibatu" #. Default: "Enable comment moderation" -#: ../interfaces.py:240 +#: ../interfaces.py:228 msgid "label_moderation_enabled" msgstr "Erantzunen moderazioa aktibatu." #. Default: "Moderator Email Address" -#: ../interfaces.py:308 +#: ../interfaces.py:314 msgid "label_moderator_email" msgstr "Moderatzailearen e-posta helbidea" #. Default: "Enable moderator email notification" -#: ../interfaces.py:296 +#: ../interfaces.py:302 msgid "label_moderator_notification_enabled" msgstr "Aktibatu moderatzaileari e-postaz abisatzea" @@ -327,12 +406,12 @@ msgid "label_publish" msgstr "Argitaratu" #. Default: "says:" -#: ../browser/comments.pt:74 +#: ../browser/comments.pt:77 msgid "label_says" msgstr "dio:" #. Default: "Show commenter image" -#: ../interfaces.py:286 +#: ../interfaces.py:291 msgid "label_show_commenter_image" msgstr "Erantzuna eman duenaren irudia erakutsi" @@ -342,22 +421,22 @@ msgid "label_show_full_comment_text" msgstr "Erakutsi testu osoa" #. Default: "Subject" -#: ../interfaces.py:149 +#: ../interfaces.py:158 msgid "label_subject" msgstr "Gaia" #. Default: "Comment text transform" -#: ../interfaces.py:255 +#: ../interfaces.py:258 msgid "label_text_transform" msgstr "Erantzunari aplikatu beharreko transformazioa" #. Default: "Enable user email notification" -#: ../interfaces.py:317 +#: ../interfaces.py:326 msgid "label_user_notification_enabled" msgstr "Aktibatu erabiltzaileek e-postaz jakinaraztea" #. Default: "A comment on '${title}' has been posted here: ${link}\n\n---\n${text}\n---\n" -#: ../comment.py:50 +#: ../comment.py:59 msgid "mail_notification_message" msgstr "" "Erantzuna berria:Izenburua: ${title} \n" @@ -367,7 +446,7 @@ msgstr "" "--" #. Default: "A comment on '${title}' has been posted here: ${link}\n\n---\n${text}\n---\n\nApprove comment:\n${link_approve}\n\nDelete comment:\n${link_delete}\n" -#: ../comment.py:58 +#: ../comment.py:67 msgid "mail_notification_message_moderator" msgstr "" "Erantzun berria:\n" diff --git a/plone/app/discussion/locales/fi/LC_MESSAGES/plone.app.discussion.po b/plone/app/discussion/locales/fi/LC_MESSAGES/plone.app.discussion.po index 4433426..07e5c6c 100644 --- a/plone/app/discussion/locales/fi/LC_MESSAGES/plone.app.discussion.po +++ b/plone/app/discussion/locales/fi/LC_MESSAGES/plone.app.discussion.po @@ -16,103 +16,123 @@ msgstr "" "X-Poedit-Language: Finnish\n" "X-Poedit-Country: FINLAND\n" -#: ../comment.py:264 +#: ../comment.py:357 msgid "A comment has been posted." msgstr "" -#: ../interfaces.py:257 +#: ../interfaces.py:144 msgid "A comment id unique to this conversation" msgstr "Tämän keskustelun sisällä uniikki tunniste" -#: ../browser/comments.py:67 +#: ../browser/comments.py:72 msgid "Add a comment" msgstr "Lisää viesti" -#: ../browser/controlpanel.py:62 +#: ../browser/controlpanel.py:75 msgid "Anonymous Comments" msgstr "Viestit tunnistamattomilta käyttäjiltä" -#: ../interfaces.py:282 -msgid "Author name (for display)" -msgstr "Kirjoittajan nimi" - -#: ../browser/comments.py:248 -#: ../browser/controlpanel.py:80 +#: ../browser/comments.py:274 +#: ../browser/controlpanel.py:93 msgid "Cancel" msgstr "Peru" -#: ../browser/controlpanel.py:76 +#: ../browser/controlpanel.py:89 msgid "Changes saved" msgstr "" -#: ../browser/moderation.py:133 +#: ../browser/moderation.py:154 msgid "Comment approved." msgstr "Viesti hyväksytty." -#: ../browser/moderation.py:94 +#: ../contentrules.py:96 +msgid "Comment author email" +msgstr "" + +#: ../contentrules.py:85 +msgid "Comment author full name" +msgstr "" + +#: ../contentrules.py:74 +msgid "Comment author user name" +msgstr "" + +#: ../browser/moderation.py:108 msgid "Comment deleted." msgstr "Viesti poistettu." -#: ../browser/controlpanel.py:63 +#: ../contentrules.py:52 +msgid "Comment id" +msgstr "" + +#: ../contentrules.py:63 +msgid "Comment text" +msgstr "" + +#: ../browser/controlpanel.py:76 msgid "Commenter Image" msgstr "Kirjoittajan kuva" msgid "Commenting infrastructure for Plone" msgstr "Plone:n kommentointi- ja keskustelutoiminnot" -#: ../interfaces.py:252 +#: ../contentrules.py:51 +msgid "Comments" +msgstr "" + +#: ../interfaces.py:139 msgid "Conversation" msgstr "Keskustelu" -#: ../interfaces.py:283 +#: ../interfaces.py:177 msgid "Creation date" msgstr "Luotu" -#: ../interfaces.py:162 -msgid "Date of the most recent comment" -msgstr "Viimeisimmän viestin ajankohta" +#: ../interfaces.py:41 +msgid "Date of the most recent public comment" +msgstr "" #: ../vocabularies.py:44 msgid "Disabled" msgstr "Ei käytössä" -#: ../browser/controlpanel.py:32 +#: ../browser/controlpanel.py:35 msgid "Discussion settings" msgstr "Kommentointi- ja keskustelutoimintojen asetukset" -#: ../browser/controlpanel.py:82 +#: ../browser/controlpanel.py:95 msgid "Edit cancelled" msgstr "" -#: ../interfaces.py:269 +#: ../interfaces.py:156 msgid "Email" msgstr "Sähköposti" -#: ../browser/controlpanel.py:61 +#: ../browser/controlpanel.py:74 msgid "Enable Comments" msgstr "Salli Kommentointi & Keskustelut" -#: ../interfaces.py:260 +#: ../interfaces.py:147 msgid "Id of comment this comment is in reply to" msgstr "Sen viestin tunniste johon tämä viesti vastaa" -#: ../interfaces.py:274 +#: ../interfaces.py:161 msgid "MIME type" msgstr "MIME-tyyppi" -#: ../browser/controlpanel.py:65 +#: ../browser/controlpanel.py:78 msgid "Moderator Email Notification" msgstr "Ilmoitukset sähköpostitse tarkistajille" -#: ../interfaces.py:284 +#: ../interfaces.py:178 msgid "Modification date" msgstr "Muutettu" -#: ../interfaces.py:254 +#: ../interfaces.py:141 msgid "Name" msgstr "Nimi" -#: ../interfaces.py:278 +#: ../interfaces.py:170 msgid "Notify me of new comments via email." msgstr "" @@ -120,32 +140,44 @@ msgstr "" msgid "Plone Discussions" msgstr "Kommentointi & Keskustelut (Plone Discussions)" -#: ../interfaces.py:247 +#: ../interfaces.py:134 msgid "Portal type" msgstr "Sisältötyyppi" -#: ../browser/controlpanel.py:69 +#: ../browser/controlpanel.py:82 msgid "Save" msgstr "" -#: ../interfaces.py:167 +#: ../interfaces.py:46 msgid "The set of unique commentators (usernames)" msgstr "Kirjoittajat (käyttäjätunnukset)" -#: ../interfaces.py:156 -msgid "Total number of comments on this item" -msgstr "Viestien kokonaismäärä" +#: ../interfaces.py:51 +msgid "The set of unique commentators (usernames) of published_comments" +msgstr "" -#: ../browser/controlpanel.py:67 +#: ../interfaces.py:35 +msgid "Total number of public comments on this item" +msgstr "" + +#: ../comment.py:173 +msgid "Transform '%s' => '%s' not available." +msgstr "" + +#: ../browser/controlpanel.py:80 msgid "User Email Notification" msgstr "" -#: ../browser/comments.py:241 +#: ../interfaces.py:176 +msgid "Username of the commenter" +msgstr "" + +#: ../browser/comments.py:267 msgid "Your comment awaits moderator approval." msgstr "Viestisi on vastaanotettu. Se tulee näkyviin heti kun ylläpito on hyväksynyt sen julkaistavaksi." #. Default: "Comment" -#: ../browser/comments.py:123 +#: ../browser/comments.py:138 msgid "add_comment_button" msgstr "Lisää" @@ -159,26 +191,56 @@ msgstr "Poista valitut" msgid "bulkactions_publish" msgstr "Hyväksy valitut" +#. Default: "Cancel" +#: ../browser/comment.py:97 +msgid "cancel_form_button" +msgstr "" + #. Default: "You can add a comment by filling out the form below. Plain text formatting. Web and email addresses are transformed into clickable links." -#: ../browser/comments.py:52 +#: ../browser/comments.py:57 msgid "comment_description_intelligent_text" msgstr "" +#. Default: "You can add a comment by filling out the form below. Plain text formatting. You can use the Markdown syntax for links and images." +#: ../browser/comments.py:51 +msgid "comment_description_markdown" +msgstr "" + #. Default: "Comments are moderated." -#: ../browser/comments.py:58 +#: ../browser/comments.py:63 msgid "comment_description_moderation_enabled" msgstr "" #. Default: "You can add a comment by filling out the form below. Plain text formatting." -#: ../browser/comments.py:47 +#: ../browser/comments.py:46 msgid "comment_description_plain_text" msgstr "" -#. Default: "${creator} on ${content}" -#: ../comment.py:46 +#. Default: "Edit comment cancelled" +#: ../browser/comment.py:101 +msgid "comment_edit_cancel_notification" +msgstr "" + +#. Default: "Comment was edited" +#: ../browser/comment.py:91 +msgid "comment_edit_notification" +msgstr "" + +#. Default: "${author_name} on ${content}" +#: ../comment.py:55 msgid "comment_title" msgstr "" +#. Default: "Edit comment" +#: ../browser/comment.py:70 +msgid "edit_comment_form_button" +msgstr "" + +#. Default: "Edit comment" +#: ../browser/comment.py:54 +msgid "edit_comment_form_title" +msgstr "" + #. Default: "Action" #: ../browser/moderation.pt:85 msgid "heading_action" @@ -210,85 +272,101 @@ msgid "heading_moderate_comments" msgstr "Viestien esitarkistus" #. Default: "If selected, anonymous users are able to post comments without loggin in. It is highly recommended to use a captcha solution to prevent spam if this setting is enabled." -#: ../interfaces.py:38 +#: ../interfaces.py:216 msgid "help_anonymous_comments" msgstr "Jos viestit tunnistamattomilta käyttäjiltä sallitaan, on erittäin suositeltavaa käyttää automaattisten roskapostittimien estintä (engl. captcha)." +#. Default: "If selected, anonymous user will have to give their email." +#: ../interfaces.py:341 +msgid "help_anonymous_email_enabled" +msgstr "" + #. Default: "Use this setting to enable or disable Captcha validation for comments. Install plone.formwidget.captcha, plone.formwidget.recaptcha, collective.akismet, or collective.z3cform.norobots if there are no options available." -#: ../interfaces.py:82 +#: ../interfaces.py:277 #, fuzzy msgid "help_captcha" msgstr "Roskaviestiautomaattien estimen (engl. captcha) käyttö. Jos mitään estintä ei ole valittavissa, järjestelmään ei ole asennettu mitään estintä. Soveltuvia estimiä ovat plone.formwidget.captcha ('Captcha') ja plone.formwidget.recaptcha ('ReCapthca')." #. Default: "Some discussion related settings are not located in the Discussion Control Panel.\nTo enable comments for a specific content type, go to the Types Control Panel of this type and choose \"Allow comments\".\nTo enable the moderation workflow for comments, go to the Types Control Panel, choose \"Comment\" and set workflow to \"Comment Review Workflow\"." -#: ../browser/controlpanel.py:33 +#: ../browser/controlpanel.py:36 msgid "help_discussion_settings_editform" msgstr "Tarkista myös keskusteluun / kommentointiin liittyvät asetukset sisältötyyppien hallintapaneelissa ('Sisältötyypit')." +#. Default: "If selected, supports editing and deletion of comments for users with the 'Edit comments' permission." +#: ../interfaces.py:249 +msgid "help_edit_comment_enabled" +msgstr "" + #. Default: "If selected, users are able to post comments on the site. Though, you have to enable comments for specific content types, folders or content objects before users will be able to post comments." -#: ../interfaces.py:26 +#: ../interfaces.py:202 #, fuzzy msgid "help_globally_enabled" msgstr "Huomaa, että keskustelu/kommentointi pitää myös lisäksi erikseen asettaa päälle halutuille sisältötyypeille ja/tai yksittäisille sisällöille." #. Default: "If selected, comments will enter a 'Pending' state in which they are invisible to the public. A user with the 'Review comments' permission ('Reviewer' or 'Manager') can approve comments to make them visible to the public. If you want to enable a custom comment workflow, you have to go to the types control panel." -#: ../interfaces.py:50 +#: ../interfaces.py:232 msgid "help_moderation_enabled" msgstr "" #. Default: "Address to which moderator notifications will be sent." -#: ../interfaces.py:118 +#: ../interfaces.py:318 msgid "help_moderator_email" msgstr "" -#. Default: "If selected, the moderator is notified if a comment needs attention. The moderator email address can be found in the 'Mail settings' control panel (Site 'From' address)" -#: ../interfaces.py:107 +#. Default: "If selected, the moderator is notified if a comment needs attention. The moderator email address can be set below." +#: ../interfaces.py:304 #, fuzzy msgid "help_moderator_notification_enabled" msgstr "Tarkistajana toimivalle ylläpitäjälle ilmoitetaan toimenpiteitä edellyttävistä viesteistä." #. Default: "If selected, an image of the user is shown next to the comment." -#: ../interfaces.py:97 +#: ../interfaces.py:293 msgid "help_show_commenter_image" msgstr "Näytetäänkö kirjoittajan kuva viestin yhteydessä." #. Default: "Use this setting to choose if the comment text should be transformed in any way. You can choose between 'Plain text' and 'Intelligent text'. 'Intelligent text' converts plain text into HTML where line breaks and indentation is preserved, and web and email addresses are made into clickable links." -#: ../interfaces.py:66 +#: ../interfaces.py:260 msgid "help_text_transform" msgstr "" #. Default: "If selected, users can choose to be notified of new comments by email." -#: ../interfaces.py:127 +#: ../interfaces.py:330 msgid "help_user_notification_enabled" msgstr "" #. Default: "Anonymous" -#: ../comment.py:156 +#: ../browser/comments.pt:74 +#: ../comment.py:191 msgid "label_anonymous" msgstr "" #. Default: "Enable anonymous comments" -#: ../interfaces.py:36 +#: ../interfaces.py:214 msgid "label_anonymous_comments" msgstr "Salli viestit tunnistamattomilta käyttäjiltä" +#. Default: "Enable anonymous email field" +#: ../interfaces.py:339 +msgid "label_anonymous_email_enabled" +msgstr "" + #. Default: "Apply" #: ../browser/moderation.pt:71 msgid "label_apply" msgstr "toteuta" #. Default: "Captcha" -#: ../interfaces.py:80 +#: ../interfaces.py:275 msgid "label_captcha" msgstr "Roskaviestien estin" #. Default: "Comment" -#: ../interfaces.py:275 +#: ../interfaces.py:163 msgid "label_comment" msgstr "Viesti" #. Default: "Commenting has been disabled." -#: ../browser/comments.pt:130 +#: ../browser/comments.pt:148 msgid "label_commenting_disabled" msgstr "" @@ -297,23 +375,28 @@ msgstr "" msgid "label_delete" msgstr "Poista" +#. Default: "Enable editing of comments" +#: ../interfaces.py:247 +msgid "label_edit_comment_enabled" +msgstr "" + #. Default: "Globally enable comments" -#: ../interfaces.py:24 +#: ../interfaces.py:200 msgid "label_globally_enabled" msgstr "Keskustelu/kommentointitoiminnot käytössä" #. Default: "Enable comment moderation" -#: ../interfaces.py:48 +#: ../interfaces.py:228 msgid "label_moderation_enabled" msgstr "" #. Default: "Moderator Email Address" -#: ../interfaces.py:117 +#: ../interfaces.py:314 msgid "label_moderator_email" msgstr "" #. Default: "Enable moderator email notification" -#: ../interfaces.py:105 +#: ../interfaces.py:302 msgid "label_moderator_notification_enabled" msgstr "Ilmoita viesteistä sähköpostitse ylläpitäjälle" @@ -323,12 +406,12 @@ msgid "label_publish" msgstr "Hyväksy" #. Default: "says:" -#: ../browser/comments.pt:74 +#: ../browser/comments.pt:77 msgid "label_says" msgstr "" #. Default: "Show commenter image" -#: ../interfaces.py:95 +#: ../interfaces.py:291 msgid "label_show_commenter_image" msgstr "Näytä kirjoittajan kuva" @@ -338,27 +421,27 @@ msgid "label_show_full_comment_text" msgstr "Näytä kokonaan" #. Default: "Subject" -#: ../interfaces.py:271 +#: ../interfaces.py:158 msgid "label_subject" msgstr "Aihe" #. Default: "Comment text transform" -#: ../interfaces.py:64 +#: ../interfaces.py:258 msgid "label_text_transform" msgstr "" #. Default: "Enable user email notification" -#: ../interfaces.py:125 +#: ../interfaces.py:326 msgid "label_user_notification_enabled" msgstr "" #. Default: "A comment on '${title}' has been posted here: ${link}\n\n---\n${text}\n---\n" -#: ../comment.py:50 +#: ../comment.py:59 msgid "mail_notification_message" msgstr "" #. Default: "A comment on '${title}' has been posted here: ${link}\n\n---\n${text}\n---\n\nApprove comment:\n${link_approve}\n\nDelete comment:\n${link_delete}\n" -#: ../comment.py:58 +#: ../comment.py:67 msgid "mail_notification_message_moderator" msgstr "" diff --git a/plone/app/discussion/locales/fr/LC_MESSAGES/plone.app.discussion.po b/plone/app/discussion/locales/fr/LC_MESSAGES/plone.app.discussion.po index c38af6a..727f7ad 100644 --- a/plone/app/discussion/locales/fr/LC_MESSAGES/plone.app.discussion.po +++ b/plone/app/discussion/locales/fr/LC_MESSAGES/plone.app.discussion.po @@ -14,103 +14,123 @@ msgstr "" "Preferred-Encodings: utf-8 latin1\n" "Domain: plone.app.discussion\n" -#: ../comment.py:264 +#: ../comment.py:357 msgid "A comment has been posted." msgstr "Un commentaire a été posté." -#: ../interfaces.py:257 +#: ../interfaces.py:144 msgid "A comment id unique to this conversation" msgstr "Un id de commentaire unique pour cette conversation" -#: ../browser/comments.py:67 +#: ../browser/comments.py:72 msgid "Add a comment" msgstr "Ajouter un commentaire" -#: ../browser/controlpanel.py:62 +#: ../browser/controlpanel.py:75 msgid "Anonymous Comments" msgstr "Commentaires anonymes" -#: ../interfaces.py:282 -msgid "Author name (for display)" -msgstr "Nom de l'auteur (pour l'affichage)" - -#: ../browser/comments.py:248 -#: ../browser/controlpanel.py:80 +#: ../browser/comments.py:274 +#: ../browser/controlpanel.py:93 msgid "Cancel" msgstr "Annuler" -#: ../browser/controlpanel.py:76 +#: ../browser/controlpanel.py:89 msgid "Changes saved" msgstr "Modifications enregistrées" -#: ../browser/moderation.py:133 +#: ../browser/moderation.py:154 msgid "Comment approved." msgstr "Commentaire approuvé." -#: ../browser/moderation.py:94 +#: ../contentrules.py:96 +msgid "Comment author email" +msgstr "" + +#: ../contentrules.py:85 +msgid "Comment author full name" +msgstr "" + +#: ../contentrules.py:74 +msgid "Comment author user name" +msgstr "" + +#: ../browser/moderation.py:108 msgid "Comment deleted." msgstr "Commentaire supprimé." -#: ../browser/controlpanel.py:63 +#: ../contentrules.py:52 +msgid "Comment id" +msgstr "" + +#: ../contentrules.py:63 +msgid "Comment text" +msgstr "" + +#: ../browser/controlpanel.py:76 msgid "Commenter Image" msgstr "Portrait de l'utilisateur" msgid "Commenting infrastructure for Plone" msgstr "Infrastructure pour déposer des commentaires." -#: ../interfaces.py:252 +#: ../contentrules.py:51 +msgid "Comments" +msgstr "" + +#: ../interfaces.py:139 msgid "Conversation" msgstr "Conversation" -#: ../interfaces.py:283 +#: ../interfaces.py:177 msgid "Creation date" msgstr "Date de création" -#: ../interfaces.py:162 -msgid "Date of the most recent comment" -msgstr "Date du commentaire le plus récent" +#: ../interfaces.py:41 +msgid "Date of the most recent public comment" +msgstr "Date du dernier commentaire public" #: ../vocabularies.py:44 msgid "Disabled" msgstr "Désactivé" -#: ../browser/controlpanel.py:32 +#: ../browser/controlpanel.py:35 msgid "Discussion settings" msgstr "Paramètres des discussions" -#: ../browser/controlpanel.py:82 +#: ../browser/controlpanel.py:95 msgid "Edit cancelled" msgstr "Édition annulée" -#: ../interfaces.py:269 +#: ../interfaces.py:156 msgid "Email" msgstr "Adresse courriel" -#: ../browser/controlpanel.py:61 +#: ../browser/controlpanel.py:74 msgid "Enable Comments" msgstr "Activation des commentaires" -#: ../interfaces.py:260 +#: ../interfaces.py:147 msgid "Id of comment this comment is in reply to" msgstr "Id du commentaire dont ce commentaire répond" -#: ../interfaces.py:274 +#: ../interfaces.py:161 msgid "MIME type" msgstr "Type MIME" -#: ../browser/controlpanel.py:65 +#: ../browser/controlpanel.py:78 msgid "Moderator Email Notification" msgstr "Notification du modérateur par courriel" -#: ../interfaces.py:284 +#: ../interfaces.py:178 msgid "Modification date" msgstr "Date de modification" -#: ../interfaces.py:254 +#: ../interfaces.py:141 msgid "Name" msgstr "Nom" -#: ../interfaces.py:278 +#: ../interfaces.py:170 msgid "Notify me of new comments via email." msgstr "M'avertir des nouveaux commentaires par courriel." @@ -118,32 +138,44 @@ msgstr "M'avertir des nouveaux commentaires par courriel." msgid "Plone Discussions" msgstr "Plone Discussions" -#: ../interfaces.py:247 +#: ../interfaces.py:134 msgid "Portal type" msgstr "Portal type" -#: ../browser/controlpanel.py:69 +#: ../browser/controlpanel.py:82 msgid "Save" msgstr "Enregistrer" -#: ../interfaces.py:167 +#: ../interfaces.py:46 msgid "The set of unique commentators (usernames)" msgstr "L'ensemble des commentateurs uniques (identifiants)" -#: ../interfaces.py:156 -msgid "Total number of comments on this item" -msgstr "Nombre total de commentaires pour cet élément" +#: ../interfaces.py:51 +msgid "The set of unique commentators (usernames) of published_comments" +msgstr "L'ensemble des commentateurs uniques des commentaires publiés (identifiants)" -#: ../browser/controlpanel.py:67 +#: ../interfaces.py:35 +msgid "Total number of public comments on this item" +msgstr "Nombre total de commentaires publics sur cet élément" + +#: ../comment.py:173 +msgid "Transform '%s' => '%s' not available." +msgstr "" + +#: ../browser/controlpanel.py:80 msgid "User Email Notification" msgstr "Notification des utilisateurs par courriel" -#: ../browser/comments.py:241 +#: ../interfaces.py:176 +msgid "Username of the commenter" +msgstr "Identifiant de l'auteur du commentaire" + +#: ../browser/comments.py:267 msgid "Your comment awaits moderator approval." msgstr "Votre commentaire attend d'être modéré." #. Default: "Comment" -#: ../browser/comments.py:123 +#: ../browser/comments.py:138 msgid "add_comment_button" msgstr "Commenter" @@ -157,25 +189,55 @@ msgstr "Supprimer" msgid "bulkactions_publish" msgstr "Approuver" +#. Default: "Cancel" +#: ../browser/comment.py:97 +msgid "cancel_form_button" +msgstr "" + #. Default: "You can add a comment by filling out the form below. Plain text formatting. Web and email addresses are transformed into clickable links." -#: ../browser/comments.py:52 +#: ../browser/comments.py:57 msgid "comment_description_intelligent_text" msgstr "Vous pouvez ajouter un commentaire en complétant le formulaire ci-dessous. Le format doit être plain text. Les url et les courriels sont transformés en liens cliquables." +#. Default: "You can add a comment by filling out the form below. Plain text formatting. You can use the Markdown syntax for links and images." +#: ../browser/comments.py:51 +msgid "comment_description_markdown" +msgstr "Vous pouvez ajouter un commentaire en complétant le formulaire ci-dessous. Format plein texte. Vous pouvez utiliser la syntaxe Markdown pour les liens et images." + #. Default: "Comments are moderated." -#: ../browser/comments.py:58 +#: ../browser/comments.py:63 msgid "comment_description_moderation_enabled" msgstr "Les commentaires sont modérés." #. Default: "You can add a comment by filling out the form below. Plain text formatting." -#: ../browser/comments.py:47 +#: ../browser/comments.py:46 msgid "comment_description_plain_text" msgstr "Vous pouvez ajouter un commentaire en complétant le formulaire ci-dessous. Le format doit être plain text." -#. Default: "${creator} on ${content}" -#: ../comment.py:46 +#. Default: "Edit comment cancelled" +#: ../browser/comment.py:101 +msgid "comment_edit_cancel_notification" +msgstr "" + +#. Default: "Comment was edited" +#: ../browser/comment.py:91 +msgid "comment_edit_notification" +msgstr "" + +#. Default: "${author_name} on ${content}" +#: ../comment.py:55 msgid "comment_title" -msgstr "${creator} sur ${content}" +msgstr "${author_name} sur ${content}" + +#. Default: "Edit comment" +#: ../browser/comment.py:70 +msgid "edit_comment_form_button" +msgstr "" + +#. Default: "Edit comment" +#: ../browser/comment.py:54 +msgid "edit_comment_form_title" +msgstr "" #. Default: "Action" #: ../browser/moderation.pt:85 @@ -208,84 +270,101 @@ msgid "heading_moderate_comments" msgstr "Modération des commentaires" #. Default: "If selected, anonymous users are able to post comments without loggin in. It is highly recommended to use a captcha solution to prevent spam if this setting is enabled." -#: ../interfaces.py:38 +#: ../interfaces.py:216 msgid "help_anonymous_comments" msgstr "Si activé, les utilisateurs anonymes peuvent poster des commentaires sans se connecter. Il est fortement recommandé d'utiliser un captcha pour prévenir du spam si cette option est activée." +#. Default: "If selected, anonymous user will have to give their email." +#: ../interfaces.py:341 +msgid "help_anonymous_email_enabled" +msgstr "Si cette case est cochée, les utilisateurs anonymes devront donner leur email." + #. Default: "Use this setting to enable or disable Captcha validation for comments. Install plone.formwidget.captcha, plone.formwidget.recaptcha, collective.akismet, or collective.z3cform.norobots if there are no options available." -#: ../interfaces.py:82 +#: ../interfaces.py:277 msgid "help_captcha" msgstr "Utilisez cette option pour activer la validation par captcha pour les commentaires. Installez plone.formwidget.captcha, plone.formwidget.recaptcha, collective.akismet ou collective.z3cform.norobots s'il n'y a aucune option de disponible." #. Default: "Some discussion related settings are not located in the Discussion Control Panel.\nTo enable comments for a specific content type, go to the Types Control Panel of this type and choose \"Allow comments\".\nTo enable the moderation workflow for comments, go to the Types Control Panel, choose \"Comment\" and set workflow to \"Comment Review Workflow\"." -#: ../browser/controlpanel.py:33 +#: ../browser/controlpanel.py:36 msgid "help_discussion_settings_editform" msgstr "" "Certaines options liées aux discussions ne sont pas dans \"Paramètres des discussions\".\n" "Pour activer les commentaires pour un type de contenu spécifique, allez dans \"Paramètres des types\", choisissez \"Commentaire\" et sélectionnez le workflow \"Workflow de modération des commentaires\"." +#. Default: "If selected, supports editing and deletion of comments for users with the 'Edit comments' permission." +#: ../interfaces.py:249 +msgid "help_edit_comment_enabled" +msgstr "" + #. Default: "If selected, users are able to post comments on the site. Though, you have to enable comments for specific content types, folders or content objects before users will be able to post comments." -#: ../interfaces.py:26 +#: ../interfaces.py:202 msgid "help_globally_enabled" msgstr "Si vous cochez cette case, les utilisateurs pourront poster des commentaires sur ce site. Vous devez néanmoins activer les commentaires pour des types de contenu spécifiques, dossiers, ou éléments avant que les utilisateurs puissent poster des commentaires." #. Default: "If selected, comments will enter a 'Pending' state in which they are invisible to the public. A user with the 'Review comments' permission ('Reviewer' or 'Manager') can approve comments to make them visible to the public. If you want to enable a custom comment workflow, you have to go to the types control panel." -#: ../interfaces.py:50 +#: ../interfaces.py:232 msgid "help_moderation_enabled" msgstr "Si cette case est cochée, les commentaires ajoutés seront mis 'en attente' et seront invisibles pour les visiteurs. Un utilisateur ayant la permission 'Review comments' (Modérateur ou Administrateur) peut approuver les commentaires pour les rendre visibles. Vous pouvez choisir un workflow spécifique pour les commentaires depuis le menu de configuration des types de contenu." #. Default: "Address to which moderator notifications will be sent." -#: ../interfaces.py:118 +#: ../interfaces.py:318 msgid "help_moderator_email" msgstr "Addresse à laquelle les notifications de modération seront envoyées." -#. Default: "If selected, the moderator is notified if a comment needs attention. The moderator email address can be found in the 'Mail settings' control panel (Site 'From' address)" -#: ../interfaces.py:107 +#. Default: "If selected, the moderator is notified if a comment needs attention. The moderator email address can be set below." +#: ../interfaces.py:304 +#, fuzzy msgid "help_moderator_notification_enabled" msgstr "Si activé, le modérateur est notifié si un commentaire requiert une attention particulière. Le courriel du modérateur est défini sur la page 'Envoi de courriels' de la configuration du site (Adresse d'expéditeur des courriels)." #. Default: "If selected, an image of the user is shown next to the comment." -#: ../interfaces.py:97 +#: ../interfaces.py:293 msgid "help_show_commenter_image" msgstr "Si activé, le portrait de l'utilisateur apparait à côté du commentaire." #. Default: "Use this setting to choose if the comment text should be transformed in any way. You can choose between 'Plain text' and 'Intelligent text'. 'Intelligent text' converts plain text into HTML where line breaks and indentation is preserved, and web and email addresses are made into clickable links." -#: ../interfaces.py:66 +#: ../interfaces.py:260 msgid "help_text_transform" msgstr "Choisissez si le texte des commentaires doit être éventuellement transformé. Vous pouvez choisir entre 'Plain text' et 'Intelligent text'. Ce dernier convertit le texte en HTML, en préservant notamment les retours chariots et l'indentation, et en transformant les url et les addresses courriel en liens cliquables." #. Default: "If selected, users can choose to be notified of new comments by email." -#: ../interfaces.py:127 +#: ../interfaces.py:330 msgid "help_user_notification_enabled" msgstr "Si vous cochez cette case, les utilisateurs pourront choisir d'être avertis par courriel des nouveaux commentaires." #. Default: "Anonymous" -#: ../comment.py:156 +#: ../browser/comments.pt:74 +#: ../comment.py:191 msgid "label_anonymous" msgstr "Anonyme" #. Default: "Enable anonymous comments" -#: ../interfaces.py:36 +#: ../interfaces.py:214 msgid "label_anonymous_comments" msgstr "Activer les commentaires anonymes" +#. Default: "Enable anonymous email field" +#: ../interfaces.py:339 +msgid "label_anonymous_email_enabled" +msgstr "Activer le champ email pour les anonymes" + #. Default: "Apply" #: ../browser/moderation.pt:71 msgid "label_apply" msgstr "Appliquer" #. Default: "Captcha" -#: ../interfaces.py:80 +#: ../interfaces.py:275 msgid "label_captcha" msgstr "Captcha" #. Default: "Comment" -#: ../interfaces.py:275 +#: ../interfaces.py:163 msgid "label_comment" msgstr "Commentaire" #. Default: "Commenting has been disabled." -#: ../browser/comments.pt:130 +#: ../browser/comments.pt:148 msgid "label_commenting_disabled" msgstr "Les commentaires ont été désactivés." @@ -294,23 +373,28 @@ msgstr "Les commentaires ont été désactivés." msgid "label_delete" msgstr "Supprimer" +#. Default: "Enable editing of comments" +#: ../interfaces.py:247 +msgid "label_edit_comment_enabled" +msgstr "" + #. Default: "Globally enable comments" -#: ../interfaces.py:24 +#: ../interfaces.py:200 msgid "label_globally_enabled" msgstr "Activer globalement les commentaires" #. Default: "Enable comment moderation" -#: ../interfaces.py:48 +#: ../interfaces.py:228 msgid "label_moderation_enabled" msgstr "Activer la modération des commentaires" #. Default: "Moderator Email Address" -#: ../interfaces.py:117 +#: ../interfaces.py:314 msgid "label_moderator_email" msgstr "Addresse courriel du modérateur" #. Default: "Enable moderator email notification" -#: ../interfaces.py:105 +#: ../interfaces.py:302 msgid "label_moderator_notification_enabled" msgstr "Activer la notification du modérateur par courriel" @@ -320,12 +404,12 @@ msgid "label_publish" msgstr "Approuver" #. Default: "says:" -#: ../browser/comments.pt:74 +#: ../browser/comments.pt:77 msgid "label_says" msgstr "a écrit :" #. Default: "Show commenter image" -#: ../interfaces.py:95 +#: ../interfaces.py:291 msgid "label_show_commenter_image" msgstr "Afficher le portrait de l'utilisateur" @@ -335,30 +419,45 @@ msgid "label_show_full_comment_text" msgstr "afficher le texte complet du commentaire" #. Default: "Subject" -#: ../interfaces.py:271 +#: ../interfaces.py:158 msgid "label_subject" msgstr "Sujet" #. Default: "Comment text transform" -#: ../interfaces.py:64 +#: ../interfaces.py:258 msgid "label_text_transform" msgstr "Transformation du texte du commentaire" #. Default: "Enable user email notification" -#: ../interfaces.py:125 +#: ../interfaces.py:326 msgid "label_user_notification_enabled" msgstr "Activer la notification par courriel des utilisateurs" #. Default: "A comment on '${title}' has been posted here: ${link}\n\n---\n${text}\n---\n" -#: ../comment.py:50 -#, fuzzy +#: ../comment.py:59 msgid "mail_notification_message" -msgstr "Un commentaire a été ajouté sur '${title}' à cette addresse : ${link}" +msgstr "" +"Un commentaire a été ajouté sur '${title}' à cette addresse : ${link}\n" +"\n" +"---\n" +"${text}\n" +"---\n" #. Default: "A comment on '${title}' has been posted here: ${link}\n\n---\n${text}\n---\n\nApprove comment:\n${link_approve}\n\nDelete comment:\n${link_delete}\n" -#: ../comment.py:58 +#: ../comment.py:67 msgid "mail_notification_message_moderator" msgstr "" +"Un commentaire a été ajouté sur '${title}' à cette addresse : ${link}\n" +"\n" +"---\n" +"${text}\n" +"---\n" +"\n" +"Approver le commentaire :\n" +"${link_approve}\n" +"\n" +"Supprimer le commentaire :\n" +"${link_delete}\n" #. Default: "enable the 'Comment Review Workflow' for the Comment content type" #: ../browser/moderation.pt:33 diff --git a/plone/app/discussion/locales/it/LC_MESSAGES/plone.app.discussion.po b/plone/app/discussion/locales/it/LC_MESSAGES/plone.app.discussion.po index 525237d..354a7e0 100644 --- a/plone/app/discussion/locales/it/LC_MESSAGES/plone.app.discussion.po +++ b/plone/app/discussion/locales/it/LC_MESSAGES/plone.app.discussion.po @@ -1,12 +1,12 @@ -# Translation of plone.app.discussion.pot to Italian +# Translation of plone.app.discussion.pot to Italian # Luca Fabbri , 2010 -# +# msgid "" msgstr "" "Project-Id-Version: plone.app.discussion\n" -"POT-Creation-Date: 2011-04-22 17:12+0000\n" +"POT-Creation-Date: YEAR-MO-DA HO:MI +ZONE\n" "PO-Revision-Date: 2011-05-13 18:10+0100\n" -"Last-Translator: Giorgio Borelli \n" +"Last-Translator: Andrea Cecchi \n" "Language-Team: Plone i18n \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" @@ -18,103 +18,123 @@ msgstr "" "Domain: plone.app.discussion\n" "X-Is-Fallback-For: it-it it-ch it-sm it-hr it-si\n" -#: ../comment.py:264 +#: ../comment.py:357 msgid "A comment has been posted." msgstr "Un commento è stato inserito." -#: ../interfaces.py:257 +#: ../interfaces.py:144 msgid "A comment id unique to this conversation" msgstr "Id univoco del commento per questa conversazione" -#: ../browser/comments.py:67 +#: ../browser/comments.py:72 msgid "Add a comment" msgstr "Aggiungi un commento" -#: ../browser/controlpanel.py:62 +#: ../browser/controlpanel.py:75 msgid "Anonymous Comments" msgstr "Commenti Anonimi" -#: ../interfaces.py:282 -msgid "Author name (for display)" -msgstr "Nome autore (per visualizzazione)" - -#: ../browser/comments.py:248 -#: ../browser/controlpanel.py:80 +#: ../browser/comments.py:274 +#: ../browser/controlpanel.py:93 msgid "Cancel" msgstr "Annulla" -#: ../browser/controlpanel.py:76 +#: ../browser/controlpanel.py:89 msgid "Changes saved" msgstr "Modifiche salvate" -#: ../browser/moderation.py:133 +#: ../browser/moderation.py:154 msgid "Comment approved." msgstr "Commento approvato." -#: ../browser/moderation.py:94 +#: ../contentrules.py:96 +msgid "Comment author email" +msgstr "Email dell'autore del commento" + +#: ../contentrules.py:85 +msgid "Comment author full name" +msgstr "Nome dell'autore del commento" + +#: ../contentrules.py:74 +msgid "Comment author user name" +msgstr "Username dell'autore del commento" + +#: ../browser/moderation.py:108 msgid "Comment deleted." msgstr "Commento eliminato." -#: ../browser/controlpanel.py:63 +#: ../contentrules.py:52 +msgid "Comment id" +msgstr "Id commento" + +#: ../contentrules.py:63 +msgid "Comment text" +msgstr "Testo commento" + +#: ../browser/controlpanel.py:76 msgid "Commenter Image" msgstr "Immagine Commentatore" msgid "Commenting infrastructure for Plone" msgstr "Infrastruttura dei commenti per Plone" -#: ../interfaces.py:252 +#: ../contentrules.py:51 +msgid "Comments" +msgstr "Commenti" + +#: ../interfaces.py:139 msgid "Conversation" msgstr "Conversazione" -#: ../interfaces.py:283 +#: ../interfaces.py:177 msgid "Creation date" msgstr "Data di creazione" -#: ../interfaces.py:162 -msgid "Date of the most recent comment" -msgstr "Data del commento più recente" +#: ../interfaces.py:41 +msgid "Date of the most recent public comment" +msgstr "Data del commento pubblico più recente" #: ../vocabularies.py:44 msgid "Disabled" msgstr "Disabilitato" -#: ../browser/controlpanel.py:32 +#: ../browser/controlpanel.py:35 msgid "Discussion settings" msgstr "Impostazioni dei commenti" -#: ../browser/controlpanel.py:82 +#: ../browser/controlpanel.py:95 msgid "Edit cancelled" msgstr "Modifiche annullate" -#: ../interfaces.py:269 +#: ../interfaces.py:156 msgid "Email" msgstr "E-mail" -#: ../browser/controlpanel.py:61 +#: ../browser/controlpanel.py:74 msgid "Enable Comments" msgstr "Abilita commenti" -#: ../interfaces.py:260 +#: ../interfaces.py:147 msgid "Id of comment this comment is in reply to" msgstr "Id del commento a cui si risponde" -#: ../interfaces.py:274 +#: ../interfaces.py:161 msgid "MIME type" msgstr "MIME type" -#: ../browser/controlpanel.py:65 +#: ../browser/controlpanel.py:78 msgid "Moderator Email Notification" msgstr "Notifiche e-mail" -#: ../interfaces.py:284 +#: ../interfaces.py:178 msgid "Modification date" msgstr "Data di modifica" -#: ../interfaces.py:254 +#: ../interfaces.py:141 msgid "Name" msgstr "Nome" -#: ../interfaces.py:278 +#: ../interfaces.py:170 msgid "Notify me of new comments via email." msgstr "Notificami nuovi commenti via e-mail" @@ -122,32 +142,44 @@ msgstr "Notificami nuovi commenti via e-mail" msgid "Plone Discussions" msgstr "Supporto ai commenti Plone" -#: ../interfaces.py:247 +#: ../interfaces.py:134 msgid "Portal type" msgstr "Tipo di contenuto" -#: ../browser/controlpanel.py:69 +#: ../browser/controlpanel.py:82 msgid "Save" msgstr "Salva" -#: ../interfaces.py:167 +#: ../interfaces.py:46 msgid "The set of unique commentators (usernames)" msgstr "L'insieme unico dei commentatori (username)" -#: ../interfaces.py:156 -msgid "Total number of comments on this item" -msgstr "Totale dei commenti per questo contenuto" +#: ../interfaces.py:51 +msgid "The set of unique commentators (usernames) of published_comments" +msgstr "La lista di commentatori unici (username) dei commenti pubblicati" -#: ../browser/controlpanel.py:67 +#: ../interfaces.py:35 +msgid "Total number of public comments on this item" +msgstr "Numero totale di commenti pubblicati per questo contenuto" + +#: ../comment.py:173 +msgid "Transform '%s' => '%s' not available." +msgstr "Trasform '%s' => '%s' non disponibile." + +#: ../browser/controlpanel.py:80 msgid "User Email Notification" msgstr "Notifiche utenti via e-mail" -#: ../browser/comments.py:241 +#: ../interfaces.py:176 +msgid "Username of the commenter" +msgstr "Username dell'autore del commento" + +#: ../browser/comments.py:267 msgid "Your comment awaits moderator approval." msgstr "Il tuo commento è in attesa di approvazione" #. Default: "Comment" -#: ../browser/comments.py:123 +#: ../browser/comments.py:138 msgid "add_comment_button" msgstr "Commenta" @@ -161,25 +193,55 @@ msgstr "Elimina" msgid "bulkactions_publish" msgstr "Approva" -#. Default: "You can add a comment by filling out the form below. Web and email addresses are transformed into clickable links." -#: ../browser/comments.py:52 +#. Default: "Cancel" +#: ../browser/comment.py:97 +msgid "cancel_form_button" +msgstr "Annulla" + +#. Default: "You can add a comment by filling out the form below. Plain text formatting. Web and email addresses are transformed into clickable links." +#: ../browser/comments.py:57 msgid "comment_description_intelligent_text" msgstr "Puoi aggiungere un commento compilando la form qui sotto. Utilizza testo semplice. Indirizzi web ed email saranno trasformati in collegamenti cliccabili." +#. Default: "You can add a comment by filling out the form below. Plain text formatting. You can use the Markdown syntax for links and images." +#: ../browser/comments.py:51 +msgid "comment_description_markdown" +msgstr "Puoi aggiungere un commento compilando la form qui sotto. Utilizza testo semplice. Puoi utilizzare la sintassi Markdown per link ed immagini." + #. Default: "Comments are moderated." -#: ../browser/comments.py:58 +#: ../browser/comments.py:63 msgid "comment_description_moderation_enabled" msgstr "I commenti vengono moderati." -#. Default: "You can add a comment by filling out the form below." -#: ../browser/comments.py:47 +#. Default: "You can add a comment by filling out the form below. Plain text formatting." +#: ../browser/comments.py:46 msgid "comment_description_plain_text" msgstr "Puoi aggiungere un commento compilando la form sotto. Utilizza il testo semplice." -#. Default: "${creator} on ${content}" -#: ../comment.py:46 +#. Default: "Edit comment cancelled" +#: ../browser/comment.py:101 +msgid "comment_edit_cancel_notification" +msgstr "Modifica del commento annullata" + +#. Default: "Comment was edited" +#: ../browser/comment.py:91 +msgid "comment_edit_notification" +msgstr "Il commento è stato modificato" + +#. Default: "${author_name} on ${content}" +#: ../comment.py:55 msgid "comment_title" -msgstr "${creator} su ${content}" +msgstr "${author_name} su ${content}" + +#. Default: "Edit comment" +#: ../browser/comment.py:70 +msgid "edit_comment_form_button" +msgstr "Modifica commento" + +#. Default: "Edit comment" +#: ../browser/comment.py:54 +msgid "edit_comment_form_title" +msgstr "Modifica commento" #. Default: "Action" #: ../browser/moderation.pt:85 @@ -212,85 +274,101 @@ msgid "heading_moderate_comments" msgstr "Moderazione commenti" #. Default: "If selected, anonymous users are able to post comments without loggin in. It is highly recommended to use a captcha solution to prevent spam if this setting is enabled." -#: ../interfaces.py:38 +#: ../interfaces.py:216 msgid "help_anonymous_comments" msgstr "Se selezionato, gli utenti anonimi saranno in grado di inserire commenti senza autenticazione. E' altamente consigliato l'uso di captcha to prevenire spam se questa impostazione viene abilitata." +#. Default: "If selected, anonymous user will have to give their email." +#: ../interfaces.py:341 +msgid "help_anonymous_email_enabled" +msgstr "Se selezionato, gli utenti anonimi dovranno fornire la loro email." + #. Default: "Use this setting to enable or disable Captcha validation for comments. Install plone.formwidget.captcha, plone.formwidget.recaptcha, collective.akismet, or collective.z3cform.norobots if there are no options available." -#: ../interfaces.py:82 +#: ../interfaces.py:277 msgid "help_captcha" msgstr "Usa questa impostazione per abilitare o disabilitare la validazione tramite captcha. Se nessuna opzione di captcha è disponibile, installa plone.formwidget.captcha o plone.formwidget.recaptcha." #. Default: "Some discussion related settings are not located in the Discussion Control Panel.\nTo enable comments for a specific content type, go to the Types Control Panel of this type and choose \"Allow comments\".\nTo enable the moderation workflow for comments, go to the Types Control Panel, choose \"Comment\" and set workflow to \"Comment Review Workflow\"." -#: ../browser/controlpanel.py:33 +#: ../browser/controlpanel.py:36 msgid "help_discussion_settings_editform" msgstr "" "Alcune impostazioni legate ai commenti non sono nel Pannello di controllo commenti.\n" "Per abilitare i commenti per uno specifico tipo di contenuto, vai al Pannello dei Tipi di Contenuto per il tipo specifico e scegli 'abilita moderazione'.\n" "Per abilitare il workflow per la moderazione dei commenti, vai al Pannello dei Tipi di Contenuto, scegli \"Comment\" e imposta il workflow \"Comment Review Workflow\"." +#. Default: "If selected, supports editing and deletion of comments for users with the 'Edit comments' permission." +#: ../interfaces.py:249 +msgid "help_edit_comment_enabled" +msgstr "Se selezionato, verrà abilitato il supporto alla modifica dei commenti da parte degli utenti che hanno il permesso 'Edit comments'." + #. Default: "If selected, users are able to post comments on the site. Though, you have to enable comments for specific content types, folders or content objects before users will be able to post comments." -#: ../interfaces.py:26 +#: ../interfaces.py:202 msgid "help_globally_enabled" msgstr "Se selezionato, gli utenti saranno in grado di inserire commenti nel sito. Comunque, dovrai abilitare i commenti per specifici tipi di contenuto, cartelle o oggetti prima che gli utenti siano in grado di commentare." #. Default: "If selected, comments will enter a 'Pending' state in which they are invisible to the public. A user with the 'Review comments' permission ('Reviewer' or 'Manager') can approve comments to make them visible to the public. If you want to enable a custom comment workflow, you have to go to the types control panel." -#: ../interfaces.py:50 +#: ../interfaces.py:232 msgid "help_moderation_enabled" msgstr "Se selezionato, i commenti verranno creati in stato 'In attesa' in cui sono non sono visibili pubblicamente. Un utento con il permesso 'Revisiona i commenti' ('Revisore' o 'Manager') possono approvare i commenti per renderli pubblici. Se si vuole abilitare un workflow personalizzato per i commenti, bisogna andare nel pannello di controllo dei tipi." #. Default: "Address to which moderator notifications will be sent." -#: ../interfaces.py:118 +#: ../interfaces.py:318 msgid "help_moderator_email" msgstr "Indirizzo a cui verranno spedite le notifiche per la moderazione." -#. Default: "If selected, the moderator is notified if a comment needs attention. The moderator email address can be found in the 'Mail settings' control panel (Site 'From' address)" -#: ../interfaces.py:107 +#. Default: "If selected, the moderator is notified if a comment needs attention. The moderator email address can be set below." +#: ../interfaces.py:304 msgid "help_moderator_notification_enabled" -msgstr "Se selezionato il moderatore riceverà una notifica se il commento dovrà necessita della sua attenzione. L'indirizzo email del moderatore può essere impostato nel pannello di controllo nella sezione 'Posta' (Indirizzo 'mittente' del sito)" +msgstr "Se selezionato il moderatore riceverà una notifica se il commento necessiterà della sua attenzione. L'indirizzo email del moderatore può essere impostato nel campo sottostante." #. Default: "If selected, an image of the user is shown next to the comment." -#: ../interfaces.py:97 +#: ../interfaces.py:293 msgid "help_show_commenter_image" msgstr "Se selezionato, un'immagine dell'utente verrà mostrata a fianco dei commenti." #. Default: "Use this setting to choose if the comment text should be transformed in any way. You can choose between 'Plain text' and 'Intelligent text'. 'Intelligent text' converts plain text into HTML where line breaks and indentation is preserved, and web and email addresses are made into clickable links." -#: ../interfaces.py:66 +#: ../interfaces.py:260 msgid "help_text_transform" msgstr "Utilizzare questa impostazione per scegliere se il testo del commento deve essere trasformato in qualche modo. E' possibile scegliere tra 'Plain text' e 'Testo intelligente'. 'Testo intelligente' converte il testo in HTML dove le interruzioni di linea e le indentazioni vengono preservate, e gli indirizzi web o email vengono trasformati in collegamenti cliccabili." #. Default: "If selected, users can choose to be notified of new comments by email." -#: ../interfaces.py:127 +#: ../interfaces.py:330 msgid "help_user_notification_enabled" msgstr "Se selezionato, gli utenti possono scegliere di essere notificati ad ogni nuovo commenti via e-mail." #. Default: "Anonymous" -#: ../comment.py:156 +#: ../browser/comments.pt:74 +#: ../comment.py:191 msgid "label_anonymous" msgstr "Anonimo" #. Default: "Enable anonymous comments" -#: ../interfaces.py:36 +#: ../interfaces.py:214 msgid "label_anonymous_comments" msgstr "Abilita i commenti agli utenti anonimi" +#. Default: "Enable anonymous email field" +#: ../interfaces.py:339 +msgid "label_anonymous_email_enabled" +msgstr "Abilita campo email per utenti anonimi" + #. Default: "Apply" #: ../browser/moderation.pt:71 msgid "label_apply" msgstr "Applica" #. Default: "Captcha" -#: ../interfaces.py:80 +#: ../interfaces.py:275 msgid "label_captcha" msgstr "Captcha" #. Default: "Comment" -#: ../interfaces.py:275 +#: ../interfaces.py:163 msgid "label_comment" msgstr "Commento" #. Default: "Commenting has been disabled." -#: ../browser/comments.pt:130 +#: ../browser/comments.pt:148 msgid "label_commenting_disabled" msgstr "I commenti sono stati disabilitati." @@ -299,23 +377,28 @@ msgstr "I commenti sono stati disabilitati." msgid "label_delete" msgstr "Elimina" +#. Default: "Enable editing of comments" +#: ../interfaces.py:247 +msgid "label_edit_comment_enabled" +msgstr "Abilita la modifica dei commenti" + #. Default: "Globally enable comments" -#: ../interfaces.py:24 +#: ../interfaces.py:200 msgid "label_globally_enabled" msgstr "Abilita globalmente i commenti" #. Default: "Enable comment moderation" -#: ../interfaces.py:48 +#: ../interfaces.py:228 msgid "label_moderation_enabled" msgstr "Abilita la moderazione dei commenti" #. Default: "Moderator Email Address" -#: ../interfaces.py:117 +#: ../interfaces.py:314 msgid "label_moderator_email" msgstr "Indirizzo email del moderatore" #. Default: "Enable moderator email notification" -#: ../interfaces.py:105 +#: ../interfaces.py:302 msgid "label_moderator_notification_enabled" msgstr "Abilita le notifiche ai moderatori" @@ -325,12 +408,12 @@ msgid "label_publish" msgstr "Approva" #. Default: "says:" -#: ../browser/comments.pt:74 +#: ../browser/comments.pt:77 msgid "label_says" msgstr ":" #. Default: "Show commenter image" -#: ../interfaces.py:95 +#: ../interfaces.py:291 msgid "label_show_commenter_image" msgstr "Visualizza le immagini dei commentatori" @@ -340,29 +423,45 @@ msgid "label_show_full_comment_text" msgstr "mostra testo completo del commento" #. Default: "Subject" -#: ../interfaces.py:271 +#: ../interfaces.py:158 msgid "label_subject" msgstr "Oggetto" #. Default: "Comment text transform" -#: ../interfaces.py:64 +#: ../interfaces.py:258 msgid "label_text_transform" msgstr "Transformazioni testo del commento" #. Default: "Enable user email notification" -#: ../interfaces.py:125 +#: ../interfaces.py:326 msgid "label_user_notification_enabled" msgstr "Abilita notifica via e-mail" #. Default: "A comment on '${title}' has been posted here: ${link}\n\n---\n${text}\n---\n" -#: ../comment.py:50 +#: ../comment.py:59 msgid "mail_notification_message" -msgstr "Un commento a '${title}' è stato inserito qui: ${link}\n\n---\n${text}\n---" +msgstr "" +"Un commento a '${title}' è stato inserito qui: ${link}\n" +"\n" +"---\n" +"${text}\n" +"---" #. Default: "A comment on '${title}' has been posted here: ${link}\n\n---\n${text}\n---\n\nApprove comment:\n${link_approve}\n\nDelete comment:\n${link_delete}\n" -#: ../comment.py:58 +#: ../comment.py:67 msgid "mail_notification_message_moderator" -msgstr "Un commento su '${title}' è stato aggiunto qui: ${link}\n\n---\n${text}\n---\n\nApprova commento:\n${link_approve}\n\nElimina commento:\n${link_delete}" +msgstr "" +"Un commento su '${title}' è stato aggiunto qui: ${link}\n" +"\n" +"---\n" +"${text}\n" +"---\n" +"\n" +"Approva commento:\n" +"${link_approve}\n" +"\n" +"Elimina commento:\n" +"${link_delete}" #. Default: "enable the 'Comment Review Workflow' for the Comment content type" #: ../browser/moderation.pt:33 diff --git a/plone/app/discussion/locales/ja/LC_MESSAGES/plone.app.discussion.po b/plone/app/discussion/locales/ja/LC_MESSAGES/plone.app.discussion.po index b8d95d4..3f698d3 100644 --- a/plone/app/discussion/locales/ja/LC_MESSAGES/plone.app.discussion.po +++ b/plone/app/discussion/locales/ja/LC_MESSAGES/plone.app.discussion.po @@ -1,111 +1,136 @@ msgid "" msgstr "" "Project-Id-Version: \n" -"POT-Creation-Date: \n" +"POT-Creation-Date: YEAR-MO-DA HO:MI +ZONE\n" "PO-Revision-Date: \n" "Last-Translator: Takeshi Yamamoto \n" "Language-Team: Hanno Schlichting \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" +"Language-Code: en\n" +"Language-Name: English\n" +"Preferred-Encodings: utf-8 latin1\n" +"Domain: DOMAIN\n" -#: ../comment.py:249 +#: ../comment.py:357 msgid "A comment has been posted." msgstr "コメントが投稿されました" -#: ../interfaces.py:282 +#: ../interfaces.py:144 msgid "A comment id unique to this conversation" msgstr "このカンバセーションにユニークなコメントID" -#: ../browser/comments.py:71 +#: ../browser/comments.py:72 msgid "Add a comment" msgstr "コメントを追加" -#: ../browser/controlpanel.py:62 +#: ../browser/controlpanel.py:75 msgid "Anonymous Comments" msgstr "無名コメント" -#: ../interfaces.py:307 -msgid "Author name (for display)" -msgstr "作者名(表示用)" - -#: ../browser/comments.py:252 -#: ../browser/controlpanel.py:80 +#: ../browser/comments.py:274 +#: ../browser/controlpanel.py:93 msgid "Cancel" msgstr "取り消す" -#: ../browser/controlpanel.py:76 +#: ../browser/controlpanel.py:89 msgid "Changes saved" msgstr "変更が保存されました" -#: ../browser/moderation.py:141 +#: ../browser/moderation.py:154 msgid "Comment approved." msgstr "コメントが承認されました" -#: ../browser/moderation.py:102 +#: ../contentrules.py:96 +msgid "Comment author email" +msgstr "" + +#: ../contentrules.py:85 +msgid "Comment author full name" +msgstr "" + +#: ../contentrules.py:74 +msgid "Comment author user name" +msgstr "" + +#: ../browser/moderation.py:108 msgid "Comment deleted." msgstr "コメントが削除されました" -#: ../browser/controlpanel.py:63 +#: ../contentrules.py:52 +msgid "Comment id" +msgstr "" + +#: ../contentrules.py:63 +msgid "Comment text" +msgstr "" + +#: ../browser/controlpanel.py:76 msgid "Commenter Image" msgstr "コメント者の画像" msgid "Commenting infrastructure for Plone" msgstr "Ploneのコメント基盤" -#: ../interfaces.py:277 +#: ../contentrules.py:51 +msgid "Comments" +msgstr "" + +#: ../interfaces.py:139 msgid "Conversation" msgstr "カンバセーション" -#: ../interfaces.py:308 +#: ../interfaces.py:177 msgid "Creation date" msgstr "作成日付" -#: ../interfaces.py:162 -msgid "Date of the most recent comment" -msgstr "最も最近のコメントの日付" +#: ../interfaces.py:41 +msgid "Date of the most recent public comment" +msgstr "" #: ../vocabularies.py:44 msgid "Disabled" msgstr "無効になりました" -#: ../browser/controlpanel.py:32 +#: ../browser/controlpanel.py:35 msgid "Discussion settings" msgstr "議論の設定" -#: ../browser/controlpanel.py:82 +#: ../browser/controlpanel.py:95 msgid "Edit cancelled" msgstr "編集が取り消されました" -#: ../interfaces.py:294 +#: ../interfaces.py:156 msgid "Email" msgstr "メール" -#: ../browser/controlpanel.py:61 +#: ../browser/controlpanel.py:74 msgid "Enable Comments" msgstr "コメントを有効にする" -#: ../interfaces.py:285 +#: ../interfaces.py:147 msgid "Id of comment this comment is in reply to" msgstr "このコメントが回答する先であるコメントのID" -#: ../interfaces.py:299 +#: ../interfaces.py:161 msgid "MIME type" msgstr "MIMEタイプ" -#: ../browser/controlpanel.py:65 +#: ../browser/controlpanel.py:78 msgid "Moderator Email Notification" msgstr "モデレータへのメール通知" -#: ../interfaces.py:309 +#: ../interfaces.py:178 msgid "Modification date" msgstr "変更日付" -#: ../interfaces.py:279 +#: ../interfaces.py:141 msgid "Name" msgstr "名前" -#: ../interfaces.py:303 +#: ../interfaces.py:170 msgid "Notify me of new comments via email." msgstr "新しいコメントを私にメールで知らせる" @@ -113,32 +138,44 @@ msgstr "新しいコメントを私にメールで知らせる" msgid "Plone Discussions" msgstr "Plone 議論" -#: ../interfaces.py:272 +#: ../interfaces.py:134 msgid "Portal type" msgstr "ポータルタイプ" -#: ../browser/controlpanel.py:69 +#: ../browser/controlpanel.py:82 msgid "Save" msgstr "保存" -#: ../interfaces.py:167 +#: ../interfaces.py:46 msgid "The set of unique commentators (usernames)" msgstr "ユニークなコメント者(ユーザ名)のセット" -#: ../interfaces.py:156 -msgid "Total number of comments on this item" -msgstr "このアイテムでのコメントの合計数" +#: ../interfaces.py:51 +msgid "The set of unique commentators (usernames) of published_comments" +msgstr "" -#: ../browser/controlpanel.py:67 +#: ../interfaces.py:35 +msgid "Total number of public comments on this item" +msgstr "" + +#: ../comment.py:173 +msgid "Transform '%s' => '%s' not available." +msgstr "" + +#: ../browser/controlpanel.py:80 msgid "User Email Notification" msgstr "ユーザへのメール通知" -#: ../browser/comments.py:245 +#: ../interfaces.py:176 +msgid "Username of the commenter" +msgstr "" + +#: ../browser/comments.py:267 msgid "Your comment awaits moderator approval." msgstr "コメントは司会の承認を待ちます" #. Default: "Comment" -#: ../browser/comments.py:127 +#: ../browser/comments.py:138 msgid "add_comment_button" msgstr "コメント" @@ -152,26 +189,57 @@ msgstr "削除する" msgid "bulkactions_publish" msgstr "承認する" +#. Default: "Cancel" +#: ../browser/comment.py:97 +msgid "cancel_form_button" +msgstr "" + #. Default: "You can add a comment by filling out the form below. Plain text formatting. Web and email addresses are transformed into clickable links." -#: ../browser/comments.py:56 +#: ../browser/comments.py:57 msgid "comment_description_intelligent_text" msgstr "下のフォームに書き込むことで、コメントを追加することができます。Webアドレスやメールアドレスは、クリッカブルリンクに変換されます。" +#. Default: "You can add a comment by filling out the form below. Plain text formatting. You can use the Markdown syntax for links and images." +#: ../browser/comments.py:51 +msgid "comment_description_markdown" +msgstr "" + #. Default: "Comments are moderated." -#: ../browser/comments.py:62 +#: ../browser/comments.py:63 msgid "comment_description_moderation_enabled" msgstr "コメントはモデレートされました" #. Default: "You can add a comment by filling out the form below. Plain text formatting." -#: ../browser/comments.py:51 +#: ../browser/comments.py:46 msgid "comment_description_plain_text" msgstr "下のフォームに書き込むことで、コメントを追加することができます。プレーンテキスト形式です。" -#. Default: "${creator} on ${content}" -#: ../comment.py:50 +#. Default: "Edit comment cancelled" +#: ../browser/comment.py:101 +msgid "comment_edit_cancel_notification" +msgstr "" + +#. Default: "Comment was edited" +#: ../browser/comment.py:91 +msgid "comment_edit_notification" +msgstr "" + +#. Default: "${author_name} on ${content}" +#: ../comment.py:55 +#, fuzzy msgid "comment_title" msgstr "${creator} が ${content} にコメント" +#. Default: "Edit comment" +#: ../browser/comment.py:70 +msgid "edit_comment_form_button" +msgstr "" + +#. Default: "Edit comment" +#: ../browser/comment.py:54 +msgid "edit_comment_form_title" +msgstr "" + #. Default: "Action" #: ../browser/moderation.pt:85 msgid "heading_action" @@ -203,85 +271,102 @@ msgid "heading_moderate_comments" msgstr "コメントをモデレートする" #. Default: "If selected, anonymous users are able to post comments without loggin in. It is highly recommended to use a captcha solution to prevent spam if this setting is enabled." -#: ../interfaces.py:38 +#: ../interfaces.py:216 msgid "help_anonymous_comments" msgstr "選ばれると、ログインせずに無名ユーザがコメントを投稿できるようになります。もしこの設定が有効にされるなら、キャプチャを使ってスパムを防ぐ解決策をとることをお勧めします。" +#. Default: "If selected, anonymous user will have to give their email." +#: ../interfaces.py:341 +msgid "help_anonymous_email_enabled" +msgstr "" + #. Default: "Use this setting to enable or disable Captcha validation for comments. Install plone.formwidget.captcha, plone.formwidget.recaptcha, collective.akismet, or collective.z3cform.norobots if there are no options available." -#: ../interfaces.py:82 +#: ../interfaces.py:277 msgid "help_captcha" msgstr "コメントでのキャプチャ検査を有効にするか無効にするかを設定するのにこれを使います。もし選択できないようになっていたら、 plone.formwidget.captcha, plone.formwidget.recaptcha, collective.akismet または collective.z3cform.norobots をインストールしてください。" #. Default: "Some discussion related settings are not located in the Discussion Control Panel.\nTo enable comments for a specific content type, go to the Types Control Panel of this type and choose \"Allow comments\".\nTo enable the moderation workflow for comments, go to the Types Control Panel, choose \"Comment\" and set workflow to \"Comment Review Workflow\"." -#: ../browser/controlpanel.py:33 +#: ../browser/controlpanel.py:36 msgid "help_discussion_settings_editform" msgstr "" "議論に関係するいくつかの設定は、議論コントロールパネルに置かれていません。\n" "特定のコンテンツタイプに対してコメントを有効にするには、タイプコントロールパネルに行ってそのコンテンツタイプを選び、「コメントを許す」を選びます。\n" "コメントに対してモデレーションワークフローを有効にするには、タイプコントロールパネルに行き、「コメント」を選び、ワークフローを「コメント審査ワークフロー」に設定します。" +#. Default: "If selected, supports editing and deletion of comments for users with the 'Edit comments' permission." +#: ../interfaces.py:249 +msgid "help_edit_comment_enabled" +msgstr "" + #. Default: "If selected, users are able to post comments on the site. Though, you have to enable comments for specific content types, folders or content objects before users will be able to post comments." -#: ../interfaces.py:26 +#: ../interfaces.py:202 msgid "help_globally_enabled" msgstr "選ばれると、このサイトでユーザがコメントを投稿できるようになります。とはいえ、ユーザがコメントを投稿できるようになるためには、さらにコンテンツタイプ、フォルダ、コンテンツオブジェクトに対して、コメントを有効にしなければなりません。" #. Default: "If selected, comments will enter a 'Pending' state in which they are invisible to the public. A user with the 'Review comments' permission ('Reviewer' or 'Manager') can approve comments to make them visible to the public. If you want to enable a custom comment workflow, you have to go to the types control panel." -#: ../interfaces.py:50 +#: ../interfaces.py:232 msgid "help_moderation_enabled" msgstr "選ばれると、コメントは投稿されると一般公衆からは見えない「保留」状態になります。「コメントを審査(Review comments}」パーミッションを持つユーザ、つまり審査員あるいは管理者がコメントを一般に見えるように承認することができます。カスタムコメントワークフローを有効にしたいなら、タイプコントロールパネルに行く必要があります。" #. Default: "Address to which moderator notifications will be sent." -#: ../interfaces.py:118 +#: ../interfaces.py:318 msgid "help_moderator_email" msgstr "モデレータへの通知が送られる送付先アドレス" -#. Default: "If selected, the moderator is notified if a comment needs attention. The moderator email address can be found in the 'Mail settings' control panel (Site 'From' address)" -#: ../interfaces.py:107 +#. Default: "If selected, the moderator is notified if a comment needs attention. The moderator email address can be set below." +#: ../interfaces.py:304 +#, fuzzy msgid "help_moderator_notification_enabled" msgstr "選ばれると、コメントが注意を要するものであるかどうか、モデレータは通知を受けるようになります。モデレータのメールアドレスはメール設定コントロールパネルの中のサイト「差出人」アドレスです。" #. Default: "If selected, an image of the user is shown next to the comment." -#: ../interfaces.py:97 +#: ../interfaces.py:293 msgid "help_show_commenter_image" msgstr "選ばれると、コメントの隣にユーザの画像が見えるようになります。" #. Default: "Use this setting to choose if the comment text should be transformed in any way. You can choose between 'Plain text' and 'Intelligent text'. 'Intelligent text' converts plain text into HTML where line breaks and indentation is preserved, and web and email addresses are made into clickable links." -#: ../interfaces.py:66 +#: ../interfaces.py:260 msgid "help_text_transform" msgstr "コメントテキストがなんらかの形で変換されるべきかどうかを選ぶのに、この設定を使います。「プレーンテキスト」と「インテリジェントテキスト」の間で選べるようになります。「インテリジェントテキスト」はプレーンテキストをHTMLに変換します。改行とインデントは温存され、Webアドレスやメールアドレスはクリッカブルリンクになります。" #. Default: "If selected, users can choose to be notified of new comments by email." -#: ../interfaces.py:127 +#: ../interfaces.py:330 msgid "help_user_notification_enabled" msgstr "選ばれると、新しいコメントをメールによって通知してもらうように、ユーザが選べるようになります。" #. Default: "Anonymous" -#: ../comment.py:145 +#: ../browser/comments.pt:74 +#: ../comment.py:191 msgid "label_anonymous" msgstr "無名" #. Default: "Enable anonymous comments" -#: ../interfaces.py:36 +#: ../interfaces.py:214 msgid "label_anonymous_comments" msgstr "無名コメントを有効にする" +#. Default: "Enable anonymous email field" +#: ../interfaces.py:339 +msgid "label_anonymous_email_enabled" +msgstr "" + #. Default: "Apply" #: ../browser/moderation.pt:71 msgid "label_apply" msgstr "適用" #. Default: "Captcha" -#: ../interfaces.py:80 +#: ../interfaces.py:275 msgid "label_captcha" msgstr "キャプチャ" #. Default: "Comment" -#: ../interfaces.py:300 +#: ../interfaces.py:163 msgid "label_comment" msgstr "コメント" #. Default: "Commenting has been disabled." -#: ../browser/comments.pt:130 +#: ../browser/comments.pt:148 msgid "label_commenting_disabled" msgstr "コメント機能が無効になりました" @@ -290,23 +375,28 @@ msgstr "コメント機能が無効になりました" msgid "label_delete" msgstr "削除" +#. Default: "Enable editing of comments" +#: ../interfaces.py:247 +msgid "label_edit_comment_enabled" +msgstr "" + #. Default: "Globally enable comments" -#: ../interfaces.py:24 +#: ../interfaces.py:200 msgid "label_globally_enabled" msgstr "サイト全体でコメントを有効にする" #. Default: "Enable comment moderation" -#: ../interfaces.py:48 +#: ../interfaces.py:228 msgid "label_moderation_enabled" msgstr "コメントのモデレーションを有効にする" #. Default: "Moderator Email Address" -#: ../interfaces.py:117 +#: ../interfaces.py:314 msgid "label_moderator_email" msgstr "モデレータのメールアドレス" #. Default: "Enable moderator email notification" -#: ../interfaces.py:105 +#: ../interfaces.py:302 msgid "label_moderator_notification_enabled" msgstr "モデレータへのメール通知を有効にする" @@ -316,12 +406,12 @@ msgid "label_publish" msgstr "承認" #. Default: "says:" -#: ../browser/comments.pt:74 +#: ../browser/comments.pt:77 msgid "label_says" msgstr "曰く:" #. Default: "Show commenter image" -#: ../interfaces.py:95 +#: ../interfaces.py:291 msgid "label_show_commenter_image" msgstr "コメント者の画像を見せる" @@ -331,25 +421,31 @@ msgid "label_show_full_comment_text" msgstr "コメントテキストをそのまま見せる" #. Default: "Subject" -#: ../interfaces.py:296 +#: ../interfaces.py:158 msgid "label_subject" msgstr "題目" #. Default: "Comment text transform" -#: ../interfaces.py:64 +#: ../interfaces.py:258 msgid "label_text_transform" msgstr "コメントテキスト変換" #. Default: "Enable user email notification" -#: ../interfaces.py:125 +#: ../interfaces.py:326 msgid "label_user_notification_enabled" msgstr "ユーザへのメール通知を有効にする" -#. Default: "A comment on '${title}' has been posted here: ${link}" -#: ../comment.py:53 +#. Default: "A comment on '${title}' has been posted here: ${link}\n\n---\n${text}\n---\n" +#: ../comment.py:59 +#, fuzzy msgid "mail_notification_message" msgstr "'${title}' へのコメントが、ここに投稿されました: ${link}" +#. Default: "A comment on '${title}' has been posted here: ${link}\n\n---\n${text}\n---\n\nApprove comment:\n${link_approve}\n\nDelete comment:\n${link_delete}\n" +#: ../comment.py:67 +msgid "mail_notification_message_moderator" +msgstr "" + #. Default: "enable the 'Comment Review Workflow' for the Comment content type" #: ../browser/moderation.pt:33 msgid "message_enable_comment_workflow" diff --git a/plone/app/discussion/locales/nl/LC_MESSAGES/plone.app.discussion.po b/plone/app/discussion/locales/nl/LC_MESSAGES/plone.app.discussion.po index 48da910..e18e853 100644 --- a/plone/app/discussion/locales/nl/LC_MESSAGES/plone.app.discussion.po +++ b/plone/app/discussion/locales/nl/LC_MESSAGES/plone.app.discussion.po @@ -1,11 +1,10 @@ msgid "" msgstr "" "Project-Id-Version: plone.app.discussion\n" -"POT-Creation-Date: \n" +"POT-Creation-Date: YEAR-MO-DA HO:MI +ZONE\n" "PO-Revision-Date: 2011-09-30 16:39+0100\n" "Last-Translator: NFG Net Facilities Group BV \n" "Language-Team: Nederlands \n" -"Language: nl\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -14,137 +13,170 @@ msgstr "" "Language-Name: Dutch\n" "Preferred-Encodings: utf-8 latin1\n" "Domain: plone.app.discussion\n" +"Language: nl\n" -#: ../comment.py:264 +#: ../comment.py:357 msgid "A comment has been posted." msgstr "Commentaar is geplaatst" -#: ../interfaces.py:257 +#: ../interfaces.py:144 msgid "A comment id unique to this conversation" msgstr "Een unieke ID voor dit commentaar" -#: ../browser/comments.py:67 +#: ../browser/comments.py:72 msgid "Add a comment" msgstr "Voeg opmerking toe" -#: ../browser/controlpanel.py:62 +#: ../browser/controlpanel.py:75 msgid "Anonymous Comments" msgstr "Anoniem commentaar" -#: ../interfaces.py:282 -msgid "Author name (for display)" -msgstr "Auteur" - -#: ../browser/comments.py:248 -#: ../browser/controlpanel.py:80 +#: ../browser/comments.py:274 +#: ../browser/controlpanel.py:93 msgid "Cancel" msgstr "Annuleren" -#: ../browser/controlpanel.py:76 +#: ../browser/controlpanel.py:89 msgid "Changes saved" msgstr "Wijzigingen opgeslagen" -#: ../browser/moderation.py:133 +#: ../browser/moderation.py:154 msgid "Comment approved." msgstr "Commentaar goedgekeurd" -#: ../browser/moderation.py:94 +#: ../contentrules.py:96 +msgid "Comment author email" +msgstr "" + +#: ../contentrules.py:85 +msgid "Comment author full name" +msgstr "" + +#: ../contentrules.py:74 +msgid "Comment author user name" +msgstr "" + +#: ../browser/moderation.py:108 msgid "Comment deleted." msgstr "Commentaar verwijderd" -#: ../browser/controlpanel.py:63 +#: ../contentrules.py:52 +msgid "Comment id" +msgstr "" + +#: ../contentrules.py:63 +msgid "Comment text" +msgstr "" + +#: ../browser/controlpanel.py:76 msgid "Commenter Image" msgstr "Profielfoto commentator" msgid "Commenting infrastructure for Plone" msgstr "Reactie infrastructuur voor Plone" -#: ../interfaces.py:252 +#: ../contentrules.py:51 +msgid "Comments" +msgstr "" + +#: ../interfaces.py:139 msgid "Conversation" msgstr "Conversatie" -#: ../interfaces.py:283 +#: ../interfaces.py:177 msgid "Creation date" msgstr "Aanmaakdatum" -#: ../interfaces.py:162 -msgid "Date of the most recent comment" -msgstr "Datum van het laatste commentaar" +#: ../interfaces.py:41 +msgid "Date of the most recent public comment" +msgstr "" #: ../vocabularies.py:44 msgid "Disabled" msgstr "Uitgeschakeld" -#: ../browser/controlpanel.py:32 +#: ../browser/controlpanel.py:35 msgid "Discussion settings" msgstr "Discussie instellingen" -#: ../browser/controlpanel.py:82 +#: ../browser/controlpanel.py:95 msgid "Edit cancelled" msgstr "Bewerken geannulleerd." -#: ../interfaces.py:269 +#: ../interfaces.py:156 msgid "Email" msgstr "E-mail" -#: ../browser/controlpanel.py:61 +#: ../browser/controlpanel.py:74 msgid "Enable Comments" msgstr "Commentaar toestaan" -#: ../interfaces.py:260 +#: ../interfaces.py:147 msgid "Id of comment this comment is in reply to" msgstr "Id van commentaar waarop deze commentaar reageert" -#: ../interfaces.py:274 +#: ../interfaces.py:161 msgid "MIME type" msgstr "MIME-type" -#: ../browser/controlpanel.py:65 +#: ../browser/controlpanel.py:78 msgid "Moderator Email Notification" msgstr "E-mail notificatie voor de redactie" -#: ../interfaces.py:284 +#: ../interfaces.py:178 msgid "Modification date" msgstr "Wijzigingsdatum" -#: ../interfaces.py:254 +#: ../interfaces.py:141 msgid "Name" msgstr "Naam" -#: ../interfaces.py:278 +#: ../interfaces.py:170 msgid "Notify me of new comments via email." msgstr "Hou me middels e-mail op de hoogte van nieuwe commentaar." -#: plone.app.discussion/plone/app/discussion/configure.zcml +#: ./plone.app.discussion/plone/app/discussion/configure.zcml msgid "Plone Discussions" msgstr "Plone Discussies" -#: ../interfaces.py:247 +#: ../interfaces.py:134 msgid "Portal type" msgstr "type" -#: ../browser/controlpanel.py:69 +#: ../browser/controlpanel.py:82 msgid "Save" msgstr "Bewaren" -#: ../interfaces.py:167 +#: ../interfaces.py:46 msgid "The set of unique commentators (usernames)" msgstr "Lijst van commentatoren (gebruikernamen)" -#: ../interfaces.py:156 -msgid "Total number of comments on this item" -msgstr "Totaal aantal commentaar op dit item" +#: ../interfaces.py:51 +msgid "The set of unique commentators (usernames) of published_comments" +msgstr "" -#: ../browser/controlpanel.py:67 +#: ../interfaces.py:35 +msgid "Total number of public comments on this item" +msgstr "" + +#: ../comment.py:173 +msgid "Transform '%s' => '%s' not available." +msgstr "" + +#: ../browser/controlpanel.py:80 msgid "User Email Notification" msgstr "Gebruker E-mail Notificatie" -#: ../browser/comments.py:241 +#: ../interfaces.py:176 +msgid "Username of the commenter" +msgstr "" + +#: ../browser/comments.py:267 msgid "Your comment awaits moderator approval." msgstr "Je commentaar zal geplaatst worden na goedkeuring." #. Default: "Comment" -#: ../browser/comments.py:123 +#: ../browser/comments.py:138 msgid "add_comment_button" msgstr "Commentaar toevoegen" @@ -158,26 +190,57 @@ msgstr "Verwijderen" msgid "bulkactions_publish" msgstr "Publiceren" +#. Default: "Cancel" +#: ../browser/comment.py:97 +msgid "cancel_form_button" +msgstr "" + #. Default: "You can add a comment by filling out the form below. Plain text formatting. Web and email addresses are transformed into clickable links." -#: ../browser/comments.py:52 +#: ../browser/comments.py:57 msgid "comment_description_intelligent_text" msgstr "U kunt commentaar toevoegen door onderstaand formulier in te vullen. Platte tekst formaat. Web en e-mail adressen worden omgezet in klikbare links." +#. Default: "You can add a comment by filling out the form below. Plain text formatting. You can use the Markdown syntax for links and images." +#: ../browser/comments.py:51 +msgid "comment_description_markdown" +msgstr "" + #. Default: "Comments are moderated." -#: ../browser/comments.py:58 +#: ../browser/comments.py:63 msgid "comment_description_moderation_enabled" msgstr "Commentaren zijn gemodereerd." #. Default: "You can add a comment by filling out the form below. Plain text formatting." -#: ../browser/comments.py:47 +#: ../browser/comments.py:46 msgid "comment_description_plain_text" msgstr "U kunt commentaar toevoegen door onderstaand formulier in te vullen. Platte tekst formaat." -#. Default: "${creator} on ${content}" -#: ../comment.py:46 +#. Default: "Edit comment cancelled" +#: ../browser/comment.py:101 +msgid "comment_edit_cancel_notification" +msgstr "" + +#. Default: "Comment was edited" +#: ../browser/comment.py:91 +msgid "comment_edit_notification" +msgstr "" + +#. Default: "${author_name} on ${content}" +#: ../comment.py:55 +#, fuzzy msgid "comment_title" msgstr "${creator} over ${content}" +#. Default: "Edit comment" +#: ../browser/comment.py:70 +msgid "edit_comment_form_button" +msgstr "" + +#. Default: "Edit comment" +#: ../browser/comment.py:54 +msgid "edit_comment_form_title" +msgstr "" + #. Default: "Action" #: ../browser/moderation.pt:85 msgid "heading_action" @@ -209,82 +272,99 @@ msgid "heading_moderate_comments" msgstr "Commentaar modereren" #. Default: "If selected, anonymous users are able to post comments without loggin in. It is highly recommended to use a captcha solution to prevent spam if this setting is enabled." -#: ../interfaces.py:38 +#: ../interfaces.py:216 msgid "help_anonymous_comments" msgstr "Indien geselecteerd, anonieme bezoekers kunnen commentaar achterlaten zonder in te loggen. Het is aanbevolen om de captcha-oplossing te gebruiken om spam te voorkomen als deze optie is ingeschakeld." +#. Default: "If selected, anonymous user will have to give their email." +#: ../interfaces.py:341 +msgid "help_anonymous_email_enabled" +msgstr "" + #. Default: "Use this setting to enable or disable Captcha validation for comments. Install plone.formwidget.captcha, plone.formwidget.recaptcha, collective.akismet, or collective.z3cform.norobots if there are no options available." -#: ../interfaces.py:82 +#: ../interfaces.py:277 msgid "help_captcha" msgstr "Indien geselecteerd, Captcha validatie wordt gebruikt voor het commentaar. Installeer plone.formwidget of plone.formwidget.recaptcha als er geen opties beschikbaar zijn." #. Default: "Some discussion related settings are not located in the Discussion Control Panel.\nTo enable comments for a specific content type, go to the Types Control Panel of this type and choose \"Allow comments\".\nTo enable the moderation workflow for comments, go to the Types Control Panel, choose \"Comment\" and set workflow to \"Comment Review Workflow\"." -#: ../browser/controlpanel.py:33 +#: ../browser/controlpanel.py:36 msgid "help_discussion_settings_editform" msgstr "Sommige discussie instellingen staan niet op deze pagina. Om commentaar in te schakelen voor een specifiek content-type, ga naar het Typen instellingenscherm van het betreffende type en kies 'commentaar toestaan'. Om de moderatie-workflow in te schakelen, ga naar het Typen instellingenscherm en kies het type 'Comment' stel de 'Comment Review Workflow' in." +#. Default: "If selected, supports editing and deletion of comments for users with the 'Edit comments' permission." +#: ../interfaces.py:249 +msgid "help_edit_comment_enabled" +msgstr "" + #. Default: "If selected, users are able to post comments on the site. Though, you have to enable comments for specific content types, folders or content objects before users will be able to post comments." -#: ../interfaces.py:26 +#: ../interfaces.py:202 msgid "help_globally_enabled" msgstr "Indien geselecteerd, gebruikers kunnen commentaar plaatsen op de site. Het kan zijn dat commentaar voor een specifiek content-type ingeschakeld moet worden voordat commentaar mogelijk is." #. Default: "If selected, comments will enter a 'Pending' state in which they are invisible to the public. A user with the 'Review comments' permission ('Reviewer' or 'Manager') can approve comments to make them visible to the public. If you want to enable a custom comment workflow, you have to go to the types control panel." -#: ../interfaces.py:50 +#: ../interfaces.py:232 msgid "help_moderation_enabled" msgstr "Indien geselecteerd, de moderator zal ingelicht worden als een commentaar aandacht nodig heeft." #. Default: "Address to which moderator notifications will be sent." -#: ../interfaces.py:118 +#: ../interfaces.py:318 msgid "help_moderator_email" msgstr "Emailadres van de moderator naar wie een notificatie zal worden gestuurd." -#. Default: "If selected, the moderator is notified if a comment needs attention. The moderator email address can be found in the 'Mail settings' control panel (Site 'From' address)" -#: ../interfaces.py:107 +#. Default: "If selected, the moderator is notified if a comment needs attention. The moderator email address can be set below." +#: ../interfaces.py:304 +#, fuzzy msgid "help_moderator_notification_enabled" msgstr "Indien geselecteerd, de moderator zal ingelicht worden als een commentaar aandacht nodig heeft." #. Default: "If selected, an image of the user is shown next to the comment." -#: ../interfaces.py:97 +#: ../interfaces.py:293 msgid "help_show_commenter_image" msgstr "Indien geselecteerd, de profielfoto van een gebruiker wordt naast het commentaar getoond." #. Default: "Use this setting to choose if the comment text should be transformed in any way. You can choose between 'Plain text' and 'Intelligent text'. 'Intelligent text' converts plain text into HTML where line breaks and indentation is preserved, and web and email addresses are made into clickable links." -#: ../interfaces.py:66 +#: ../interfaces.py:260 msgid "help_text_transform" msgstr "Gebruik deze instelling om ervoor te kiezen of de commentaar tekst getransformeerd moet worden. U kunt kiezen uit 'Platte tekst' en 'Intelligente tekst'. 'Intelligente tekst' zet platte tekst om in HTML waarbij nieuwe regels en inspringen worden gehandhaaft, en waarbij web en e-mail adressen in klikbare links worden omgezet." #. Default: "If selected, users can choose to be notified of new comments by email." -#: ../interfaces.py:127 +#: ../interfaces.py:330 msgid "help_user_notification_enabled" msgstr "Indien geselecteerd kunnen gebruikers ervoor kiezen per e-mail bericht te ontvangen van nieuwe commentaar." #. Default: "Anonymous" -#: ../comment.py:156 +#: ../browser/comments.pt:74 +#: ../comment.py:191 msgid "label_anonymous" msgstr "Anoniem" #. Default: "Enable anonymous comments" -#: ../interfaces.py:36 +#: ../interfaces.py:214 msgid "label_anonymous_comments" msgstr "Anoniem commentariëren inschakelen" +#. Default: "Enable anonymous email field" +#: ../interfaces.py:339 +msgid "label_anonymous_email_enabled" +msgstr "" + #. Default: "Apply" #: ../browser/moderation.pt:71 msgid "label_apply" msgstr "Toepassen" #. Default: "Captcha" -#: ../interfaces.py:80 +#: ../interfaces.py:275 msgid "label_captcha" msgstr "Captcha" #. Default: "Comment" -#: ../interfaces.py:275 +#: ../interfaces.py:163 msgid "label_comment" msgstr "Commentaar" #. Default: "Commenting has been disabled." -#: ../browser/comments.pt:130 +#: ../browser/comments.pt:148 msgid "label_commenting_disabled" msgstr "Commentaar is uitgeschakeld" @@ -293,23 +373,28 @@ msgstr "Commentaar is uitgeschakeld" msgid "label_delete" msgstr "Verwijderen" +#. Default: "Enable editing of comments" +#: ../interfaces.py:247 +msgid "label_edit_comment_enabled" +msgstr "" + #. Default: "Globally enable comments" -#: ../interfaces.py:24 +#: ../interfaces.py:200 msgid "label_globally_enabled" msgstr "Commentaar globaal toestaan" #. Default: "Enable comment moderation" -#: ../interfaces.py:48 +#: ../interfaces.py:228 msgid "label_moderation_enabled" msgstr "Moderatie is ingeschakeld" #. Default: "Moderator Email Address" -#: ../interfaces.py:117 +#: ../interfaces.py:314 msgid "label_moderator_email" msgstr "Moderator emailadres" #. Default: "Enable moderator email notification" -#: ../interfaces.py:105 +#: ../interfaces.py:302 msgid "label_moderator_notification_enabled" msgstr "Notificatie voor moderator inschakelen" @@ -319,12 +404,12 @@ msgid "label_publish" msgstr "Publiceren" #. Default: "says:" -#: ../browser/comments.pt:74 +#: ../browser/comments.pt:77 msgid "label_says" msgstr "zegt:" #. Default: "Show commenter image" -#: ../interfaces.py:95 +#: ../interfaces.py:291 msgid "label_show_commenter_image" msgstr "Toon portret commentator" @@ -334,27 +419,27 @@ msgid "label_show_full_comment_text" msgstr "Toon het volledige commentaar" #. Default: "Subject" -#: ../interfaces.py:271 +#: ../interfaces.py:158 msgid "label_subject" msgstr "Onderwerp" #. Default: "Comment text transform" -#: ../interfaces.py:64 +#: ../interfaces.py:258 msgid "label_text_transform" msgstr "Reactie tekst transformatie" #. Default: "Enable user email notification" -#: ../interfaces.py:125 +#: ../interfaces.py:326 msgid "label_user_notification_enabled" msgstr "Gebruikers-notificatie ingeschakeld" #. Default: "A comment on '${title}' has been posted here: ${link}\n\n---\n${text}\n---\n" -#: ../comment.py:50 +#: ../comment.py:59 msgid "mail_notification_message" msgstr "Een commentaar op '${title}' is geplaatst: ${link}" #. Default: "A comment on '${title}' has been posted here: ${link}\n\n---\n${text}\n---\n\nApprove comment:\n${link_approve}\n\nDelete comment:\n${link_delete}\n" -#: ../comment.py:58 +#: ../comment.py:67 msgid "mail_notification_message_moderator" msgstr "Commentaar op '${title}' is geplaatst: ${link}" diff --git a/plone/app/discussion/locales/no/LC_MESSAGES/plone.app.discussion.po b/plone/app/discussion/locales/no/LC_MESSAGES/plone.app.discussion.po index 8169a24..2066853 100644 --- a/plone/app/discussion/locales/no/LC_MESSAGES/plone.app.discussion.po +++ b/plone/app/discussion/locales/no/LC_MESSAGES/plone.app.discussion.po @@ -14,103 +14,123 @@ msgstr "" "Preferred-Encodings: utf-8 latin1\n" "Domain: plone.app.discussion\n" -#: ../comment.py:264 +#: ../comment.py:357 msgid "A comment has been posted." msgstr "" -#: ../interfaces.py:257 +#: ../interfaces.py:144 msgid "A comment id unique to this conversation" msgstr "En kommentar-id unik for denne kommentaren" -#: ../browser/comments.py:67 +#: ../browser/comments.py:72 msgid "Add a comment" msgstr "Legg til en kommentar" -#: ../browser/controlpanel.py:62 +#: ../browser/controlpanel.py:75 msgid "Anonymous Comments" msgstr "Anonym kommentar" -#: ../interfaces.py:282 -msgid "Author name (for display)" -msgstr "Forfatternavn (synlig)" - -#: ../browser/comments.py:248 -#: ../browser/controlpanel.py:80 +#: ../browser/comments.py:274 +#: ../browser/controlpanel.py:93 msgid "Cancel" msgstr "Avbryt" -#: ../browser/controlpanel.py:76 +#: ../browser/controlpanel.py:89 msgid "Changes saved" msgstr "" -#: ../browser/moderation.py:133 +#: ../browser/moderation.py:154 msgid "Comment approved." msgstr "Kommentaren er godkjent" -#: ../browser/moderation.py:94 +#: ../contentrules.py:96 +msgid "Comment author email" +msgstr "" + +#: ../contentrules.py:85 +msgid "Comment author full name" +msgstr "" + +#: ../contentrules.py:74 +msgid "Comment author user name" +msgstr "" + +#: ../browser/moderation.py:108 msgid "Comment deleted." msgstr "Kommentaren er slettet" -#: ../browser/controlpanel.py:63 +#: ../contentrules.py:52 +msgid "Comment id" +msgstr "" + +#: ../contentrules.py:63 +msgid "Comment text" +msgstr "" + +#: ../browser/controlpanel.py:76 msgid "Commenter Image" msgstr "Forfatterbilde" msgid "Commenting infrastructure for Plone" msgstr "" -#: ../interfaces.py:252 +#: ../contentrules.py:51 +msgid "Comments" +msgstr "" + +#: ../interfaces.py:139 msgid "Conversation" msgstr "Diskusjon" -#: ../interfaces.py:283 +#: ../interfaces.py:177 msgid "Creation date" msgstr "Dato opprettet" -#: ../interfaces.py:162 -msgid "Date of the most recent comment" -msgstr "Dato for den nyeste kommentaren" +#: ../interfaces.py:41 +msgid "Date of the most recent public comment" +msgstr "" #: ../vocabularies.py:44 msgid "Disabled" msgstr "Slått av" -#: ../browser/controlpanel.py:32 +#: ../browser/controlpanel.py:35 msgid "Discussion settings" msgstr "Innstillinger for kommentarer" -#: ../browser/controlpanel.py:82 +#: ../browser/controlpanel.py:95 msgid "Edit cancelled" msgstr "" -#: ../interfaces.py:269 +#: ../interfaces.py:156 msgid "Email" msgstr "E-post" -#: ../browser/controlpanel.py:61 +#: ../browser/controlpanel.py:74 msgid "Enable Comments" msgstr "Slå på kommentarer" -#: ../interfaces.py:260 +#: ../interfaces.py:147 msgid "Id of comment this comment is in reply to" msgstr "Id til kommentar som denne kommentaren er en kommentar til" -#: ../interfaces.py:274 +#: ../interfaces.py:161 msgid "MIME type" msgstr "MIME-type" -#: ../browser/controlpanel.py:65 +#: ../browser/controlpanel.py:78 msgid "Moderator Email Notification" msgstr "Varsling av moderator på epost" -#: ../interfaces.py:284 +#: ../interfaces.py:178 msgid "Modification date" msgstr "Endringsdato" -#: ../interfaces.py:254 +#: ../interfaces.py:141 msgid "Name" msgstr "Navn" -#: ../interfaces.py:278 +#: ../interfaces.py:170 msgid "Notify me of new comments via email." msgstr "" @@ -118,32 +138,44 @@ msgstr "" msgid "Plone Discussions" msgstr "" -#: ../interfaces.py:247 +#: ../interfaces.py:134 msgid "Portal type" msgstr "Portaltype" -#: ../browser/controlpanel.py:69 +#: ../browser/controlpanel.py:82 msgid "Save" msgstr "" -#: ../interfaces.py:167 +#: ../interfaces.py:46 msgid "The set of unique commentators (usernames)" msgstr "Listen over forfattere (brukernavn)" -#: ../interfaces.py:156 -msgid "Total number of comments on this item" -msgstr "Antall kommentarer på denne artikkelen" +#: ../interfaces.py:51 +msgid "The set of unique commentators (usernames) of published_comments" +msgstr "" -#: ../browser/controlpanel.py:67 +#: ../interfaces.py:35 +msgid "Total number of public comments on this item" +msgstr "" + +#: ../comment.py:173 +msgid "Transform '%s' => '%s' not available." +msgstr "" + +#: ../browser/controlpanel.py:80 msgid "User Email Notification" msgstr "" -#: ../browser/comments.py:241 +#: ../interfaces.py:176 +msgid "Username of the commenter" +msgstr "" + +#: ../browser/comments.py:267 msgid "Your comment awaits moderator approval." msgstr "Kommentaren venter på godkjenning av moderator." #. Default: "Comment" -#: ../browser/comments.py:123 +#: ../browser/comments.py:138 msgid "add_comment_button" msgstr "Kommentér" @@ -157,26 +189,56 @@ msgstr "Slett" msgid "bulkactions_publish" msgstr "Godkjenn" +#. Default: "Cancel" +#: ../browser/comment.py:97 +msgid "cancel_form_button" +msgstr "" + #. Default: "You can add a comment by filling out the form below. Plain text formatting. Web and email addresses are transformed into clickable links." -#: ../browser/comments.py:52 +#: ../browser/comments.py:57 msgid "comment_description_intelligent_text" msgstr "" +#. Default: "You can add a comment by filling out the form below. Plain text formatting. You can use the Markdown syntax for links and images." +#: ../browser/comments.py:51 +msgid "comment_description_markdown" +msgstr "" + #. Default: "Comments are moderated." -#: ../browser/comments.py:58 +#: ../browser/comments.py:63 msgid "comment_description_moderation_enabled" msgstr "" #. Default: "You can add a comment by filling out the form below. Plain text formatting." -#: ../browser/comments.py:47 +#: ../browser/comments.py:46 msgid "comment_description_plain_text" msgstr "" -#. Default: "${creator} on ${content}" -#: ../comment.py:46 +#. Default: "Edit comment cancelled" +#: ../browser/comment.py:101 +msgid "comment_edit_cancel_notification" +msgstr "" + +#. Default: "Comment was edited" +#: ../browser/comment.py:91 +msgid "comment_edit_notification" +msgstr "" + +#. Default: "${author_name} on ${content}" +#: ../comment.py:55 msgid "comment_title" msgstr "" +#. Default: "Edit comment" +#: ../browser/comment.py:70 +msgid "edit_comment_form_button" +msgstr "" + +#. Default: "Edit comment" +#: ../browser/comment.py:54 +msgid "edit_comment_form_title" +msgstr "" + #. Default: "Action" #: ../browser/moderation.pt:85 msgid "heading_action" @@ -208,88 +270,104 @@ msgid "heading_moderate_comments" msgstr "Moderer kommentar" #. Default: "If selected, anonymous users are able to post comments without loggin in. It is highly recommended to use a captcha solution to prevent spam if this setting is enabled." -#: ../interfaces.py:38 +#: ../interfaces.py:216 msgid "help_anonymous_comments" msgstr "Dersom innstillingen er valgt kan anonyme brukere kommentere uten å logge inn. Det er anbefalt å bruke en captcha-løsning for å forhindre nettsøppel dersom denne innstillingen er valgt" +#. Default: "If selected, anonymous user will have to give their email." +#: ../interfaces.py:341 +msgid "help_anonymous_email_enabled" +msgstr "" + #. Default: "Use this setting to enable or disable Captcha validation for comments. Install plone.formwidget.captcha, plone.formwidget.recaptcha, collective.akismet, or collective.z3cform.norobots if there are no options available." -#: ../interfaces.py:82 +#: ../interfaces.py:277 #, fuzzy msgid "help_captcha" msgstr "Bruk denne innstillingen for å aktivere eller deaktivere captcha-validering av kommentarer. Installér plone.formwidget.captcha eller plone.formwidget.recaptcha dersom det mangler valg her." #. Default: "Some discussion related settings are not located in the Discussion Control Panel.\nTo enable comments for a specific content type, go to the Types Control Panel of this type and choose \"Allow comments\".\nTo enable the moderation workflow for comments, go to the Types Control Panel, choose \"Comment\" and set workflow to \"Comment Review Workflow\"." -#: ../browser/controlpanel.py:33 +#: ../browser/controlpanel.py:36 #, fuzzy msgid "help_discussion_settings_editform" msgstr "" "Noen innstillinger for kommentarer finnes utenfor kontrollpanelet for kommentarer. For å aktivere kommentarer for en spesifíkk innholdstype må man gå til kontrollpanelet for denne innholdstypen og velge 'aktiver moderering'.\n" "For å aktivere arbeidsflyten for moderering, må man gå til kontrollpanelet for innholdstyper og velge \"Kommentarer\" og stille inn arbeidsflyten til å vere \"Comment Review Workflow\"." +#. Default: "If selected, supports editing and deletion of comments for users with the 'Edit comments' permission." +#: ../interfaces.py:249 +msgid "help_edit_comment_enabled" +msgstr "" + #. Default: "If selected, users are able to post comments on the site. Though, you have to enable comments for specific content types, folders or content objects before users will be able to post comments." -#: ../interfaces.py:26 +#: ../interfaces.py:202 #, fuzzy msgid "help_globally_enabled" msgstr "Dersom denne instillingen er valgt kan brukerene legge til kommentarer på nettstedet. Men du må likevel aktivere kommentarer for spesifikke innholdstyper, mapper eller innholdsobjekter før brukerene får lov til å legge til kommentarer." #. Default: "If selected, comments will enter a 'Pending' state in which they are invisible to the public. A user with the 'Review comments' permission ('Reviewer' or 'Manager') can approve comments to make them visible to the public. If you want to enable a custom comment workflow, you have to go to the types control panel." -#: ../interfaces.py:50 +#: ../interfaces.py:232 msgid "help_moderation_enabled" msgstr "" #. Default: "Address to which moderator notifications will be sent." -#: ../interfaces.py:118 +#: ../interfaces.py:318 msgid "help_moderator_email" msgstr "" -#. Default: "If selected, the moderator is notified if a comment needs attention. The moderator email address can be found in the 'Mail settings' control panel (Site 'From' address)" -#: ../interfaces.py:107 +#. Default: "If selected, the moderator is notified if a comment needs attention. The moderator email address can be set below." +#: ../interfaces.py:304 #, fuzzy msgid "help_moderator_notification_enabled" msgstr "Dersom innstillingen er valgt vil moderatoren bli varslet når en kommentar er lagt til." #. Default: "If selected, an image of the user is shown next to the comment." -#: ../interfaces.py:97 +#: ../interfaces.py:293 msgid "help_show_commenter_image" msgstr "Dersom denne er valgt vil bildet av brukeren vise ved siden av kommentaren." #. Default: "Use this setting to choose if the comment text should be transformed in any way. You can choose between 'Plain text' and 'Intelligent text'. 'Intelligent text' converts plain text into HTML where line breaks and indentation is preserved, and web and email addresses are made into clickable links." -#: ../interfaces.py:66 +#: ../interfaces.py:260 msgid "help_text_transform" msgstr "" #. Default: "If selected, users can choose to be notified of new comments by email." -#: ../interfaces.py:127 +#: ../interfaces.py:330 msgid "help_user_notification_enabled" msgstr "" #. Default: "Anonymous" -#: ../comment.py:156 +#: ../browser/comments.pt:74 +#: ../comment.py:191 msgid "label_anonymous" msgstr "" #. Default: "Enable anonymous comments" -#: ../interfaces.py:36 +#: ../interfaces.py:214 msgid "label_anonymous_comments" msgstr "" +#. Default: "Enable anonymous email field" +#: ../interfaces.py:339 +msgid "label_anonymous_email_enabled" +msgstr "" + #. Default: "Apply" #: ../browser/moderation.pt:71 msgid "label_apply" msgstr "Bruk" #. Default: "Captcha" -#: ../interfaces.py:80 +#: ../interfaces.py:275 msgid "label_captcha" msgstr "" #. Default: "Comment" -#: ../interfaces.py:275 +#: ../interfaces.py:163 msgid "label_comment" msgstr "" #. Default: "Commenting has been disabled." -#: ../browser/comments.pt:130 +#: ../browser/comments.pt:148 msgid "label_commenting_disabled" msgstr "" @@ -298,23 +376,28 @@ msgstr "" msgid "label_delete" msgstr "Slett" +#. Default: "Enable editing of comments" +#: ../interfaces.py:247 +msgid "label_edit_comment_enabled" +msgstr "" + #. Default: "Globally enable comments" -#: ../interfaces.py:24 +#: ../interfaces.py:200 msgid "label_globally_enabled" msgstr "Aktiver kommentarer globalt" #. Default: "Enable comment moderation" -#: ../interfaces.py:48 +#: ../interfaces.py:228 msgid "label_moderation_enabled" msgstr "" #. Default: "Moderator Email Address" -#: ../interfaces.py:117 +#: ../interfaces.py:314 msgid "label_moderator_email" msgstr "" #. Default: "Enable moderator email notification" -#: ../interfaces.py:105 +#: ../interfaces.py:302 msgid "label_moderator_notification_enabled" msgstr "Slå på e-postvarsling av moderator" @@ -324,12 +407,12 @@ msgid "label_publish" msgstr "Godkjenn" #. Default: "says:" -#: ../browser/comments.pt:74 +#: ../browser/comments.pt:77 msgid "label_says" msgstr "" #. Default: "Show commenter image" -#: ../interfaces.py:95 +#: ../interfaces.py:291 msgid "label_show_commenter_image" msgstr "" @@ -339,27 +422,27 @@ msgid "label_show_full_comment_text" msgstr "Vis hele kommentaren" #. Default: "Subject" -#: ../interfaces.py:271 +#: ../interfaces.py:158 msgid "label_subject" msgstr "" #. Default: "Comment text transform" -#: ../interfaces.py:64 +#: ../interfaces.py:258 msgid "label_text_transform" msgstr "" #. Default: "Enable user email notification" -#: ../interfaces.py:125 +#: ../interfaces.py:326 msgid "label_user_notification_enabled" msgstr "" #. Default: "A comment on '${title}' has been posted here: ${link}\n\n---\n${text}\n---\n" -#: ../comment.py:50 +#: ../comment.py:59 msgid "mail_notification_message" msgstr "" #. Default: "A comment on '${title}' has been posted here: ${link}\n\n---\n${text}\n---\n\nApprove comment:\n${link_approve}\n\nDelete comment:\n${link_delete}\n" -#: ../comment.py:58 +#: ../comment.py:67 msgid "mail_notification_message_moderator" msgstr "" diff --git a/plone/app/discussion/locales/plone.app.discussion.pot b/plone/app/discussion/locales/plone.app.discussion.pot index 50014ec..8fa8488 100644 --- a/plone/app/discussion/locales/plone.app.discussion.pot +++ b/plone/app/discussion/locales/plone.app.discussion.pot @@ -1,7 +1,7 @@ msgid "" msgstr "" "Project-Id-Version: plone.app.discussion\n" -"POT-Creation-Date: 2011-04-22 17:12+0000\n" +"POT-Creation-Date: 2014-05-16 13:47+0000\n" "PO-Revision-Date: 2010-01-28 15:00+0000\n" "Last-Translator: Hanno Schlichting \n" "Language-Team: Hanno Schlichting \n" @@ -14,107 +14,127 @@ msgstr "" "Preferred-Encodings: utf-8 latin1\n" "Domain: DOMAIN\n" -#: ../browser/comments.py:90 +#: ../browser/comments.py:95 msgid "" msgstr "" -#: ../comment.py:264 +#: ../comment.py:357 msgid "A comment has been posted." msgstr "" -#: ../interfaces.py:257 +#: ../interfaces.py:144 msgid "A comment id unique to this conversation" msgstr "" -#: ../browser/comments.py:67 +#: ../browser/comments.py:72 msgid "Add a comment" msgstr "" -#: ../browser/controlpanel.py:62 +#: ../browser/controlpanel.py:75 msgid "Anonymous Comments" msgstr "" -#: ../interfaces.py:282 -msgid "Author name (for display)" -msgstr "" - -#: ../browser/comments.py:248 -#: ../browser/controlpanel.py:80 +#: ../browser/comments.py:274 +#: ../browser/controlpanel.py:93 msgid "Cancel" msgstr "" -#: ../browser/controlpanel.py:76 +#: ../browser/controlpanel.py:89 msgid "Changes saved" msgstr "" -#: ../browser/moderation.py:133 +#: ../browser/moderation.py:154 msgid "Comment approved." msgstr "" -#: ../browser/moderation.py:94 +#: ../contentrules.py:96 +msgid "Comment author email" +msgstr "" + +#: ../contentrules.py:85 +msgid "Comment author full name" +msgstr "" + +#: ../contentrules.py:74 +msgid "Comment author user name" +msgstr "" + +#: ../browser/moderation.py:108 msgid "Comment deleted." msgstr "" -#: ../browser/controlpanel.py:63 +#: ../contentrules.py:52 +msgid "Comment id" +msgstr "" + +#: ../contentrules.py:63 +msgid "Comment text" +msgstr "" + +#: ../browser/controlpanel.py:76 msgid "Commenter Image" msgstr "" msgid "Commenting infrastructure for Plone" msgstr "" -#: ../interfaces.py:252 +#: ../contentrules.py:51 +msgid "Comments" +msgstr "" + +#: ../interfaces.py:139 msgid "Conversation" msgstr "" -#: ../interfaces.py:283 +#: ../interfaces.py:177 msgid "Creation date" msgstr "" -#: ../interfaces.py:162 -msgid "Date of the most recent comment" +#: ../interfaces.py:41 +msgid "Date of the most recent public comment" msgstr "" #: ../vocabularies.py:44 msgid "Disabled" msgstr "" -#: ../browser/controlpanel.py:32 +#: ../browser/controlpanel.py:35 msgid "Discussion settings" msgstr "" -#: ../browser/controlpanel.py:82 +#: ../browser/controlpanel.py:95 msgid "Edit cancelled" msgstr "" -#: ../interfaces.py:269 +#: ../interfaces.py:156 msgid "Email" msgstr "" -#: ../browser/controlpanel.py:61 +#: ../browser/controlpanel.py:74 msgid "Enable Comments" msgstr "" -#: ../interfaces.py:260 +#: ../interfaces.py:147 msgid "Id of comment this comment is in reply to" msgstr "" -#: ../interfaces.py:274 +#: ../interfaces.py:161 msgid "MIME type" msgstr "" -#: ../browser/controlpanel.py:65 +#: ../browser/controlpanel.py:78 msgid "Moderator Email Notification" msgstr "" -#: ../interfaces.py:284 +#: ../interfaces.py:178 msgid "Modification date" msgstr "" -#: ../interfaces.py:254 +#: ../interfaces.py:141 msgid "Name" msgstr "" -#: ../interfaces.py:278 +#: ../interfaces.py:170 msgid "Notify me of new comments via email." msgstr "" @@ -122,32 +142,44 @@ msgstr "" msgid "Plone Discussions" msgstr "" -#: ../interfaces.py:247 +#: ../interfaces.py:134 msgid "Portal type" msgstr "" -#: ../browser/controlpanel.py:69 +#: ../browser/controlpanel.py:82 msgid "Save" msgstr "" -#: ../interfaces.py:167 +#: ../interfaces.py:46 msgid "The set of unique commentators (usernames)" msgstr "" -#: ../interfaces.py:156 -msgid "Total number of comments on this item" +#: ../interfaces.py:51 +msgid "The set of unique commentators (usernames) of published_comments" msgstr "" -#: ../browser/controlpanel.py:67 +#: ../interfaces.py:35 +msgid "Total number of public comments on this item" +msgstr "" + +#: ../comment.py:173 +msgid "Transform '%s' => '%s' not available." +msgstr "" + +#: ../browser/controlpanel.py:80 msgid "User Email Notification" msgstr "" -#: ../browser/comments.py:241 +#: ../interfaces.py:176 +msgid "Username of the commenter" +msgstr "" + +#: ../browser/comments.py:267 msgid "Your comment awaits moderator approval." msgstr "" #. Default: "Comment" -#: ../browser/comments.py:123 +#: ../browser/comments.py:138 msgid "add_comment_button" msgstr "" @@ -161,26 +193,56 @@ msgstr "" msgid "bulkactions_publish" msgstr "" +#. Default: "Cancel" +#: ../browser/comment.py:97 +msgid "cancel_form_button" +msgstr "" + #. Default: "You can add a comment by filling out the form below. Plain text formatting. Web and email addresses are transformed into clickable links." -#: ../browser/comments.py:52 +#: ../browser/comments.py:57 msgid "comment_description_intelligent_text" msgstr "" +#. Default: "You can add a comment by filling out the form below. Plain text formatting. You can use the Markdown syntax for links and images." +#: ../browser/comments.py:51 +msgid "comment_description_markdown" +msgstr "" + #. Default: "Comments are moderated." -#: ../browser/comments.py:58 +#: ../browser/comments.py:63 msgid "comment_description_moderation_enabled" msgstr "" #. Default: "You can add a comment by filling out the form below. Plain text formatting." -#: ../browser/comments.py:47 +#: ../browser/comments.py:46 msgid "comment_description_plain_text" msgstr "" -#. Default: "${creator} on ${content}" -#: ../comment.py:46 +#. Default: "Edit comment cancelled" +#: ../browser/comment.py:101 +msgid "comment_edit_cancel_notification" +msgstr "" + +#. Default: "Comment was edited" +#: ../browser/comment.py:91 +msgid "comment_edit_notification" +msgstr "" + +#. Default: "${author_name} on ${content}" +#: ../comment.py:55 msgid "comment_title" msgstr "" +#. Default: "Edit comment" +#: ../browser/comment.py:70 +msgid "edit_comment_form_button" +msgstr "" + +#. Default: "Edit comment" +#: ../browser/comment.py:54 +msgid "edit_comment_form_title" +msgstr "" + #. Default: "Action" #: ../browser/moderation.pt:85 msgid "heading_action" @@ -212,82 +274,98 @@ msgid "heading_moderate_comments" msgstr "" #. Default: "If selected, anonymous users are able to post comments without loggin in. It is highly recommended to use a captcha solution to prevent spam if this setting is enabled." -#: ../interfaces.py:38 +#: ../interfaces.py:216 msgid "help_anonymous_comments" msgstr "" +#. Default: "If selected, anonymous user will have to give their email." +#: ../interfaces.py:341 +msgid "help_anonymous_email_enabled" +msgstr "" + #. Default: "Use this setting to enable or disable Captcha validation for comments. Install plone.formwidget.captcha, plone.formwidget.recaptcha, collective.akismet, or collective.z3cform.norobots if there are no options available." -#: ../interfaces.py:82 +#: ../interfaces.py:277 msgid "help_captcha" msgstr "" #. Default: "Some discussion related settings are not located in the Discussion Control Panel.\nTo enable comments for a specific content type, go to the Types Control Panel of this type and choose \"Allow comments\".\nTo enable the moderation workflow for comments, go to the Types Control Panel, choose \"Comment\" and set workflow to \"Comment Review Workflow\"." -#: ../browser/controlpanel.py:33 +#: ../browser/controlpanel.py:36 msgid "help_discussion_settings_editform" msgstr "" -#. Default: "If selected, users are able to post comments on the site. However, you must enable comments for specific content types, folders or content objects before users will be able to post comments." -#: ../interfaces.py:26 +#. Default: "If selected, supports editing and deletion of comments for users with the 'Edit comments' permission." +#: ../interfaces.py:249 +msgid "help_edit_comment_enabled" +msgstr "" + +#. Default: "If selected, users are able to post comments on the site. Though, you have to enable comments for specific content types, folders or content objects before users will be able to post comments." +#: ../interfaces.py:202 msgid "help_globally_enabled" msgstr "" #. Default: "If selected, comments will enter a 'Pending' state in which they are invisible to the public. A user with the 'Review comments' permission ('Reviewer' or 'Manager') can approve comments to make them visible to the public. If you want to enable a custom comment workflow, you have to go to the types control panel." -#: ../interfaces.py:50 +#: ../interfaces.py:232 msgid "help_moderation_enabled" msgstr "" #. Default: "Address to which moderator notifications will be sent." -#: ../interfaces.py:118 +#: ../interfaces.py:318 msgid "help_moderator_email" msgstr "" -#. Default: "If selected, the moderator is notified if a comment needs attention. The moderator email address can be found in the 'Mail settings' control panel (Site 'From' address)" -#: ../interfaces.py:107 +#. Default: "If selected, the moderator is notified if a comment needs attention. The moderator email address can be set below." +#: ../interfaces.py:304 msgid "help_moderator_notification_enabled" msgstr "" #. Default: "If selected, an image of the user is shown next to the comment." -#: ../interfaces.py:97 +#: ../interfaces.py:293 msgid "help_show_commenter_image" msgstr "" #. Default: "Use this setting to choose if the comment text should be transformed in any way. You can choose between 'Plain text' and 'Intelligent text'. 'Intelligent text' converts plain text into HTML where line breaks and indentation is preserved, and web and email addresses are made into clickable links." -#: ../interfaces.py:66 +#: ../interfaces.py:260 msgid "help_text_transform" msgstr "" #. Default: "If selected, users can choose to be notified of new comments by email." -#: ../interfaces.py:127 +#: ../interfaces.py:330 msgid "help_user_notification_enabled" msgstr "" #. Default: "Anonymous" -#: ../comment.py:156 +#: ../browser/comments.pt:74 +#: ../comment.py:191 msgid "label_anonymous" msgstr "" #. Default: "Enable anonymous comments" -#: ../interfaces.py:36 +#: ../interfaces.py:214 msgid "label_anonymous_comments" msgstr "" +#. Default: "Enable anonymous email field" +#: ../interfaces.py:339 +msgid "label_anonymous_email_enabled" +msgstr "" + #. Default: "Apply" #: ../browser/moderation.pt:71 msgid "label_apply" msgstr "" #. Default: "Captcha" -#: ../interfaces.py:80 +#: ../interfaces.py:275 msgid "label_captcha" msgstr "" #. Default: "Comment" -#: ../interfaces.py:275 +#: ../interfaces.py:163 msgid "label_comment" msgstr "" #. Default: "Commenting has been disabled." -#: ../browser/comments.pt:130 +#: ../browser/comments.pt:148 msgid "label_commenting_disabled" msgstr "" @@ -296,23 +374,28 @@ msgstr "" msgid "label_delete" msgstr "" +#. Default: "Enable editing of comments" +#: ../interfaces.py:247 +msgid "label_edit_comment_enabled" +msgstr "" + #. Default: "Globally enable comments" -#: ../interfaces.py:24 +#: ../interfaces.py:200 msgid "label_globally_enabled" msgstr "" #. Default: "Enable comment moderation" -#: ../interfaces.py:48 +#: ../interfaces.py:228 msgid "label_moderation_enabled" msgstr "" #. Default: "Moderator Email Address" -#: ../interfaces.py:117 +#: ../interfaces.py:314 msgid "label_moderator_email" msgstr "" #. Default: "Enable moderator email notification" -#: ../interfaces.py:105 +#: ../interfaces.py:302 msgid "label_moderator_notification_enabled" msgstr "" @@ -322,12 +405,12 @@ msgid "label_publish" msgstr "" #. Default: "says:" -#: ../browser/comments.pt:74 +#: ../browser/comments.pt:77 msgid "label_says" msgstr "" #. Default: "Show commenter image" -#: ../interfaces.py:95 +#: ../interfaces.py:291 msgid "label_show_commenter_image" msgstr "" @@ -337,27 +420,27 @@ msgid "label_show_full_comment_text" msgstr "" #. Default: "Subject" -#: ../interfaces.py:271 +#: ../interfaces.py:158 msgid "label_subject" msgstr "" #. Default: "Comment text transform" -#: ../interfaces.py:64 +#: ../interfaces.py:258 msgid "label_text_transform" msgstr "" #. Default: "Enable user email notification" -#: ../interfaces.py:125 +#: ../interfaces.py:326 msgid "label_user_notification_enabled" msgstr "" #. Default: "A comment on '${title}' has been posted here: ${link}\n\n---\n${text}\n---\n" -#: ../comment.py:50 +#: ../comment.py:59 msgid "mail_notification_message" msgstr "" #. Default: "A comment on '${title}' has been posted here: ${link}\n\n---\n${text}\n---\n\nApprove comment:\n${link_approve}\n\nDelete comment:\n${link_delete}\n" -#: ../comment.py:58 +#: ../comment.py:67 msgid "mail_notification_message_moderator" msgstr "" diff --git a/plone/app/discussion/locales/pt/LC_MESSAGES/plone.app.discussion.po b/plone/app/discussion/locales/pt/LC_MESSAGES/plone.app.discussion.po new file mode 100644 index 0000000..07cad35 --- /dev/null +++ b/plone/app/discussion/locales/pt/LC_MESSAGES/plone.app.discussion.po @@ -0,0 +1,480 @@ +msgid "" +msgstr "" +"Project-Id-Version: plone.app.discussion\n" +"POT-Creation-Date: YEAR-MO-DA HO:MI +ZONE\n" +"PO-Revision-Date: 2011-04-14 17:20-0300\n" +"Last-Translator: Rui Dinis Silva \n" +"Language-Team: Eurotux \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" +"Language-Code: pt\n" +"Language-Name: Portuguese\n" +"Preferred-Encodings: utf-8 latin1\n" +"Domain: plone.app.discussion\n" +"X-Poedit-Language: Português\n" + +#: ../comment.py:357 +msgid "A comment has been posted." +msgstr "Foi adicionado um comentário." + +#: ../interfaces.py:144 +msgid "A comment id unique to this conversation" +msgstr "Um id do comentário único para esta conversação." + +#: ../browser/comments.py:72 +msgid "Add a comment" +msgstr "Adicionar comentário" + +#: ../browser/controlpanel.py:75 +msgid "Anonymous Comments" +msgstr "Comentários Anónimos" + +#: ../browser/comments.py:274 +#: ../browser/controlpanel.py:93 +msgid "Cancel" +msgstr "Cancelar" + +#: ../browser/controlpanel.py:89 +msgid "Changes saved" +msgstr "Alterações guardadas" + +#: ../browser/moderation.py:154 +msgid "Comment approved." +msgstr "Comentário aprovado" + +#: ../contentrules.py:96 +msgid "Comment author email" +msgstr "" + +#: ../contentrules.py:85 +msgid "Comment author full name" +msgstr "" + +#: ../contentrules.py:74 +msgid "Comment author user name" +msgstr "" + +#: ../browser/moderation.py:108 +msgid "Comment deleted." +msgstr "Comentário excluído." + +#: ../contentrules.py:52 +msgid "Comment id" +msgstr "" + +#: ../contentrules.py:63 +msgid "Comment text" +msgstr "" + +#: ../browser/controlpanel.py:76 +msgid "Commenter Image" +msgstr "Imagem do comentador" + +msgid "Commenting infrastructure for Plone" +msgstr "Infraestrutura de comentários para o Plone" + +#: ../contentrules.py:51 +msgid "Comments" +msgstr "" + +#: ../interfaces.py:139 +msgid "Conversation" +msgstr "Conversação" + +#: ../interfaces.py:177 +msgid "Creation date" +msgstr "Data de criação" + +#: ../interfaces.py:41 +msgid "Date of the most recent public comment" +msgstr "" + +#: ../vocabularies.py:44 +msgid "Disabled" +msgstr "Desativado" + +#: ../browser/controlpanel.py:35 +msgid "Discussion settings" +msgstr "Configurações da discussão" + +#: ../browser/controlpanel.py:95 +msgid "Edit cancelled" +msgstr "Edição cancelada" + +#: ../interfaces.py:156 +msgid "Email" +msgstr "Email" + +#: ../browser/controlpanel.py:74 +msgid "Enable Comments" +msgstr "Permitir comentários" + +#: ../interfaces.py:147 +msgid "Id of comment this comment is in reply to" +msgstr "ID do comentário para qual este comentário é resposta" + +#: ../interfaces.py:161 +msgid "MIME type" +msgstr "MIME type" + +#: ../browser/controlpanel.py:78 +msgid "Moderator Email Notification" +msgstr "Notificação de e-mail para o moderador" + +#: ../interfaces.py:178 +msgid "Modification date" +msgstr "Data de modificação" + +#: ../interfaces.py:141 +msgid "Name" +msgstr "Nome" + +#: ../interfaces.py:170 +msgid "Notify me of new comments via email." +msgstr "Notificar-me por email da existência de novos comentários." + +#: ./plone.app.discussion/plone/app/discussion/configure.zcml +msgid "Plone Discussions" +msgstr "Discussões Plone" + +#: ../interfaces.py:134 +msgid "Portal type" +msgstr "Tipo de conteúdo" + +#: ../browser/controlpanel.py:82 +msgid "Save" +msgstr "Guardar" + +#: ../interfaces.py:46 +msgid "The set of unique commentators (usernames)" +msgstr "Lista de utilizadores que fizeram comentários (nome de utilizador)" + +#: ../interfaces.py:51 +msgid "The set of unique commentators (usernames) of published_comments" +msgstr "" + +#: ../interfaces.py:35 +msgid "Total number of public comments on this item" +msgstr "" + +#: ../comment.py:173 +msgid "Transform '%s' => '%s' not available." +msgstr "" + +#: ../browser/controlpanel.py:80 +msgid "User Email Notification" +msgstr "Notificar o utilizador por email" + +#: ../interfaces.py:176 +msgid "Username of the commenter" +msgstr "" + +#: ../browser/comments.py:267 +msgid "Your comment awaits moderator approval." +msgstr "Seu comentário encontra-se pendente e aguarda a aprovação do moderador." + +#. Default: "Comment" +#: ../browser/comments.py:138 +msgid "add_comment_button" +msgstr "Comentar" + +#. Default: "Delete" +#: ../browser/moderation.pt:68 +msgid "bulkactions_delete" +msgstr "Excluir" + +#. Default: "Approve" +#: ../browser/moderation.pt:65 +msgid "bulkactions_publish" +msgstr "Publicar" + +#. Default: "Cancel" +#: ../browser/comment.py:97 +msgid "cancel_form_button" +msgstr "" + +#. Default: "You can add a comment by filling out the form below. Plain text formatting. Web and email addresses are transformed into clickable links." +#: ../browser/comments.py:57 +msgid "comment_description_intelligent_text" +msgstr "Pode adicionar um comentário usando o formulário a seguir. Campo de texto simples. Endereços web e e-mail são transformados em links clicáveis." + +#. Default: "You can add a comment by filling out the form below. Plain text formatting. You can use the Markdown syntax for links and images." +#: ../browser/comments.py:51 +msgid "comment_description_markdown" +msgstr "" + +#. Default: "Comments are moderated." +#: ../browser/comments.py:63 +msgid "comment_description_moderation_enabled" +msgstr "Os comentários são moderados" + +#. Default: "You can add a comment by filling out the form below. Plain text formatting." +#: ../browser/comments.py:46 +msgid "comment_description_plain_text" +msgstr "Pode adicionar um comentário usando o formulário a seguir. Campo de texto simples." + +#. Default: "Edit comment cancelled" +#: ../browser/comment.py:101 +msgid "comment_edit_cancel_notification" +msgstr "" + +#. Default: "Comment was edited" +#: ../browser/comment.py:91 +msgid "comment_edit_notification" +msgstr "" + +#. Default: "${author_name} on ${content}" +#: ../comment.py:55 +#, fuzzy +msgid "comment_title" +msgstr "${creator} em ${content}" + +#. Default: "Edit comment" +#: ../browser/comment.py:70 +msgid "edit_comment_form_button" +msgstr "" + +#. Default: "Edit comment" +#: ../browser/comment.py:54 +msgid "edit_comment_form_title" +msgstr "" + +#. Default: "Action" +#: ../browser/moderation.pt:85 +msgid "heading_action" +msgstr "Acção" + +#. Default: "Comment" +#: ../browser/moderation.pt:84 +msgid "heading_comment" +msgstr "Comentário" + +#. Default: "Commenter" +#: ../browser/moderation.pt:81 +msgid "heading_commenter" +msgstr "Autor" + +#. Default: "Date" +#: ../browser/moderation.pt:82 +msgid "heading_date" +msgstr "Data" + +#. Default: "In Response To" +#: ../browser/moderation.pt:83 +msgid "heading_in_reponse_to" +msgstr "Em resposta a" + +#. Default: "Moderate comments" +#: ../browser/moderation.pt:24 +msgid "heading_moderate_comments" +msgstr "Moderar comentários" + +#. Default: "If selected, anonymous users are able to post comments without loggin in. It is highly recommended to use a captcha solution to prevent spam if this setting is enabled." +#: ../interfaces.py:216 +msgid "help_anonymous_comments" +msgstr "Se selecionado, os utilizadores anonimos poderão adicionar comentários sem estar autenticados. É altamente recomendável a utilização de uma solução de captcha para evitar spam quando esta configuração está activa." + +#. Default: "If selected, anonymous user will have to give their email." +#: ../interfaces.py:341 +msgid "help_anonymous_email_enabled" +msgstr "" + +#. Default: "Use this setting to enable or disable Captcha validation for comments. Install plone.formwidget.captcha, plone.formwidget.recaptcha, collective.akismet, or collective.z3cform.norobots if there are no options available." +#: ../interfaces.py:277 +msgid "help_captcha" +msgstr "Utilize esta opção para ativar ou desativar o Captcha para os comentários. Instale plone.formwidget.captcha, plone.formwidget.recaptcha, collective.akismet ou collective.z3cform.norobots caso não tenha nenhuma opção disponível." + +#. Default: "Some discussion related settings are not located in the Discussion Control Panel.\nTo enable comments for a specific content type, go to the Types Control Panel of this type and choose \"Allow comments\".\nTo enable the moderation workflow for comments, go to the Types Control Panel, choose \"Comment\" and set workflow to \"Comment Review Workflow\"." +#: ../browser/controlpanel.py:36 +msgid "help_discussion_settings_editform" +msgstr "" +"Algumas configurações relacionadas com os comentários não se encontram localizadas no Painel de Controle de Comentários.\n" +"Para activar os comentários para um tipo de item específico, aceda à configuração de Tipos no Painel de Controle, encontre o tipo desejado e selecione \"Permitir comentários \".\n" +"Para ativar o workflow de moderação de comentários, aceda à configuração de Tipos no Painel de Controle, escolha \"Comentário\" e selecione o workflow para \"Workflow de Revisão de Comentários\"." + +#. Default: "If selected, supports editing and deletion of comments for users with the 'Edit comments' permission." +#: ../interfaces.py:249 +msgid "help_edit_comment_enabled" +msgstr "" + +#. Default: "If selected, users are able to post comments on the site. Though, you have to enable comments for specific content types, folders or content objects before users will be able to post comments." +#: ../interfaces.py:202 +msgid "help_globally_enabled" +msgstr "Se selecionado, permite que os visitantes adicionem comentários ao site. Porém, você deve habilitar comentários para cada tipo de conteúdo antes que os usuários possam adicionar comentários." + +#. Default: "If selected, comments will enter a 'Pending' state in which they are invisible to the public. A user with the 'Review comments' permission ('Reviewer' or 'Manager') can approve comments to make them visible to the public. If you want to enable a custom comment workflow, you have to go to the types control panel." +#: ../interfaces.py:232 +msgid "help_moderation_enabled" +msgstr "Se selecionado, os comentários serão adicionados no estado \"Pendente\", que é invisível ao público. Utilizadores com permissão para 'Moderar Comentários' ('Gestor' ou 'Administrador') podem aprovar os comentários para torná-los visíveis ao público. Caso queira ativar um workflow de comentários personalizado, aceda à Configuração dos Tipos no Painel de Controle." + +#. Default: "Address to which moderator notifications will be sent." +#: ../interfaces.py:318 +msgid "help_moderator_email" +msgstr "Endereço para o qual as notificações do moderador serão enviadas." + +#. Default: "If selected, the moderator is notified if a comment needs attention. The moderator email address can be set below." +#: ../interfaces.py:304 +#, fuzzy +msgid "help_moderator_notification_enabled" +msgstr "Se selecionado, o moderador será avisado quando um comentário precisar de atenção. O endereço de e-mail do moderador pode ser encontrado nas configurações de e-mail no Painel de Controle (campo Endereço de 'Remetente' do site)" + +#. Default: "If selected, an image of the user is shown next to the comment." +#: ../interfaces.py:293 +msgid "help_show_commenter_image" +msgstr "Se selecionado, uma imagem do usuário será exibida próxima ao comentário." + +#. Default: "Use this setting to choose if the comment text should be transformed in any way. You can choose between 'Plain text' and 'Intelligent text'. 'Intelligent text' converts plain text into HTML where line breaks and indentation is preserved, and web and email addresses are made into clickable links." +#: ../interfaces.py:260 +msgid "help_text_transform" +msgstr "Use esta configuração para escolher se o texto do comentário deve ser transformado. Você pode escolher entre 'texto puro' e 'texto inteligente'. 'Texto inteligente' converte texto simples em HTML, onde as quebras de linha e os recuos são preservados, e os endereços web e e-mail são transformados em links clicáveis." + +#. Default: "If selected, users can choose to be notified of new comments by email." +#: ../interfaces.py:330 +msgid "help_user_notification_enabled" +msgstr "Se selecionado, permite aos usuários solicitar o notificações por e-mail sempre que hover um novo comentário." + +#. Default: "Anonymous" +#: ../browser/comments.pt:74 +#: ../comment.py:191 +msgid "label_anonymous" +msgstr "Anónimo" + +#. Default: "Enable anonymous comments" +#: ../interfaces.py:214 +msgid "label_anonymous_comments" +msgstr "Permitir comentários anónimos." + +#. Default: "Enable anonymous email field" +#: ../interfaces.py:339 +msgid "label_anonymous_email_enabled" +msgstr "" + +#. Default: "Apply" +#: ../browser/moderation.pt:71 +msgid "label_apply" +msgstr "Aplicar" + +#. Default: "Captcha" +#: ../interfaces.py:275 +msgid "label_captcha" +msgstr "Captcha" + +#. Default: "Comment" +#: ../interfaces.py:163 +msgid "label_comment" +msgstr "Comentário" + +#. Default: "Commenting has been disabled." +#: ../browser/comments.pt:148 +msgid "label_commenting_disabled" +msgstr "Os comentários foram desativados." + +#. Default: "Delete" +#: ../browser/moderation.pt:130 +msgid "label_delete" +msgstr "Excluir" + +#. Default: "Enable editing of comments" +#: ../interfaces.py:247 +msgid "label_edit_comment_enabled" +msgstr "" + +#. Default: "Globally enable comments" +#: ../interfaces.py:200 +msgid "label_globally_enabled" +msgstr "Ativar comentários globalmente" + +#. Default: "Enable comment moderation" +#: ../interfaces.py:228 +msgid "label_moderation_enabled" +msgstr "Ativar moderação de comentários" + +#. Default: "Moderator Email Address" +#: ../interfaces.py:314 +msgid "label_moderator_email" +msgstr "Endereço de e-mail do moderador" + +#. Default: "Enable moderator email notification" +#: ../interfaces.py:302 +msgid "label_moderator_notification_enabled" +msgstr "Ativar notificação ao moderador" + +#. Default: "Approve" +#: ../browser/moderation.pt:121 +msgid "label_publish" +msgstr "Aprovar" + +#. Default: "says:" +#: ../browser/comments.pt:77 +msgid "label_says" +msgstr "disse:" + +#. Default: "Show commenter image" +#: ../interfaces.py:291 +msgid "label_show_commenter_image" +msgstr "Exibir imagem do autor" + +#. Default: "show full comment text" +#: ../browser/moderation.pt:114 +msgid "label_show_full_comment_text" +msgstr "Exibir texto completo" + +#. Default: "Subject" +#: ../interfaces.py:158 +msgid "label_subject" +msgstr "Assunto" + +#. Default: "Comment text transform" +#: ../interfaces.py:258 +msgid "label_text_transform" +msgstr "Transformações aplicadas ao texto do comentário" + +#. Default: "Enable user email notification" +#: ../interfaces.py:326 +msgid "label_user_notification_enabled" +msgstr "Activar notificação de utilizadores por email" + +#. Default: "A comment on '${title}' has been posted here: ${link}\n\n---\n${text}\n---\n" +#: ../comment.py:59 +#, fuzzy +msgid "mail_notification_message" +msgstr "Um comentário em '${title}' foi adicionado aqui: ${link}" + +#. Default: "A comment on '${title}' has been posted here: ${link}\n\n---\n${text}\n---\n\nApprove comment:\n${link_approve}\n\nDelete comment:\n${link_delete}\n" +#: ../comment.py:67 +msgid "mail_notification_message_moderator" +msgstr "" +"Um comentário sobre '${title}' foi adicionado aqui: ${link}\n" +"\n" +"---\n" +"${text}\n" +"---\n" +"\n" +"Aprovar comentário:\n" +"${link_approve}\n" +"\n" +"Apagar comentário:\n" +"${link_delete}\n" + +#. Default: "enable the 'Comment Review Workflow' for the Comment content type" +#: ../browser/moderation.pt:33 +msgid "message_enable_comment_workflow" +msgstr "Ativar 'Workflow de Moderação de Comentários\" para o tipo de item Comentário" + +#. Default: "Moderation workflow is disabled. You have to ${enable_comment_workflow} before you can moderate comments here." +#: ../browser/moderation.pt:33 +msgid "message_moderation_disabled" +msgstr "A moderação está desativada. Tem de ${enable_comment_workflow} antes de poder moderar os comentários aqui." + +#. Default: "No comments to moderate." +#: ../browser/moderation.pt:43 +msgid "message_nothing_to_moderate" +msgstr "Nenhum comentário para moderação." + +#. Default: "Bulk Actions" +#: ../browser/moderation.pt:64 +msgid "title_bulkactions" +msgstr "Ações em massa" + diff --git a/plone/app/discussion/locales/pt_BR/LC_MESSAGES/plone.app.discussion.po b/plone/app/discussion/locales/pt_BR/LC_MESSAGES/plone.app.discussion.po index b304ee2..0340943 100644 --- a/plone/app/discussion/locales/pt_BR/LC_MESSAGES/plone.app.discussion.po +++ b/plone/app/discussion/locales/pt_BR/LC_MESSAGES/plone.app.discussion.po @@ -2,7 +2,7 @@ msgid "" msgstr "" "Project-Id-Version: plone.app.discussion\n" "POT-Creation-Date: YEAR-MO-DA HO:MI +ZONE\n" -"PO-Revision-Date: 2011-04-14 17:20-0300\n" +"PO-Revision-Date: 2013-04-06 14:49+0200\n" "Last-Translator: Andre Nogueira \n" "Language-Team: Plone i18n \n" "MIME-Version: 1.0\n" @@ -15,103 +15,123 @@ msgstr "" "Domain: plone.app.discussion\n" "X-Poedit-Language: Português do Brasil\n" -#: ../comment.py:264 +#: ../comment.py:357 msgid "A comment has been posted." msgstr "Comentário adicionado." -#: ../interfaces.py:257 +#: ../interfaces.py:144 msgid "A comment id unique to this conversation" msgstr "Um comentário com ID exclusivo para esta conversação" -#: ../browser/comments.py:67 +#: ../browser/comments.py:72 msgid "Add a comment" msgstr "Adicionar comentário" -#: ../browser/controlpanel.py:62 +#: ../browser/controlpanel.py:75 msgid "Anonymous Comments" msgstr "Comentários Anônimos" -#: ../interfaces.py:282 -msgid "Author name (for display)" -msgstr "Nome do autor (para exibição)" - -#: ../browser/comments.py:248 -#: ../browser/controlpanel.py:80 +#: ../browser/comments.py:274 +#: ../browser/controlpanel.py:93 msgid "Cancel" msgstr "Cancelar" -#: ../browser/controlpanel.py:76 +#: ../browser/controlpanel.py:89 msgid "Changes saved" msgstr "Alterações salvas" -#: ../browser/moderation.py:133 +#: ../browser/moderation.py:154 msgid "Comment approved." msgstr "Comentário aprovado" -#: ../browser/moderation.py:94 +#: ../contentrules.py:96 +msgid "Comment author email" +msgstr "" + +#: ../contentrules.py:85 +msgid "Comment author full name" +msgstr "" + +#: ../contentrules.py:74 +msgid "Comment author user name" +msgstr "" + +#: ../browser/moderation.py:108 msgid "Comment deleted." msgstr "Comentário excluído." -#: ../browser/controlpanel.py:63 +#: ../contentrules.py:52 +msgid "Comment id" +msgstr "" + +#: ../contentrules.py:63 +msgid "Comment text" +msgstr "" + +#: ../browser/controlpanel.py:76 msgid "Commenter Image" msgstr "Imagedo autor" msgid "Commenting infrastructure for Plone" msgstr "Infraestrutura de comentários para o Plone" -#: ../interfaces.py:252 +#: ../contentrules.py:51 +msgid "Comments" +msgstr "" + +#: ../interfaces.py:139 msgid "Conversation" msgstr "Conversação" -#: ../interfaces.py:283 +#: ../interfaces.py:177 msgid "Creation date" msgstr "Data de criação" -#: ../interfaces.py:162 -msgid "Date of the most recent comment" -msgstr "Data do comentário mais recente" +#: ../interfaces.py:41 +msgid "Date of the most recent public comment" +msgstr "Data do comentário, público, mais recente" #: ../vocabularies.py:44 msgid "Disabled" msgstr "Desativado" -#: ../browser/controlpanel.py:32 +#: ../browser/controlpanel.py:35 msgid "Discussion settings" msgstr "Configurações da discussão" -#: ../browser/controlpanel.py:82 +#: ../browser/controlpanel.py:95 msgid "Edit cancelled" msgstr "Edição cancelada" -#: ../interfaces.py:269 +#: ../interfaces.py:156 msgid "Email" msgstr "E-mail" -#: ../browser/controlpanel.py:61 +#: ../browser/controlpanel.py:74 msgid "Enable Comments" msgstr "Permitir comentários" -#: ../interfaces.py:260 +#: ../interfaces.py:147 msgid "Id of comment this comment is in reply to" msgstr "ID do comentário para qual este comentário é resposta" -#: ../interfaces.py:274 +#: ../interfaces.py:161 msgid "MIME type" msgstr "MIME type" -#: ../browser/controlpanel.py:65 +#: ../browser/controlpanel.py:78 msgid "Moderator Email Notification" msgstr "Notificação de e-mail para o moderador" -#: ../interfaces.py:284 +#: ../interfaces.py:178 msgid "Modification date" msgstr "Data de modificação" -#: ../interfaces.py:254 +#: ../interfaces.py:141 msgid "Name" msgstr "Nome" -#: ../interfaces.py:278 +#: ../interfaces.py:170 msgid "Notify me of new comments via email." msgstr "Receber avisos por e-mail para novos comentários." @@ -119,32 +139,44 @@ msgstr "Receber avisos por e-mail para novos comentários." msgid "Plone Discussions" msgstr "Plone Discussions" -#: ../interfaces.py:247 +#: ../interfaces.py:134 msgid "Portal type" msgstr "Tipo de objeto" -#: ../browser/controlpanel.py:69 +#: ../browser/controlpanel.py:82 msgid "Save" msgstr "Salvar" -#: ../interfaces.py:167 +#: ../interfaces.py:46 msgid "The set of unique commentators (usernames)" msgstr "Lista de usuários que fizeram comentários (nome de usuário)" -#: ../interfaces.py:156 -msgid "Total number of comments on this item" -msgstr "Número total de comentários para este item" +#: ../interfaces.py:51 +msgid "The set of unique commentators (usernames) of published_comments" +msgstr "O grupo de comentadoristas (nomes de usuários) com comentários publicados" -#: ../browser/controlpanel.py:67 +#: ../interfaces.py:35 +msgid "Total number of public comments on this item" +msgstr "Número total de comentários públicos neste item" + +#: ../comment.py:173 +msgid "Transform '%s' => '%s' not available." +msgstr "" + +#: ../browser/controlpanel.py:80 msgid "User Email Notification" msgstr "Notificação de e-mail para o usuário" -#: ../browser/comments.py:241 +#: ../interfaces.py:176 +msgid "Username of the commenter" +msgstr "Nome de usuário do comentarista" + +#: ../browser/comments.py:267 msgid "Your comment awaits moderator approval." msgstr "Seu comentário está pendente e aguarda a aprovação do moderador." #. Default: "Comment" -#: ../browser/comments.py:123 +#: ../browser/comments.py:138 msgid "add_comment_button" msgstr "Comentar" @@ -158,26 +190,57 @@ msgstr "Excluir" msgid "bulkactions_publish" msgstr "Publicar" +#. Default: "Cancel" +#: ../browser/comment.py:97 +msgid "cancel_form_button" +msgstr "" + #. Default: "You can add a comment by filling out the form below. Plain text formatting. Web and email addresses are transformed into clickable links." -#: ../browser/comments.py:52 +#: ../browser/comments.py:57 msgid "comment_description_intelligent_text" msgstr "Você pode adicionar um comentário preenchendo o formulário a seguir. Campo de texto simples. Endereços web e e-mail são transformados em links clicáveis." +#. Default: "You can add a comment by filling out the form below. Plain text formatting. You can use the Markdown syntax for links and images." +#: ../browser/comments.py:51 +msgid "comment_description_markdown" +msgstr "Você pode adicionar um comentário preenchendo o formulário abaixo. Use apenas texto sem formatação. Você pode utilizar a sintaxe Markdown para links e imagens." + #. Default: "Comments are moderated." -#: ../browser/comments.py:58 +#: ../browser/comments.py:63 msgid "comment_description_moderation_enabled" msgstr "Os comentários são moderados" #. Default: "You can add a comment by filling out the form below. Plain text formatting." -#: ../browser/comments.py:47 +#: ../browser/comments.py:46 msgid "comment_description_plain_text" msgstr "Você pode adicionar um comentário preenchendo o formulário a seguir. Campo de texto simples." -#. Default: "${creator} on ${content}" -#: ../comment.py:46 +#. Default: "Edit comment cancelled" +#: ../browser/comment.py:101 +msgid "comment_edit_cancel_notification" +msgstr "" + +#. Default: "Comment was edited" +#: ../browser/comment.py:91 +msgid "comment_edit_notification" +msgstr "" + +#. Default: "${author_name} on ${content}" +#: ../comment.py:55 +#, fuzzy msgid "comment_title" msgstr "${creator} em ${content}" +#. Default: "Edit comment" +#: ../browser/comment.py:70 +msgid "edit_comment_form_button" +msgstr "" + +#. Default: "Edit comment" +#: ../browser/comment.py:54 +msgid "edit_comment_form_title" +msgstr "" + #. Default: "Action" #: ../browser/moderation.pt:85 msgid "heading_action" @@ -209,85 +272,102 @@ msgid "heading_moderate_comments" msgstr "Moderar comentários" #. Default: "If selected, anonymous users are able to post comments without loggin in. It is highly recommended to use a captcha solution to prevent spam if this setting is enabled." -#: ../interfaces.py:38 +#: ../interfaces.py:216 msgid "help_anonymous_comments" msgstr "Se selecionado, usuários anonimos poderão adicionar comentários sem precisar de usuário e senha. É altamente recomendável a utilização de uma solução de captcha para evitar spam caso esta configuração esteja ativada." +#. Default: "If selected, anonymous user will have to give their email." +#: ../interfaces.py:341 +msgid "help_anonymous_email_enabled" +msgstr "Caso selecionado, usuários anônimos devem informar um email." + #. Default: "Use this setting to enable or disable Captcha validation for comments. Install plone.formwidget.captcha, plone.formwidget.recaptcha, collective.akismet, or collective.z3cform.norobots if there are no options available." -#: ../interfaces.py:82 +#: ../interfaces.py:277 msgid "help_captcha" msgstr "Utilize esta opção para ativar ou desativar o Captcha para os comentários. Instale plone.formwidget.captcha, plone.formwidget.recaptcha, collective.akismet ou collective.z3cform.norobots caso não tenha nenhuma opção disponível." #. Default: "Some discussion related settings are not located in the Discussion Control Panel.\nTo enable comments for a specific content type, go to the Types Control Panel of this type and choose \"Allow comments\".\nTo enable the moderation workflow for comments, go to the Types Control Panel, choose \"Comment\" and set workflow to \"Comment Review Workflow\"." -#: ../browser/controlpanel.py:33 +#: ../browser/controlpanel.py:36 msgid "help_discussion_settings_editform" msgstr "" "Algumas configurações relacionadas a comentários não estão localizadas no Painel de Controle de Comentários.\n" "Para habilitar comentários para um tipo de item específico, vá até a configuração de Tipos no Painel de Controle, encontre o tipo desejado e selecione \"Permitir comentários \".\n" "Para ativar o workflow de moderação de comentários, vá até a configuração de Tipos no Painel de Controle, escolha \"Comentário\" e selecione o workflow para \"Workflow de Revisão de Comentários\"." +#. Default: "If selected, supports editing and deletion of comments for users with the 'Edit comments' permission." +#: ../interfaces.py:249 +msgid "help_edit_comment_enabled" +msgstr "" + #. Default: "If selected, users are able to post comments on the site. Though, you have to enable comments for specific content types, folders or content objects before users will be able to post comments." -#: ../interfaces.py:26 +#: ../interfaces.py:202 msgid "help_globally_enabled" msgstr "Caso selecionado, permite que os visitantes adicionem comentários ao site. Porém, você deve habilitar comentários para cada tipo de conteúdo antes que os usuários possam adicionar comentários." #. Default: "If selected, comments will enter a 'Pending' state in which they are invisible to the public. A user with the 'Review comments' permission ('Reviewer' or 'Manager') can approve comments to make them visible to the public. If you want to enable a custom comment workflow, you have to go to the types control panel." -#: ../interfaces.py:50 +#: ../interfaces.py:232 msgid "help_moderation_enabled" msgstr "Caso selecionado, os comentários serão adicionados no estado \"Pendente\", que é invisível ao público. Usuários com permissão para 'Revisar Comentários' ('Revisor' ou 'Administrador') podem aprovar os comentários para torná-los visíveis ao público. Caso queira ativar um workflow de comentários personalizado, você deve ir até a Configuração dos Tipos no Painel de Controle." #. Default: "Address to which moderator notifications will be sent." -#: ../interfaces.py:118 +#: ../interfaces.py:318 msgid "help_moderator_email" msgstr "Endereço para o qual as notificações do moderador serão enviadas." -#. Default: "If selected, the moderator is notified if a comment needs attention. The moderator email address can be found in the 'Mail settings' control panel (Site 'From' address)" -#: ../interfaces.py:107 +#. Default: "If selected, the moderator is notified if a comment needs attention. The moderator email address can be set below." +#: ../interfaces.py:304 +#, fuzzy msgid "help_moderator_notification_enabled" msgstr "Se selecionado, o moderador será avisado quando um comentário precisar de atenção. O endereço de e-mail do moderador pode ser encontrado nas configurações de e-mail no Painel de Controle (campo Endereço de 'Remetente' do site)" #. Default: "If selected, an image of the user is shown next to the comment." -#: ../interfaces.py:97 +#: ../interfaces.py:293 msgid "help_show_commenter_image" msgstr "Se selecionado, uma imagem do usuário será exibida próxima ao comentário." #. Default: "Use this setting to choose if the comment text should be transformed in any way. You can choose between 'Plain text' and 'Intelligent text'. 'Intelligent text' converts plain text into HTML where line breaks and indentation is preserved, and web and email addresses are made into clickable links." -#: ../interfaces.py:66 +#: ../interfaces.py:260 msgid "help_text_transform" msgstr "Use esta configuração para escolher se o texto do comentário deve ser transformado. Você pode escolher entre 'texto puro' e 'texto inteligente'. 'Texto inteligente' converte texto simples em HTML, onde as quebras de linha e os recuos são preservados, e os endereços web e e-mail são transformados em links clicáveis." #. Default: "If selected, users can choose to be notified of new comments by email." -#: ../interfaces.py:127 +#: ../interfaces.py:330 msgid "help_user_notification_enabled" msgstr "Se selecionado, permite aos usuários solicitar o recebimento de avisos por e-mail sempre que hover um novo comentário." #. Default: "Anonymous" -#: ../comment.py:156 +#: ../browser/comments.pt:74 +#: ../comment.py:191 msgid "label_anonymous" msgstr "Anônimo" #. Default: "Enable anonymous comments" -#: ../interfaces.py:36 +#: ../interfaces.py:214 msgid "label_anonymous_comments" msgstr "Permitir comentários anônimos." +#. Default: "Enable anonymous email field" +#: ../interfaces.py:339 +msgid "label_anonymous_email_enabled" +msgstr "Habilitar campo de email para usuários anônimos" + #. Default: "Apply" #: ../browser/moderation.pt:71 msgid "label_apply" msgstr "Aplicar" #. Default: "Captcha" -#: ../interfaces.py:80 +#: ../interfaces.py:275 msgid "label_captcha" msgstr "Captcha" #. Default: "Comment" -#: ../interfaces.py:275 +#: ../interfaces.py:163 msgid "label_comment" msgstr "Comentário" #. Default: "Commenting has been disabled." -#: ../browser/comments.pt:130 +#: ../browser/comments.pt:148 msgid "label_commenting_disabled" msgstr "Comentários foram desativados." @@ -296,23 +376,28 @@ msgstr "Comentários foram desativados." msgid "label_delete" msgstr "Excluir" +#. Default: "Enable editing of comments" +#: ../interfaces.py:247 +msgid "label_edit_comment_enabled" +msgstr "" + #. Default: "Globally enable comments" -#: ../interfaces.py:24 +#: ../interfaces.py:200 msgid "label_globally_enabled" msgstr "Ativar comentários globalmente" #. Default: "Enable comment moderation" -#: ../interfaces.py:48 +#: ../interfaces.py:228 msgid "label_moderation_enabled" msgstr "Ativar moderação de comentários" #. Default: "Moderator Email Address" -#: ../interfaces.py:117 +#: ../interfaces.py:314 msgid "label_moderator_email" msgstr "Endereço de e-mail do moderador" #. Default: "Enable moderator email notification" -#: ../interfaces.py:105 +#: ../interfaces.py:302 msgid "label_moderator_notification_enabled" msgstr "Ativar notificação ao moderador" @@ -322,12 +407,12 @@ msgid "label_publish" msgstr "Aprovar" #. Default: "says:" -#: ../browser/comments.pt:74 +#: ../browser/comments.pt:77 msgid "label_says" msgstr "disse:" #. Default: "Show commenter image" -#: ../interfaces.py:95 +#: ../interfaces.py:291 msgid "label_show_commenter_image" msgstr "Exibir imagem do autor" @@ -337,30 +422,40 @@ msgid "label_show_full_comment_text" msgstr "Exibir texto completo" #. Default: "Subject" -#: ../interfaces.py:271 +#: ../interfaces.py:158 msgid "label_subject" msgstr "Assunto" #. Default: "Comment text transform" -#: ../interfaces.py:64 +#: ../interfaces.py:258 msgid "label_text_transform" msgstr "Transformações aplicadas ao texto do comentário" #. Default: "Enable user email notification" -#: ../interfaces.py:125 +#: ../interfaces.py:326 msgid "label_user_notification_enabled" msgstr "Ativar notificação de e-mail para os usuários" #. Default: "A comment on '${title}' has been posted here: ${link}\n\n---\n${text}\n---\n" -#: ../comment.py:50 +#: ../comment.py:59 #, fuzzy msgid "mail_notification_message" msgstr "Um comentário em '${title}' foi adicionado aqui: ${link}" #. Default: "A comment on '${title}' has been posted here: ${link}\n\n---\n${text}\n---\n\nApprove comment:\n${link_approve}\n\nDelete comment:\n${link_delete}\n" -#: ../comment.py:58 +#: ../comment.py:67 msgid "mail_notification_message_moderator" msgstr "" +"Um comentário no conteúdo '${title}' foi adicionado em: ${link}\n" +"\n" +"---\n" +"${text}\n" +"---\n" +"\Aprove o comentário:\n" +"${link_approve}\n" +"\n" +"Remova o comentário:\n" +"${link_delete}\n" #. Default: "enable the 'Comment Review Workflow' for the Comment content type" #: ../browser/moderation.pt:33 diff --git a/plone/app/discussion/locales/ro/LC_MESSAGES/plone.app.discussion.po b/plone/app/discussion/locales/ro/LC_MESSAGES/plone.app.discussion.po new file mode 100644 index 0000000..77541a6 --- /dev/null +++ b/plone/app/discussion/locales/ro/LC_MESSAGES/plone.app.discussion.po @@ -0,0 +1,483 @@ +# David Ichim , 2013. +msgid "" +msgstr "" +"Project-Id-Version: plone.app.discussion\n" +"POT-Creation-Date: YEAR-MO-DA HO:MI +ZONE\n" +"PO-Revision-Date: 2013-02-03 15:33-0600\n" +"Last-Translator: David Ichim \n" +"Language-Team: ro \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" +"Language-Code: ro\n" +"Language-Name: Romanian\n" +"Preferred-Encodings: utf-8 latin1\n" +"Domain: plone.app.discussion\n" + +#: ../comment.py:357 +msgid "A comment has been posted." +msgstr "Un comentariu a fost postat." + +#: ../interfaces.py:144 +msgid "A comment id unique to this conversation" +msgstr "Un id de comentariu unic pentru aceasta conversatie" + +#: ../browser/comments.py:72 +msgid "Add a comment" +msgstr "Adauga comentariu" + +#: ../browser/controlpanel.py:75 +msgid "Anonymous Comments" +msgstr "Comentarii de la anonimi" + +#: ../browser/comments.py:274 +#: ../browser/controlpanel.py:93 +msgid "Cancel" +msgstr "Anuleaza" + +#: ../browser/controlpanel.py:89 +msgid "Changes saved" +msgstr "Schimbari salvate" + +#: ../browser/moderation.py:154 +msgid "Comment approved." +msgstr "Comentariul a fost aprobat." + +#: ../contentrules.py:96 +msgid "Comment author email" +msgstr "" + +#: ../contentrules.py:85 +msgid "Comment author full name" +msgstr "" + +#: ../contentrules.py:74 +msgid "Comment author user name" +msgstr "" + +#: ../browser/moderation.py:108 +msgid "Comment deleted." +msgstr "Comentariul a fost sters." + +#: ../contentrules.py:52 +msgid "Comment id" +msgstr "" + +#: ../contentrules.py:63 +msgid "Comment text" +msgstr "" + +#: ../browser/controlpanel.py:76 +msgid "Commenter Image" +msgstr "Imaginea comentatorului" + +msgid "Commenting infrastructure for Plone" +msgstr "Infrastructura de comentarii pentru Plone" + +#: ../contentrules.py:51 +msgid "Comments" +msgstr "" + +#: ../interfaces.py:139 +msgid "Conversation" +msgstr "Conversatie" + +#: ../interfaces.py:177 +msgid "Creation date" +msgstr "Data creerii" + +#: ../interfaces.py:41 +msgid "Date of the most recent public comment" +msgstr "" + +#: ../vocabularies.py:44 +msgid "Disabled" +msgstr "Dezactivat" + +#: ../browser/controlpanel.py:35 +msgid "Discussion settings" +msgstr "Setarile Discutiilor" + +#: ../browser/controlpanel.py:95 +msgid "Edit cancelled" +msgstr "Editare anulata" + +#: ../interfaces.py:156 +msgid "Email" +msgstr "Email" + +#: ../browser/controlpanel.py:74 +msgid "Enable Comments" +msgstr "Permite Comentarii" + +#: ../interfaces.py:147 +msgid "Id of comment this comment is in reply to" +msgstr "Id-ul comentariului pentru care acest comentariu raspunde" + +#: ../interfaces.py:161 +msgid "MIME type" +msgstr "Tip MIME" + +#: ../browser/controlpanel.py:78 +msgid "Moderator Email Notification" +msgstr "Notificare Moderatorului prin Email" + +#: ../interfaces.py:178 +msgid "Modification date" +msgstr "Data modificarii" + +#: ../interfaces.py:141 +msgid "Name" +msgstr "Nume" + +#: ../interfaces.py:170 +msgid "Notify me of new comments via email." +msgstr "Anuntama de noi comentarii prin email." + +#: ./plone.app.discussion/plone/app/discussion/configure.zcml +msgid "Plone Discussions" +msgstr "Discutii Plone" + +#: ../interfaces.py:134 +msgid "Portal type" +msgstr "Tip obiect" + +#: ../browser/controlpanel.py:82 +msgid "Save" +msgstr "Salveaza" + +#: ../interfaces.py:46 +msgid "The set of unique commentators (usernames)" +msgstr "Setul comentatorilor unici (nume de utilizator)" + +#: ../interfaces.py:51 +msgid "The set of unique commentators (usernames) of published_comments" +msgstr "" + +#: ../interfaces.py:35 +msgid "Total number of public comments on this item" +msgstr "" + +#: ../comment.py:173 +msgid "Transform '%s' => '%s' not available." +msgstr "" + +#: ../browser/controlpanel.py:80 +msgid "User Email Notification" +msgstr "Notificarea utilizatorului prin email" + +#: ../interfaces.py:176 +msgid "Username of the commenter" +msgstr "" + +#: ../browser/comments.py:267 +msgid "Your comment awaits moderator approval." +msgstr "Comentariul tau asteapta sa fie moderat." + +#. Default: "Comment" +#: ../browser/comments.py:138 +msgid "add_comment_button" +msgstr "Comentariu" + +#. Default: "Delete" +#: ../browser/moderation.pt:68 +msgid "bulkactions_delete" +msgstr "Sterge" + +#. Default: "Approve" +#: ../browser/moderation.pt:65 +msgid "bulkactions_publish" +msgstr "Aproba" + +#. Default: "Cancel" +#: ../browser/comment.py:97 +msgid "cancel_form_button" +msgstr "" + +#. Default: "You can add a comment by filling out the form below. Plain text formatting. Web and email addresses are transformed into clickable links." +#: ../browser/comments.py:57 +msgid "comment_description_intelligent_text" +msgstr "Poti adauga un comentariu completand formularul de mai jos. Formatare de text simpla doar. Adresele de email si web sunt transformate in link-uri." + +#. Default: "You can add a comment by filling out the form below. Plain text formatting. You can use the Markdown syntax for links and images." +#: ../browser/comments.py:51 +msgid "comment_description_markdown" +msgstr "" + +#. Default: "Comments are moderated." +#: ../browser/comments.py:63 +msgid "comment_description_moderation_enabled" +msgstr "Comentariile sunt moderate." + +#. Default: "You can add a comment by filling out the form below. Plain text formatting." +#: ../browser/comments.py:46 +msgid "comment_description_plain_text" +msgstr "Poti adauga un comentariu prin completarea formularului de mai jos. Format de text simplu doar." + +#. Default: "Edit comment cancelled" +#: ../browser/comment.py:101 +msgid "comment_edit_cancel_notification" +msgstr "" + +#. Default: "Comment was edited" +#: ../browser/comment.py:91 +msgid "comment_edit_notification" +msgstr "" + +#. Default: "${author_name} on ${content}" +#: ../comment.py:55 +#, fuzzy +msgid "comment_title" +msgstr "${creator} al ${content}" + +#. Default: "Edit comment" +#: ../browser/comment.py:70 +msgid "edit_comment_form_button" +msgstr "" + +#. Default: "Edit comment" +#: ../browser/comment.py:54 +msgid "edit_comment_form_title" +msgstr "" + +#. Default: "Action" +#: ../browser/moderation.pt:85 +msgid "heading_action" +msgstr "Actiune" + +#. Default: "Comment" +#: ../browser/moderation.pt:84 +msgid "heading_comment" +msgstr "Comentariu" + +#. Default: "Commenter" +#: ../browser/moderation.pt:81 +msgid "heading_commenter" +msgstr "Autor" + +#. Default: "Date" +#: ../browser/moderation.pt:82 +msgid "heading_date" +msgstr "Data" + +#. Default: "In Response To" +#: ../browser/moderation.pt:83 +msgid "heading_in_reponse_to" +msgstr "In raspuns lui" + +#. Default: "Moderate comments" +#: ../browser/moderation.pt:24 +msgid "heading_moderate_comments" +msgstr "Modereaza comentarii" + +#. Default: "If selected, anonymous users are able to post comments without loggin in. It is highly recommended to use a captcha solution to prevent spam if this setting is enabled." +#: ../interfaces.py:216 +msgid "help_anonymous_comments" +msgstr "Daca selectat, utilizatorii anonimi vor putea posta comentarii fara a fi autentificati. Este recomandat a se folosi o solutie captcha pentru a preveni spam-ul daca aceasta setare este activata." + +#. Default: "If selected, anonymous user will have to give their email." +#: ../interfaces.py:341 +msgid "help_anonymous_email_enabled" +msgstr "" + +#. Default: "Use this setting to enable or disable Captcha validation for comments. Install plone.formwidget.captcha, plone.formwidget.recaptcha, collective.akismet, or collective.z3cform.norobots if there are no options available." +#: ../interfaces.py:277 +msgid "help_captcha" +msgstr "Foloseste aceasta setare pentru a activa sau dezactiva validarea Captcha a comentariilor. Instaleaza plone.formwidget.captcha, plone.formwidget.recaptcha, collective.akismet sau collective.z3cform.norobots daca nu este nici o optiune disponibila." + +#. Default: "Some discussion related settings are not located in the Discussion Control Panel.\nTo enable comments for a specific content type, go to the Types Control Panel of this type and choose \"Allow comments\".\nTo enable the moderation workflow for comments, go to the Types Control Panel, choose \"Comment\" and set workflow to \"Comment Review Workflow\"." +#: ../browser/controlpanel.py:36 +msgid "help_discussion_settings_editform" +msgstr "" +"Unele setari legate de discutii nu sunt localizate in Panoul de Discutii.\n" +"Pentru a activa comentarii pentru un tip specific de obiect, dute la Panoul de Control al Tipurilor pentru acest obiect si selecteaza \"Permite comentarii\".\n" +"Pentru a alege workflow-ul de moderare pentru comentarii, dute la Panoul de Control pentru Tipuri de obiect, alege \"Comentariu\" si seteaza workflow-ul la \"Workflow de moderare al Comentariilor\"." + +#. Default: "If selected, supports editing and deletion of comments for users with the 'Edit comments' permission." +#: ../interfaces.py:249 +msgid "help_edit_comment_enabled" +msgstr "" + +#. Default: "If selected, users are able to post comments on the site. Though, you have to enable comments for specific content types, folders or content objects before users will be able to post comments." +#: ../interfaces.py:202 +msgid "help_globally_enabled" +msgstr "Daca selectat, utilizatorii pot posta comentarii in acest site. Totusi, trebuie sa activezi comentariile pentru tipurile de obiecte in mod specific, fie directoare sau alte tipurile de obiect inainte ca utilizatorii sa poata posta comentarii." + +#. Default: "If selected, comments will enter a 'Pending' state in which they are invisible to the public. A user with the 'Review comments' permission ('Reviewer' or 'Manager') can approve comments to make them visible to the public. If you want to enable a custom comment workflow, you have to go to the types control panel." +#: ../interfaces.py:232 +msgid "help_moderation_enabled" +msgstr "Daca selectat, comentariile vor intra intr-o stare de 'Asteptare' in care ele sunt invizibile publicului. Un utilizator cu permisia 'Modereaza Comentarii' ('Moderator' sau 'Manager') poate aprova comentariile pentru a le face vizibile publicului. Daca doresti sa activezi un workflow de comentariu specific, trebuie sa mergi la panoul de control al obiectelor" + +#. Default: "Address to which moderator notifications will be sent." +#: ../interfaces.py:318 +msgid "help_moderator_email" +msgstr "Adresa de email la care notificarile de moderare vor fi trimise." + +#. Default: "If selected, the moderator is notified if a comment needs attention. The moderator email address can be set below." +#: ../interfaces.py:304 +#, fuzzy +msgid "help_moderator_notification_enabled" +msgstr "Daca selectat, moderatorul este notificat daca un comentariu are nevoie de atentie. Adresa de email al moderatorului poate fi gasita in panoul de control numit 'Setari mail' (Adresa 'De la' pentru Site)" + +#. Default: "If selected, an image of the user is shown next to the comment." +#: ../interfaces.py:293 +msgid "help_show_commenter_image" +msgstr "Daca selectat, o imagine al utilizatorului este afisata langa comentariul sau." + +#. Default: "Use this setting to choose if the comment text should be transformed in any way. You can choose between 'Plain text' and 'Intelligent text'. 'Intelligent text' converts plain text into HTML where line breaks and indentation is preserved, and web and email addresses are made into clickable links." +#: ../interfaces.py:260 +msgid "help_text_transform" +msgstr "Foloseste aceasta setare pentru a alege daca textul comentariului ar trebui sa fie transformat intr-un fel. Poti alege intre 'Text simplu' si 'Text inteligent'. 'Text inteligent' transforma textul simplu in HTML unde indentarea si liniile sunt pastrate si adresele de email si web sunt transformate in link-uri." + +#. Default: "If selected, users can choose to be notified of new comments by email." +#: ../interfaces.py:330 +msgid "help_user_notification_enabled" +msgstr "Daca selectat, utilizatorii pot alege sa fie notificati de noi comentarii prin email." + +#. Default: "Anonymous" +#: ../browser/comments.pt:74 +#: ../comment.py:191 +msgid "label_anonymous" +msgstr "Anonimi" + +#. Default: "Enable anonymous comments" +#: ../interfaces.py:214 +msgid "label_anonymous_comments" +msgstr "Permite comentariile anonime" + +#. Default: "Enable anonymous email field" +#: ../interfaces.py:339 +msgid "label_anonymous_email_enabled" +msgstr "" + +#. Default: "Apply" +#: ../browser/moderation.pt:71 +msgid "label_apply" +msgstr "Aplica" + +#. Default: "Captcha" +#: ../interfaces.py:275 +msgid "label_captcha" +msgstr "Captcha" + +#. Default: "Comment" +#: ../interfaces.py:163 +msgid "label_comment" +msgstr "Comentariu" + +#. Default: "Commenting has been disabled." +#: ../browser/comments.pt:148 +msgid "label_commenting_disabled" +msgstr "Comentariile au fost dezactivate." + +#. Default: "Delete" +#: ../browser/moderation.pt:130 +msgid "label_delete" +msgstr "Sterge" + +#. Default: "Enable editing of comments" +#: ../interfaces.py:247 +msgid "label_edit_comment_enabled" +msgstr "" + +#. Default: "Globally enable comments" +#: ../interfaces.py:200 +msgid "label_globally_enabled" +msgstr "Activeaza comentariile in mod global" + +#. Default: "Enable comment moderation" +#: ../interfaces.py:228 +msgid "label_moderation_enabled" +msgstr "Activeaza moderarea comentariilor" + +#. Default: "Moderator Email Address" +#: ../interfaces.py:314 +msgid "label_moderator_email" +msgstr "Adresa de email al moderatorului de comentarii" + +#. Default: "Enable moderator email notification" +#: ../interfaces.py:302 +msgid "label_moderator_notification_enabled" +msgstr "Activeaza notificarea moderatorului de comentarii prin email" + +#. Default: "Approve" +#: ../browser/moderation.pt:121 +msgid "label_publish" +msgstr "Aproba" + +#. Default: "says:" +#: ../browser/comments.pt:77 +msgid "label_says" +msgstr "zice:" + +#. Default: "Show commenter image" +#: ../interfaces.py:291 +msgid "label_show_commenter_image" +msgstr "Arata imaginea comentatorului" + +#. Default: "show full comment text" +#: ../browser/moderation.pt:114 +msgid "label_show_full_comment_text" +msgstr "Arata textul intreg al comentariului" + +#. Default: "Subject" +#: ../interfaces.py:158 +msgid "label_subject" +msgstr "Subiect" + +#. Default: "Comment text transform" +#: ../interfaces.py:258 +msgid "label_text_transform" +msgstr "Transformarea textului comentariului" + +#. Default: "Enable user email notification" +#: ../interfaces.py:326 +msgid "label_user_notification_enabled" +msgstr "Activeaza notificarea utilizatorului prin email" + +#. Default: "A comment on '${title}' has been posted here: ${link}\n\n---\n${text}\n---\n" +#: ../comment.py:59 +msgid "mail_notification_message" +msgstr "" +"Un comentariu pe '${title}' a fost postat aici: ${link}\n" +"\n" +"---\n" +"${text}\n" +"---\n" + +#. Default: "A comment on '${title}' has been posted here: ${link}\n\n---\n${text}\n---\n\nApprove comment:\n${link_approve}\n\nDelete comment:\n${link_delete}\n" +#: ../comment.py:67 +msgid "mail_notification_message_moderator" +msgstr "" +"Un comentariu pe '${title}' a fost postat aici: ${link}\n" +"\n" +"---\n" +"${text}\n" +"---\n" +"Aproba comentariul:\n" +"${link_approve}\n" +"\n" +"Sterge comentariul:\n" +"${link_delete}\n" + +#. Default: "enable the 'Comment Review Workflow' for the Comment content type" +#: ../browser/moderation.pt:33 +msgid "message_enable_comment_workflow" +msgstr "Activeaza 'Workflow-ul de Moderare al Comentariilor' pentru tipul de obiect Comentariu" + +#. Default: "Moderation workflow is disabled. You have to ${enable_comment_workflow} before you can moderate comments here." +#: ../browser/moderation.pt:33 +msgid "message_moderation_disabled" +msgstr "Workflow-ul de Moderare este dezactivat. Trebuie sa ${enable_comment_workflow} inainte de a putea modera comentarii aici." + +#. Default: "No comments to moderate." +#: ../browser/moderation.pt:43 +msgid "message_nothing_to_moderate" +msgstr "Nici un comentariu nu a fost introdus pentru moderare." + +#. Default: "Bulk Actions" +#: ../browser/moderation.pt:64 +msgid "title_bulkactions" +msgstr "Actiuni in masa" + diff --git a/plone/app/discussion/locales/sk/LC_MESSAGES/plone.app.discussion.po b/plone/app/discussion/locales/sk/LC_MESSAGES/plone.app.discussion.po new file mode 100644 index 0000000..e8194d4 --- /dev/null +++ b/plone/app/discussion/locales/sk/LC_MESSAGES/plone.app.discussion.po @@ -0,0 +1,462 @@ +msgid "" +msgstr "" +"Project-Id-Version: plone.app.discussion\n" +"POT-Creation-Date: YEAR-MO-DA HO:MI +ZONE\n" +"PO-Revision-Date: 2012-07-02 17:54+0100\n" +"Last-Translator: Radim Novotny \n" +"Language-Team: Slovak \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" +"Language-Code: sk\n" +"Language-Name: Slovak\n" +"Preferred-Encodings: utf-8 latin1\n" +"Domain: plone.app.discussion\n" + +#: ../comment.py:357 +msgid "A comment has been posted." +msgstr "" + +#: ../interfaces.py:144 +msgid "A comment id unique to this conversation" +msgstr "" + +#: ../browser/comments.py:72 +msgid "Add a comment" +msgstr "" + +#: ../browser/controlpanel.py:75 +msgid "Anonymous Comments" +msgstr "" + +#: ../browser/comments.py:274 +#: ../browser/controlpanel.py:93 +msgid "Cancel" +msgstr "" + +#: ../browser/controlpanel.py:89 +msgid "Changes saved" +msgstr "" + +#: ../browser/moderation.py:154 +msgid "Comment approved." +msgstr "" + +#: ../contentrules.py:96 +msgid "Comment author email" +msgstr "" + +#: ../contentrules.py:85 +msgid "Comment author full name" +msgstr "" + +#: ../contentrules.py:74 +msgid "Comment author user name" +msgstr "" + +#: ../browser/moderation.py:108 +msgid "Comment deleted." +msgstr "" + +#: ../contentrules.py:52 +msgid "Comment id" +msgstr "" + +#: ../contentrules.py:63 +msgid "Comment text" +msgstr "" + +#: ../browser/controlpanel.py:76 +msgid "Commenter Image" +msgstr "" + +msgid "Commenting infrastructure for Plone" +msgstr "" + +#: ../contentrules.py:51 +msgid "Comments" +msgstr "" + +#: ../interfaces.py:139 +msgid "Conversation" +msgstr "" + +#: ../interfaces.py:177 +msgid "Creation date" +msgstr "" + +#: ../interfaces.py:41 +msgid "Date of the most recent public comment" +msgstr "" + +#: ../vocabularies.py:44 +msgid "Disabled" +msgstr "" + +#: ../browser/controlpanel.py:35 +msgid "Discussion settings" +msgstr "" + +#: ../browser/controlpanel.py:95 +msgid "Edit cancelled" +msgstr "" + +#: ../interfaces.py:156 +msgid "Email" +msgstr "" + +#: ../browser/controlpanel.py:74 +msgid "Enable Comments" +msgstr "" + +#: ../interfaces.py:147 +msgid "Id of comment this comment is in reply to" +msgstr "" + +#: ../interfaces.py:161 +msgid "MIME type" +msgstr "" + +#: ../browser/controlpanel.py:78 +msgid "Moderator Email Notification" +msgstr "" + +#: ../interfaces.py:178 +msgid "Modification date" +msgstr "" + +#: ../interfaces.py:141 +msgid "Name" +msgstr "" + +#: ../interfaces.py:170 +msgid "Notify me of new comments via email." +msgstr "" + +#: ./plone.app.discussion/plone/app/discussion/configure.zcml +msgid "Plone Discussions" +msgstr "" + +#: ../interfaces.py:134 +msgid "Portal type" +msgstr "" + +#: ../browser/controlpanel.py:82 +msgid "Save" +msgstr "" + +#: ../interfaces.py:46 +msgid "The set of unique commentators (usernames)" +msgstr "" + +#: ../interfaces.py:51 +msgid "The set of unique commentators (usernames) of published_comments" +msgstr "" + +#: ../interfaces.py:35 +msgid "Total number of public comments on this item" +msgstr "" + +#: ../comment.py:173 +msgid "Transform '%s' => '%s' not available." +msgstr "" + +#: ../browser/controlpanel.py:80 +msgid "User Email Notification" +msgstr "" + +#: ../interfaces.py:176 +msgid "Username of the commenter" +msgstr "" + +#: ../browser/comments.py:267 +msgid "Your comment awaits moderator approval." +msgstr "" + +#. Default: "Comment" +#: ../browser/comments.py:138 +msgid "add_comment_button" +msgstr "" + +#. Default: "Delete" +#: ../browser/moderation.pt:68 +msgid "bulkactions_delete" +msgstr "" + +#. Default: "Approve" +#: ../browser/moderation.pt:65 +msgid "bulkactions_publish" +msgstr "" + +#. Default: "Cancel" +#: ../browser/comment.py:97 +msgid "cancel_form_button" +msgstr "" + +#. Default: "You can add a comment by filling out the form below. Plain text formatting. Web and email addresses are transformed into clickable links." +#: ../browser/comments.py:57 +msgid "comment_description_intelligent_text" +msgstr "" + +#. Default: "You can add a comment by filling out the form below. Plain text formatting. You can use the Markdown syntax for links and images." +#: ../browser/comments.py:51 +msgid "comment_description_markdown" +msgstr "" + +#. Default: "Comments are moderated." +#: ../browser/comments.py:63 +msgid "comment_description_moderation_enabled" +msgstr "" + +#. Default: "You can add a comment by filling out the form below. Plain text formatting." +#: ../browser/comments.py:46 +msgid "comment_description_plain_text" +msgstr "" + +#. Default: "Edit comment cancelled" +#: ../browser/comment.py:101 +msgid "comment_edit_cancel_notification" +msgstr "" + +#. Default: "Comment was edited" +#: ../browser/comment.py:91 +msgid "comment_edit_notification" +msgstr "" + +#. Default: "${author_name} on ${content}" +#: ../comment.py:55 +msgid "comment_title" +msgstr "" + +#. Default: "Edit comment" +#: ../browser/comment.py:70 +msgid "edit_comment_form_button" +msgstr "" + +#. Default: "Edit comment" +#: ../browser/comment.py:54 +msgid "edit_comment_form_title" +msgstr "" + +#. Default: "Action" +#: ../browser/moderation.pt:85 +msgid "heading_action" +msgstr "" + +#. Default: "Comment" +#: ../browser/moderation.pt:84 +msgid "heading_comment" +msgstr "" + +#. Default: "Commenter" +#: ../browser/moderation.pt:81 +msgid "heading_commenter" +msgstr "" + +#. Default: "Date" +#: ../browser/moderation.pt:82 +msgid "heading_date" +msgstr "" + +#. Default: "In Response To" +#: ../browser/moderation.pt:83 +msgid "heading_in_reponse_to" +msgstr "" + +#. Default: "Moderate comments" +#: ../browser/moderation.pt:24 +msgid "heading_moderate_comments" +msgstr "" + +#. Default: "If selected, anonymous users are able to post comments without loggin in. It is highly recommended to use a captcha solution to prevent spam if this setting is enabled." +#: ../interfaces.py:216 +msgid "help_anonymous_comments" +msgstr "" + +#. Default: "If selected, anonymous user will have to give their email." +#: ../interfaces.py:341 +msgid "help_anonymous_email_enabled" +msgstr "" + +#. Default: "Use this setting to enable or disable Captcha validation for comments. Install plone.formwidget.captcha, plone.formwidget.recaptcha, collective.akismet, or collective.z3cform.norobots if there are no options available." +#: ../interfaces.py:277 +msgid "help_captcha" +msgstr "" + +#. Default: "Some discussion related settings are not located in the Discussion Control Panel.\nTo enable comments for a specific content type, go to the Types Control Panel of this type and choose \"Allow comments\".\nTo enable the moderation workflow for comments, go to the Types Control Panel, choose \"Comment\" and set workflow to \"Comment Review Workflow\"." +#: ../browser/controlpanel.py:36 +msgid "help_discussion_settings_editform" +msgstr "" + +#. Default: "If selected, supports editing and deletion of comments for users with the 'Edit comments' permission." +#: ../interfaces.py:249 +msgid "help_edit_comment_enabled" +msgstr "" + +#. Default: "If selected, users are able to post comments on the site. Though, you have to enable comments for specific content types, folders or content objects before users will be able to post comments." +#: ../interfaces.py:202 +msgid "help_globally_enabled" +msgstr "" + +#. Default: "If selected, comments will enter a 'Pending' state in which they are invisible to the public. A user with the 'Review comments' permission ('Reviewer' or 'Manager') can approve comments to make them visible to the public. If you want to enable a custom comment workflow, you have to go to the types control panel." +#: ../interfaces.py:232 +msgid "help_moderation_enabled" +msgstr "" + +#. Default: "Address to which moderator notifications will be sent." +#: ../interfaces.py:318 +msgid "help_moderator_email" +msgstr "" + +#. Default: "If selected, the moderator is notified if a comment needs attention. The moderator email address can be set below." +#: ../interfaces.py:304 +msgid "help_moderator_notification_enabled" +msgstr "" + +#. Default: "If selected, an image of the user is shown next to the comment." +#: ../interfaces.py:293 +msgid "help_show_commenter_image" +msgstr "" + +#. Default: "Use this setting to choose if the comment text should be transformed in any way. You can choose between 'Plain text' and 'Intelligent text'. 'Intelligent text' converts plain text into HTML where line breaks and indentation is preserved, and web and email addresses are made into clickable links." +#: ../interfaces.py:260 +msgid "help_text_transform" +msgstr "" + +#. Default: "If selected, users can choose to be notified of new comments by email." +#: ../interfaces.py:330 +msgid "help_user_notification_enabled" +msgstr "" + +#. Default: "Anonymous" +#: ../browser/comments.pt:74 +#: ../comment.py:191 +msgid "label_anonymous" +msgstr "" + +#. Default: "Enable anonymous comments" +#: ../interfaces.py:214 +msgid "label_anonymous_comments" +msgstr "" + +#. Default: "Enable anonymous email field" +#: ../interfaces.py:339 +msgid "label_anonymous_email_enabled" +msgstr "" + +#. Default: "Apply" +#: ../browser/moderation.pt:71 +msgid "label_apply" +msgstr "" + +#. Default: "Captcha" +#: ../interfaces.py:275 +msgid "label_captcha" +msgstr "" + +#. Default: "Comment" +#: ../interfaces.py:163 +msgid "label_comment" +msgstr "" + +#. Default: "Commenting has been disabled." +#: ../browser/comments.pt:148 +msgid "label_commenting_disabled" +msgstr "" + +#. Default: "Delete" +#: ../browser/moderation.pt:130 +msgid "label_delete" +msgstr "" + +#. Default: "Enable editing of comments" +#: ../interfaces.py:247 +msgid "label_edit_comment_enabled" +msgstr "" + +#. Default: "Globally enable comments" +#: ../interfaces.py:200 +msgid "label_globally_enabled" +msgstr "" + +#. Default: "Enable comment moderation" +#: ../interfaces.py:228 +msgid "label_moderation_enabled" +msgstr "" + +#. Default: "Moderator Email Address" +#: ../interfaces.py:314 +msgid "label_moderator_email" +msgstr "" + +#. Default: "Enable moderator email notification" +#: ../interfaces.py:302 +msgid "label_moderator_notification_enabled" +msgstr "" + +#. Default: "Approve" +#: ../browser/moderation.pt:121 +msgid "label_publish" +msgstr "" + +#. Default: "says:" +#: ../browser/comments.pt:77 +msgid "label_says" +msgstr "" + +#. Default: "Show commenter image" +#: ../interfaces.py:291 +msgid "label_show_commenter_image" +msgstr "" + +#. Default: "show full comment text" +#: ../browser/moderation.pt:114 +msgid "label_show_full_comment_text" +msgstr "" + +#. Default: "Subject" +#: ../interfaces.py:158 +msgid "label_subject" +msgstr "" + +#. Default: "Comment text transform" +#: ../interfaces.py:258 +msgid "label_text_transform" +msgstr "" + +#. Default: "Enable user email notification" +#: ../interfaces.py:326 +msgid "label_user_notification_enabled" +msgstr "" + +#. Default: "A comment on '${title}' has been posted here: ${link}\n\n---\n${text}\n---\n" +#: ../comment.py:59 +msgid "mail_notification_message" +msgstr "" + +#. Default: "A comment on '${title}' has been posted here: ${link}\n\n---\n${text}\n---\n\nApprove comment:\n${link_approve}\n\nDelete comment:\n${link_delete}\n" +#: ../comment.py:67 +msgid "mail_notification_message_moderator" +msgstr "" + +#. Default: "enable the 'Comment Review Workflow' for the Comment content type" +#: ../browser/moderation.pt:33 +msgid "message_enable_comment_workflow" +msgstr "" + +#. Default: "Moderation workflow is disabled. You have to ${enable_comment_workflow} before you can moderate comments here." +#: ../browser/moderation.pt:33 +msgid "message_moderation_disabled" +msgstr "" + +#. Default: "No comments to moderate." +#: ../browser/moderation.pt:43 +msgid "message_nothing_to_moderate" +msgstr "" + +#. Default: "Bulk Actions" +#: ../browser/moderation.pt:64 +msgid "title_bulkactions" +msgstr "" + diff --git a/plone/app/discussion/locales/sv/LC_MESSAGES/plone.app.discussion.po b/plone/app/discussion/locales/sv/LC_MESSAGES/plone.app.discussion.po index 379227e..9b918cc 100644 --- a/plone/app/discussion/locales/sv/LC_MESSAGES/plone.app.discussion.po +++ b/plone/app/discussion/locales/sv/LC_MESSAGES/plone.app.discussion.po @@ -9,108 +9,130 @@ msgstr "" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" +"Language-Code: en\n" +"Language-Name: English\n" "Preferred-Encodings: utf-8 latin1\n" +"Domain: DOMAIN\n" "X-Is-Fallback-For: sv-fi sv-se\n" -#: ../comment.py:264 +#: ../comment.py:357 msgid "A comment has been posted." msgstr "En kommentar har postats." # kommentarstråd? -#: ../interfaces.py:257 +#: ../interfaces.py:144 msgid "A comment id unique to this conversation" msgstr "En id unik för denna kommentar" -#: ../browser/comments.py:67 +#: ../browser/comments.py:72 msgid "Add a comment" msgstr "Lägg till en kommentar" -#: ../browser/controlpanel.py:62 +#: ../browser/controlpanel.py:75 msgid "Anonymous Comments" msgstr "Anonym kommentar" -# synlig??? -#: ../interfaces.py:282 -msgid "Author name (for display)" -msgstr "Författarnamn (synlig)" - -#: ../browser/comments.py:248 -#: ../browser/controlpanel.py:80 +#: ../browser/comments.py:274 +#: ../browser/controlpanel.py:93 msgid "Cancel" msgstr "Avbryt" -#: ../browser/controlpanel.py:76 +#: ../browser/controlpanel.py:89 msgid "Changes saved" msgstr "Ändringar sparade" -#: ../browser/moderation.py:133 +#: ../browser/moderation.py:154 msgid "Comment approved." msgstr "Kommentaren har nu godkänts." -#: ../browser/moderation.py:94 +#: ../contentrules.py:96 +msgid "Comment author email" +msgstr "" + +#: ../contentrules.py:85 +msgid "Comment author full name" +msgstr "" + +#: ../contentrules.py:74 +msgid "Comment author user name" +msgstr "" + +#: ../browser/moderation.py:108 msgid "Comment deleted." msgstr "Kommentaren har nu raderats." -#: ../browser/controlpanel.py:63 +#: ../contentrules.py:52 +msgid "Comment id" +msgstr "" + +#: ../contentrules.py:63 +msgid "Comment text" +msgstr "" + +#: ../browser/controlpanel.py:76 msgid "Commenter Image" msgstr "Porträtt av kommentatorn" msgid "Commenting infrastructure for Plone" msgstr "Infrastruktur för kommentarer i Plone" -#: ../interfaces.py:252 +#: ../contentrules.py:51 +msgid "Comments" +msgstr "" + +#: ../interfaces.py:139 msgid "Conversation" msgstr "Diskussion" -#: ../interfaces.py:283 +#: ../interfaces.py:177 msgid "Creation date" msgstr "Skapelsedatum" -#: ../interfaces.py:162 -msgid "Date of the most recent comment" -msgstr "Datum för den senaste kommentaren" +#: ../interfaces.py:41 +msgid "Date of the most recent public comment" +msgstr "" #: ../vocabularies.py:44 msgid "Disabled" msgstr "Inaktiverad" -#: ../browser/controlpanel.py:32 +#: ../browser/controlpanel.py:35 msgid "Discussion settings" msgstr "Inställningar för kommentarer" -#: ../browser/controlpanel.py:82 +#: ../browser/controlpanel.py:95 msgid "Edit cancelled" msgstr "Redigering avbruten" -#: ../interfaces.py:269 +#: ../interfaces.py:156 msgid "Email" msgstr "E-post" -#: ../browser/controlpanel.py:61 +#: ../browser/controlpanel.py:74 msgid "Enable Comments" msgstr "Aktivera kommentarer" -#: ../interfaces.py:260 +#: ../interfaces.py:147 msgid "Id of comment this comment is in reply to" msgstr "Id för den kommentar som denna kommentar besvarar" -#: ../interfaces.py:274 +#: ../interfaces.py:161 msgid "MIME type" msgstr "MIME-type" -#: ../browser/controlpanel.py:65 +#: ../browser/controlpanel.py:78 msgid "Moderator Email Notification" msgstr "Varsling av moderator på epostAvisering till moderatorn med e-post" -#: ../interfaces.py:284 +#: ../interfaces.py:178 msgid "Modification date" msgstr "Ändringsdatum" -#: ../interfaces.py:254 +#: ../interfaces.py:141 msgid "Name" msgstr "Namn" -#: ../interfaces.py:278 +#: ../interfaces.py:170 msgid "Notify me of new comments via email." msgstr "Avisera mig om nya kommentarer med e-post." @@ -118,32 +140,44 @@ msgstr "Avisera mig om nya kommentarer med e-post." msgid "Plone Discussions" msgstr "Plone Discussions" -#: ../interfaces.py:247 +#: ../interfaces.py:134 msgid "Portal type" msgstr "Portaltyp" -#: ../browser/controlpanel.py:69 +#: ../browser/controlpanel.py:82 msgid "Save" msgstr "Spara" -#: ../interfaces.py:167 +#: ../interfaces.py:46 msgid "The set of unique commentators (usernames)" msgstr "Lista över kommentatorer (användarnamn)" -#: ../interfaces.py:156 -msgid "Total number of comments on this item" -msgstr "Antal kommentarer till denna post" +#: ../interfaces.py:51 +msgid "The set of unique commentators (usernames) of published_comments" +msgstr "" -#: ../browser/controlpanel.py:67 +#: ../interfaces.py:35 +msgid "Total number of public comments on this item" +msgstr "" + +#: ../comment.py:173 +msgid "Transform '%s' => '%s' not available." +msgstr "" + +#: ../browser/controlpanel.py:80 msgid "User Email Notification" msgstr "Avisering till användare med e-post" -#: ../browser/comments.py:241 +#: ../interfaces.py:176 +msgid "Username of the commenter" +msgstr "" + +#: ../browser/comments.py:267 msgid "Your comment awaits moderator approval." msgstr "Din kommentar inväntar moderatorns godkännande." #. Default: "Comment" -#: ../browser/comments.py:123 +#: ../browser/comments.py:138 msgid "add_comment_button" msgstr "Kommentera" @@ -157,26 +191,57 @@ msgstr "Radera" msgid "bulkactions_publish" msgstr "Godkänn" +#. Default: "Cancel" +#: ../browser/comment.py:97 +msgid "cancel_form_button" +msgstr "" + #. Default: "You can add a comment by filling out the form below. Plain text formatting. Web and email addresses are transformed into clickable links." -#: ../browser/comments.py:52 +#: ../browser/comments.py:57 msgid "comment_description_intelligent_text" msgstr "Du kan lägga till en kommentar genom att fylla i fälten nedan. Webbadresser och e-postadresser konverteras till klickbara länkar." +#. Default: "You can add a comment by filling out the form below. Plain text formatting. You can use the Markdown syntax for links and images." +#: ../browser/comments.py:51 +msgid "comment_description_markdown" +msgstr "" + #. Default: "Comments are moderated." -#: ../browser/comments.py:58 +#: ../browser/comments.py:63 msgid "comment_description_moderation_enabled" msgstr "Kommentaren visas när den godkänts av moderatorn." #. Default: "You can add a comment by filling out the form below. Plain text formatting." -#: ../browser/comments.py:47 +#: ../browser/comments.py:46 msgid "comment_description_plain_text" msgstr "Du kan lägga till en kommentar genom att fylla i fälten nedan." -#. Default: "${creator} on ${content}" -#: ../comment.py:46 +#. Default: "Edit comment cancelled" +#: ../browser/comment.py:101 +msgid "comment_edit_cancel_notification" +msgstr "" + +#. Default: "Comment was edited" +#: ../browser/comment.py:91 +msgid "comment_edit_notification" +msgstr "" + +#. Default: "${author_name} on ${content}" +#: ../comment.py:55 +#, fuzzy msgid "comment_title" msgstr "${creator} om ${content}" +#. Default: "Edit comment" +#: ../browser/comment.py:70 +msgid "edit_comment_form_button" +msgstr "" + +#. Default: "Edit comment" +#: ../browser/comment.py:54 +msgid "edit_comment_form_title" +msgstr "" + #. Default: "Action" #: ../browser/moderation.pt:85 msgid "heading_action" @@ -208,85 +273,102 @@ msgid "heading_moderate_comments" msgstr "Moderera kommentarer" #. Default: "If selected, anonymous users are able to post comments without loggin in. It is highly recommended to use a captcha solution to prevent spam if this setting is enabled." -#: ../interfaces.py:38 +#: ../interfaces.py:216 msgid "help_anonymous_comments" msgstr "Tillåt anonyma användare att kommentera utan att logga in. För att undvika skräppost, rekommenderas starkt att Captcha-validering aktiveras." +#. Default: "If selected, anonymous user will have to give their email." +#: ../interfaces.py:341 +msgid "help_anonymous_email_enabled" +msgstr "" + #. Default: "Use this setting to enable or disable Captcha validation for comments. Install plone.formwidget.captcha, plone.formwidget.recaptcha, collective.akismet, or collective.z3cform.norobots if there are no options available." -#: ../interfaces.py:82 +#: ../interfaces.py:277 msgid "help_captcha" msgstr "Aktivera captcha-validering av kommentarer. Om listrutan saknar alternativ: installera plone.formwidget.captcha, plone.formwidget.recaptcha, collective.akismet eller collective.z3cform.norobots." # NOTE: "\n # does not work. #. Default: "Some discussion related settings are not located in the Discussion Control Panel.\nTo enable comments for a specific content type, go to the Types Control Panel of this type and choose \"Allow comments\".\nTo enable the moderation workflow for comments, go to the Types Control Panel, choose \"Comment\" and set workflow to \"Comment Review Workflow\"." -#: ../browser/controlpanel.py:33 +#: ../browser/controlpanel.py:36 msgid "help_discussion_settings_editform" msgstr "Vissa inställningar för kommentarer finns inte på denna kontrollpanel. — För att aktivera kommentarer för en viss innehållstyp, välj denna på kontrollpanelen \"Innehållstyper\" och markera rutan \"Tillåt kommentarer \". — För att aktivera ett arbetsflöde för moderation av kommentarer, välj \"Kommentar\" på kontrollpanelen \"Innehållstyper\" och sätt nytt arbetsflöde \"Comment Review Workflow\"." +#. Default: "If selected, supports editing and deletion of comments for users with the 'Edit comments' permission." +#: ../interfaces.py:249 +msgid "help_edit_comment_enabled" +msgstr "" + #. Default: "If selected, users are able to post comments on the site. Though, you have to enable comments for specific content types, folders or content objects before users will be able to post comments." -#: ../interfaces.py:26 +#: ../interfaces.py:202 msgid "help_globally_enabled" msgstr "Ge användarna möjlighet att kommentera innehållsposter. Dessutom måste du aktivera kommentarer för berörda innehållstyper, mappar eller poster." #. Default: "If selected, comments will enter a 'Pending' state in which they are invisible to the public. A user with the 'Review comments' permission ('Reviewer' or 'Manager') can approve comments to make them visible to the public. If you want to enable a custom comment workflow, you have to go to the types control panel." -#: ../interfaces.py:50 +#: ../interfaces.py:232 msgid "help_moderation_enabled" msgstr "Nya kommentarer får arbetsflödesstatus \"Pending\", och blir inte publikt tillgängliga förrän de godkänns av en moderator. Moderatorn behöver behörigheten \"Review comments\", rollerna \"Reviewer\" och \"Manager\" har det som standard. — För att ge kommentarer ett anpassat arbetsflöde, använd kontrollpanelen \"Innehållstyper\"." #. Default: "Address to which moderator notifications will be sent." -#: ../interfaces.py:118 +#: ../interfaces.py:318 msgid "help_moderator_email" msgstr "E-postadress för aviseringar till moderatorn." # " The moderator email address can be found in the 'Mail settings' control panel (Site 'From' address)" is FALSE! -#. Default: "If selected, the moderator is notified if a comment needs attention. The moderator email address can be found in the 'Mail settings' control panel (Site 'From' address)" -#: ../interfaces.py:107 +#. Default: "If selected, the moderator is notified if a comment needs attention. The moderator email address can be set below." +#: ../interfaces.py:304 +#, fuzzy msgid "help_moderator_notification_enabled" msgstr "Avisera moderatorn med e-post när en ny kommentar behöver åtgärdas." #. Default: "If selected, an image of the user is shown next to the comment." -#: ../interfaces.py:97 +#: ../interfaces.py:293 msgid "help_show_commenter_image" msgstr "Visa ett porträtt av kommentatorn bredvid kommentaren." #. Default: "Use this setting to choose if the comment text should be transformed in any way. You can choose between 'Plain text' and 'Intelligent text'. 'Intelligent text' converts plain text into HTML where line breaks and indentation is preserved, and web and email addresses are made into clickable links." -#: ../interfaces.py:66 +#: ../interfaces.py:260 msgid "help_text_transform" msgstr "\"Plain text\": Endast radbrytningar bevaras. — \"Intelligent text\": Konvertering till HTML; radbrytningar och indrag bevaras, webbadresser och e-postadresser blir klickbara länkar." #. Default: "If selected, users can choose to be notified of new comments by email." -#: ../interfaces.py:127 +#: ../interfaces.py:330 msgid "help_user_notification_enabled" msgstr "Ge inloggade användare möjlighet att välja att bli aviserade med e-post om nya kommentarer." #. Default: "Anonymous" -#: ../comment.py:156 +#: ../browser/comments.pt:74 +#: ../comment.py:191 msgid "label_anonymous" msgstr "Anonym" #. Default: "Enable anonymous comments" -#: ../interfaces.py:36 +#: ../interfaces.py:214 msgid "label_anonymous_comments" msgstr "Tillåt anonyma kommentarer" +#. Default: "Enable anonymous email field" +#: ../interfaces.py:339 +msgid "label_anonymous_email_enabled" +msgstr "" + #. Default: "Apply" #: ../browser/moderation.pt:71 msgid "label_apply" msgstr "Verkställ" #. Default: "Captcha" -#: ../interfaces.py:80 +#: ../interfaces.py:275 msgid "label_captcha" msgstr "Captcha" #. Default: "Comment" -#: ../interfaces.py:275 +#: ../interfaces.py:163 msgid "label_comment" msgstr "Kommentar" #. Default: "Commenting has been disabled." -#: ../browser/comments.pt:130 +#: ../browser/comments.pt:148 msgid "label_commenting_disabled" msgstr "Kommentarsfunktionen har inaktiverats." @@ -295,23 +377,28 @@ msgstr "Kommentarsfunktionen har inaktiverats." msgid "label_delete" msgstr "Radera" +#. Default: "Enable editing of comments" +#: ../interfaces.py:247 +msgid "label_edit_comment_enabled" +msgstr "" + #. Default: "Globally enable comments" -#: ../interfaces.py:24 +#: ../interfaces.py:200 msgid "label_globally_enabled" msgstr "Aktivera kommentarer globalt" #. Default: "Enable comment moderation" -#: ../interfaces.py:48 +#: ../interfaces.py:228 msgid "label_moderation_enabled" msgstr "Aktivera moderation för kommentarer" #. Default: "Moderator Email Address" -#: ../interfaces.py:117 +#: ../interfaces.py:314 msgid "label_moderator_email" msgstr "Moderatorns e-postadress" #. Default: "Enable moderator email notification" -#: ../interfaces.py:105 +#: ../interfaces.py:302 msgid "label_moderator_notification_enabled" msgstr "Aktivera avisering med e-post till moderatorn" @@ -321,12 +408,12 @@ msgid "label_publish" msgstr "Godkänn" #. Default: "says:" -#: ../browser/comments.pt:74 +#: ../browser/comments.pt:77 msgid "label_says" msgstr "säger:" #. Default: "Show commenter image" -#: ../interfaces.py:95 +#: ../interfaces.py:291 msgid "label_show_commenter_image" msgstr "Visa porträtt av kommentatorn" @@ -336,22 +423,22 @@ msgid "label_show_full_comment_text" msgstr "visa hela kommentaren" #. Default: "Subject" -#: ../interfaces.py:271 +#: ../interfaces.py:158 msgid "label_subject" msgstr "Ämne" #. Default: "Comment text transform" -#: ../interfaces.py:64 +#: ../interfaces.py:258 msgid "label_text_transform" msgstr "Texttransformering för kommentarer" #. Default: "Enable user email notification" -#: ../interfaces.py:125 +#: ../interfaces.py:326 msgid "label_user_notification_enabled" msgstr "Aktivera e-post-avisering till användare" #. Default: "A comment on '${title}' has been posted here: ${link}\n\n---\n${text}\n---\n" -#: ../comment.py:50 +#: ../comment.py:59 msgid "mail_notification_message" msgstr "" "En kommentar till '${title}' har postats här: ${link}\n" @@ -361,7 +448,7 @@ msgstr "" "---\n" #. Default: "A comment on '${title}' has been posted here: ${link}\n\n---\n${text}\n---\n\nApprove comment:\n${link_approve}\n\nDelete comment:\n${link_delete}\n" -#: ../comment.py:58 +#: ../comment.py:67 msgid "mail_notification_message_moderator" msgstr "" "En kommentar till '${title}' har postats här: ${link}\n" diff --git a/plone/app/discussion/locales/uk/LC_MESSAGES/plone.app.discussion.po b/plone/app/discussion/locales/uk/LC_MESSAGES/plone.app.discussion.po index 5d695f7..2605b9a 100644 --- a/plone/app/discussion/locales/uk/LC_MESSAGES/plone.app.discussion.po +++ b/plone/app/discussion/locales/uk/LC_MESSAGES/plone.app.discussion.po @@ -1,111 +1,136 @@ msgid "" msgstr "" "Project-Id-Version: \n" -"POT-Creation-Date: \n" +"POT-Creation-Date: YEAR-MO-DA HO:MI +ZONE\n" "PO-Revision-Date: \n" -"Last-Translator: Olha \n" +"Last-Translator: Roman Kozlovskyi \n" "Language-Team: Hanno Schlichting \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" +"Language-Code: en\n" +"Language-Name: English\n" +"Preferred-Encodings: utf-8 latin1\n" +"Domain: DOMAIN\n" -#: ../comment.py:264 +#: ../comment.py:357 msgid "A comment has been posted." msgstr "Коментар додано." -#: ../interfaces.py:257 +#: ../interfaces.py:144 msgid "A comment id unique to this conversation" -msgstr "" +msgstr "Унікальний ідентифікатор коментаря для цієї розмови" -#: ../browser/comments.py:67 +#: ../browser/comments.py:72 msgid "Add a comment" msgstr "Додати коментар" -#: ../browser/controlpanel.py:62 +#: ../browser/controlpanel.py:75 msgid "Anonymous Comments" msgstr "Анонімне коментування" -#: ../interfaces.py:282 -msgid "Author name (for display)" -msgstr "Ім'я автора (яке показувати)" - -#: ../browser/comments.py:248 -#: ../browser/controlpanel.py:80 +#: ../browser/comments.py:274 +#: ../browser/controlpanel.py:93 msgid "Cancel" msgstr "Скасувати" -#: ../browser/controlpanel.py:76 +#: ../browser/controlpanel.py:89 msgid "Changes saved" msgstr "Зміни збережено" -#: ../browser/moderation.py:133 +#: ../browser/moderation.py:154 msgid "Comment approved." msgstr "Коментар опубліковано." -#: ../browser/moderation.py:94 +#: ../contentrules.py:96 +msgid "Comment author email" +msgstr "" + +#: ../contentrules.py:85 +msgid "Comment author full name" +msgstr "" + +#: ../contentrules.py:74 +msgid "Comment author user name" +msgstr "" + +#: ../browser/moderation.py:108 msgid "Comment deleted." msgstr "Коментар знищено." -#: ../browser/controlpanel.py:63 +#: ../contentrules.py:52 +msgid "Comment id" +msgstr "" + +#: ../contentrules.py:63 +msgid "Comment text" +msgstr "" + +#: ../browser/controlpanel.py:76 msgid "Commenter Image" msgstr "Зображення коментатора" msgid "Commenting infrastructure for Plone" msgstr "Інфраструктура коментування в Plone" -#: ../interfaces.py:252 -msgid "Conversation" +#: ../contentrules.py:51 +msgid "Comments" msgstr "" -#: ../interfaces.py:283 +#: ../interfaces.py:139 +msgid "Conversation" +msgstr "Розмова" + +#: ../interfaces.py:177 msgid "Creation date" msgstr "Дата створення" -#: ../interfaces.py:162 -msgid "Date of the most recent comment" -msgstr "Дата останнього коментаря" +#: ../interfaces.py:41 +msgid "Date of the most recent public comment" +msgstr "Дата останного публічного коментаря" #: ../vocabularies.py:44 msgid "Disabled" msgstr "Вимкнено" -#: ../browser/controlpanel.py:32 +#: ../browser/controlpanel.py:35 msgid "Discussion settings" msgstr "Налаштуванняя коментування" -#: ../browser/controlpanel.py:82 +#: ../browser/controlpanel.py:95 msgid "Edit cancelled" msgstr "Редагування скасовано" -#: ../interfaces.py:269 +#: ../interfaces.py:156 msgid "Email" -msgstr "" +msgstr "Електронна адреса" -#: ../browser/controlpanel.py:61 +#: ../browser/controlpanel.py:74 msgid "Enable Comments" msgstr "Увімкнути можливість додавати коментарі" -#: ../interfaces.py:260 +#: ../interfaces.py:147 msgid "Id of comment this comment is in reply to" msgstr "Id коментаря, відповіддю на який - є цей коментар" -#: ../interfaces.py:274 +#: ../interfaces.py:161 msgid "MIME type" -msgstr "" +msgstr "MIME-тип" -#: ../browser/controlpanel.py:65 +#: ../browser/controlpanel.py:78 msgid "Moderator Email Notification" -msgstr "" +msgstr "Сповіщення модератора електронною поштою" -#: ../interfaces.py:284 +#: ../interfaces.py:178 msgid "Modification date" msgstr "Дата зміни" -#: ../interfaces.py:254 +#: ../interfaces.py:141 msgid "Name" msgstr "Ім'я" -#: ../interfaces.py:278 +#: ../interfaces.py:170 msgid "Notify me of new comments via email." msgstr "Повідомляти про нові коментарі поштою." @@ -113,32 +138,44 @@ msgstr "Повідомляти про нові коментарі поштою." msgid "Plone Discussions" msgstr "Коментування в Plone" -#: ../interfaces.py:247 +#: ../interfaces.py:134 msgid "Portal type" msgstr "Портал тип" -#: ../browser/controlpanel.py:69 +#: ../browser/controlpanel.py:82 msgid "Save" msgstr "Зберегти" -#: ../interfaces.py:167 +#: ../interfaces.py:46 msgid "The set of unique commentators (usernames)" msgstr "Перелік коментаторів (імена користувачів)" -#: ../interfaces.py:156 -msgid "Total number of comments on this item" -msgstr "Загальна кількість коментарів до цього об'єкта" +#: ../interfaces.py:51 +msgid "The set of unique commentators (usernames) of published_comments" +msgstr "Перелік коментаторів (імена користувачів) опублікованих коментарів" -#: ../browser/controlpanel.py:67 +#: ../interfaces.py:35 +msgid "Total number of public comments on this item" +msgstr "Загальна кількість публічних коментарів для даного елемента" + +#: ../comment.py:173 +msgid "Transform '%s' => '%s' not available." +msgstr "Не доступне перетворення '%s' => '%s'." + +#: ../browser/controlpanel.py:80 msgid "User Email Notification" -msgstr "" +msgstr "Сповіщення користувача електронною поштою" -#: ../browser/comments.py:241 +#: ../interfaces.py:176 +msgid "Username of the commenter" +msgstr "Ім'я автора коментаря" + +#: ../browser/comments.py:267 msgid "Your comment awaits moderator approval." -msgstr "" +msgstr "Ваш коментар очікує затвердження модератором." #. Default: "Comment" -#: ../browser/comments.py:123 +#: ../browser/comments.py:138 msgid "add_comment_button" msgstr "Коментар" @@ -152,30 +189,60 @@ msgstr "Знищити" msgid "bulkactions_publish" msgstr "Опублікувати" +#. Default: "Cancel" +#: ../browser/comment.py:97 +msgid "cancel_form_button" +msgstr "" + #. Default: "You can add a comment by filling out the form below. Plain text formatting. Web and email addresses are transformed into clickable links." -#: ../browser/comments.py:52 +#: ../browser/comments.py:57 msgid "comment_description_intelligent_text" msgstr "Ви можете додати коментар, заповнивши наступну форму. Просте форматування тексту. Веб адреси та адреси електронної пошти перетворюються на посилання." +#. Default: "You can add a comment by filling out the form below. Plain text formatting. You can use the Markdown syntax for links and images." +#: ../browser/comments.py:51 +msgid "comment_description_markdown" +msgstr "Ви можете додати коментар, заповнивши наступну форму. Просте форматування тексту. Ви можете використовувати Markdown синтаксис для посилань і зображень." + #. Default: "Comments are moderated." -#: ../browser/comments.py:58 +#: ../browser/comments.py:63 msgid "comment_description_moderation_enabled" -msgstr "" +msgstr "Коментарі модеруються." #. Default: "You can add a comment by filling out the form below. Plain text formatting." -#: ../browser/comments.py:47 +#: ../browser/comments.py:46 msgid "comment_description_plain_text" msgstr "Ви можете додати коментар, заповнивши наступну форму. Просте форматування тексту. " -#. Default: "${creator} on ${content}" -#: ../comment.py:46 +#. Default: "Edit comment cancelled" +#: ../browser/comment.py:101 +msgid "comment_edit_cancel_notification" +msgstr "" + +#. Default: "Comment was edited" +#: ../browser/comment.py:91 +msgid "comment_edit_notification" +msgstr "" + +#. Default: "${author_name} on ${content}" +#: ../comment.py:55 msgid "comment_title" +msgstr "${author_name} до ${content}" + +#. Default: "Edit comment" +#: ../browser/comment.py:70 +msgid "edit_comment_form_button" +msgstr "" + +#. Default: "Edit comment" +#: ../browser/comment.py:54 +msgid "edit_comment_form_title" msgstr "" #. Default: "Action" #: ../browser/moderation.pt:85 msgid "heading_action" -msgstr "" +msgstr "Дія" #. Default: "Comment" #: ../browser/moderation.pt:84 @@ -200,88 +267,105 @@ msgstr "У відповідь на" #. Default: "Moderate comments" #: ../browser/moderation.pt:24 msgid "heading_moderate_comments" -msgstr "" +msgstr "Модерування коментарів" #. Default: "If selected, anonymous users are able to post comments without loggin in. It is highly recommended to use a captcha solution to prevent spam if this setting is enabled." -#: ../interfaces.py:38 +#: ../interfaces.py:216 msgid "help_anonymous_comments" msgstr "Якщо вибрано - то анонімні користувачі зможуть додавати коментарі без входу в систему. Для таких випадків рекомендуєтсья використовувати капчу, щоб запобігти надсиланню спаму." +#. Default: "If selected, anonymous user will have to give their email." +#: ../interfaces.py:341 +msgid "help_anonymous_email_enabled" +msgstr "Якщо вибрано, анонімний користувач повинен буде вказати свою електронну пошту." + #. Default: "Use this setting to enable or disable Captcha validation for comments. Install plone.formwidget.captcha, plone.formwidget.recaptcha, collective.akismet, or collective.z3cform.norobots if there are no options available." -#: ../interfaces.py:82 +#: ../interfaces.py:277 msgid "help_captcha" msgstr "Використовуйте цей параметр, щоб увімкнути або вимкнути капчу для коментарів. Для цього спершу встановіть plone.formwidget.captcha, plone.formwidget.recaptcha, collective.akismet або collective.z3cform.norobots." #. Default: "Some discussion related settings are not located in the Discussion Control Panel.\nTo enable comments for a specific content type, go to the Types Control Panel of this type and choose \"Allow comments\".\nTo enable the moderation workflow for comments, go to the Types Control Panel, choose \"Comment\" and set workflow to \"Comment Review Workflow\"." -#: ../browser/controlpanel.py:33 +#: ../browser/controlpanel.py:36 msgid "help_discussion_settings_editform" msgstr "" "Не всі налаштування коментувань знаходяться на цій сторінці.\n" "Так, щоб увімкнути можливість коментування для певного типу вмісту, перейдіть в розділ налаштувань Типи, виберіть необхідний тип вмісту, та виберіть \"Дозволити додавати коментар\".\n" "To enable the moderation workflow for comments, go to the Types Control Panel, choose \"Comment\" and set workflow to \"Comment Review Workflow\".\"" +#. Default: "If selected, supports editing and deletion of comments for users with the 'Edit comments' permission." +#: ../interfaces.py:249 +msgid "help_edit_comment_enabled" +msgstr "" + #. Default: "If selected, users are able to post comments on the site. Though, you have to enable comments for specific content types, folders or content objects before users will be able to post comments." -#: ../interfaces.py:26 +#: ../interfaces.py:202 msgid "help_globally_enabled" msgstr "Якщо вибрано, користувачі зможуть додавати коментарі на сайт. Але спочатку необхідно увімкнути можливість коментування для певних типів вмісту, тек, об'єктів." #. Default: "If selected, comments will enter a 'Pending' state in which they are invisible to the public. A user with the 'Review comments' permission ('Reviewer' or 'Manager') can approve comments to make them visible to the public. If you want to enable a custom comment workflow, you have to go to the types control panel." -#: ../interfaces.py:50 +#: ../interfaces.py:232 msgid "help_moderation_enabled" -msgstr "" +msgstr "Якщо вибрано, коментарі увійде в стан 'В очікуванні', у якому вони невидимі для громадськості. Користувач з правом 'Огляд коментарів' ('Рецензент' або 'Менеджер') може схвалити коментар, щоб зробити їх видимими для громадськості. Якщо ви хочете налаштувати робочий процес коментарів, ви повинні піти в панель керування типів." #. Default: "Address to which moderator notifications will be sent." -#: ../interfaces.py:118 +#: ../interfaces.py:318 msgid "help_moderator_email" -msgstr "" +msgstr "Адреса, за якою модератору будуть надсилатися повідомлення." -#. Default: "If selected, the moderator is notified if a comment needs attention. The moderator email address can be found in the 'Mail settings' control panel (Site 'From' address)" -#: ../interfaces.py:107 +#. Default: "If selected, the moderator is notified if a comment needs attention. The moderator email address can be set below." +#: ../interfaces.py:304 +#, fuzzy msgid "help_moderator_notification_enabled" -msgstr "" +msgstr "Якщо вибрано, модератор отримує повідомлення, якщо коментар вимагає уваги. Адресу електронної пошти модератора можна знайти в 'Пошта' панелі керування (Адреса 'Від')" #. Default: "If selected, an image of the user is shown next to the comment." -#: ../interfaces.py:97 +#: ../interfaces.py:293 msgid "help_show_commenter_image" msgstr "Якщо вибрано, зображення коментатора буде відображатись поруч з коментарем." #. Default: "Use this setting to choose if the comment text should be transformed in any way. You can choose between 'Plain text' and 'Intelligent text'. 'Intelligent text' converts plain text into HTML where line breaks and indentation is preserved, and web and email addresses are made into clickable links." -#: ../interfaces.py:66 +#: ../interfaces.py:260 msgid "help_text_transform" -msgstr "" +msgstr "Виберіть як повинен бути перетворений текст коментаря. Ви можете вибрати між 'Звичайний текст' і 'Інтелектуальні тексту'. 'Інтелектуальний текст' перетворює текст в HTML, де рядки і відступи зберігаються, інтернет адреси та адреси електронної пошти перетворяться в активні посилання." #. Default: "If selected, users can choose to be notified of new comments by email." -#: ../interfaces.py:127 +#: ../interfaces.py:330 msgid "help_user_notification_enabled" msgstr "Якщо вибрано, користувачі зможуть обрати можливість отримувати нотифікації про нові коментарі поштою." #. Default: "Anonymous" -#: ../comment.py:156 +#: ../browser/comments.pt:74 +#: ../comment.py:191 msgid "label_anonymous" msgstr "Анонім" #. Default: "Enable anonymous comments" -#: ../interfaces.py:36 +#: ../interfaces.py:214 msgid "label_anonymous_comments" msgstr "Увімкнути можливість анонімного коментування" +#. Default: "Enable anonymous email field" +#: ../interfaces.py:339 +msgid "label_anonymous_email_enabled" +msgstr "Увімкнути поле електронної адреси для аноніма" + #. Default: "Apply" #: ../browser/moderation.pt:71 msgid "label_apply" msgstr "Застосувати" #. Default: "Captcha" -#: ../interfaces.py:80 +#: ../interfaces.py:275 msgid "label_captcha" msgstr "Капча" #. Default: "Comment" -#: ../interfaces.py:275 +#: ../interfaces.py:163 msgid "label_comment" msgstr "Коментар" #. Default: "Commenting has been disabled." -#: ../browser/comments.pt:130 +#: ../browser/comments.pt:148 msgid "label_commenting_disabled" msgstr "Коментування вимкнено" @@ -290,25 +374,30 @@ msgstr "Коментування вимкнено" msgid "label_delete" msgstr "Знищити" +#. Default: "Enable editing of comments" +#: ../interfaces.py:247 +msgid "label_edit_comment_enabled" +msgstr "" + #. Default: "Globally enable comments" -#: ../interfaces.py:24 +#: ../interfaces.py:200 msgid "label_globally_enabled" msgstr "Увімкнути коментування для цілого сайту" #. Default: "Enable comment moderation" -#: ../interfaces.py:48 +#: ../interfaces.py:228 msgid "label_moderation_enabled" -msgstr "" +msgstr "Увімкнути модерування коментарів" #. Default: "Moderator Email Address" -#: ../interfaces.py:117 +#: ../interfaces.py:314 msgid "label_moderator_email" -msgstr "" +msgstr "Електронна адреса модератора" #. Default: "Enable moderator email notification" -#: ../interfaces.py:105 +#: ../interfaces.py:302 msgid "label_moderator_notification_enabled" -msgstr "" +msgstr "Увімкнути сповіщення модератора" #. Default: "Approve" #: ../browser/moderation.pt:121 @@ -316,37 +405,37 @@ msgid "label_publish" msgstr "Опублікувати" #. Default: "says:" -#: ../browser/comments.pt:74 +#: ../browser/comments.pt:77 msgid "label_says" -msgstr "" +msgstr "каже:" #. Default: "Show commenter image" -#: ../interfaces.py:95 +#: ../interfaces.py:291 msgid "label_show_commenter_image" msgstr "Показати зображення коментатора" #. Default: "show full comment text" #: ../browser/moderation.pt:114 msgid "label_show_full_comment_text" -msgstr "" +msgstr "показати повний текст коментаря" #. Default: "Subject" -#: ../interfaces.py:271 +#: ../interfaces.py:158 msgid "label_subject" msgstr "Тема" #. Default: "Comment text transform" -#: ../interfaces.py:64 +#: ../interfaces.py:258 msgid "label_text_transform" -msgstr "" +msgstr "Перетворення тексту коментаря" #. Default: "Enable user email notification" -#: ../interfaces.py:125 +#: ../interfaces.py:326 msgid "label_user_notification_enabled" -msgstr "Увімкнути надилання нотифікації користувачу через електронну адресу" +msgstr "Увімкнути надcилання нотифікації користувачу через електронну адресу" #. Default: "A comment on '${title}' has been posted here: ${link}\n\n---\n${text}\n---\n" -#: ../comment.py:50 +#: ../comment.py:59 msgid "mail_notification_message" msgstr "" "Коментар до '${title}' було додано тут: ${link}\n" @@ -356,7 +445,7 @@ msgstr "" "---\n" #. Default: "A comment on '${title}' has been posted here: ${link}\n\n---\n${text}\n---\n\nApprove comment:\n${link_approve}\n\nDelete comment:\n${link_delete}\n" -#: ../comment.py:58 +#: ../comment.py:67 msgid "mail_notification_message_moderator" msgstr "" "Коментар до '${title}' було додано тут: ${link}\n" @@ -374,20 +463,20 @@ msgstr "" #. Default: "enable the 'Comment Review Workflow' for the Comment content type" #: ../browser/moderation.pt:33 msgid "message_enable_comment_workflow" -msgstr "" +msgstr "увімкнути 'Робочий процес розгляду коментарів' для контент типу Коментар" #. Default: "Moderation workflow is disabled. You have to ${enable_comment_workflow} before you can moderate comments here." #: ../browser/moderation.pt:33 msgid "message_moderation_disabled" -msgstr "" +msgstr "Робочий процес модерування відключений. Ви повинні ${enable_comment_workflow} перш, ніж ви зможете модерувати коментарі." #. Default: "No comments to moderate." #: ../browser/moderation.pt:43 msgid "message_nothing_to_moderate" -msgstr "" +msgstr "Немає коментарів до модерування" #. Default: "Bulk Actions" #: ../browser/moderation.pt:64 msgid "title_bulkactions" -msgstr "" +msgstr "Масові Дії" diff --git a/plone/app/discussion/locales/zh_CN/LC_MESSAGES/plone.app.discussion.po b/plone/app/discussion/locales/zh_CN/LC_MESSAGES/plone.app.discussion.po index 010c434..beac55f 100644 --- a/plone/app/discussion/locales/zh_CN/LC_MESSAGES/plone.app.discussion.po +++ b/plone/app/discussion/locales/zh_CN/LC_MESSAGES/plone.app.discussion.po @@ -3,7 +3,7 @@ msgid "" msgstr "" "Project-Id-Version: plone.app.discussion\n" -"POT-Creation-Date: 2011-04-22 17:12+0000\n" +"POT-Creation-Date: YEAR-MO-DA HO:MI +ZONE\n" "PO-Revision-Date: 2011-08-19 12:23+0800\n" "Last-Translator: Jian Aijun \n" "Language-Team: plone \n" @@ -14,104 +14,125 @@ msgstr "" "Language-Code: zh_CN\n" "Language-Name: Chinese (Simplified)\n" "Preferred-Encodings: utf-8\n" +"Domain: DOMAIN\n" -#: ../comment.py:264 +#: ../comment.py:357 msgid "A comment has been posted." msgstr "一个评论已发布。" -#: ../interfaces.py:257 +#: ../interfaces.py:144 msgid "A comment id unique to this conversation" msgstr "此对话的评论 ID" -#: ../browser/comments.py:67 +#: ../browser/comments.py:72 msgid "Add a comment" msgstr "添加​​评论" -#: ../browser/controlpanel.py:62 +#: ../browser/controlpanel.py:75 msgid "Anonymous Comments" msgstr "匿名评论" -#: ../interfaces.py:282 -msgid "Author name (for display)" -msgstr "作者的名称(显示)" - -#: ../browser/comments.py:248 -#: ../browser/controlpanel.py:80 +#: ../browser/comments.py:274 +#: ../browser/controlpanel.py:93 msgid "Cancel" msgstr "取消" -#: ../browser/controlpanel.py:76 +#: ../browser/controlpanel.py:89 msgid "Changes saved" msgstr "更改已保存" -#: ../browser/moderation.py:133 +#: ../browser/moderation.py:154 msgid "Comment approved." msgstr "评论已批准。" -#: ../browser/moderation.py:94 +#: ../contentrules.py:96 +msgid "Comment author email" +msgstr "" + +#: ../contentrules.py:85 +msgid "Comment author full name" +msgstr "" + +#: ../contentrules.py:74 +msgid "Comment author user name" +msgstr "" + +#: ../browser/moderation.py:108 msgid "Comment deleted." msgstr "评论已删除。" -#: ../browser/controlpanel.py:63 +#: ../contentrules.py:52 +msgid "Comment id" +msgstr "" + +#: ../contentrules.py:63 +msgid "Comment text" +msgstr "" + +#: ../browser/controlpanel.py:76 msgid "Commenter Image" msgstr "评论者头像" msgid "Commenting infrastructure for Plone" msgstr "Plone 的评论功能" -#: ../interfaces.py:252 +#: ../contentrules.py:51 +msgid "Comments" +msgstr "" + +#: ../interfaces.py:139 msgid "Conversation" msgstr "对话" -#: ../interfaces.py:283 +#: ../interfaces.py:177 msgid "Creation date" msgstr "创建日期" -#: ../interfaces.py:162 -msgid "Date of the most recent comment" -msgstr "最近的评论日期" +#: ../interfaces.py:41 +msgid "Date of the most recent public comment" +msgstr "" #: ../vocabularies.py:44 msgid "Disabled" msgstr "禁用" -#: ../browser/controlpanel.py:32 +#: ../browser/controlpanel.py:35 msgid "Discussion settings" msgstr "评论设置" -#: ../browser/controlpanel.py:82 +#: ../browser/controlpanel.py:95 msgid "Edit cancelled" msgstr "编辑已取消" -#: ../interfaces.py:269 +#: ../interfaces.py:156 msgid "Email" msgstr "Email" -#: ../browser/controlpanel.py:61 +#: ../browser/controlpanel.py:74 msgid "Enable Comments" msgstr "启用评论" -#: ../interfaces.py:260 +#: ../interfaces.py:147 msgid "Id of comment this comment is in reply to" msgstr "针对回复评论ID" -#: ../interfaces.py:274 +#: ../interfaces.py:161 msgid "MIME type" msgstr "MIME 类型" -#: ../browser/controlpanel.py:65 +#: ../browser/controlpanel.py:78 msgid "Moderator Email Notification" msgstr "Email 通知审核者" -#: ../interfaces.py:284 +#: ../interfaces.py:178 msgid "Modification date" msgstr "修改日期" -#: ../interfaces.py:254 +#: ../interfaces.py:141 msgid "Name" msgstr "名称" -#: ../interfaces.py:278 +#: ../interfaces.py:170 msgid "Notify me of new comments via email." msgstr "有新的评论,通过 Email 通知我" @@ -119,32 +140,44 @@ msgstr "有新的评论,通过 Email 通知我" msgid "Plone Discussions" msgstr "Plone 评论" -#: ../interfaces.py:247 +#: ../interfaces.py:134 msgid "Portal type" msgstr "Portal 类型" -#: ../browser/controlpanel.py:69 +#: ../browser/controlpanel.py:82 msgid "Save" msgstr "保存" -#: ../interfaces.py:167 +#: ../interfaces.py:46 msgid "The set of unique commentators (usernames)" msgstr "评论者(用户名)的集合" -#: ../interfaces.py:156 -msgid "Total number of comments on this item" -msgstr "这个对话的评论总数" +#: ../interfaces.py:51 +msgid "The set of unique commentators (usernames) of published_comments" +msgstr "" -#: ../browser/controlpanel.py:67 +#: ../interfaces.py:35 +msgid "Total number of public comments on this item" +msgstr "" + +#: ../comment.py:173 +msgid "Transform '%s' => '%s' not available." +msgstr "" + +#: ../browser/controlpanel.py:80 msgid "User Email Notification" msgstr "Email 通知用户" -#: ../browser/comments.py:241 +#: ../interfaces.py:176 +msgid "Username of the commenter" +msgstr "" + +#: ../browser/comments.py:267 msgid "Your comment awaits moderator approval." msgstr "您的评论正等待审核者的批准。" #. Default: "Comment" -#: ../browser/comments.py:123 +#: ../browser/comments.py:138 msgid "add_comment_button" msgstr "发表评论" @@ -158,26 +191,57 @@ msgstr "删除" msgid "bulkactions_publish" msgstr "批准" +#. Default: "Cancel" +#: ../browser/comment.py:97 +msgid "cancel_form_button" +msgstr "" + #. Default: "You can add a comment by filling out the form below. Plain text formatting. Web and email addresses are transformed into clickable links." -#: ../browser/comments.py:52 +#: ../browser/comments.py:57 msgid "comment_description_intelligent_text" msgstr "您可以通过填写以下表单发表评论,使用纯文本格式。网页和电子邮件地址将转换为可点击链接。" +#. Default: "You can add a comment by filling out the form below. Plain text formatting. You can use the Markdown syntax for links and images." +#: ../browser/comments.py:51 +msgid "comment_description_markdown" +msgstr "" + #. Default: "Comments are moderated." -#: ../browser/comments.py:58 +#: ../browser/comments.py:63 msgid "comment_description_moderation_enabled" msgstr "评论将被审核。" #. Default: "You can add a comment by filling out the form below. Plain text formatting." -#: ../browser/comments.py:47 +#: ../browser/comments.py:46 msgid "comment_description_plain_text" msgstr "您可以通过填写以下表单发表评论,使用纯文本格式。" -#. Default: "${creator} on ${content}" -#: ../comment.py:46 +#. Default: "Edit comment cancelled" +#: ../browser/comment.py:101 +msgid "comment_edit_cancel_notification" +msgstr "" + +#. Default: "Comment was edited" +#: ../browser/comment.py:91 +msgid "comment_edit_notification" +msgstr "" + +#. Default: "${author_name} on ${content}" +#: ../comment.py:55 +#, fuzzy msgid "comment_title" msgstr "${creator} 在 ${content}" +#. Default: "Edit comment" +#: ../browser/comment.py:70 +msgid "edit_comment_form_button" +msgstr "" + +#. Default: "Edit comment" +#: ../browser/comment.py:54 +msgid "edit_comment_form_title" +msgstr "" + #. Default: "Action" #: ../browser/moderation.pt:85 msgid "heading_action" @@ -209,85 +273,102 @@ msgid "heading_moderate_comments" msgstr "审核评论" #. Default: "If selected, anonymous users are able to post comments without loggin in. It is highly recommended to use a captcha solution to prevent spam if this setting is enabled." -#: ../interfaces.py:38 +#: ../interfaces.py:216 msgid "help_anonymous_comments" msgstr "如果选中,匿名用户可不登录的情况下发布评论。如果启用了此设置,强烈建议使用验证码,以防止垃圾评论。" +#. Default: "If selected, anonymous user will have to give their email." +#: ../interfaces.py:341 +msgid "help_anonymous_email_enabled" +msgstr "" + #. Default: "Use this setting to enable or disable Captcha validation for comments. Install plone.formwidget.captcha, plone.formwidget.recaptcha, collective.akismet, or collective.z3cform.norobots if there are no options available." -#: ../interfaces.py:82 +#: ../interfaces.py:277 msgid "help_captcha" msgstr "设置启用或禁用评论验证码功能。如果没有任何可选项,可安装plone.formwidget.captcha,plone.formwidget.recaptcha,collective.akismet,或collective.z3cform.norobots。" #. Default: "Some discussion related settings are not located in the Discussion Control Panel.\nTo enable comments for a specific content type, go to the Types Control Panel of this type and choose \"Allow comments\".\nTo enable the moderation workflow for comments, go to the Types Control Panel, choose \"Comment\" and set workflow to \"Comment Review Workflow\"." -#: ../browser/controlpanel.py:33 +#: ../browser/controlpanel.py:36 msgid "help_discussion_settings_editform" msgstr "" "一些评论相关的设置并不位于 评论控制面板。\n" "要启用特定内容类型的评论,请到类型控制面板,选中这种类型的 \"允许评论\"。\n" "要启用评论审核工作流,请到类型控制面板,选择 \"评论\" 并将工作流设置为 \"评论审核工作流\"。" +#. Default: "If selected, supports editing and deletion of comments for users with the 'Edit comments' permission." +#: ../interfaces.py:249 +msgid "help_edit_comment_enabled" +msgstr "" + #. Default: "If selected, users are able to post comments on the site. Though, you have to enable comments for specific content types, folders or content objects before users will be able to post comments." -#: ../interfaces.py:26 +#: ../interfaces.py:202 msgid "help_globally_enabled" msgstr "如果选中,用户可在网站上发表评论。不过,为使用户将能够发表评论,您还需要启用特定的内容类型、 文件夹或内容对象的发表评论功能。" #. Default: "If selected, comments will enter a 'Pending' state in which they are invisible to the public. A user with the 'Review comments' permission ('Reviewer' or 'Manager') can approve comments to make them visible to the public. If you want to enable a custom comment workflow, you have to go to the types control panel." -#: ../interfaces.py:50 +#: ../interfaces.py:232 msgid "help_moderation_enabled" msgstr "如果选中,评论将进入'待审核'状态,它们对用户是看不见的。'具有审核权限的用户('审核者'或'管理者')可以批准评论,使它们对用户可见。如果你要启用定制的评论工作流,你必须到类型控制面板。" #. Default: "Address to which moderator notifications will be sent." -#: ../interfaces.py:118 +#: ../interfaces.py:318 msgid "help_moderator_email" msgstr "审核通知发送地址。" -#. Default: "If selected, the moderator is notified if a comment needs attention. The moderator email address can be found in the 'Mail settings' control panel (Site 'From' address)" -#: ../interfaces.py:107 +#. Default: "If selected, the moderator is notified if a comment needs attention. The moderator email address can be set below." +#: ../interfaces.py:304 +#, fuzzy msgid "help_moderator_notification_enabled" msgstr "如果选中,如评论需要注意,审核者将被通知。审核者的Email地址,可以在'邮件设置'控制面板(网站'发件人'地址)中找到。" #. Default: "If selected, an image of the user is shown next to the comment." -#: ../interfaces.py:97 +#: ../interfaces.py:293 msgid "help_show_commenter_image" msgstr "如果选中,用户的头像显示在评论旁边。" #. Default: "Use this setting to choose if the comment text should be transformed in any way. You can choose between 'Plain text' and 'Intelligent text'. 'Intelligent text' converts plain text into HTML where line breaks and indentation is preserved, and web and email addresses are made into clickable links." -#: ../interfaces.py:66 +#: ../interfaces.py:260 msgid "help_text_transform" msgstr "使用此设置选择评论文本的转换方式,你可以选择'纯文本'和'智能文本。'智能文本'转换纯文本成HTML格式,其中换行和缩进保留,Web和Email地址都转换为可点击链接。" #. Default: "If selected, users can choose to be notified of new comments by email." -#: ../interfaces.py:127 +#: ../interfaces.py:330 msgid "help_user_notification_enabled" msgstr "如果选中,用户可以选择通过Email通知新的评论。" #. Default: "Anonymous" -#: ../comment.py:156 +#: ../browser/comments.pt:74 +#: ../comment.py:191 msgid "label_anonymous" msgstr "匿名" #. Default: "Enable anonymous comments" -#: ../interfaces.py:36 +#: ../interfaces.py:214 msgid "label_anonymous_comments" msgstr "启用匿名评论" +#. Default: "Enable anonymous email field" +#: ../interfaces.py:339 +msgid "label_anonymous_email_enabled" +msgstr "" + #. Default: "Apply" #: ../browser/moderation.pt:71 msgid "label_apply" msgstr "应用" #. Default: "Captcha" -#: ../interfaces.py:80 +#: ../interfaces.py:275 msgid "label_captcha" msgstr "验证码" #. Default: "Comment" -#: ../interfaces.py:275 +#: ../interfaces.py:163 msgid "label_comment" msgstr "评论" #. Default: "Commenting has been disabled." -#: ../browser/comments.pt:130 +#: ../browser/comments.pt:148 msgid "label_commenting_disabled" msgstr "评论已被禁用。" @@ -296,23 +377,28 @@ msgstr "评论已被禁用。" msgid "label_delete" msgstr "删除" +#. Default: "Enable editing of comments" +#: ../interfaces.py:247 +msgid "label_edit_comment_enabled" +msgstr "" + #. Default: "Globally enable comments" -#: ../interfaces.py:24 +#: ../interfaces.py:200 msgid "label_globally_enabled" msgstr "全局启用评论" #. Default: "Enable comment moderation" -#: ../interfaces.py:48 +#: ../interfaces.py:228 msgid "label_moderation_enabled" msgstr "启用评论审核" #. Default: "Moderator Email Address" -#: ../interfaces.py:117 +#: ../interfaces.py:314 msgid "label_moderator_email" msgstr "审核者Email地址" #. Default: "Enable moderator email notification" -#: ../interfaces.py:105 +#: ../interfaces.py:302 msgid "label_moderator_notification_enabled" msgstr "启用审核者Email通知" @@ -322,12 +408,12 @@ msgid "label_publish" msgstr "批准" #. Default: "says:" -#: ../browser/comments.pt:74 +#: ../browser/comments.pt:77 msgid "label_says" msgstr "说:" #. Default: "Show commenter image" -#: ../interfaces.py:95 +#: ../interfaces.py:291 msgid "label_show_commenter_image" msgstr "显示评论者的头像" @@ -337,22 +423,22 @@ msgid "label_show_full_comment_text" msgstr "显示完整的评论文本" #. Default: "Subject" -#: ../interfaces.py:271 +#: ../interfaces.py:158 msgid "label_subject" msgstr "标题" #. Default: "Comment text transform" -#: ../interfaces.py:64 +#: ../interfaces.py:258 msgid "label_text_transform" msgstr "评论文本转换" #. Default: "Enable user email notification" -#: ../interfaces.py:125 +#: ../interfaces.py:326 msgid "label_user_notification_enabled" msgstr "启用用户Email通知" #. Default: "A comment on '${title}' has been posted here: ${link}\n\n---\n${text}\n---\n" -#: ../comment.py:50 +#: ../comment.py:59 msgid "mail_notification_message" msgstr "" "一条评论 '${title}' 已发布在: ${link}\n" @@ -362,7 +448,7 @@ msgstr "" "---\n" #. Default: "A comment on '${title}' has been posted here: ${link}\n\n---\n${text}\n---\n\nApprove comment:\n${link_approve}\n\nDelete comment:\n${link_delete}\n" -#: ../comment.py:58 +#: ../comment.py:67 msgid "mail_notification_message_moderator" msgstr "" "一条评论 '${title}' 已发布在: ${link}\n" diff --git a/plone/app/discussion/locales/zh_TW/LC_MESSAGES/plone.app.discussion.po b/plone/app/discussion/locales/zh_TW/LC_MESSAGES/plone.app.discussion.po index 3acbaa7..9061aea 100644 --- a/plone/app/discussion/locales/zh_TW/LC_MESSAGES/plone.app.discussion.po +++ b/plone/app/discussion/locales/zh_TW/LC_MESSAGES/plone.app.discussion.po @@ -2,9 +2,9 @@ msgid "" msgstr "" "Project-Id-Version: plone.app.discussion\n" "POT-Creation-Date: YEAR-MO-DA HO:MI +ZONE\n" -"PO-Revision-Date: 2010-08-07 23:10+0800\n" +"PO-Revision-Date: 2014-05-02 20:55+0800\n" "Last-Translator: TsungWei Hu \n" -"Language-Team: Taiwan Python User Group \n" +"Language-Team: Plone I18N \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -14,136 +14,168 @@ msgstr "" "Preferred-Encodings: utf-8 latin1\n" "Domain: plone.app.discussion\n" -#: ../comment.py:264 +#: ../comment.py:357 msgid "A comment has been posted." -msgstr "" +msgstr "留言已張貼。" -#: ../interfaces.py:257 +#: ../interfaces.py:144 msgid "A comment id unique to this conversation" msgstr "留言的識別碼" -#: ../browser/comments.py:67 +#: ../browser/comments.py:72 msgid "Add a comment" msgstr "新增留言" -#: ../browser/controlpanel.py:62 +#: ../browser/controlpanel.py:75 msgid "Anonymous Comments" msgstr "匿名留言" -#: ../interfaces.py:282 -msgid "Author name (for display)" -msgstr "作者 (顯示在網頁上)" - -#: ../browser/comments.py:248 -#: ../browser/controlpanel.py:80 +#: ../browser/comments.py:274 +#: ../browser/controlpanel.py:93 msgid "Cancel" msgstr "取消" -#: ../browser/controlpanel.py:76 +#: ../browser/controlpanel.py:89 msgid "Changes saved" -msgstr "" +msgstr "變更已儲存" -#: ../browser/moderation.py:133 +#: ../browser/moderation.py:154 msgid "Comment approved." msgstr "留言已審核" -#: ../browser/moderation.py:94 +#: ../contentrules.py:96 +msgid "Comment author email" +msgstr "留言作者電郵" + +#: ../contentrules.py:85 +msgid "Comment author full name" +msgstr "留言作者姓名" + +#: ../contentrules.py:74 +msgid "Comment author user name" +msgstr "留言作者帳號" + +#: ../browser/moderation.py:108 msgid "Comment deleted." msgstr "留言已刪除" -#: ../browser/controlpanel.py:63 +#: ../contentrules.py:52 +msgid "Comment id" +msgstr "留言識別碼" + +#: ../contentrules.py:63 +msgid "Comment text" +msgstr "留言內文" + +#: ../browser/controlpanel.py:76 msgid "Commenter Image" msgstr "留言者圖檔" msgid "Commenting infrastructure for Plone" msgstr "Plone 的留言功能" -#: ../interfaces.py:252 -msgid "Conversation" -msgstr "討論" +#: ../contentrules.py:51 +msgid "Comments" +msgstr "留言" -#: ../interfaces.py:283 +#: ../interfaces.py:139 +msgid "Conversation" +msgstr "留言功能" + +#: ../interfaces.py:177 msgid "Creation date" msgstr "建立日期" -#: ../interfaces.py:162 -msgid "Date of the most recent comment" -msgstr "最近留言的日期" +#: ../interfaces.py:41 +msgid "Date of the most recent public comment" +msgstr "最新留言的日期" #: ../vocabularies.py:44 msgid "Disabled" msgstr "已停用" -#: ../browser/controlpanel.py:32 +#: ../browser/controlpanel.py:35 msgid "Discussion settings" msgstr "討論區設定" -#: ../browser/controlpanel.py:82 +#: ../browser/controlpanel.py:95 msgid "Edit cancelled" -msgstr "" +msgstr "取消編輯" -#: ../interfaces.py:269 +#: ../interfaces.py:156 msgid "Email" msgstr "E-Mail" -#: ../browser/controlpanel.py:61 +#: ../browser/controlpanel.py:74 msgid "Enable Comments" msgstr "允許留言" -#: ../interfaces.py:260 +#: ../interfaces.py:147 msgid "Id of comment this comment is in reply to" msgstr "留言的識別碼" -#: ../interfaces.py:274 +#: ../interfaces.py:161 msgid "MIME type" msgstr "MIME-Type" -#: ../browser/controlpanel.py:65 +#: ../browser/controlpanel.py:78 msgid "Moderator Email Notification" msgstr "審核者的電子郵件通知" -#: ../interfaces.py:284 +#: ../interfaces.py:178 msgid "Modification date" msgstr "修改日期" -#: ../interfaces.py:254 +#: ../interfaces.py:141 msgid "Name" msgstr "名稱" -#: ../interfaces.py:278 +#: ../interfaces.py:170 msgid "Notify me of new comments via email." -msgstr "" +msgstr "寄送電郵通知新留言。" #: ./plone.app.discussion/plone/app/discussion/configure.zcml msgid "Plone Discussions" msgstr "Plone 討論區" -#: ../interfaces.py:247 +#: ../interfaces.py:134 msgid "Portal type" msgstr "網站型別" -#: ../browser/controlpanel.py:69 +#: ../browser/controlpanel.py:82 msgid "Save" -msgstr "" +msgstr "儲存" -#: ../interfaces.py:167 +#: ../interfaces.py:46 msgid "The set of unique commentators (usernames)" msgstr "留言者 (使用者名稱) 的集合" -#: ../interfaces.py:156 -msgid "Total number of comments on this item" -msgstr "本項目的留言數目" +#: ../interfaces.py:51 +msgid "The set of unique commentators (usernames) of published_comments" +msgstr "留言的帳號列表" -#: ../browser/controlpanel.py:67 +#: ../interfaces.py:35 +msgid "Total number of public comments on this item" +msgstr "留言的數量統計" + +#: ../comment.py:173 +msgid "Transform '%s' => '%s' not available." +msgstr "轉換 '%s' => '%s' 並不存在" + +#: ../browser/controlpanel.py:80 msgid "User Email Notification" -msgstr "" +msgstr "新留言通知使用者" -#: ../browser/comments.py:241 +#: ../interfaces.py:176 +msgid "Username of the commenter" +msgstr "留言者的帳號" + +#: ../browser/comments.py:267 msgid "Your comment awaits moderator approval." msgstr "你的留言等待審核中。" #. Default: "Comment" -#: ../browser/comments.py:123 +#: ../browser/comments.py:138 msgid "add_comment_button" msgstr "留言" @@ -157,24 +189,54 @@ msgstr "刪除" msgid "bulkactions_publish" msgstr "審核" -#. Default: "You can add a comment by filling out the form below. Plain text formatting. Web and email addresses are transformed into clickable links." -#: ../browser/comments.py:52 -msgid "comment_description_intelligent_text" +#. Default: "Cancel" +#: ../browser/comment.py:97 +msgid "cancel_form_button" msgstr "" +#. Default: "You can add a comment by filling out the form below. Plain text formatting. Web and email addresses are transformed into clickable links." +#: ../browser/comments.py:57 +msgid "comment_description_intelligent_text" +msgstr "填寫下列表單後,就可以新增留言。網址會被轉換成可點選的連結。" + +#. Default: "You can add a comment by filling out the form below. Plain text formatting. You can use the Markdown syntax for links and images." +#: ../browser/comments.py:51 +msgid "comment_description_markdown" +msgstr "填寫表單後可以留言,可以套用 Markdown 語法來輸入連結或圖檔。" + #. Default: "Comments are moderated." -#: ../browser/comments.py:58 +#: ../browser/comments.py:63 msgid "comment_description_moderation_enabled" -msgstr "" +msgstr "留言等待審核中" #. Default: "You can add a comment by filling out the form below. Plain text formatting." -#: ../browser/comments.py:47 +#: ../browser/comments.py:46 msgid "comment_description_plain_text" +msgstr "填寫下列表單後,就可以新增留言。" + +#. Default: "Edit comment cancelled" +#: ../browser/comment.py:101 +msgid "comment_edit_cancel_notification" msgstr "" -#. Default: "${creator} on ${content}" -#: ../comment.py:46 +#. Default: "Comment was edited" +#: ../browser/comment.py:91 +msgid "comment_edit_notification" +msgstr "" + +#. Default: "${author_name} on ${content}" +#: ../comment.py:55 msgid "comment_title" +msgstr "${author_name} 在 ${content} 留言" + +#. Default: "Edit comment" +#: ../browser/comment.py:70 +msgid "edit_comment_form_button" +msgstr "" + +#. Default: "Edit comment" +#: ../browser/comment.py:54 +msgid "edit_comment_form_title" msgstr "" #. Default: "Action" @@ -208,113 +270,131 @@ msgid "heading_moderate_comments" msgstr "審核留言" #. Default: "If selected, anonymous users are able to post comments without loggin in. It is highly recommended to use a captcha solution to prevent spam if this setting is enabled." -#: ../interfaces.py:38 +#: ../interfaces.py:216 msgid "help_anonymous_comments" msgstr "勾選的話,匿名使用者不必登入系統就能留言。建議使用 captcha 來避免垃圾留言。" +#. Default: "If selected, anonymous user will have to give their email." +#: ../interfaces.py:341 +msgid "help_anonymous_email_enabled" +msgstr "勾選的話,匿名留言者必須填寫電郵信箱。" + #. Default: "Use this setting to enable or disable Captcha validation for comments. Install plone.formwidget.captcha, plone.formwidget.recaptcha, collective.akismet, or collective.z3cform.norobots if there are no options available." -#: ../interfaces.py:82 -#, fuzzy +#: ../interfaces.py:277 msgid "help_captcha" -msgstr "設定留言是否啟用或停用 captcha 功能,如果還沒有這類模組選項的話,可安裝 plone.formwidget.captcha 或 plone.formwidget.recaptcha。" +msgstr "設定留言是否啟用或停用 captcha 功能,如果還沒有這類模組選項的話,可安裝 plone.formwidget.captcha、plone.formwidget.recaptcha、collective.akismet 或 collective.z3cform.norobots。" #. Default: "Some discussion related settings are not located in the Discussion Control Panel.\nTo enable comments for a specific content type, go to the Types Control Panel of this type and choose \"Allow comments\".\nTo enable the moderation workflow for comments, go to the Types Control Panel, choose \"Comment\" and set workflow to \"Comment Review Workflow\"." -#: ../browser/controlpanel.py:33 +#: ../browser/controlpanel.py:36 msgid "help_discussion_settings_editform" msgstr "" "某些討論區設定值並未在討論區控制面板找得到。\n" "想要指定某個內容型別的留言功能,請到型別控制面板,指定「允許留言」。\n" "想要指定留言的審核流程,請到型別控制面板,點選「留言」並指定工作流程為「留言審核流程」。" +#. Default: "If selected, supports editing and deletion of comments for users with the 'Edit comments' permission." +#: ../interfaces.py:249 +msgid "help_edit_comment_enabled" +msgstr "" + #. Default: "If selected, users are able to post comments on the site. Though, you have to enable comments for specific content types, folders or content objects before users will be able to post comments." -#: ../interfaces.py:26 -#, fuzzy +#: ../interfaces.py:202 msgid "help_globally_enabled" msgstr "勾選的話,就啟用使用者的留言功能,不過,仍然要決定哪些內容型別、目錄、項目,能讓使用者留言。" #. Default: "If selected, comments will enter a 'Pending' state in which they are invisible to the public. A user with the 'Review comments' permission ('Reviewer' or 'Manager') can approve comments to make them visible to the public. If you want to enable a custom comment workflow, you have to go to the types control panel." -#: ../interfaces.py:50 +#: ../interfaces.py:232 msgid "help_moderation_enabled" -msgstr "" +msgstr "勾選的話,留言會先變成待審狀態,直到通過審核後才會公開,想要客製化管理流程的話,必須到型別設定頁面。" #. Default: "Address to which moderator notifications will be sent." -#: ../interfaces.py:118 +#: ../interfaces.py:318 msgid "help_moderator_email" -msgstr "" +msgstr "審核通知信的寄送地址。" -#. Default: "If selected, the moderator is notified if a comment needs attention. The moderator email address can be found in the 'Mail settings' control panel (Site 'From' address)" -#: ../interfaces.py:107 -#, fuzzy +#. Default: "If selected, the moderator is notified if a comment needs attention. The moderator email address can be set below." +#: ../interfaces.py:304 msgid "help_moderator_notification_enabled" -msgstr "勾選的話,有人留言時就會通知審核者。" +msgstr "勾選的話,有人留言時就會通知審核者。審核者的寄信地址可在下列欄位設定。" #. Default: "If selected, an image of the user is shown next to the comment." -#: ../interfaces.py:97 +#: ../interfaces.py:293 msgid "help_show_commenter_image" msgstr "勾選的話,使用者的圖檔會顯示在留言旁邊。" #. Default: "Use this setting to choose if the comment text should be transformed in any way. You can choose between 'Plain text' and 'Intelligent text'. 'Intelligent text' converts plain text into HTML where line breaks and indentation is preserved, and web and email addresses are made into clickable links." -#: ../interfaces.py:66 +#: ../interfaces.py:260 msgid "help_text_transform" -msgstr "" +msgstr "選擇留言的標註格式,選擇「排版文字」的話,會主動保留內容的換行和縮排,也會把網址變成可以點選的連結。" #. Default: "If selected, users can choose to be notified of new comments by email." -#: ../interfaces.py:127 +#: ../interfaces.py:330 msgid "help_user_notification_enabled" -msgstr "" +msgstr "勾選的話,使用者可以收到新留言的通知信。" #. Default: "Anonymous" -#: ../comment.py:156 +#: ../browser/comments.pt:74 +#: ../comment.py:191 msgid "label_anonymous" -msgstr "" +msgstr "無名氏" #. Default: "Enable anonymous comments" -#: ../interfaces.py:36 +#: ../interfaces.py:214 msgid "label_anonymous_comments" msgstr "啟用匿名留言功能" +#. Default: "Enable anonymous email field" +#: ../interfaces.py:339 +msgid "label_anonymous_email_enabled" +msgstr "啟用匿名留言的電郵欄位" + #. Default: "Apply" #: ../browser/moderation.pt:71 msgid "label_apply" msgstr "更新" #. Default: "Captcha" -#: ../interfaces.py:80 +#: ../interfaces.py:275 msgid "label_captcha" msgstr "captcha" #. Default: "Comment" -#: ../interfaces.py:275 +#: ../interfaces.py:163 msgid "label_comment" msgstr "留言" #. Default: "Commenting has been disabled." -#: ../browser/comments.pt:130 +#: ../browser/comments.pt:148 msgid "label_commenting_disabled" -msgstr "" +msgstr "留言功能已停用。" #. Default: "Delete" #: ../browser/moderation.pt:130 msgid "label_delete" msgstr "刪除" +#. Default: "Enable editing of comments" +#: ../interfaces.py:247 +msgid "label_edit_comment_enabled" +msgstr "" + #. Default: "Globally enable comments" -#: ../interfaces.py:24 +#: ../interfaces.py:200 msgid "label_globally_enabled" msgstr "全域啟用留言功能" #. Default: "Enable comment moderation" -#: ../interfaces.py:48 +#: ../interfaces.py:228 msgid "label_moderation_enabled" -msgstr "" +msgstr "啟用審核功能" #. Default: "Moderator Email Address" -#: ../interfaces.py:117 +#: ../interfaces.py:314 msgid "label_moderator_email" -msgstr "" +msgstr "審核者電郵地址" #. Default: "Enable moderator email notification" -#: ../interfaces.py:105 +#: ../interfaces.py:302 msgid "label_moderator_notification_enabled" msgstr "啟用通知審核者的功能" @@ -324,12 +404,12 @@ msgid "label_publish" msgstr "審核" #. Default: "says:" -#: ../browser/comments.pt:74 +#: ../browser/comments.pt:77 msgid "label_says" -msgstr "" +msgstr "留言:" #. Default: "Show commenter image" -#: ../interfaces.py:95 +#: ../interfaces.py:291 msgid "label_show_commenter_image" msgstr "顯示留言者圖檔" @@ -339,29 +419,45 @@ msgid "label_show_full_comment_text" msgstr "顯示完整的留言內容" #. Default: "Subject" -#: ../interfaces.py:271 +#: ../interfaces.py:158 msgid "label_subject" msgstr "標題" #. Default: "Comment text transform" -#: ../interfaces.py:64 +#: ../interfaces.py:258 msgid "label_text_transform" -msgstr "" +msgstr "留言排版格式" #. Default: "Enable user email notification" -#: ../interfaces.py:125 +#: ../interfaces.py:326 msgid "label_user_notification_enabled" -msgstr "" +msgstr "啟用通知使用者的功能" #. Default: "A comment on '${title}' has been posted here: ${link}\n\n---\n${text}\n---\n" -#: ../comment.py:50 +#: ../comment.py:59 msgid "mail_notification_message" msgstr "" +"${title} 有新留言:${link}\n" +"\n" +"---\n" +"${text}\n" +"---\n" #. Default: "A comment on '${title}' has been posted here: ${link}\n\n---\n${text}\n---\n\nApprove comment:\n${link_approve}\n\nDelete comment:\n${link_delete}\n" -#: ../comment.py:58 +#: ../comment.py:67 msgid "mail_notification_message_moderator" msgstr "" +"${title} 有新留言:${link}\n" +"\n" +"---\n" +"${text}\n" +"---\n" +"\n" +"審核通過:\n" +"${link_approve}\n" +"\n" +"刪除留言:\n" +"${link_delete}\n" #. Default: "enable the 'Comment Review Workflow' for the Comment content type" #: ../browser/moderation.pt:33 diff --git a/plone/app/discussion/patches.py b/plone/app/discussion/patches.py index 55088d5..9491702 100644 --- a/plone/app/discussion/patches.py +++ b/plone/app/discussion/patches.py @@ -1,4 +1,4 @@ -from zope.component import queryUtility +from Products.CMFCore.utils import getToolByName from Acquisition import aq_inner, aq_parent @@ -8,7 +8,6 @@ from Products.CMFPlone.utils import base_hasattr from Products.CMFPlone.utils import safe_callable from plone.app.discussion.conversation import ANNOTATION_KEY -from plone.app.discussion.interfaces import ICommentingTool def patchedClearFindAndRebuild(self): @@ -20,20 +19,20 @@ def patchedClearFindAndRebuild(self): def indexObject(obj, path): if (base_hasattr(obj, 'indexObject') and - safe_callable(obj.indexObject)): + safe_callable(obj.indexObject)): try: obj.indexObject() annotions = IAnnotations(obj) - ctool = queryUtility(ICommentingTool) + catalog = getToolByName(obj, "portal_catalog") if ANNOTATION_KEY in annotions: conversation = annotions[ANNOTATION_KEY] conversation = conversation.__of__(obj) for comment in conversation.getComments(): try: - if ctool: - ctool.indexObject(comment) + if catalog: + catalog.indexObject(comment) except StopIteration: # pragma: no cover pass diff --git a/plone/app/discussion/permissions.zcml b/plone/app/discussion/permissions.zcml index 2bc2842..66aa050 100644 --- a/plone/app/discussion/permissions.zcml +++ b/plone/app/discussion/permissions.zcml @@ -9,9 +9,19 @@ title="Review comments" /> + + + + diff --git a/plone/app/discussion/profiles/default/actions.xml b/plone/app/discussion/profiles/default/actions.xml index d5da3ea..83c4f93 100644 --- a/plone/app/discussion/profiles/default/actions.xml +++ b/plone/app/discussion/profiles/default/actions.xml @@ -6,7 +6,7 @@ Moderate comments string:${globals_view/navigationRootUrl}/@@moderate-comments - string:${globals_view/navigationRootUrl}/discussionitem_icon.gif + string:${globals_view/navigationRootUrl}/discussionitem_icon.png portal/@@moderate-comments-enabled|nothing diff --git a/plone/app/discussion/profiles/default/componentregistry.xml b/plone/app/discussion/profiles/default/componentregistry.xml deleted file mode 100644 index 635cae9..0000000 --- a/plone/app/discussion/profiles/default/componentregistry.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - diff --git a/plone/app/discussion/profiles/default/controlpanel.xml b/plone/app/discussion/profiles/default/controlpanel.xml index 5e47af3..b0e5b17 100644 --- a/plone/app/discussion/profiles/default/controlpanel.xml +++ b/plone/app/discussion/profiles/default/controlpanel.xml @@ -11,7 +11,7 @@ appId="plone.app.discussion" category="Plone" condition_expr="" - icon_expr="string:${portal_url}/discussionitem_icon.gif" + icon_expr="string:${portal_url}/discussionitem_icon.png" url_expr="string:${portal_url}/@@discussion-settings" visible="True" i18n:attributes="title"> diff --git a/plone/app/discussion/profiles/default/metadata.xml b/plone/app/discussion/profiles/default/metadata.xml index ffedb11..ce1f445 100644 --- a/plone/app/discussion/profiles/default/metadata.xml +++ b/plone/app/discussion/profiles/default/metadata.xml @@ -1,5 +1,5 @@ - 100 + 102 profile-plone.app.registry:default diff --git a/plone/app/discussion/profiles/default/registry.xml b/plone/app/discussion/profiles/default/registry.xml index fd2a894..2518c9a 100644 --- a/plone/app/discussion/profiles/default/registry.xml +++ b/plone/app/discussion/profiles/default/registry.xml @@ -1,4 +1,6 @@ - - \ No newline at end of file + + False + + diff --git a/plone/app/discussion/profiles/default/rolemap.xml b/plone/app/discussion/profiles/default/rolemap.xml index f3ca8c4..019b0d5 100644 --- a/plone/app/discussion/profiles/default/rolemap.xml +++ b/plone/app/discussion/profiles/default/rolemap.xml @@ -3,7 +3,18 @@ - + + + + + + + + + + + + diff --git a/plone/app/discussion/profiles/default/toolset.xml b/plone/app/discussion/profiles/default/toolset.xml deleted file mode 100644 index 0823a74..0000000 --- a/plone/app/discussion/profiles/default/toolset.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - - \ No newline at end of file diff --git a/plone/app/discussion/profiles/default/types/Discussion_Item.xml b/plone/app/discussion/profiles/default/types/Discussion_Item.xml index f5feac0..e11e366 100644 --- a/plone/app/discussion/profiles/default/types/Discussion_Item.xml +++ b/plone/app/discussion/profiles/default/types/Discussion_Item.xml @@ -3,7 +3,7 @@ i18n:domain="plone" xmlns:i18n="http://xml.zope.org/namespaces/i18n"> Comment Comments added to a content item. - discussionitem_icon.gif + discussionitem_icon.png Discussion Item plone.Comment diff --git a/plone/app/discussion/profiles/default/workflows.xml b/plone/app/discussion/profiles/default/workflows.xml index 22e5237..9738f7c 100644 --- a/plone/app/discussion/profiles/default/workflows.xml +++ b/plone/app/discussion/profiles/default/workflows.xml @@ -1,9 +1,9 @@ - - - - + + + + - - + + diff --git a/plone/app/discussion/subscribers.py b/plone/app/discussion/subscribers.py new file mode 100644 index 0000000..07e0bb5 --- /dev/null +++ b/plone/app/discussion/subscribers.py @@ -0,0 +1,15 @@ +from Products.CMFCore.utils import getToolByName + + +def index_object(obj, event): + """Index the object when it is added to the conversation. + """ + catalog = getToolByName(obj, 'portal_catalog') + return catalog.reindexObject(obj) + + +def unindex_object(obj, event): + """Unindex the object when it is removed from the conversation. + """ + catalog = getToolByName(obj, 'portal_catalog') + return catalog.unindexObject(obj) diff --git a/plone/app/discussion/subscribers.zcml b/plone/app/discussion/subscribers.zcml index d0d848d..12a30a5 100644 --- a/plone/app/discussion/subscribers.zcml +++ b/plone/app/discussion/subscribers.zcml @@ -15,22 +15,34 @@ handler=".comment.notify_content_object" /> + + + + >> from plone.app.testing import setRoles + >>> from plone.app.testing import TEST_USER_NAME + >>> setRoles(portal, 'manager', ['Manager']) + >>> browser.open(portal.absolute_url()) + >>> from plone.app.discussion.testing import COLLECTION_TYPE + >>> browser.getLink(url='++add++' + COLLECTION_TYPE).click() + >>> open('/tmp/testbrowser.html', 'w').write(browser.contents) + >>> import pdb; pdb.set_trace() + >>> browser.getControl('form.widgets.IDublinCore.title').value = 'Foo Comment Collection' + >>> browser.getControl('Save').click() + >>> print browser.contents + <...Changes saved... + >>> topic_url = browser.url + +Set the collection criteria. + + >>> browser.open(topic_url + "/edit") + + >>> if COLLECTION_TYPE == "Collection": + ... browser.getControl(name="addindex").value = ['portal_type'] + ... browser.getControl(name="form.button.addcriteria").click() + ... browser.getControl(name="addoperator").value = ['plone.app.querystring.operation.selection.is'] + ... browser.getControl(name="form.button.addcriteria").click() + ... browser.getControl(name="query.v:records:list").value = ["Discussion Item"] + ... browser.getControl(name="form.button.save").click() + ... else: + ... browser.getLink('Criteria').click() + ... browser.getControl('Item Type', index=0).selected = True + ... browser.getControl('Select content types').selected = True + ... browser.getControl('Add criteria').click() + ... browser.getControl('Comment').selected = True + ... browser.getControl('Save', index=0).click() + >>> print browser.contents + <...Changes saved... + +View the collection listing. + + >>> browser.getLink('View').click() + >>> browser.getLink('admin on Doc1', index=0) + + >>> browser.getLink('admin on Doc1', index=1) + + >>> browser.getLink('Anonymous on Doc1', index=0) + + >>> browser.getLink('Anonymous on Doc1', index=1) + + >>> browser.getLink(tarek_fullname + ' on Doc1') + + >>> browser.getLink(jim_fullname + ' on Doc1') + + +Comments are unindexed when the content is deleted +-------------------------------------------------- + +Delete the commented content. + + >>> browser.open(urldoc1) + >>> browser.getLink('Delete').click() + >>> browser.getControl('Delete').click() + >>> print browser.contents + <...Doc1 has been deleted... + +The comments are no longer in the catalog. + + >>> browser.open(topic_url) + >>> browser.getLink('admin on Doc1', index=0) + Traceback (most recent call last): + LinkNotFoundError + >>> browser.getLink('admin on Doc1', index=1) + Traceback (most recent call last): + LinkNotFoundError + >>> browser.getLink('Anonymous on Doc1', index=0) + Traceback (most recent call last): + LinkNotFoundError + >>> browser.getLink('Anonymous on Doc1', index=1) + Traceback (most recent call last): + LinkNotFoundError + >>> browser.getLink(tarek_fullname + ' on Doc1') + Traceback (most recent call last): + LinkNotFoundError + >>> browser.getLink(jim_fullname + ' on Doc1') + Traceback (most recent call last): + LinkNotFoundError diff --git a/plone/app/discussion/tests/functional_test_comment_review_workflow.txt b/plone/app/discussion/tests/functional_test_comment_review_workflow.txt index 4628341..069875e 100644 --- a/plone/app/discussion/tests/functional_test_comment_review_workflow.txt +++ b/plone/app/discussion/tests/functional_test_comment_review_workflow.txt @@ -33,6 +33,7 @@ We also keep another testbrowser handy for testing how tiles are rendered if you're not logged in:: >>> unprivileged_browser = Browser(app) + >>> unprivileged_browser.handleErrors = False Enable commenting. @@ -61,22 +62,28 @@ We need to commit the transaction, otherwise setting the workflow will not work. Enable anonymous comments >>> browser.open(portal_url+'/@@discussion-settings') - >>> browser.getControl(name='form.widgets.anonymous_comments:list').value = [True] + >>> browser.getControl(name='form.widgets.anonymous_comments:list').value = True >>> browser.getControl(name='form.buttons.save').click() Create a public page with comments allowed. >>> browser.open(portal_url) >>> browser.getLink(id='document').click() - >>> browser.getControl(name='title').value = "Doc" - >>> browser.getControl(name='allowDiscussion:boolean').value = True - >>> browser.getControl(name='form.button.save').click() + >>> browser.getControl(name='form.widgets.IDublinCore.title').value = "Doc" + >>> browser.getControl(name='form.widgets.IAllowDiscussion.allow_discussion:list').value = ['True'] + >>> browser.getControl('Save').click() >>> urldoc = browser.url Check that the form has been properly submitted >>> browser.url - 'http://nohost/plone/doc' + 'http://nohost/plone/doc/view' + +Make sure the document is published: + + >>> browser.getLink("Publish").click() + >>> 'Published' in browser.contents + True Post some comments as anonymous user: @@ -124,6 +131,11 @@ Anonymous user can not see any posts or comment actions >>> 'form.button.PublishComment' in unprivileged_browser.contents False +The catalog does not list the comments yet: + + >>> portal.portal_catalog.searchResults(id='doc', total_comments=0) + [>> 'First anonymous comment' in unprivileged_browser.contents True +Make sure the catalog only lists the public comments. + + >>> portal.portal_catalog.searchResults(id='doc', total_comments=1) + [>> 'Second anonymous comment' in browser.contents False +Delete the first, published comment. + >>> browser.open(urldoc) + >>> browser.getControl('Delete', index=0).click() +Make sure the catalog has been updated properly. + + >>> portal.portal_catalog.searchResults(id='doc', total_comments=0) + [>> unprivileged_browser = Browser(app) + >>> browser_member = Browser(app) + >>> browser_user = Browser(app) + >>> browser_reviewer = Browser(app) Make sure we have a test user from the layer and it uses fancy characters: @@ -55,11 +58,17 @@ Create a public page with comments allowed. >>> browser.open(portal_url) >>> browser.getLink(id='document').click() - >>> browser.getControl(name='title').value = "Doc1" - >>> browser.getControl(name='allowDiscussion:boolean').value = True - >>> browser.getControl(name='form.button.save').click() + >>> browser.getControl(name='form.widgets.IDublinCore.title').value = "Doc1" + >>> browser.getControl(name='form.widgets.IAllowDiscussion.allow_discussion:list').value = ['True'] + >>> browser.getControl('Save').click() >>> urldoc1 = browser.url +Make sure the document is published: + + >>> browser.getLink("Publish").click() + >>> 'Published' in browser.contents + True + Check that the form has been properly submitted >>> browser.url @@ -79,7 +88,7 @@ Check that the comment form/viewlet shows up >>> 'formfield-form-widgets-in_reply_to' in browser.contents True - >>> 'formfield-form-widgets-text' in browser.contents + >>> 'formfield-form-widgets-comment-text' in browser.contents True @@ -115,20 +124,19 @@ Post a comment as user Login as user (without the 'Member' role). - >>> browser.open(portal_url + '/logout') - >>> browser.open(portal_url + '/login_form') - >>> browser.getControl(name='__ac_name').value = 'johndoe' - >>> browser.getControl(name='__ac_password').value = 'secret' - >>> browser.getControl(name='submit').click() + >>> browser_user.open(portal_url + '/login_form') + >>> browser_user.getControl(name='__ac_name').value = 'johndoe' + >>> browser_user.getControl(name='__ac_password').value = 'secret' + >>> browser_user.getControl(name='submit').click() Users without the 'Reply to item' permission will not see the comment form, because they don't have the 'Reply to item' permission. By default, this permission is only granted to the 'Member' role. - >>> 'form.widgets.text' in browser.contents + >>> 'form.widgets.text' in browser_user.contents False - >>> 'form.buttons.comment' in browser.contents + >>> 'form.buttons.comment' in browser_user.contents False @@ -136,26 +144,24 @@ Post a comment as member ------------------------ Login as user 'jim'. - - >>> browser.open(portal_url + '/logout') - >>> browser.open(portal_url + '/login_form') - >>> browser.getControl(name='__ac_name').value = 'jim' - >>> browser.getControl(name='__ac_password').value = 'secret' - >>> browser.getControl(name='submit').click() + >>> browser_member.open(portal_url + '/login_form') + >>> browser_member.getControl(name='__ac_name').value = 'jim' + >>> browser_member.getControl(name='__ac_password').value = 'secret' + >>> browser_member.getControl(name='submit').click() Post a comment as user jim. - >>> browser.open(urldoc1) - >>> browser.getControl(name='form.widgets.text').value = "Comment from Jim" - >>> submit = browser.getControl(name='form.buttons.comment') + >>> browser_member.open(urldoc1) + >>> browser_member.getControl(name='form.widgets.text').value = "Comment from Jim" + >>> submit = browser_member.getControl(name='form.buttons.comment') >>> submit.click() Check if the comment has been added properly. - >>> browser.contents + >>> browser_member.contents '...Jim Fult\xc3\xb8rn...says:...' - >>> "Comment from Jim" in browser.contents + >>> "Comment from Jim" in browser_member.contents True @@ -227,7 +233,7 @@ Find a comment id to reply to. >>> browser.open(urldoc1) >>> import re >>> comment_div = re.findall('', browser.contents)[0] - >>> id = re.findall('"([^"]*)"', comment_div)[2] + >>> id = re.findall('"([^"]*)"', comment_div)[1] Post a reply to an existing comment. @@ -244,6 +250,173 @@ Check that the reply has been posted properly. True +Edit an existing comment +------------------------ + +Log in as admin + + >>> browser.getLink('Log out').click() + >>> browser.open(portal_url + '/login_form') + >>> browser.getControl('Login Name').value = 'admin' + >>> browser.getControl('Password').value = 'secret' + >>> browser.getControl('Log in').click() + +Use the Plone control panel to enable comment editing. + + >>> browser.open(portal_url + '/plone_control_panel') + >>> browser.getLink('Discussion').click() + >>> browser.getControl('Enable editing of comments').selected = True + >>> browser.getControl(name='form.buttons.save').click() + +Extract the edit comment url from the first "edit comment" button + + >>> browser.open(urldoc1) + >>> form = browser.getForm(name='edit', index=0) + >>> '@@edit-comment' in form.action + True + +Open the edit comment view + + >>> browser.open(form.action) + >>> ctrl = browser.getControl('Comment') + >>> ctrl.value + 'Comment from admin' + +Change and save the comment + + >>> ctrl.value = 'Comment from admin / was edited' + >>> browser.getControl('Edit comment').click() + +This used to trigger permissions problems in some portlet configurations. +Check it ain't so. + + >>> 'require_login' in browser.url + False + >>> browser.url.startswith('http://nohost/plone/doc1') + True + >>> 'Comment from admin / was edited' in browser.contents + True + +Opening the edit comment view, then cancel, does nothing. + + >>> form = browser.getForm(name='edit', index=0) + >>> '@@edit-comment' in form.action + True + >>> browser.open(form.action) + >>> browser.getControl('Cancel').click() + >>> browser.url.startswith('http://nohost/plone/doc1') + True + + +Anon cannot edit comments. + + >>> unprivileged_browser.open(urldoc1) + >>> '@@edit-comments' in browser.contents + False + +But Anon can see the edited comment. + + >>> 'Comment from admin / was edited' in unprivileged_browser.contents + True + + +Deleting existing comments | 'Delete comments' permission +---------------------------------------------------------- + +Anonymous cannot delete comments + + >>> unprivileged_browser.open(urldoc1) + >>> 'form.button.Delete' in unprivileged_browser.contents + False + +A member cannot delete his own comments if he can't review or he isn't a Site Administrator + + >>> browser_member.open(urldoc1) + >>> 'form.button.Delete' in browser_member.contents + False + +Admin can delete comments + + >>> browser.open(urldoc1) + >>> 'form.button.Delete' in browser.contents + True + +Extract the delete comment url from the first "delete comment" button + + >>> browser.open(urldoc1) + >>> form = browser.getForm(name='delete', index=0) + >>> delete_url = form.action + >>> '@@moderate-delete-comment' in delete_url + True + >>> comment_id = delete_url.split('/')[-2] + +Anonymous cannot delete a comment by hitting the delete url directly. + + >>> unprivileged_browser.open(delete_url) + +The comment is still there + + >>> unprivileged_browser.open(urldoc1) + >>> comment_id in unprivileged_browser.contents + True + +A Member cannot delete even his own comment by hitting the delete url directly. + +Extract the member comment id from the admin browser + + >>> form = browser.getForm(name='delete', index=2) + >>> delete_url = form.action + >>> '@@moderate-delete-comment' in delete_url + True + >>> comment_id = delete_url.split('/')[-2] + +Now try to hit that url as the member owning that comment. +Work around some possible testbrowser breakage and check the result later. + + >>> try: + ... browser_member.open(delete_url) + ... except: + ... pass + +The comment is still there + + >>> browser_member.open(urldoc1) + >>> comment_id in browser_member.contents + True + >>> 'Comment from Jim' in browser_member.contents + True + +Now login as user 'reviewer' + + >>> browser_reviewer.open(portal_url + '/login_form') + >>> browser_reviewer.getControl(name='__ac_name').value = 'reviewer' + >>> browser_reviewer.getControl(name='__ac_password').value = 'secret' + >>> browser_reviewer.getControl(name='submit').click() + +Admin and who have 'Delete comments' permission (reviewers for example), can delete comments + + >>> browser_reviewer.open(urldoc1) + >>> form = browser_reviewer.getForm(name='delete', index=0) + >>> '@@moderate-delete-comment' in form.action + True + + >>> comment_id = form.action.split('/')[-2] + +Submitting the form runs into a testbrowser notFoundException. +We'll just catch that and check the result later. + + >>> try: + ... form.submit() + ... except: + ... pass + +Returning to the document we find the deleted comment is indeed gone + + >>> browser_reviewer.open(urldoc1) + >>> comment_id in browser_reviewer.contents + False + + Post a comment with comment review workflow enabled --------------------------------------------------- @@ -285,7 +458,6 @@ This is a regression test for http://dev.plone.org/plone/ticket/11157 Login as admin. - >>> browser.open(portal_url + '/logout') >>> browser.open(portal_url + '/login_form') >>> browser.getControl(name='__ac_name').value = 'admin' >>> browser.getControl(name='__ac_password').value = 'secret' @@ -293,100 +465,11 @@ Login as admin. Edit the content object. - >>> browser.open(urldoc1 + "/edit") - >>> browser.getControl(name='text').value = "Lorem ipsum" - >>> browser.getControl(name='form.button.save').click() + >>> browser.open("http://nohost/plone/doc1/edit") + >>> browser.getControl(name='form.widgets.IRichText.text').value = "Lorem ipsum" + >>> browser.getControl('Save').click() Make sure the edit was successful. >>> 'Lorem ipsum' in browser.contents True - - -List comments in a collection ------------------------------ - -Create a collection. - - >>> from plone.app.testing import setRoles - >>> from plone.app.testing import TEST_USER_NAME - >>> setRoles(portal, 'manager', ['Manager']) - >>> browser.open(portal.absolute_url()) - >>> from plone.app.discussion.testing import COLLECTION_TYPE - >>> browser.getLink(url='createObject?type_name=' + COLLECTION_TYPE).click() - >>> browser.getControl('Title', index=0 - ... ).value = 'Foo Comment Collection' - >>> browser.getControl('Save').click() - >>> print browser.contents - <...Changes saved... - >>> topic_url = browser.url - -Set the collection criteria. - - >>> browser.open(topic_url + "/edit") - - >>> if COLLECTION_TYPE == "Collection": - ... browser.getControl(name="addindex").value = ['portal_type'] - ... browser.getControl(name="form.button.addcriteria").click() - ... browser.getControl(name="addoperator").value = ['plone.app.querystring.operation.selection.is'] - ... browser.getControl(name="form.button.addcriteria").click() - ... browser.getControl(name="query.v:records:list").value = ["Discussion Item"] - ... browser.getControl(name="form.button.save").click() - ... else: - ... browser.getLink('Criteria').click() - ... browser.getControl('Item Type', index=0).selected = True - ... browser.getControl('Select content types').selected = True - ... browser.getControl('Add criteria').click() - ... browser.getControl('Comment').selected = True - ... browser.getControl('Save', index=0).click() - >>> print browser.contents - <...Changes saved... - -View the collection listing. - - >>> browser.getLink('View').click() - >>> browser.getLink('admin on Doc1', index=0) - - >>> browser.getLink('admin on Doc1', index=1) - - >>> browser.getLink('Anonymous on Doc1', index=0) - - >>> browser.getLink('Anonymous on Doc1', index=1) - - >>> browser.getLink(tarek_fullname + ' on Doc1') - - >>> browser.getLink(jim_fullname + ' on Doc1') - - -Comments are unindexed when the content is deleted --------------------------------------------------- - -Delete the commented content. - - >>> browser.open(urldoc1) - >>> browser.getLink('Delete').click() - >>> browser.getControl('Delete').click() - >>> print browser.contents - <...Doc1 has been deleted... - -The comments are no longer in the catalog. - - >>> browser.open(topic_url) - >>> browser.getLink('admin on Doc1', index=0) - Traceback (most recent call last): - LinkNotFoundError - >>> browser.getLink('admin on Doc1', index=1) - Traceback (most recent call last): - LinkNotFoundError - >>> browser.getLink('Anonymous on Doc1', index=0) - Traceback (most recent call last): - LinkNotFoundError - >>> browser.getLink('Anonymous on Doc1', index=1) - Traceback (most recent call last): - LinkNotFoundError - >>> browser.getLink(tarek_fullname + ' on Doc1') - Traceback (most recent call last): - LinkNotFoundError - >>> browser.getLink(jim_fullname + ' on Doc1') - Traceback (most recent call last): - LinkNotFoundError diff --git a/plone/app/discussion/tests/javascripts/README.txt b/plone/app/discussion/tests/javascripts/README.txt deleted file mode 100644 index b01287f..0000000 --- a/plone/app/discussion/tests/javascripts/README.txt +++ /dev/null @@ -1,41 +0,0 @@ -plone.app.discussion javascript testsuite -========================================= - -Note: This document was shamelessly stolen from the plone.app.deco package. - -We're using QUnit_ for unit testing, the jQuery test runner. - -Simply load index.html directly in the browser with a file:/// url; not via -Plone. This way our tests are truely standalone and isolated. - -Coverage testing ----------------- - -To test code coverage, I can heartily recommend using JSCoverage_. You can -download, compile and install it by: - - $ wget http://siliconforks.com/jscoverage/download/jscoverage-0.5.tar.bz2 - $ tar xfvj jscoverage-0.5.tar.bz2 - $ cd jscoverage-0.5 - $ ./configure - $ make - $ sudo make install - -After that, issue the following command to run it from your Plone buildout: - - $ jscoverage-server -v --ip-address=0.0.0.0 --port=8080 --encoding=UTF-8 \ - --document-root=plone/app/discussion/ --no-instrument=/tests - -Then point your browser to the now running `coverage server -`__, and -the test suite will run instrumented in an iframe. Select the Summary tab to see -the results. - -The command-line options ensure that only our tests and the modules being -tested are instrumented for coverage, not the testing framework nor jQuery. - -Note that JSCoverage adds instrumentation statements to the code, so don't try -to debug your tests when running via the jscoverage server. - -.. _QUnit: http://docs.jquery.com/QUnit -.. _JSCoverage: http://siliconforks.com/jscoverage/ diff --git a/plone/app/discussion/tests/javascripts/jquery.js b/plone/app/discussion/tests/javascripts/jquery.js deleted file mode 100644 index 7c24308..0000000 --- a/plone/app/discussion/tests/javascripts/jquery.js +++ /dev/null @@ -1,154 +0,0 @@ -/*! - * jQuery JavaScript Library v1.4.2 - * http://jquery.com/ - * - * Copyright 2010, John Resig - * Dual licensed under the MIT or GPL Version 2 licenses. - * http://jquery.org/license - * - * Includes Sizzle.js - * http://sizzlejs.com/ - * Copyright 2010, The Dojo Foundation - * Released under the MIT, BSD, and GPL Licenses. - * - * Date: Sat Feb 13 22:33:48 2010 -0500 - */ -(function(A,w){function ma(){if(!c.isReady){try{s.documentElement.doScroll("left")}catch(a){setTimeout(ma,1);return}c.ready()}}function Qa(a,b){b.src?c.ajax({url:b.src,async:false,dataType:"script"}):c.globalEval(b.text||b.textContent||b.innerHTML||"");b.parentNode&&b.parentNode.removeChild(b)}function X(a,b,d,f,e,j){var i=a.length;if(typeof b==="object"){for(var o in b)X(a,o,b[o],f,e,d);return a}if(d!==w){f=!j&&f&&c.isFunction(d);for(o=0;o)[^>]*$|^#([\w-]+)$/,Ua=/^.[^:#\[\.,]*$/,Va=/\S/, -Wa=/^(\s|\u00A0)+|(\s|\u00A0)+$/g,Xa=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,P=navigator.userAgent,xa=false,Q=[],L,$=Object.prototype.toString,aa=Object.prototype.hasOwnProperty,ba=Array.prototype.push,R=Array.prototype.slice,ya=Array.prototype.indexOf;c.fn=c.prototype={init:function(a,b){var d,f;if(!a)return this;if(a.nodeType){this.context=this[0]=a;this.length=1;return this}if(a==="body"&&!b){this.context=s;this[0]=s.body;this.selector="body";this.length=1;return this}if(typeof a==="string")if((d=Ta.exec(a))&& -(d[1]||!b))if(d[1]){f=b?b.ownerDocument||b:s;if(a=Xa.exec(a))if(c.isPlainObject(b)){a=[s.createElement(a[1])];c.fn.attr.call(a,b,true)}else a=[f.createElement(a[1])];else{a=sa([d[1]],[f]);a=(a.cacheable?a.fragment.cloneNode(true):a.fragment).childNodes}return c.merge(this,a)}else{if(b=s.getElementById(d[2])){if(b.id!==d[2])return T.find(a);this.length=1;this[0]=b}this.context=s;this.selector=a;return this}else if(!b&&/^\w+$/.test(a)){this.selector=a;this.context=s;a=s.getElementsByTagName(a);return c.merge(this, -a)}else return!b||b.jquery?(b||T).find(a):c(b).find(a);else if(c.isFunction(a))return T.ready(a);if(a.selector!==w){this.selector=a.selector;this.context=a.context}return c.makeArray(a,this)},selector:"",jquery:"1.4.2",length:0,size:function(){return this.length},toArray:function(){return R.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this.slice(a)[0]:this[a]},pushStack:function(a,b,d){var f=c();c.isArray(a)?ba.apply(f,a):c.merge(f,a);f.prevObject=this;f.context=this.context;if(b=== -"find")f.selector=this.selector+(this.selector?" ":"")+d;else if(b)f.selector=this.selector+"."+b+"("+d+")";return f},each:function(a,b){return c.each(this,a,b)},ready:function(a){c.bindReady();if(c.isReady)a.call(s,c);else Q&&Q.push(a);return this},eq:function(a){return a===-1?this.slice(a):this.slice(a,+a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(R.apply(this,arguments),"slice",R.call(arguments).join(","))},map:function(a){return this.pushStack(c.map(this, -function(b,d){return a.call(b,d,b)}))},end:function(){return this.prevObject||c(null)},push:ba,sort:[].sort,splice:[].splice};c.fn.init.prototype=c.fn;c.extend=c.fn.extend=function(){var a=arguments[0]||{},b=1,d=arguments.length,f=false,e,j,i,o;if(typeof a==="boolean"){f=a;a=arguments[1]||{};b=2}if(typeof a!=="object"&&!c.isFunction(a))a={};if(d===b){a=this;--b}for(;b
a"; -var e=d.getElementsByTagName("*"),j=d.getElementsByTagName("a")[0];if(!(!e||!e.length||!j)){c.support={leadingWhitespace:d.firstChild.nodeType===3,tbody:!d.getElementsByTagName("tbody").length,htmlSerialize:!!d.getElementsByTagName("link").length,style:/red/.test(j.getAttribute("style")),hrefNormalized:j.getAttribute("href")==="/a",opacity:/^0.55$/.test(j.style.opacity),cssFloat:!!j.style.cssFloat,checkOn:d.getElementsByTagName("input")[0].value==="on",optSelected:s.createElement("select").appendChild(s.createElement("option")).selected, -parentNode:d.removeChild(d.appendChild(s.createElement("div"))).parentNode===null,deleteExpando:true,checkClone:false,scriptEval:false,noCloneEvent:true,boxModel:null};b.type="text/javascript";try{b.appendChild(s.createTextNode("window."+f+"=1;"))}catch(i){}a.insertBefore(b,a.firstChild);if(A[f]){c.support.scriptEval=true;delete A[f]}try{delete b.test}catch(o){c.support.deleteExpando=false}a.removeChild(b);if(d.attachEvent&&d.fireEvent){d.attachEvent("onclick",function k(){c.support.noCloneEvent= -false;d.detachEvent("onclick",k)});d.cloneNode(true).fireEvent("onclick")}d=s.createElement("div");d.innerHTML="";a=s.createDocumentFragment();a.appendChild(d.firstChild);c.support.checkClone=a.cloneNode(true).cloneNode(true).lastChild.checked;c(function(){var k=s.createElement("div");k.style.width=k.style.paddingLeft="1px";s.body.appendChild(k);c.boxModel=c.support.boxModel=k.offsetWidth===2;s.body.removeChild(k).style.display="none"});a=function(k){var n= -s.createElement("div");k="on"+k;var r=k in n;if(!r){n.setAttribute(k,"return;");r=typeof n[k]==="function"}return r};c.support.submitBubbles=a("submit");c.support.changeBubbles=a("change");a=b=d=e=j=null}})();c.props={"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"};var G="jQuery"+J(),Ya=0,za={};c.extend({cache:{},expando:G,noData:{embed:true,object:true, -applet:true},data:function(a,b,d){if(!(a.nodeName&&c.noData[a.nodeName.toLowerCase()])){a=a==A?za:a;var f=a[G],e=c.cache;if(!f&&typeof b==="string"&&d===w)return null;f||(f=++Ya);if(typeof b==="object"){a[G]=f;e[f]=c.extend(true,{},b)}else if(!e[f]){a[G]=f;e[f]={}}a=e[f];if(d!==w)a[b]=d;return typeof b==="string"?a[b]:a}},removeData:function(a,b){if(!(a.nodeName&&c.noData[a.nodeName.toLowerCase()])){a=a==A?za:a;var d=a[G],f=c.cache,e=f[d];if(b){if(e){delete e[b];c.isEmptyObject(e)&&c.removeData(a)}}else{if(c.support.deleteExpando)delete a[c.expando]; -else a.removeAttribute&&a.removeAttribute(c.expando);delete f[d]}}}});c.fn.extend({data:function(a,b){if(typeof a==="undefined"&&this.length)return c.data(this[0]);else if(typeof a==="object")return this.each(function(){c.data(this,a)});var d=a.split(".");d[1]=d[1]?"."+d[1]:"";if(b===w){var f=this.triggerHandler("getData"+d[1]+"!",[d[0]]);if(f===w&&this.length)f=c.data(this[0],a);return f===w&&d[1]?this.data(d[0]):f}else return this.trigger("setData"+d[1]+"!",[d[0],b]).each(function(){c.data(this, -a,b)})},removeData:function(a){return this.each(function(){c.removeData(this,a)})}});c.extend({queue:function(a,b,d){if(a){b=(b||"fx")+"queue";var f=c.data(a,b);if(!d)return f||[];if(!f||c.isArray(d))f=c.data(a,b,c.makeArray(d));else f.push(d);return f}},dequeue:function(a,b){b=b||"fx";var d=c.queue(a,b),f=d.shift();if(f==="inprogress")f=d.shift();if(f){b==="fx"&&d.unshift("inprogress");f.call(a,function(){c.dequeue(a,b)})}}});c.fn.extend({queue:function(a,b){if(typeof a!=="string"){b=a;a="fx"}if(b=== -w)return c.queue(this[0],a);return this.each(function(){var d=c.queue(this,a,b);a==="fx"&&d[0]!=="inprogress"&&c.dequeue(this,a)})},dequeue:function(a){return this.each(function(){c.dequeue(this,a)})},delay:function(a,b){a=c.fx?c.fx.speeds[a]||a:a;b=b||"fx";return this.queue(b,function(){var d=this;setTimeout(function(){c.dequeue(d,b)},a)})},clearQueue:function(a){return this.queue(a||"fx",[])}});var Aa=/[\n\t]/g,ca=/\s+/,Za=/\r/g,$a=/href|src|style/,ab=/(button|input)/i,bb=/(button|input|object|select|textarea)/i, -cb=/^(a|area)$/i,Ba=/radio|checkbox/;c.fn.extend({attr:function(a,b){return X(this,a,b,true,c.attr)},removeAttr:function(a){return this.each(function(){c.attr(this,a,"");this.nodeType===1&&this.removeAttribute(a)})},addClass:function(a){if(c.isFunction(a))return this.each(function(n){var r=c(this);r.addClass(a.call(this,n,r.attr("class")))});if(a&&typeof a==="string")for(var b=(a||"").split(ca),d=0,f=this.length;d-1)return true;return false},val:function(a){if(a===w){var b=this[0];if(b){if(c.nodeName(b,"option"))return(b.attributes.value||{}).specified?b.value:b.text;if(c.nodeName(b,"select")){var d=b.selectedIndex,f=[],e=b.options;b=b.type==="select-one";if(d<0)return null;var j=b?d:0;for(d=b?d+1:e.length;j=0;else if(c.nodeName(this,"select")){var u=c.makeArray(r);c("option",this).each(function(){this.selected= -c.inArray(c(this).val(),u)>=0});if(!u.length)this.selectedIndex=-1}else this.value=r}})}});c.extend({attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attr:function(a,b,d,f){if(!a||a.nodeType===3||a.nodeType===8)return w;if(f&&b in c.attrFn)return c(a)[b](d);f=a.nodeType!==1||!c.isXMLDoc(a);var e=d!==w;b=f&&c.props[b]||b;if(a.nodeType===1){var j=$a.test(b);if(b in a&&f&&!j){if(e){b==="type"&&ab.test(a.nodeName)&&a.parentNode&&c.error("type property can't be changed"); -a[b]=d}if(c.nodeName(a,"form")&&a.getAttributeNode(b))return a.getAttributeNode(b).nodeValue;if(b==="tabIndex")return(b=a.getAttributeNode("tabIndex"))&&b.specified?b.value:bb.test(a.nodeName)||cb.test(a.nodeName)&&a.href?0:w;return a[b]}if(!c.support.style&&f&&b==="style"){if(e)a.style.cssText=""+d;return a.style.cssText}e&&a.setAttribute(b,""+d);a=!c.support.hrefNormalized&&f&&j?a.getAttribute(b,2):a.getAttribute(b);return a===null?w:a}return c.style(a,b,d)}});var O=/\.(.*)$/,db=function(a){return a.replace(/[^\w\s\.\|`]/g, -function(b){return"\\"+b})};c.event={add:function(a,b,d,f){if(!(a.nodeType===3||a.nodeType===8)){if(a.setInterval&&a!==A&&!a.frameElement)a=A;var e,j;if(d.handler){e=d;d=e.handler}if(!d.guid)d.guid=c.guid++;if(j=c.data(a)){var i=j.events=j.events||{},o=j.handle;if(!o)j.handle=o=function(){return typeof c!=="undefined"&&!c.event.triggered?c.event.handle.apply(o.elem,arguments):w};o.elem=a;b=b.split(" ");for(var k,n=0,r;k=b[n++];){j=e?c.extend({},e):{handler:d,data:f};if(k.indexOf(".")>-1){r=k.split("."); -k=r.shift();j.namespace=r.slice(0).sort().join(".")}else{r=[];j.namespace=""}j.type=k;j.guid=d.guid;var u=i[k],z=c.event.special[k]||{};if(!u){u=i[k]=[];if(!z.setup||z.setup.call(a,f,r,o)===false)if(a.addEventListener)a.addEventListener(k,o,false);else a.attachEvent&&a.attachEvent("on"+k,o)}if(z.add){z.add.call(a,j);if(!j.handler.guid)j.handler.guid=d.guid}u.push(j);c.event.global[k]=true}a=null}}},global:{},remove:function(a,b,d,f){if(!(a.nodeType===3||a.nodeType===8)){var e,j=0,i,o,k,n,r,u,z=c.data(a), -C=z&&z.events;if(z&&C){if(b&&b.type){d=b.handler;b=b.type}if(!b||typeof b==="string"&&b.charAt(0)==="."){b=b||"";for(e in C)c.event.remove(a,e+b)}else{for(b=b.split(" ");e=b[j++];){n=e;i=e.indexOf(".")<0;o=[];if(!i){o=e.split(".");e=o.shift();k=new RegExp("(^|\\.)"+c.map(o.slice(0).sort(),db).join("\\.(?:.*\\.)?")+"(\\.|$)")}if(r=C[e])if(d){n=c.event.special[e]||{};for(B=f||0;B=0){a.type= -e=e.slice(0,-1);a.exclusive=true}if(!d){a.stopPropagation();c.event.global[e]&&c.each(c.cache,function(){this.events&&this.events[e]&&c.event.trigger(a,b,this.handle.elem)})}if(!d||d.nodeType===3||d.nodeType===8)return w;a.result=w;a.target=d;b=c.makeArray(b);b.unshift(a)}a.currentTarget=d;(f=c.data(d,"handle"))&&f.apply(d,b);f=d.parentNode||d.ownerDocument;try{if(!(d&&d.nodeName&&c.noData[d.nodeName.toLowerCase()]))if(d["on"+e]&&d["on"+e].apply(d,b)===false)a.result=false}catch(j){}if(!a.isPropagationStopped()&& -f)c.event.trigger(a,b,f,true);else if(!a.isDefaultPrevented()){f=a.target;var i,o=c.nodeName(f,"a")&&e==="click",k=c.event.special[e]||{};if((!k._default||k._default.call(d,a)===false)&&!o&&!(f&&f.nodeName&&c.noData[f.nodeName.toLowerCase()])){try{if(f[e]){if(i=f["on"+e])f["on"+e]=null;c.event.triggered=true;f[e]()}}catch(n){}if(i)f["on"+e]=i;c.event.triggered=false}}},handle:function(a){var b,d,f,e;a=arguments[0]=c.event.fix(a||A.event);a.currentTarget=this;b=a.type.indexOf(".")<0&&!a.exclusive; -if(!b){d=a.type.split(".");a.type=d.shift();f=new RegExp("(^|\\.)"+d.slice(0).sort().join("\\.(?:.*\\.)?")+"(\\.|$)")}e=c.data(this,"events");d=e[a.type];if(e&&d){d=d.slice(0);e=0;for(var j=d.length;e-1?c.map(a.options,function(f){return f.selected}).join("-"):"";else if(a.nodeName.toLowerCase()==="select")d=a.selectedIndex;return d},fa=function(a,b){var d=a.target,f,e;if(!(!da.test(d.nodeName)||d.readOnly)){f=c.data(d,"_change_data");e=Fa(d);if(a.type!=="focusout"||d.type!=="radio")c.data(d,"_change_data", -e);if(!(f===w||e===f))if(f!=null||e){a.type="change";return c.event.trigger(a,b,d)}}};c.event.special.change={filters:{focusout:fa,click:function(a){var b=a.target,d=b.type;if(d==="radio"||d==="checkbox"||b.nodeName.toLowerCase()==="select")return fa.call(this,a)},keydown:function(a){var b=a.target,d=b.type;if(a.keyCode===13&&b.nodeName.toLowerCase()!=="textarea"||a.keyCode===32&&(d==="checkbox"||d==="radio")||d==="select-multiple")return fa.call(this,a)},beforeactivate:function(a){a=a.target;c.data(a, -"_change_data",Fa(a))}},setup:function(){if(this.type==="file")return false;for(var a in ea)c.event.add(this,a+".specialChange",ea[a]);return da.test(this.nodeName)},teardown:function(){c.event.remove(this,".specialChange");return da.test(this.nodeName)}};ea=c.event.special.change.filters}s.addEventListener&&c.each({focus:"focusin",blur:"focusout"},function(a,b){function d(f){f=c.event.fix(f);f.type=b;return c.event.handle.call(this,f)}c.event.special[b]={setup:function(){this.addEventListener(a, -d,true)},teardown:function(){this.removeEventListener(a,d,true)}}});c.each(["bind","one"],function(a,b){c.fn[b]=function(d,f,e){if(typeof d==="object"){for(var j in d)this[b](j,f,d[j],e);return this}if(c.isFunction(f)){e=f;f=w}var i=b==="one"?c.proxy(e,function(k){c(this).unbind(k,i);return e.apply(this,arguments)}):e;if(d==="unload"&&b!=="one")this.one(d,f,e);else{j=0;for(var o=this.length;j0){y=t;break}}t=t[g]}m[q]=y}}}var f=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g, -e=0,j=Object.prototype.toString,i=false,o=true;[0,0].sort(function(){o=false;return 0});var k=function(g,h,l,m){l=l||[];var q=h=h||s;if(h.nodeType!==1&&h.nodeType!==9)return[];if(!g||typeof g!=="string")return l;for(var p=[],v,t,y,S,H=true,M=x(h),I=g;(f.exec(""),v=f.exec(I))!==null;){I=v[3];p.push(v[1]);if(v[2]){S=v[3];break}}if(p.length>1&&r.exec(g))if(p.length===2&&n.relative[p[0]])t=ga(p[0]+p[1],h);else for(t=n.relative[p[0]]?[h]:k(p.shift(),h);p.length;){g=p.shift();if(n.relative[g])g+=p.shift(); -t=ga(g,t)}else{if(!m&&p.length>1&&h.nodeType===9&&!M&&n.match.ID.test(p[0])&&!n.match.ID.test(p[p.length-1])){v=k.find(p.shift(),h,M);h=v.expr?k.filter(v.expr,v.set)[0]:v.set[0]}if(h){v=m?{expr:p.pop(),set:z(m)}:k.find(p.pop(),p.length===1&&(p[0]==="~"||p[0]==="+")&&h.parentNode?h.parentNode:h,M);t=v.expr?k.filter(v.expr,v.set):v.set;if(p.length>0)y=z(t);else H=false;for(;p.length;){var D=p.pop();v=D;if(n.relative[D])v=p.pop();else D="";if(v==null)v=h;n.relative[D](y,v,M)}}else y=[]}y||(y=t);y||k.error(D|| -g);if(j.call(y)==="[object Array]")if(H)if(h&&h.nodeType===1)for(g=0;y[g]!=null;g++){if(y[g]&&(y[g]===true||y[g].nodeType===1&&E(h,y[g])))l.push(t[g])}else for(g=0;y[g]!=null;g++)y[g]&&y[g].nodeType===1&&l.push(t[g]);else l.push.apply(l,y);else z(y,l);if(S){k(S,q,l,m);k.uniqueSort(l)}return l};k.uniqueSort=function(g){if(B){i=o;g.sort(B);if(i)for(var h=1;h":function(g,h){var l=typeof h==="string";if(l&&!/\W/.test(h)){h=h.toLowerCase();for(var m=0,q=g.length;m=0))l||m.push(v);else if(l)h[p]=false;return false},ID:function(g){return g[1].replace(/\\/g,"")},TAG:function(g){return g[1].toLowerCase()}, -CHILD:function(g){if(g[1]==="nth"){var h=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(g[2]==="even"&&"2n"||g[2]==="odd"&&"2n+1"||!/\D/.test(g[2])&&"0n+"+g[2]||g[2]);g[2]=h[1]+(h[2]||1)-0;g[3]=h[3]-0}g[0]=e++;return g},ATTR:function(g,h,l,m,q,p){h=g[1].replace(/\\/g,"");if(!p&&n.attrMap[h])g[1]=n.attrMap[h];if(g[2]==="~=")g[4]=" "+g[4]+" ";return g},PSEUDO:function(g,h,l,m,q){if(g[1]==="not")if((f.exec(g[3])||"").length>1||/^\w/.test(g[3]))g[3]=k(g[3],null,null,h);else{g=k.filter(g[3],h,l,true^q);l||m.push.apply(m, -g);return false}else if(n.match.POS.test(g[0])||n.match.CHILD.test(g[0]))return true;return g},POS:function(g){g.unshift(true);return g}},filters:{enabled:function(g){return g.disabled===false&&g.type!=="hidden"},disabled:function(g){return g.disabled===true},checked:function(g){return g.checked===true},selected:function(g){return g.selected===true},parent:function(g){return!!g.firstChild},empty:function(g){return!g.firstChild},has:function(g,h,l){return!!k(l[3],g).length},header:function(g){return/h\d/i.test(g.nodeName)}, -text:function(g){return"text"===g.type},radio:function(g){return"radio"===g.type},checkbox:function(g){return"checkbox"===g.type},file:function(g){return"file"===g.type},password:function(g){return"password"===g.type},submit:function(g){return"submit"===g.type},image:function(g){return"image"===g.type},reset:function(g){return"reset"===g.type},button:function(g){return"button"===g.type||g.nodeName.toLowerCase()==="button"},input:function(g){return/input|select|textarea|button/i.test(g.nodeName)}}, -setFilters:{first:function(g,h){return h===0},last:function(g,h,l,m){return h===m.length-1},even:function(g,h){return h%2===0},odd:function(g,h){return h%2===1},lt:function(g,h,l){return hl[3]-0},nth:function(g,h,l){return l[3]-0===h},eq:function(g,h,l){return l[3]-0===h}},filter:{PSEUDO:function(g,h,l,m){var q=h[1],p=n.filters[q];if(p)return p(g,l,h,m);else if(q==="contains")return(g.textContent||g.innerText||a([g])||"").indexOf(h[3])>=0;else if(q==="not"){h= -h[3];l=0;for(m=h.length;l=0}},ID:function(g,h){return g.nodeType===1&&g.getAttribute("id")===h},TAG:function(g,h){return h==="*"&&g.nodeType===1||g.nodeName.toLowerCase()===h},CLASS:function(g,h){return(" "+(g.className||g.getAttribute("class"))+" ").indexOf(h)>-1},ATTR:function(g,h){var l=h[1];g=n.attrHandle[l]?n.attrHandle[l](g):g[l]!=null?g[l]:g.getAttribute(l);l=g+"";var m=h[2];h=h[4];return g==null?m==="!=":m=== -"="?l===h:m==="*="?l.indexOf(h)>=0:m==="~="?(" "+l+" ").indexOf(h)>=0:!h?l&&g!==false:m==="!="?l!==h:m==="^="?l.indexOf(h)===0:m==="$="?l.substr(l.length-h.length)===h:m==="|="?l===h||l.substr(0,h.length+1)===h+"-":false},POS:function(g,h,l,m){var q=n.setFilters[h[2]];if(q)return q(g,l,h,m)}}},r=n.match.POS;for(var u in n.match){n.match[u]=new RegExp(n.match[u].source+/(?![^\[]*\])(?![^\(]*\))/.source);n.leftMatch[u]=new RegExp(/(^(?:.|\r|\n)*?)/.source+n.match[u].source.replace(/\\(\d+)/g,function(g, -h){return"\\"+(h-0+1)}))}var z=function(g,h){g=Array.prototype.slice.call(g,0);if(h){h.push.apply(h,g);return h}return g};try{Array.prototype.slice.call(s.documentElement.childNodes,0)}catch(C){z=function(g,h){h=h||[];if(j.call(g)==="[object Array]")Array.prototype.push.apply(h,g);else if(typeof g.length==="number")for(var l=0,m=g.length;l";var l=s.documentElement;l.insertBefore(g,l.firstChild);if(s.getElementById(h)){n.find.ID=function(m,q,p){if(typeof q.getElementById!=="undefined"&&!p)return(q=q.getElementById(m[1]))?q.id===m[1]||typeof q.getAttributeNode!=="undefined"&& -q.getAttributeNode("id").nodeValue===m[1]?[q]:w:[]};n.filter.ID=function(m,q){var p=typeof m.getAttributeNode!=="undefined"&&m.getAttributeNode("id");return m.nodeType===1&&p&&p.nodeValue===q}}l.removeChild(g);l=g=null})();(function(){var g=s.createElement("div");g.appendChild(s.createComment(""));if(g.getElementsByTagName("*").length>0)n.find.TAG=function(h,l){l=l.getElementsByTagName(h[1]);if(h[1]==="*"){h=[];for(var m=0;l[m];m++)l[m].nodeType===1&&h.push(l[m]);l=h}return l};g.innerHTML=""; -if(g.firstChild&&typeof g.firstChild.getAttribute!=="undefined"&&g.firstChild.getAttribute("href")!=="#")n.attrHandle.href=function(h){return h.getAttribute("href",2)};g=null})();s.querySelectorAll&&function(){var g=k,h=s.createElement("div");h.innerHTML="

";if(!(h.querySelectorAll&&h.querySelectorAll(".TEST").length===0)){k=function(m,q,p,v){q=q||s;if(!v&&q.nodeType===9&&!x(q))try{return z(q.querySelectorAll(m),p)}catch(t){}return g(m,q,p,v)};for(var l in g)k[l]=g[l];h=null}}(); -(function(){var g=s.createElement("div");g.innerHTML="
";if(!(!g.getElementsByClassName||g.getElementsByClassName("e").length===0)){g.lastChild.className="e";if(g.getElementsByClassName("e").length!==1){n.order.splice(1,0,"CLASS");n.find.CLASS=function(h,l,m){if(typeof l.getElementsByClassName!=="undefined"&&!m)return l.getElementsByClassName(h[1])};g=null}}})();var E=s.compareDocumentPosition?function(g,h){return!!(g.compareDocumentPosition(h)&16)}: -function(g,h){return g!==h&&(g.contains?g.contains(h):true)},x=function(g){return(g=(g?g.ownerDocument||g:0).documentElement)?g.nodeName!=="HTML":false},ga=function(g,h){var l=[],m="",q;for(h=h.nodeType?[h]:h;q=n.match.PSEUDO.exec(g);){m+=q[0];g=g.replace(n.match.PSEUDO,"")}g=n.relative[g]?g+"*":g;q=0;for(var p=h.length;q=0===d})};c.fn.extend({find:function(a){for(var b=this.pushStack("","find",a),d=0,f=0,e=this.length;f0)for(var j=d;j0},closest:function(a,b){if(c.isArray(a)){var d=[],f=this[0],e,j= -{},i;if(f&&a.length){e=0;for(var o=a.length;e-1:c(f).is(e)){d.push({selector:i,elem:f});delete j[i]}}f=f.parentNode}}return d}var k=c.expr.match.POS.test(a)?c(a,b||this.context):null;return this.map(function(n,r){for(;r&&r.ownerDocument&&r!==b;){if(k?k.index(r)>-1:c(r).is(a))return r;r=r.parentNode}return null})},index:function(a){if(!a||typeof a=== -"string")return c.inArray(this[0],a?c(a):this.parent().children());return c.inArray(a.jquery?a[0]:a,this)},add:function(a,b){a=typeof a==="string"?c(a,b||this.context):c.makeArray(a);b=c.merge(this.get(),a);return this.pushStack(qa(a[0])||qa(b[0])?b:c.unique(b))},andSelf:function(){return this.add(this.prevObject)}});c.each({parent:function(a){return(a=a.parentNode)&&a.nodeType!==11?a:null},parents:function(a){return c.dir(a,"parentNode")},parentsUntil:function(a,b,d){return c.dir(a,"parentNode", -d)},next:function(a){return c.nth(a,2,"nextSibling")},prev:function(a){return c.nth(a,2,"previousSibling")},nextAll:function(a){return c.dir(a,"nextSibling")},prevAll:function(a){return c.dir(a,"previousSibling")},nextUntil:function(a,b,d){return c.dir(a,"nextSibling",d)},prevUntil:function(a,b,d){return c.dir(a,"previousSibling",d)},siblings:function(a){return c.sibling(a.parentNode.firstChild,a)},children:function(a){return c.sibling(a.firstChild)},contents:function(a){return c.nodeName(a,"iframe")? -a.contentDocument||a.contentWindow.document:c.makeArray(a.childNodes)}},function(a,b){c.fn[a]=function(d,f){var e=c.map(this,b,d);eb.test(a)||(f=d);if(f&&typeof f==="string")e=c.filter(f,e);e=this.length>1?c.unique(e):e;if((this.length>1||gb.test(f))&&fb.test(a))e=e.reverse();return this.pushStack(e,a,R.call(arguments).join(","))}});c.extend({filter:function(a,b,d){if(d)a=":not("+a+")";return c.find.matches(a,b)},dir:function(a,b,d){var f=[];for(a=a[b];a&&a.nodeType!==9&&(d===w||a.nodeType!==1||!c(a).is(d));){a.nodeType=== -1&&f.push(a);a=a[b]}return f},nth:function(a,b,d){b=b||1;for(var f=0;a;a=a[d])if(a.nodeType===1&&++f===b)break;return a},sibling:function(a,b){for(var d=[];a;a=a.nextSibling)a.nodeType===1&&a!==b&&d.push(a);return d}});var Ja=/ jQuery\d+="(?:\d+|null)"/g,V=/^\s+/,Ka=/(<([\w:]+)[^>]*?)\/>/g,hb=/^(?:area|br|col|embed|hr|img|input|link|meta|param)$/i,La=/<([\w:]+)/,ib=/
","
"],tr:[2,"","
"],td:[3,"","
"],col:[2,"","
"],area:[1,"",""],_default:[0,"",""]};F.optgroup=F.option;F.tbody=F.tfoot=F.colgroup=F.caption=F.thead;F.th=F.td;if(!c.support.htmlSerialize)F._default=[1,"div
","
"];c.fn.extend({text:function(a){if(c.isFunction(a))return this.each(function(b){var d= -c(this);d.text(a.call(this,b,d.text()))});if(typeof a!=="object"&&a!==w)return this.empty().append((this[0]&&this[0].ownerDocument||s).createTextNode(a));return c.text(this)},wrapAll:function(a){if(c.isFunction(a))return this.each(function(d){c(this).wrapAll(a.call(this,d))});if(this[0]){var b=c(a,this[0].ownerDocument).eq(0).clone(true);this[0].parentNode&&b.insertBefore(this[0]);b.map(function(){for(var d=this;d.firstChild&&d.firstChild.nodeType===1;)d=d.firstChild;return d}).append(this)}return this}, -wrapInner:function(a){if(c.isFunction(a))return this.each(function(b){c(this).wrapInner(a.call(this,b))});return this.each(function(){var b=c(this),d=b.contents();d.length?d.wrapAll(a):b.append(a)})},wrap:function(a){return this.each(function(){c(this).wrapAll(a)})},unwrap:function(){return this.parent().each(function(){c.nodeName(this,"body")||c(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.appendChild(a)})}, -prepend:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b,this)});else if(arguments.length){var a=c(arguments[0]);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b, -this.nextSibling)});else if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,c(arguments[0]).toArray());return a}},remove:function(a,b){for(var d=0,f;(f=this[d])!=null;d++)if(!a||c.filter(a,[f]).length){if(!b&&f.nodeType===1){c.cleanData(f.getElementsByTagName("*"));c.cleanData([f])}f.parentNode&&f.parentNode.removeChild(f)}return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++)for(b.nodeType===1&&c.cleanData(b.getElementsByTagName("*"));b.firstChild;)b.removeChild(b.firstChild); -return this},clone:function(a){var b=this.map(function(){if(!c.support.noCloneEvent&&!c.isXMLDoc(this)){var d=this.outerHTML,f=this.ownerDocument;if(!d){d=f.createElement("div");d.appendChild(this.cloneNode(true));d=d.innerHTML}return c.clean([d.replace(Ja,"").replace(/=([^="'>\s]+\/)>/g,'="$1">').replace(V,"")],f)[0]}else return this.cloneNode(true)});if(a===true){ra(this,b);ra(this.find("*"),b.find("*"))}return b},html:function(a){if(a===w)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(Ja, -""):null;else if(typeof a==="string"&&!ta.test(a)&&(c.support.leadingWhitespace||!V.test(a))&&!F[(La.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Ka,Ma);try{for(var b=0,d=this.length;b0||e.cacheable||this.length>1?k.cloneNode(true):k)}o.length&&c.each(o,Qa)}return this}});c.fragments={};c.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){c.fn[a]=function(d){var f=[];d=c(d);var e=this.length===1&&this[0].parentNode;if(e&&e.nodeType===11&&e.childNodes.length===1&&d.length===1){d[b](this[0]); -return this}else{e=0;for(var j=d.length;e0?this.clone(true):this).get();c.fn[b].apply(c(d[e]),i);f=f.concat(i)}return this.pushStack(f,a,d.selector)}}});c.extend({clean:function(a,b,d,f){b=b||s;if(typeof b.createElement==="undefined")b=b.ownerDocument||b[0]&&b[0].ownerDocument||s;for(var e=[],j=0,i;(i=a[j])!=null;j++){if(typeof i==="number")i+="";if(i){if(typeof i==="string"&&!jb.test(i))i=b.createTextNode(i);else if(typeof i==="string"){i=i.replace(Ka,Ma);var o=(La.exec(i)||["", -""])[1].toLowerCase(),k=F[o]||F._default,n=k[0],r=b.createElement("div");for(r.innerHTML=k[1]+i+k[2];n--;)r=r.lastChild;if(!c.support.tbody){n=ib.test(i);o=o==="table"&&!n?r.firstChild&&r.firstChild.childNodes:k[1]===""&&!n?r.childNodes:[];for(k=o.length-1;k>=0;--k)c.nodeName(o[k],"tbody")&&!o[k].childNodes.length&&o[k].parentNode.removeChild(o[k])}!c.support.leadingWhitespace&&V.test(i)&&r.insertBefore(b.createTextNode(V.exec(i)[0]),r.firstChild);i=r.childNodes}if(i.nodeType)e.push(i);else e= -c.merge(e,i)}}if(d)for(j=0;e[j];j++)if(f&&c.nodeName(e[j],"script")&&(!e[j].type||e[j].type.toLowerCase()==="text/javascript"))f.push(e[j].parentNode?e[j].parentNode.removeChild(e[j]):e[j]);else{e[j].nodeType===1&&e.splice.apply(e,[j+1,0].concat(c.makeArray(e[j].getElementsByTagName("script"))));d.appendChild(e[j])}return e},cleanData:function(a){for(var b,d,f=c.cache,e=c.event.special,j=c.support.deleteExpando,i=0,o;(o=a[i])!=null;i++)if(d=o[c.expando]){b=f[d];if(b.events)for(var k in b.events)e[k]? -c.event.remove(o,k):Ca(o,k,b.handle);if(j)delete o[c.expando];else o.removeAttribute&&o.removeAttribute(c.expando);delete f[d]}}});var kb=/z-?index|font-?weight|opacity|zoom|line-?height/i,Na=/alpha\([^)]*\)/,Oa=/opacity=([^)]*)/,ha=/float/i,ia=/-([a-z])/ig,lb=/([A-Z])/g,mb=/^-?\d+(?:px)?$/i,nb=/^-?\d/,ob={position:"absolute",visibility:"hidden",display:"block"},pb=["Left","Right"],qb=["Top","Bottom"],rb=s.defaultView&&s.defaultView.getComputedStyle,Pa=c.support.cssFloat?"cssFloat":"styleFloat",ja= -function(a,b){return b.toUpperCase()};c.fn.css=function(a,b){return X(this,a,b,true,function(d,f,e){if(e===w)return c.curCSS(d,f);if(typeof e==="number"&&!kb.test(f))e+="px";c.style(d,f,e)})};c.extend({style:function(a,b,d){if(!a||a.nodeType===3||a.nodeType===8)return w;if((b==="width"||b==="height")&&parseFloat(d)<0)d=w;var f=a.style||a,e=d!==w;if(!c.support.opacity&&b==="opacity"){if(e){f.zoom=1;b=parseInt(d,10)+""==="NaN"?"":"alpha(opacity="+d*100+")";a=f.filter||c.curCSS(a,"filter")||"";f.filter= -Na.test(a)?a.replace(Na,b):b}return f.filter&&f.filter.indexOf("opacity=")>=0?parseFloat(Oa.exec(f.filter)[1])/100+"":""}if(ha.test(b))b=Pa;b=b.replace(ia,ja);if(e)f[b]=d;return f[b]},css:function(a,b,d,f){if(b==="width"||b==="height"){var e,j=b==="width"?pb:qb;function i(){e=b==="width"?a.offsetWidth:a.offsetHeight;f!=="border"&&c.each(j,function(){f||(e-=parseFloat(c.curCSS(a,"padding"+this,true))||0);if(f==="margin")e+=parseFloat(c.curCSS(a,"margin"+this,true))||0;else e-=parseFloat(c.curCSS(a, -"border"+this+"Width",true))||0})}a.offsetWidth!==0?i():c.swap(a,ob,i);return Math.max(0,Math.round(e))}return c.curCSS(a,b,d)},curCSS:function(a,b,d){var f,e=a.style;if(!c.support.opacity&&b==="opacity"&&a.currentStyle){f=Oa.test(a.currentStyle.filter||"")?parseFloat(RegExp.$1)/100+"":"";return f===""?"1":f}if(ha.test(b))b=Pa;if(!d&&e&&e[b])f=e[b];else if(rb){if(ha.test(b))b="float";b=b.replace(lb,"-$1").toLowerCase();e=a.ownerDocument.defaultView;if(!e)return null;if(a=e.getComputedStyle(a,null))f= -a.getPropertyValue(b);if(b==="opacity"&&f==="")f="1"}else if(a.currentStyle){d=b.replace(ia,ja);f=a.currentStyle[b]||a.currentStyle[d];if(!mb.test(f)&&nb.test(f)){b=e.left;var j=a.runtimeStyle.left;a.runtimeStyle.left=a.currentStyle.left;e.left=d==="fontSize"?"1em":f||0;f=e.pixelLeft+"px";e.left=b;a.runtimeStyle.left=j}}return f},swap:function(a,b,d){var f={};for(var e in b){f[e]=a.style[e];a.style[e]=b[e]}d.call(a);for(e in b)a.style[e]=f[e]}});if(c.expr&&c.expr.filters){c.expr.filters.hidden=function(a){var b= -a.offsetWidth,d=a.offsetHeight,f=a.nodeName.toLowerCase()==="tr";return b===0&&d===0&&!f?true:b>0&&d>0&&!f?false:c.curCSS(a,"display")==="none"};c.expr.filters.visible=function(a){return!c.expr.filters.hidden(a)}}var sb=J(),tb=//gi,ub=/select|textarea/i,vb=/color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week/i,N=/=\?(&|$)/,ka=/\?/,wb=/(\?|&)_=.*?(&|$)/,xb=/^(\w+:)?\/\/([^\/?#]+)/,yb=/%20/g,zb=c.fn.load;c.fn.extend({load:function(a,b,d){if(typeof a!== -"string")return zb.call(this,a);else if(!this.length)return this;var f=a.indexOf(" ");if(f>=0){var e=a.slice(f,a.length);a=a.slice(0,f)}f="GET";if(b)if(c.isFunction(b)){d=b;b=null}else if(typeof b==="object"){b=c.param(b,c.ajaxSettings.traditional);f="POST"}var j=this;c.ajax({url:a,type:f,dataType:"html",data:b,complete:function(i,o){if(o==="success"||o==="notmodified")j.html(e?c("
").append(i.responseText.replace(tb,"")).find(e):i.responseText);d&&j.each(d,[i.responseText,o,i])}});return this}, -serialize:function(){return c.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?c.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||ub.test(this.nodeName)||vb.test(this.type))}).map(function(a,b){a=c(this).val();return a==null?null:c.isArray(a)?c.map(a,function(d){return{name:b.name,value:d}}):{name:b.name,value:a}}).get()}});c.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "), -function(a,b){c.fn[b]=function(d){return this.bind(b,d)}});c.extend({get:function(a,b,d,f){if(c.isFunction(b)){f=f||d;d=b;b=null}return c.ajax({type:"GET",url:a,data:b,success:d,dataType:f})},getScript:function(a,b){return c.get(a,null,b,"script")},getJSON:function(a,b,d){return c.get(a,b,d,"json")},post:function(a,b,d,f){if(c.isFunction(b)){f=f||d;d=b;b={}}return c.ajax({type:"POST",url:a,data:b,success:d,dataType:f})},ajaxSetup:function(a){c.extend(c.ajaxSettings,a)},ajaxSettings:{url:location.href, -global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:A.XMLHttpRequest&&(A.location.protocol!=="file:"||!A.ActiveXObject)?function(){return new A.XMLHttpRequest}:function(){try{return new A.ActiveXObject("Microsoft.XMLHTTP")}catch(a){}},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},etag:{},ajax:function(a){function b(){e.success&& -e.success.call(k,o,i,x);e.global&&f("ajaxSuccess",[x,e])}function d(){e.complete&&e.complete.call(k,x,i);e.global&&f("ajaxComplete",[x,e]);e.global&&!--c.active&&c.event.trigger("ajaxStop")}function f(q,p){(e.context?c(e.context):c.event).trigger(q,p)}var e=c.extend(true,{},c.ajaxSettings,a),j,i,o,k=a&&a.context||e,n=e.type.toUpperCase();if(e.data&&e.processData&&typeof e.data!=="string")e.data=c.param(e.data,e.traditional);if(e.dataType==="jsonp"){if(n==="GET")N.test(e.url)||(e.url+=(ka.test(e.url)? -"&":"?")+(e.jsonp||"callback")+"=?");else if(!e.data||!N.test(e.data))e.data=(e.data?e.data+"&":"")+(e.jsonp||"callback")+"=?";e.dataType="json"}if(e.dataType==="json"&&(e.data&&N.test(e.data)||N.test(e.url))){j=e.jsonpCallback||"jsonp"+sb++;if(e.data)e.data=(e.data+"").replace(N,"="+j+"$1");e.url=e.url.replace(N,"="+j+"$1");e.dataType="script";A[j]=A[j]||function(q){o=q;b();d();A[j]=w;try{delete A[j]}catch(p){}z&&z.removeChild(C)}}if(e.dataType==="script"&&e.cache===null)e.cache=false;if(e.cache=== -false&&n==="GET"){var r=J(),u=e.url.replace(wb,"$1_="+r+"$2");e.url=u+(u===e.url?(ka.test(e.url)?"&":"?")+"_="+r:"")}if(e.data&&n==="GET")e.url+=(ka.test(e.url)?"&":"?")+e.data;e.global&&!c.active++&&c.event.trigger("ajaxStart");r=(r=xb.exec(e.url))&&(r[1]&&r[1]!==location.protocol||r[2]!==location.host);if(e.dataType==="script"&&n==="GET"&&r){var z=s.getElementsByTagName("head")[0]||s.documentElement,C=s.createElement("script");C.src=e.url;if(e.scriptCharset)C.charset=e.scriptCharset;if(!j){var B= -false;C.onload=C.onreadystatechange=function(){if(!B&&(!this.readyState||this.readyState==="loaded"||this.readyState==="complete")){B=true;b();d();C.onload=C.onreadystatechange=null;z&&C.parentNode&&z.removeChild(C)}}}z.insertBefore(C,z.firstChild);return w}var E=false,x=e.xhr();if(x){e.username?x.open(n,e.url,e.async,e.username,e.password):x.open(n,e.url,e.async);try{if(e.data||a&&a.contentType)x.setRequestHeader("Content-Type",e.contentType);if(e.ifModified){c.lastModified[e.url]&&x.setRequestHeader("If-Modified-Since", -c.lastModified[e.url]);c.etag[e.url]&&x.setRequestHeader("If-None-Match",c.etag[e.url])}r||x.setRequestHeader("X-Requested-With","XMLHttpRequest");x.setRequestHeader("Accept",e.dataType&&e.accepts[e.dataType]?e.accepts[e.dataType]+", */*":e.accepts._default)}catch(ga){}if(e.beforeSend&&e.beforeSend.call(k,x,e)===false){e.global&&!--c.active&&c.event.trigger("ajaxStop");x.abort();return false}e.global&&f("ajaxSend",[x,e]);var g=x.onreadystatechange=function(q){if(!x||x.readyState===0||q==="abort"){E|| -d();E=true;if(x)x.onreadystatechange=c.noop}else if(!E&&x&&(x.readyState===4||q==="timeout")){E=true;x.onreadystatechange=c.noop;i=q==="timeout"?"timeout":!c.httpSuccess(x)?"error":e.ifModified&&c.httpNotModified(x,e.url)?"notmodified":"success";var p;if(i==="success")try{o=c.httpData(x,e.dataType,e)}catch(v){i="parsererror";p=v}if(i==="success"||i==="notmodified")j||b();else c.handleError(e,x,i,p);d();q==="timeout"&&x.abort();if(e.async)x=null}};try{var h=x.abort;x.abort=function(){x&&h.call(x); -g("abort")}}catch(l){}e.async&&e.timeout>0&&setTimeout(function(){x&&!E&&g("timeout")},e.timeout);try{x.send(n==="POST"||n==="PUT"||n==="DELETE"?e.data:null)}catch(m){c.handleError(e,x,null,m);d()}e.async||g();return x}},handleError:function(a,b,d,f){if(a.error)a.error.call(a.context||a,b,d,f);if(a.global)(a.context?c(a.context):c.event).trigger("ajaxError",[b,a,f])},active:0,httpSuccess:function(a){try{return!a.status&&location.protocol==="file:"||a.status>=200&&a.status<300||a.status===304||a.status=== -1223||a.status===0}catch(b){}return false},httpNotModified:function(a,b){var d=a.getResponseHeader("Last-Modified"),f=a.getResponseHeader("Etag");if(d)c.lastModified[b]=d;if(f)c.etag[b]=f;return a.status===304||a.status===0},httpData:function(a,b,d){var f=a.getResponseHeader("content-type")||"",e=b==="xml"||!b&&f.indexOf("xml")>=0;a=e?a.responseXML:a.responseText;e&&a.documentElement.nodeName==="parsererror"&&c.error("parsererror");if(d&&d.dataFilter)a=d.dataFilter(a,b);if(typeof a==="string")if(b=== -"json"||!b&&f.indexOf("json")>=0)a=c.parseJSON(a);else if(b==="script"||!b&&f.indexOf("javascript")>=0)c.globalEval(a);return a},param:function(a,b){function d(i,o){if(c.isArray(o))c.each(o,function(k,n){b||/\[\]$/.test(i)?f(i,n):d(i+"["+(typeof n==="object"||c.isArray(n)?k:"")+"]",n)});else!b&&o!=null&&typeof o==="object"?c.each(o,function(k,n){d(i+"["+k+"]",n)}):f(i,o)}function f(i,o){o=c.isFunction(o)?o():o;e[e.length]=encodeURIComponent(i)+"="+encodeURIComponent(o)}var e=[];if(b===w)b=c.ajaxSettings.traditional; -if(c.isArray(a)||a.jquery)c.each(a,function(){f(this.name,this.value)});else for(var j in a)d(j,a[j]);return e.join("&").replace(yb,"+")}});var la={},Ab=/toggle|show|hide/,Bb=/^([+-]=)?([\d+-.]+)(.*)$/,W,va=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];c.fn.extend({show:function(a,b){if(a||a===0)return this.animate(K("show",3),a,b);else{a=0;for(b=this.length;a").appendTo("body");f=e.css("display");if(f==="none")f="block";e.remove();la[d]=f}c.data(this[a],"olddisplay",f)}}a=0;for(b=this.length;a=0;f--)if(d[f].elem===this){b&&d[f](true);d.splice(f,1)}});b||this.dequeue();return this}});c.each({slideDown:K("show",1),slideUp:K("hide",1),slideToggle:K("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(a,b){c.fn[a]=function(d,f){return this.animate(b,d,f)}});c.extend({speed:function(a,b,d){var f=a&&typeof a==="object"?a:{complete:d||!d&&b||c.isFunction(a)&&a,duration:a,easing:d&&b||b&&!c.isFunction(b)&&b};f.duration=c.fx.off?0:typeof f.duration=== -"number"?f.duration:c.fx.speeds[f.duration]||c.fx.speeds._default;f.old=f.complete;f.complete=function(){f.queue!==false&&c(this).dequeue();c.isFunction(f.old)&&f.old.call(this)};return f},easing:{linear:function(a,b,d,f){return d+f*a},swing:function(a,b,d,f){return(-Math.cos(a*Math.PI)/2+0.5)*f+d}},timers:[],fx:function(a,b,d){this.options=b;this.elem=a;this.prop=d;if(!b.orig)b.orig={}}});c.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this);(c.fx.step[this.prop]|| -c.fx.step._default)(this);if((this.prop==="height"||this.prop==="width")&&this.elem.style)this.elem.style.display="block"},cur:function(a){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null))return this.elem[this.prop];return(a=parseFloat(c.css(this.elem,this.prop,a)))&&a>-10000?a:parseFloat(c.curCSS(this.elem,this.prop))||0},custom:function(a,b,d){function f(j){return e.step(j)}this.startTime=J();this.start=a;this.end=b;this.unit=d||this.unit||"px";this.now=this.start; -this.pos=this.state=0;var e=this;f.elem=this.elem;if(f()&&c.timers.push(f)&&!W)W=setInterval(c.fx.tick,13)},show:function(){this.options.orig[this.prop]=c.style(this.elem,this.prop);this.options.show=true;this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur());c(this.elem).show()},hide:function(){this.options.orig[this.prop]=c.style(this.elem,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(a){var b=J(),d=true;if(a||b>=this.options.duration+this.startTime){this.now= -this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;for(var f in this.options.curAnim)if(this.options.curAnim[f]!==true)d=false;if(d){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;a=c.data(this.elem,"olddisplay");this.elem.style.display=a?a:this.options.display;if(c.css(this.elem,"display")==="none")this.elem.style.display="block"}this.options.hide&&c(this.elem).hide();if(this.options.hide||this.options.show)for(var e in this.options.curAnim)c.style(this.elem, -e,this.options.orig[e]);this.options.complete.call(this.elem)}return false}else{e=b-this.startTime;this.state=e/this.options.duration;a=this.options.easing||(c.easing.swing?"swing":"linear");this.pos=c.easing[this.options.specialEasing&&this.options.specialEasing[this.prop]||a](this.state,e,0,1,this.options.duration);this.now=this.start+(this.end-this.start)*this.pos;this.update()}return true}};c.extend(c.fx,{tick:function(){for(var a=c.timers,b=0;b
"; -a.insertBefore(b,a.firstChild);d=b.firstChild;f=d.firstChild;e=d.nextSibling.firstChild.firstChild;this.doesNotAddBorder=f.offsetTop!==5;this.doesAddBorderForTableAndCells=e.offsetTop===5;f.style.position="fixed";f.style.top="20px";this.supportsFixedPosition=f.offsetTop===20||f.offsetTop===15;f.style.position=f.style.top="";d.style.overflow="hidden";d.style.position="relative";this.subtractsBorderForOverflowNotVisible=f.offsetTop===-5;this.doesNotIncludeMarginInBodyOffset=a.offsetTop!==j;a.removeChild(b); -c.offset.initialize=c.noop},bodyOffset:function(a){var b=a.offsetTop,d=a.offsetLeft;c.offset.initialize();if(c.offset.doesNotIncludeMarginInBodyOffset){b+=parseFloat(c.curCSS(a,"marginTop",true))||0;d+=parseFloat(c.curCSS(a,"marginLeft",true))||0}return{top:b,left:d}},setOffset:function(a,b,d){if(/static/.test(c.curCSS(a,"position")))a.style.position="relative";var f=c(a),e=f.offset(),j=parseInt(c.curCSS(a,"top",true),10)||0,i=parseInt(c.curCSS(a,"left",true),10)||0;if(c.isFunction(b))b=b.call(a, -d,e);d={top:b.top-e.top+j,left:b.left-e.left+i};"using"in b?b.using.call(a,d):f.css(d)}};c.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),d=this.offset(),f=/^body|html$/i.test(b[0].nodeName)?{top:0,left:0}:b.offset();d.top-=parseFloat(c.curCSS(a,"marginTop",true))||0;d.left-=parseFloat(c.curCSS(a,"marginLeft",true))||0;f.top+=parseFloat(c.curCSS(b[0],"borderTopWidth",true))||0;f.left+=parseFloat(c.curCSS(b[0],"borderLeftWidth",true))||0;return{top:d.top- -f.top,left:d.left-f.left}},offsetParent:function(){return this.map(function(){for(var a=this.offsetParent||s.body;a&&!/^body|html$/i.test(a.nodeName)&&c.css(a,"position")==="static";)a=a.offsetParent;return a})}});c.each(["Left","Top"],function(a,b){var d="scroll"+b;c.fn[d]=function(f){var e=this[0],j;if(!e)return null;if(f!==w)return this.each(function(){if(j=wa(this))j.scrollTo(!a?f:c(j).scrollLeft(),a?f:c(j).scrollTop());else this[d]=f});else return(j=wa(e))?"pageXOffset"in j?j[a?"pageYOffset": -"pageXOffset"]:c.support.boxModel&&j.document.documentElement[d]||j.document.body[d]:e[d]}});c.each(["Height","Width"],function(a,b){var d=b.toLowerCase();c.fn["inner"+b]=function(){return this[0]?c.css(this[0],d,false,"padding"):null};c.fn["outer"+b]=function(f){return this[0]?c.css(this[0],d,false,f?"margin":"border"):null};c.fn[d]=function(f){var e=this[0];if(!e)return f==null?null:this;if(c.isFunction(f))return this.each(function(j){var i=c(this);i[d](f.call(this,j,i[d]()))});return"scrollTo"in -e&&e.document?e.document.compatMode==="CSS1Compat"&&e.document.documentElement["client"+b]||e.document.body["client"+b]:e.nodeType===9?Math.max(e.documentElement["client"+b],e.body["scroll"+b],e.documentElement["scroll"+b],e.body["offset"+b],e.documentElement["offset"+b]):f===w?c.css(e,d):this.css(d,typeof f==="string"?f:f+"px")}});A.jQuery=A.$=c})(window); diff --git a/plone/app/discussion/tests/javascripts/test_comments.html b/plone/app/discussion/tests/javascripts/test_comments.html deleted file mode 100644 index be846e0..0000000 --- a/plone/app/discussion/tests/javascripts/test_comments.html +++ /dev/null @@ -1,42 +0,0 @@ - - - - - plone.app.discussion comments Test Suite - - - - - - - - - - - - - - - - - -

plone.app.discussion comments Test - Suite

- -

- -
-
- -

- -
    -
- - - - diff --git a/plone/app/discussion/tests/javascripts/test_comments.js b/plone/app/discussion/tests/javascripts/test_comments.js deleted file mode 100644 index 8bca11f..0000000 --- a/plone/app/discussion/tests/javascripts/test_comments.js +++ /dev/null @@ -1,146 +0,0 @@ - -$(document).ready(function () { - - /* TEST SETUP */ - - module("comments", { - setup: function () { - - // Create a comments section with one comment inside - // - //
- //
- //
- //

Lorem ipsum.

- //
- //
- // - //
- //
- //
- - var comments = $(document.createElement("div")) - .addClass("discussion") - .append($(document.createElement("div")) - .addClass("comment") - .attr("id", "1282720906349675") - .append($(document.createElement("div")) - .addClass("commentBody") - .append($(document.createElement("p")) - .text("Lorem ipsum.") - ) - ) - .append($(document.createElement("div")) - .addClass("commentActions") - .append($(document.createElement("button")) - .addClass("reply-to-comment-button") - )) - ); - $(document.body).append(comments); - - // Create a basic commenting form - // - // - //
- // - //
- //
- // - //
- //
- // - //
- //
- // - // - //
- // - - var commentform = $(document.createElement("div")) - .append($(document.createElement("form")) - .addClass("form") - .append($(document.createElement("div")) - .addClass("formfield-form-widgets-in_reply_to") - .append($(document.createElement("input")) - .attr("name", "form.widgets.in_reply_to") - .val("") - ) - ) - .append($(document.createElement("div")) - .addClass("formfield-form-widgets-author_name") - .append($(document.createElement("input")) - .attr("name", "form.widgets.author") - .attr("type", "text") - ) - ) - .append($(document.createElement("div")) - .addClass("formfield-form-widgets-text") - .append($(document.createElement("textarea")) - .attr("name", "form.widgets.text") - ) - ) - .append($(document.createElement("div")) - .addClass("formControls") - .append($(document.createElement("input")) - .attr("name", "form.buttons.comment")) - .append($(document.createElement("input")) - .attr("name", "form.buttons.cancel")) - ) - ) - .addClass("reply") - .attr("id", "commenting"); - $(document.body).append(commentform); - }, - teardown: function () { - $("#commenting").remove(); - $(".discussion").remove(); - } - }); - - - /* TESTS */ - - test("Hide the reply and the cancel button for the comment form", function(){ - expect(1); - $(".reply").find("input[name='form.buttons.cancel']").css("display", "none"); - equals($("input[name='form.buttons.cancel']").css("display"), "none", "The cancel button should be hidden"); - }); - - test("Show the reply button only when Javascript is enabled", function(){ - expect(1); - $(".reply-to-comment-button").css("display", "inline"); - equals($("button[class='reply-to-comment-button']").attr("style"), "display: inline;", "The reply button should show up when Javascript is enabled"); - }); - - test("Create a comment reply form.", function() { - expect(2); - var comment_div = $("#1282720906349675"); - var reply_button = comment_div.children(".reply-to-comment-button"); - $.createReplyForm(comment_div); - var reply_form = comment_div.children(".reply"); - ok(reply_form.find("input[name='form.widgets.in_reply_to']"), "Reply form has been copied"); - same(reply_form.find("input[name='form.widgets.in_reply_to']").val(), "1282720906349675", "The reply for should have the id of the comment in the in_reply_to field"); - }); - - test("Clear all form values from a form.", function() { - // Create a reply form with some values - var comment_div = $("#1282720906349675"); - $.createReplyForm(comment_div); - var reply_form = comment_div.find(".reply"); - var author = reply_form.find("input[name='form.widgets.author']"); - var text = comment_div.find("input[name='form.widgets.text']"); - author.val("my author"); - text.val("my text"); - // Call the clearForm function to clear the form - $.clearForm(comment_div); - // Check if all form fields have been cleared - var author = comment_div.find("input[name='form.widgets.author']"); - var text = comment_div.find("input[name='form.widgets.text']"); - equals(author.val(), "", "The author form value should be empty"); - equals(text.text(), "", "The text form value should be empty"); - - }); - -}); - - diff --git a/plone/app/discussion/tests/javascripts/test_moderation.html.txt b/plone/app/discussion/tests/javascripts/test_moderation.html.txt deleted file mode 100644 index 36afc81..0000000 --- a/plone/app/discussion/tests/javascripts/test_moderation.html.txt +++ /dev/null @@ -1,40 +0,0 @@ - - - - - plone.app.discussion moderation Test Suite - - - - - - - - - - - - - - - - - - -

plone.app.discussion moderation Test Suite

- -

- -
- -

- -
    - - - - diff --git a/plone/app/discussion/tests/javascripts/test_moderation.js.txt b/plone/app/discussion/tests/javascripts/test_moderation.js.txt deleted file mode 100644 index 49755d0..0000000 --- a/plone/app/discussion/tests/javascripts/test_moderation.js.txt +++ /dev/null @@ -1,72 +0,0 @@ -/* TEST SETUP */ - -module("comments", { - setup: function () { - //
    - // - // - // - // - // - // - // - //
    - // My comment - // - // - // - //
    - //
    - var review_table = $(document.createElement("form")) - .append($(document.createElement("table")) - .attr("id", "review-comments") - .append($(document.createElement("tbody")) - .append($(document.createElement("tr")) - .append($(document.createElement("td")) - .append($(document.createElement("a")) - .text("My comment.") - .attr("href", "http://localhost:8080/Plone/front-page/++conversation++default/1285339036601284") - ) - ) - .append($(document.createElement("td")) - .append($(document.createElement("input")) - .attr("id", "1285339036601284") - .attr("value", "Publish") - .attr("name", "form.button.Publish") - ) - .append($(document.createElement("input")) - .attr("id", "1285339036601284") - .attr("value", "Delete") - .attr("name", "form.button.Delete") - ) - .addClass("actions") - ) - ) - ) - ); - $(document.body).append(review_table); - }, - teardown: function () { - $("form").remove(); - } -}); - - -/* TESTS */ - -test("Delete a single comment", function(){ - expect(1); - stop(); - var delete_button = $(".actions").children("input[name='form.button.Delete']"); - delete_button.trigger('click'); - start(); - equals($("#1285339036601284").attr("name", "form.button.Delete").length, 0, "The comment row should have been deleted."); -}); - - -test("Publish a single comment", function(){ - expect(1); - var publish_button = $(".actions").children("input[name='form.button.Publish']"); - publish_button.trigger('click'); - equals($("#1285339036601284").attr("name", "form.button.Publish").length, 0, "The comment row should have been removed since the comment has been published."); -}); diff --git a/plone/app/discussion/tests/jsTestDriver.conf b/plone/app/discussion/tests/jsTestDriver.conf deleted file mode 100644 index c5335fb..0000000 --- a/plone/app/discussion/tests/jsTestDriver.conf +++ /dev/null @@ -1,18 +0,0 @@ -server: http://localhost:9876 - -load: - # Add these lines to load the equiv function and adapter in order, before the - # tests (assuming they are saved to tests/qunit/) - - qunit/equiv.js - - qunit/QUnitAdapter.js - - # This is where we load the qunit tests - - javascripts/*.js - - # And this loads the source files we are testing - - ../browser/javascripts/*.js - -plugin: - - name: "coverage" - jar: "../../../../parts/jstestdriver/coverage.jar" - module: "com.google.jstestdriver.coverage.CoverageModule" diff --git a/plone/app/discussion/tests/jsTestDriver.txt b/plone/app/discussion/tests/jsTestDriver.txt deleted file mode 100644 index 7751bb8..0000000 --- a/plone/app/discussion/tests/jsTestDriver.txt +++ /dev/null @@ -1,5 +0,0 @@ -============== -JS TEST DRIVER -============== - -java -jar JsTestDriver.jar --port 9876 --config jsTestDriver.conf --browser /usr/bin/firefox --tests all \ No newline at end of file diff --git a/plone/app/discussion/tests/qunit/QUnitAdapter.js b/plone/app/discussion/tests/qunit/QUnitAdapter.js deleted file mode 100644 index a3fc18c..0000000 --- a/plone/app/discussion/tests/qunit/QUnitAdapter.js +++ /dev/null @@ -1,85 +0,0 @@ -/* -QUnitAdapter -Version: 1.1.0 - -Run qunit tests using JS Test Driver - -This provides almost the same api as qunit. - -Tests must run sychronously, which means no use of stop and start methods. -You can use jsUnit Clock object to deal with timeouts and intervals: -http://googletesting.blogspot.com/2007/03/javascript-simulating-time-in-jsunit.html - -The qunit #main DOM element is not included. If you need to do any DOM manipulation -you need to set it up and tear it down in each test. - -*/ -(function() { - - if(!(window.equiv)) { - throw new Error("QUnitAdapter.js - Unable to find equiv function. Ensure you have added equiv.js to the load section of your jsTestDriver.conf"); - } - - var QUnitTestCase; - - window.module = function(name, lifecycle) { - QUnitTestCase = TestCase(name); - QUnitTestCase.prototype.lifecycle = lifecycle || {}; - }; - - window.test = function(name, expected, test) { - QUnitTestCase.prototype['test ' + name] = function() { - if(this.lifecycle.setup) { - this.lifecycle.setup(); - } - if(expected.constructor === Number) { - expectAsserts(expected); - } else { - test = expected; - } - test.call(this.lifecycle); - - if(this.lifecycle.teardown) { - this.lifecycle.teardown(); - } - }; - }; - - window.expect = function(count) { - expectAsserts(count); - }; - - window.ok = function(actual, msg) { - assertTrue(msg ? msg : '', !!actual); - }; - - window.equals = function(a, b, msg) { - assertEqual(msg ? msg : '', b, a); - }; - - window.start = window.stop = function() { - fail('start and stop methods are not available when using JS Test Driver.\n' + - 'Use jsUnit Clock object to deal with timeouts and intervals:\n' + - 'http://googletesting.blogspot.com/2007/03/javascript-simulating-time-in-jsunit.html.'); - }; - - window.same = function(a, b, msg) { - assertTrue(msg ? msg : '', window.equiv(b, a)); - }; - - window.reset = function() { - fail('reset method is not available when using JS Test Driver'); - }; - - window.isLocal = function() { - return false; - }; - - window.QUnit = { - equiv: window.equiv, - ok: window.ok - }; - - module('Default Module'); - -})(); diff --git a/plone/app/discussion/tests/qunit/equiv.js b/plone/app/discussion/tests/qunit/equiv.js deleted file mode 100644 index 2f5b9f3..0000000 --- a/plone/app/discussion/tests/qunit/equiv.js +++ /dev/null @@ -1,185 +0,0 @@ - -// Tests for equality any JavaScript type and structure without unexpected results. -// Discussions and reference: http://philrathe.com/articles/equiv -// Test suites: http://philrathe.com/tests/equiv -// Author: Philippe Rath -window.equiv = function () { - - var innerEquiv; // the real equiv function - var callers = []; // stack to decide between skip/abort functions - - // Determine what is o. - function hoozit(o) { - if (typeof o === "string") { - return "string"; - - } else if (typeof o === "boolean") { - return "boolean"; - - } else if (typeof o === "number") { - - if (isNaN(o)) { - return "nan"; - } else { - return "number"; - } - - } else if (typeof o === "undefined") { - return "undefined"; - - // consider: typeof null === object - } else if (o === null) { - return "null"; - - // consider: typeof [] === object - } else if (o instanceof Array) { - return "array"; - - // consider: typeof new Date() === object - } else if (o instanceof Date) { - return "date"; - - // consider: /./ instanceof Object; - // /./ instanceof RegExp; - // typeof /./ === "function"; // => false in IE and Opera, - // true in FF and Safari - } else if (o instanceof RegExp) { - return "regexp"; - - } else if (typeof o === "object") { - return "object"; - - } else if (o instanceof Function) { - return "function"; - } - } - - // Call the o related callback with the given arguments. - function bindCallbacks(o, callbacks, args) { - var prop = hoozit(o); - if (prop) { - if (hoozit(callbacks[prop]) === "function") { - return callbacks[prop].apply(callbacks, args); - } else { - return callbacks[prop]; // or undefined - } - } - } - - var callbacks = function () { - - // for string, boolean, number and null - function useStrictEquality(b, a) { - return a === b; - } - - return { - "string": useStrictEquality, - "boolean": useStrictEquality, - "number": useStrictEquality, - "null": useStrictEquality, - "undefined": useStrictEquality, - - "nan": function (b) { - return isNaN(b); - }, - - "date": function (b, a) { - return hoozit(b) === "date" && a.valueOf() === b.valueOf(); - }, - - "regexp": function (b, a) { - return hoozit(b) === "regexp" && - a.source === b.source && // the regex itself - a.global === b.global && // and its modifers (gmi) ... - a.ignoreCase === b.ignoreCase && - a.multiline === b.multiline; - }, - - // - skip when the property is a method of an instance (OOP) - // - abort otherwise, - // initial === would have catch identical references anyway - "function": function () { - var caller = callers[callers.length - 1]; - return caller !== Object && - typeof caller !== "undefined"; - }, - - "array": function (b, a) { - var i; - var len; - - // b could be an object literal here - if ( ! (hoozit(b) === "array")) { - return false; - } - - len = a.length; - if (len !== b.length) { // safe and faster - return false; - } - for (i = 0; i < len; i++) { - if( ! innerEquiv(a[i], b[i])) { - return false; - } - } - return true; - }, - - "object": function (b, a) { - var i; - var eq = true; // unless we can proove it - var aProperties = [], bProperties = []; // collection of strings - - // comparing constructors is more strict than using instanceof - if ( a.constructor !== b.constructor) { - return false; - } - - // stack constructor before traversing properties - callers.push(a.constructor); - - for (i in a) { // be strict: don't ensures hasOwnProperty and go deep - - aProperties.push(i); // collect a's properties - - if ( ! innerEquiv(a[i], b[i])) { - eq = false; - } - } - - callers.pop(); // unstack, we are done - - for (i in b) { - bProperties.push(i); // collect b's properties - } - - // Ensures identical properties name - return eq && innerEquiv(aProperties.sort(), bProperties.sort()); - } - }; - }(); - - innerEquiv = function () { // can take multiple arguments - var args = Array.prototype.slice.apply(arguments); - if (args.length < 2) { - return true; // end transition - } - - return (function (a, b) { - if (a === b) { - return true; // catch the most you can - - } else if (typeof a !== typeof b || a === null || b === null || typeof a === "undefined" || typeof b === "undefined") { - return false; // don't lose time with error prone cases - - } else { - return bindCallbacks(a, callbacks, [b, a]); - } - - // apply transition with (1..n) arguments - })(args[0], args[1]) && arguments.callee.apply(this, args.splice(1, args.length -1)); - }; - - return innerEquiv; -}(); // equiv diff --git a/plone/app/discussion/tests/qunit/qunit.css b/plone/app/discussion/tests/qunit/qunit.css deleted file mode 100644 index 4542933..0000000 --- a/plone/app/discussion/tests/qunit/qunit.css +++ /dev/null @@ -1,17 +0,0 @@ -h1#qunit-header { padding: 15px; font-size: large; background-color: #06b; color: white; font-family: 'trebuchet ms', verdana, arial; margin: 0; } -h1#qunit-header a { color: white; } - -h2#qunit-banner { height: 2em; border-bottom: 1px solid white; background-color: #eee; margin: 0; font-family: 'trebuchet ms', verdana, arial; } -h2#qunit-banner.pass { background-color: green; } -h2#qunit-banner.fail { background-color: red; } - -h2#qunit-userAgent { padding: 10px; background-color: #eee; color: black; margin: 0; font-size: small; font-weight: normal; font-family: 'trebuchet ms', verdana, arial; font-size: 10pt; } - -div#qunit-testrunner-toolbar { background: #eee; border-top: 1px solid black; padding: 10px; font-family: 'trebuchet ms', verdana, arial; margin: 0; font-size: 10pt; } - -ol#qunit-tests { font-family: 'trebuchet ms', verdana, arial; font-size: 10pt; } -ol#qunit-tests li strong { cursor:pointer; } -ol#qunit-tests .pass { color: green; } -ol#qunit-tests .fail { color: red; } - -p#qunit-testresult { margin-left: 1em; font-size: 10pt; font-family: 'trebuchet ms', verdana, arial; } diff --git a/plone/app/discussion/tests/qunit/qunit.js b/plone/app/discussion/tests/qunit/qunit.js deleted file mode 100644 index 51ec655..0000000 --- a/plone/app/discussion/tests/qunit/qunit.js +++ /dev/null @@ -1,997 +0,0 @@ -/* - * QUnit - A JavaScript Unit Testing Framework - * - * http://docs.jquery.com/QUnit - * - * Copyright (c) 2009 John Resig, Jörn Zaefferer - * Dual licensed under the MIT (MIT-LICENSE.txt) - * and GPL (GPL-LICENSE.txt) licenses. - */ - -(function(window) { - -var QUnit = { - - // Initialize the configuration options - init: function init() { - config = { - stats: { all: 0, bad: 0 }, - moduleStats: { all: 0, bad: 0 }, - started: +new Date, - blocking: false, - autorun: false, - assertions: [], - filters: [], - queue: [] - }; - - var tests = id("qunit-tests"), - banner = id("qunit-banner"), - result = id("qunit-testresult"); - - if ( tests ) { - tests.innerHTML = ""; - } - - if ( banner ) { - banner.className = ""; - } - - if ( result ) { - result.parentNode.removeChild( result ); - } - }, - - // call on start of module test to prepend name to all tests - module: function module(name, testEnvironment) { - - synchronize(function() { - if ( config.currentModule ) { - QUnit.moduleDone( config.currentModule, config.moduleStats.bad, config.moduleStats.all ); - } - - config.currentModule = name; - config.moduleTestEnvironment = testEnvironment; - config.moduleStats = { all: 0, bad: 0 }; - - QUnit.moduleStart( name, testEnvironment ); - }); - }, - - asyncTest: function asyncTest(testName, expected, callback) { - if ( arguments.length === 2 ) { - callback = expected; - expected = 0; - } - - QUnit.test(testName, expected, callback, true); - }, - - test: function test(testName, expected, callback, async) { - var name = testName, testEnvironment = {}; - - if ( arguments.length === 2 ) { - callback = expected; - expected = null; - } - - if ( config.currentModule ) { - name = config.currentModule + " module: " + name; - } - - if ( !validTest(name) ) { - return; - } - - synchronize(function() { - QUnit.testStart( testName ); - - testEnvironment = extend({ - setup: function() {}, - teardown: function() {} - }, config.moduleTestEnvironment); - - config.assertions = []; - config.expected = null; - - if ( arguments.length >= 3 ) { - config.expected = callback; - callback = arguments[2]; - } - - try { - if ( !config.pollution ) { - saveGlobal(); - } - - testEnvironment.setup.call(testEnvironment); - } catch(e) { - QUnit.ok( false, "Setup failed on " + name + ": " + e.message ); - } - - if ( async ) { - QUnit.stop(); - } - - try { - callback.call(testEnvironment); - } catch(e) { - fail("Test " + name + " died, exception and test follows", e, callback); - QUnit.ok( false, "Died on test #" + (config.assertions.length + 1) + ": " + e.message ); - // else next test will carry the responsibility - saveGlobal(); - - // Restart the tests if they're blocking - if ( config.blocking ) { - start(); - } - } - }); - - synchronize(function() { - try { - checkPollution(); - testEnvironment.teardown.call(testEnvironment); - } catch(e) { - QUnit.ok( false, "Teardown failed on " + name + ": " + e.message ); - } - - try { - QUnit.reset(); - } catch(e) { - fail("reset() failed, following Test " + name + ", exception and reset fn follows", e, reset); - } - - if ( config.expected && config.expected != config.assertions.length ) { - QUnit.ok( false, "Expected " + config.expected + " assertions, but " + config.assertions.length + " were run" ); - } - - var good = 0, bad = 0, - tests = id("qunit-tests"); - - config.stats.all += config.assertions.length; - config.moduleStats.all += config.assertions.length; - - if ( tests ) { - var ol = document.createElement("ol"); - ol.style.display = "none"; - - for ( var i = 0; i < config.assertions.length; i++ ) { - var assertion = config.assertions[i]; - - var li = document.createElement("li"); - li.className = assertion.result ? "pass" : "fail"; - li.innerHTML = assertion.message || "(no message)"; - ol.appendChild( li ); - - if ( assertion.result ) { - good++; - } else { - bad++; - config.stats.bad++; - config.moduleStats.bad++; - } - } - - var b = document.createElement("strong"); - b.innerHTML = name + " (" + bad + ", " + good + ", " + config.assertions.length + ")"; - - addEvent(b, "click", function() { - var next = b.nextSibling, display = next.style.display; - next.style.display = display === "none" ? "block" : "none"; - }); - - addEvent(b, "dblclick", function(e) { - var target = (e || window.event).target; - if ( target.nodeName.toLowerCase() === "strong" ) { - var text = "", node = target.firstChild; - - while ( node.nodeType === 3 ) { - text += node.nodeValue; - node = node.nextSibling; - } - - text = text.replace(/(^\s*|\s*$)/g, ""); - - if ( window.location ) { - window.location.href = window.location.href.match(/^(.+?)(\?.*)?$/)[1] + "?" + encodeURIComponent(text); - } - } - }); - - var li = document.createElement("li"); - li.className = bad ? "fail" : "pass"; - li.appendChild( b ); - li.appendChild( ol ); - tests.appendChild( li ); - - if ( bad ) { - var toolbar = id("qunit-testrunner-toolbar"); - if ( toolbar ) { - toolbar.style.display = "block"; - id("qunit-filter-pass").disabled = null; - id("qunit-filter-missing").disabled = null; - } - } - - } else { - for ( var i = 0; i < config.assertions.length; i++ ) { - if ( !config.assertions[i].result ) { - bad++; - config.stats.bad++; - config.moduleStats.bad++; - } - } - } - - QUnit.testDone( testName, bad, config.assertions.length ); - - if ( !window.setTimeout && !config.queue.length ) { - done(); - } - }); - - if ( window.setTimeout && !config.doneTimer ) { - config.doneTimer = window.setTimeout(function(){ - if ( !config.queue.length ) { - done(); - } else { - synchronize( done ); - } - }, 13); - } - }, - - /** - * Specify the number of expected assertions to gurantee that failed test (no assertions are run at all) don't slip through. - */ - expect: function expect(asserts) { - config.expected = asserts; - }, - - /** - * Asserts true. - * @example ok( "asdfasdf".length > 5, "There must be at least 5 chars" ); - */ - ok: function ok(a, msg) { - QUnit.log(a, msg); - - config.assertions.push({ - result: !!a, - message: msg - }); - }, - - /** - * Checks that the first two arguments are equal, with an optional message. - * Prints out both actual and expected values. - * - * Prefered to ok( actual == expected, message ) - * - * @example equals( format("Received {0} bytes.", 2), "Received 2 bytes." ); - * - * @param Object actual - * @param Object expected - * @param String message (optional) - */ - equals: function equals(actual, expected, message) { - push(expected == actual, actual, expected, message); - }, - - same: function(a, b, message) { - push(QUnit.equiv(a, b), a, b, message); - }, - - start: function start() { - // A slight delay, to avoid any current callbacks - if ( window.setTimeout ) { - window.setTimeout(function() { - if ( config.timeout ) { - clearTimeout(config.timeout); - } - - config.blocking = false; - process(); - }, 13); - } else { - config.blocking = false; - process(); - } - }, - - stop: function stop(timeout) { - config.blocking = true; - - if ( timeout && window.setTimeout ) { - config.timeout = window.setTimeout(function() { - QUnit.ok( false, "Test timed out" ); - QUnit.start(); - }, timeout); - } - }, - - /** - * Resets the test setup. Useful for tests that modify the DOM. - */ - reset: function reset() { - if ( window.jQuery ) { - jQuery("#main").html( config.fixture ); - jQuery.event.global = {}; - jQuery.ajaxSettings = extend({}, config.ajaxSettings); - } - }, - - /** - * Trigger an event on an element. - * - * @example triggerEvent( document.body, "click" ); - * - * @param DOMElement elem - * @param String type - */ - triggerEvent: function triggerEvent( elem, type, event ) { - if ( document.createEvent ) { - event = document.createEvent("MouseEvents"); - event.initMouseEvent(type, true, true, elem.ownerDocument.defaultView, - 0, 0, 0, 0, 0, false, false, false, false, 0, null); - elem.dispatchEvent( event ); - - } else if ( elem.fireEvent ) { - elem.fireEvent("on"+type); - } - }, - - // Logging callbacks - done: function done(failures, total) {}, - log: function log(result, message) {}, - testStart: function testStart(name) {}, - testDone: function testDone(name, failures, total) {}, - moduleStart: function moduleStart(name, testEnvironment) {}, - moduleDone: function moduleDone(name, failures, total) {} -}; - -// Maintain internal state -var config = { - // The queue of tests to run - queue: [], - - // block until document ready - blocking: true -}; - -// Load paramaters -(function() { - var location = window.location || { search: "", protocol: "file:" }, - GETParams = location.search.slice(1).split('&'); - - for ( var i = 0; i < GETParams.length; i++ ) { - GETParams[i] = decodeURIComponent( GETParams[i] ); - if ( GETParams[i] === "noglobals" ) { - GETParams.splice( i, 1 ); - i--; - config.noglobals = true; - } - } - - // restrict modules/tests by get parameters - config.filters = GETParams; - - // Figure out if we're running the tests from a server or not - QUnit.isLocal = !!(location.protocol === 'file:'); -})(); - -// Expose the API as global variables, unless an 'exports' -// object exists, in that case we assume we're in CommonJS -if ( typeof exports === "undefined" || typeof require === "undefined" ) { - extend(window, QUnit); - window.QUnit = QUnit; -} else { - extend(exports, QUnit); - exports.QUnit = QUnit; -} - -if ( typeof document === "undefined" || document.readyState === "complete" ) { - config.autorun = true; -} - -addEvent(window, "load", function() { - // Initialize the config, saving the execution queue - var oldconfig = extend({}, config); - QUnit.init(); - extend(config, oldconfig); - - config.blocking = false; - - var userAgent = id("qunit-userAgent"); - if ( userAgent ) { - userAgent.innerHTML = navigator.userAgent; - } - - var toolbar = id("qunit-testrunner-toolbar"); - if ( toolbar ) { - toolbar.style.display = "none"; - - var filter = document.createElement("input"); - filter.type = "checkbox"; - filter.id = "qunit-filter-pass"; - filter.disabled = true; - addEvent( filter, "click", function() { - var li = document.getElementsByTagName("li"); - for ( var i = 0; i < li.length; i++ ) { - if ( li[i].className.indexOf("pass") > -1 ) { - li[i].style.display = filter.checked ? "none" : "block"; - } - } - }); - toolbar.appendChild( filter ); - - var label = document.createElement("label"); - label.setAttribute("for", "filter-pass"); - label.innerHTML = "Hide passed tests"; - toolbar.appendChild( label ); - - var missing = document.createElement("input"); - missing.type = "checkbox"; - missing.id = "qunit-filter-missing"; - missing.disabled = true; - addEvent( missing, "click", function() { - var li = document.getElementsByTagName("li"); - for ( var i = 0; i < li.length; i++ ) { - if ( li[i].className.indexOf("fail") > -1 && li[i].innerHTML.indexOf('missing test - untested code is broken code') > - 1 ) { - li[i].parentNode.parentNode.style.display = missing.checked ? "none" : "block"; - } - } - }); - toolbar.appendChild( missing ); - - label = document.createElement("label"); - label.setAttribute("for", "filter-missing"); - label.innerHTML = "Hide missing tests (untested code is broken code)"; - toolbar.appendChild( label ); - } - - var main = id('main'); - if ( main ) { - config.fixture = main.innerHTML; - } - - if ( window.jQuery ) { - config.ajaxSettings = window.jQuery.ajaxSettings; - } - - QUnit.start(); -}); - -function done() { - if ( config.doneTimer && window.clearTimeout ) { - window.clearTimeout( config.doneTimer ); - config.doneTimer = null; - } - - if ( config.queue.length ) { - config.doneTimer = window.setTimeout(function(){ - if ( !config.queue.length ) { - done(); - } else { - synchronize( done ); - } - }, 13); - - return; - } - - config.autorun = true; - - // Log the last module results - if ( config.currentModule ) { - QUnit.moduleDone( config.currentModule, config.moduleStats.bad, config.moduleStats.all ); - } - - var banner = id("qunit-banner"), - tests = id("qunit-tests"), - html = ['Tests completed in ', - +new Date - config.started, ' milliseconds.
    ', - '', config.stats.all - config.stats.bad, ' tests of ', config.stats.all, ' passed, ', config.stats.bad,' failed.'].join(''); - - if ( banner ) { - banner.className += " " + (config.stats.bad ? "fail" : "pass"); - } - - if ( tests ) { - var result = id("qunit-testresult"); - - if ( !result ) { - result = document.createElement("p"); - result.id = "qunit-testresult"; - result.className = "result"; - tests.parentNode.insertBefore( result, tests.nextSibling ); - } - - result.innerHTML = html; - } - - QUnit.done( config.stats.bad, config.stats.all ); -} - -function validTest( name ) { - var i = config.filters.length, - run = false; - - if ( !i ) { - return true; - } - - while ( i-- ) { - var filter = config.filters[i], - not = filter.charAt(0) == '!'; - - if ( not ) { - filter = filter.slice(1); - } - - if ( name.indexOf(filter) !== -1 ) { - return !not; - } - - if ( not ) { - run = true; - } - } - - return run; -} - -function push(result, actual, expected, message) { - message = message || (result ? "okay" : "failed"); - QUnit.ok( result, result ? message + ": " + expected : message + ", expected: " + QUnit.jsDump.parse(expected) + " result: " + QUnit.jsDump.parse(actual) ); -} - -function synchronize( callback ) { - config.queue.push( callback ); - - if ( config.autorun && !config.blocking ) { - process(); - } -} - -function process() { - while ( config.queue.length && !config.blocking ) { - config.queue.shift()(); - } -} - -function saveGlobal() { - config.pollution = []; - - if ( config.noglobals ) { - for ( var key in window ) { - config.pollution.push( key ); - } - } -} - -function checkPollution( name ) { - var old = config.pollution; - saveGlobal(); - - var newGlobals = diff( old, config.pollution ); - if ( newGlobals.length > 0 ) { - ok( false, "Introduced global variable(s): " + newGlobals.join(", ") ); - config.expected++; - } - - var deletedGlobals = diff( config.pollution, old ); - if ( deletedGlobals.length > 0 ) { - ok( false, "Deleted global variable(s): " + deletedGlobals.join(", ") ); - config.expected++; - } -} - -// returns a new Array with the elements that are in a but not in b -function diff( a, b ) { - var result = a.slice(); - for ( var i = 0; i < result.length; i++ ) { - for ( var j = 0; j < b.length; j++ ) { - if ( result[i] === b[j] ) { - result.splice(i, 1); - i--; - break; - } - } - } - return result; -} - -function fail(message, exception, callback) { - if ( typeof console !== "undefined" && console.error && console.warn ) { - console.error(message); - console.error(exception); - console.warn(callback.toString()); - - } else if ( window.opera && opera.postError ) { - opera.postError(message, exception, callback.toString); - } -} - -function extend(a, b) { - for ( var prop in b ) { - a[prop] = b[prop]; - } - - return a; -} - -function addEvent(elem, type, fn) { - if ( elem.addEventListener ) { - elem.addEventListener( type, fn, false ); - } else if ( elem.attachEvent ) { - elem.attachEvent( "on" + type, fn ); - } else { - fn(); - } -} - -function id(name) { - return !!(typeof document !== "undefined" && document && document.getElementById) && - document.getElementById( name ); -} - -// Test for equality any JavaScript type. -// Discussions and reference: http://philrathe.com/articles/equiv -// Test suites: http://philrathe.com/tests/equiv -// Author: Philippe Rathé -QUnit.equiv = function () { - - var innerEquiv; // the real equiv function - var callers = []; // stack to decide between skip/abort functions - - - // Determine what is o. - function hoozit(o) { - if (o.constructor === String) { - return "string"; - - } else if (o.constructor === Boolean) { - return "boolean"; - - } else if (o.constructor === Number) { - - if (isNaN(o)) { - return "nan"; - } else { - return "number"; - } - - } else if (typeof o === "undefined") { - return "undefined"; - - // consider: typeof null === object - } else if (o === null) { - return "null"; - - // consider: typeof [] === object - } else if (o instanceof Array) { - return "array"; - - // consider: typeof new Date() === object - } else if (o instanceof Date) { - return "date"; - - // consider: /./ instanceof Object; - // /./ instanceof RegExp; - // typeof /./ === "function"; // => false in IE and Opera, - // true in FF and Safari - } else if (o instanceof RegExp) { - return "regexp"; - - } else if (typeof o === "object") { - return "object"; - - } else if (o instanceof Function) { - return "function"; - } else { - return undefined; - } - } - - // Call the o related callback with the given arguments. - function bindCallbacks(o, callbacks, args) { - var prop = hoozit(o); - if (prop) { - if (hoozit(callbacks[prop]) === "function") { - return callbacks[prop].apply(callbacks, args); - } else { - return callbacks[prop]; // or undefined - } - } - } - - var callbacks = function () { - - // for string, boolean, number and null - function useStrictEquality(b, a) { - if (b instanceof a.constructor || a instanceof b.constructor) { - // to catch short annotaion VS 'new' annotation of a declaration - // e.g. var i = 1; - // var j = new Number(1); - return a == b; - } else { - return a === b; - } - } - - return { - "string": useStrictEquality, - "boolean": useStrictEquality, - "number": useStrictEquality, - "null": useStrictEquality, - "undefined": useStrictEquality, - - "nan": function (b) { - return isNaN(b); - }, - - "date": function (b, a) { - return hoozit(b) === "date" && a.valueOf() === b.valueOf(); - }, - - "regexp": function (b, a) { - return hoozit(b) === "regexp" && - a.source === b.source && // the regex itself - a.global === b.global && // and its modifers (gmi) ... - a.ignoreCase === b.ignoreCase && - a.multiline === b.multiline; - }, - - // - skip when the property is a method of an instance (OOP) - // - abort otherwise, - // initial === would have catch identical references anyway - "function": function () { - var caller = callers[callers.length - 1]; - return caller !== Object && - typeof caller !== "undefined"; - }, - - "array": function (b, a) { - var i; - var len; - - // b could be an object literal here - if ( ! (hoozit(b) === "array")) { - return false; - } - - len = a.length; - if (len !== b.length) { // safe and faster - return false; - } - for (i = 0; i < len; i++) { - if ( ! innerEquiv(a[i], b[i])) { - return false; - } - } - return true; - }, - - "object": function (b, a) { - var i; - var eq = true; // unless we can proove it - var aProperties = [], bProperties = []; // collection of strings - - // comparing constructors is more strict than using instanceof - if ( a.constructor !== b.constructor) { - return false; - } - - // stack constructor before traversing properties - callers.push(a.constructor); - - for (i in a) { // be strict: don't ensures hasOwnProperty and go deep - - aProperties.push(i); // collect a's properties - - if ( ! innerEquiv(a[i], b[i])) { - eq = false; - } - } - - callers.pop(); // unstack, we are done - - for (i in b) { - bProperties.push(i); // collect b's properties - } - - // Ensures identical properties name - return eq && innerEquiv(aProperties.sort(), bProperties.sort()); - } - }; - }(); - - innerEquiv = function () { // can take multiple arguments - var args = Array.prototype.slice.apply(arguments); - if (args.length < 2) { - return true; // end transition - } - - return (function (a, b) { - if (a === b) { - return true; // catch the most you can - } else if (a === null || b === null || typeof a === "undefined" || typeof b === "undefined" || hoozit(a) !== hoozit(b)) { - return false; // don't lose time with error prone cases - } else { - return bindCallbacks(a, callbacks, [b, a]); - } - - // apply transition with (1..n) arguments - })(args[0], args[1]) && arguments.callee.apply(this, args.splice(1, args.length -1)); - }; - - return innerEquiv; - -}(); - -/** - * jsDump - * Copyright (c) 2008 Ariel Flesler - aflesler(at)gmail(dot)com | http://flesler.blogspot.com - * Licensed under BSD (http://www.opensource.org/licenses/bsd-license.php) - * Date: 5/15/2008 - * @projectDescription Advanced and extensible data dumping for Javascript. - * @version 1.0.0 - * @author Ariel Flesler - * @link {http://flesler.blogspot.com/2008/05/jsdump-pretty-dump-of-any-javascript.html} - */ -QUnit.jsDump = (function() { - function quote( str ) { - return '"' + str.toString().replace(/"/g, '\\"') + '"'; - }; - function literal( o ) { - return o + ''; - }; - function join( pre, arr, post ) { - var s = jsDump.separator(), - base = jsDump.indent(), - inner = jsDump.indent(1); - if ( arr.join ) - arr = arr.join( ',' + s + inner ); - if ( !arr ) - return pre + post; - return [ pre, inner + arr, base + post ].join(s); - }; - function array( arr ) { - var i = arr.length, ret = Array(i); - this.up(); - while ( i-- ) - ret[i] = this.parse( arr[i] ); - this.down(); - return join( '[', ret, ']' ); - }; - - var reName = /^function (\w+)/; - - var jsDump = { - parse:function( obj, type ) { //type is used mostly internally, you can fix a (custom)type in advance - var parser = this.parsers[ type || this.typeOf(obj) ]; - type = typeof parser; - - return type == 'function' ? parser.call( this, obj ) : - type == 'string' ? parser : - this.parsers.error; - }, - typeOf:function( obj ) { - var type = typeof obj, - f = 'function';//we'll use it 3 times, save it - return type != 'object' && type != f ? type : - !obj ? 'null' : - obj.exec ? 'regexp' :// some browsers (FF) consider regexps functions - obj.getHours ? 'date' : - obj.scrollBy ? 'window' : - obj.nodeName == '#document' ? 'document' : - obj.nodeName ? 'node' : - obj.item ? 'nodelist' : // Safari reports nodelists as functions - obj.callee ? 'arguments' : - obj.call || obj.constructor != Array && //an array would also fall on this hack - (obj+'').indexOf(f) != -1 ? f : //IE reports functions like alert, as objects - 'length' in obj ? 'array' : - type; - }, - separator:function() { - return this.multiline ? this.HTML ? '
    ' : '\n' : this.HTML ? ' ' : ' '; - }, - indent:function( extra ) {// extra can be a number, shortcut for increasing-calling-decreasing - if ( !this.multiline ) - return ''; - var chr = this.indentChar; - if ( this.HTML ) - chr = chr.replace(/\t/g,' ').replace(/ /g,' '); - return Array( this._depth_ + (extra||0) ).join(chr); - }, - up:function( a ) { - this._depth_ += a || 1; - }, - down:function( a ) { - this._depth_ -= a || 1; - }, - setParser:function( name, parser ) { - this.parsers[name] = parser; - }, - // The next 3 are exposed so you can use them - quote:quote, - literal:literal, - join:join, - // - _depth_: 1, - // This is the list of parsers, to modify them, use jsDump.setParser - parsers:{ - window: '[Window]', - document: '[Document]', - error:'[ERROR]', //when no parser is found, shouldn't happen - unknown: '[Unknown]', - 'null':'null', - undefined:'undefined', - 'function':function( fn ) { - var ret = 'function', - name = 'name' in fn ? fn.name : (reName.exec(fn)||[])[1];//functions never have name in IE - if ( name ) - ret += ' ' + name; - ret += '('; - - ret = [ ret, this.parse( fn, 'functionArgs' ), '){'].join(''); - return join( ret, this.parse(fn,'functionCode'), '}' ); - }, - array: array, - nodelist: array, - arguments: array, - object:function( map ) { - var ret = [ ]; - this.up(); - for ( var key in map ) - ret.push( this.parse(key,'key') + ': ' + this.parse(map[key]) ); - this.down(); - return join( '{', ret, '}' ); - }, - node:function( node ) { - var open = this.HTML ? '<' : '<', - close = this.HTML ? '>' : '>'; - - var tag = node.nodeName.toLowerCase(), - ret = open + tag; - - for ( var a in this.DOMAttrs ) { - var val = node[this.DOMAttrs[a]]; - if ( val ) - ret += ' ' + a + '=' + this.parse( val, 'attribute' ); - } - return ret + close + open + '/' + tag + close; - }, - functionArgs:function( fn ) {//function calls it internally, it's the arguments part of the function - var l = fn.length; - if ( !l ) return ''; - - var args = Array(l); - while ( l-- ) - args[l] = String.fromCharCode(97+l);//97 is 'a' - return ' ' + args.join(', ') + ' '; - }, - key:quote, //object calls it internally, the key part of an item in a map - functionCode:'[code]', //function calls it internally, it's the content of the function - attribute:quote, //node calls it internally, it's an html attribute value - string:quote, - date:quote, - regexp:literal, //regex - number:literal, - 'boolean':literal - }, - DOMAttrs:{//attributes to dump from nodes, name=>realName - id:'id', - name:'name', - 'class':'className' - }, - HTML:true,//if true, entities are escaped ( <, >, \t, space and \n ) - indentChar:' ',//indentation unit - multiline:true //if true, items in a collection, are separated by a \n, else just a space. - }; - - return jsDump; -})(); - -})(this); diff --git a/plone/app/discussion/tests/robot/test_discussion.robot b/plone/app/discussion/tests/robot/test_discussion.robot new file mode 100644 index 0000000..a4e56e1 --- /dev/null +++ b/plone/app/discussion/tests/robot/test_discussion.robot @@ -0,0 +1,84 @@ +# ============================================================================ +# Test basic discussion features (adding, replying, deleting) +# ============================================================================ +# +# $ bin/robot-server plone.app.discussion.testing.PLONE_APP_DISCUSSION_ROBOT_TESTING +# $ bin/robot src/plone.app.discussion/src/plone/app/discussion/tests/robot/test_discussion.robot +# +# ============================================================================ + +*** Settings *** + +Resource plone/app/robotframework/selenium.robot + +Library Remote ${PLONE_URL}/RobotRemote + +Test Setup Open test browser +Test Teardown Close all browsers + + +*** Test Cases *** + +Enable Discussion on a Document + Given a logged-in Site Administrator + and a document + When I enable discussion on the document + Then I can see a comment form on the document + +Add Comment to a Document + Given a logged-in Site Administrator + and a document with discussion enabled + When I add a comment + Then I can see the comment below the document + +#Reply to a comment on a Document +# Given a logged-in Site Administrator +# and a document with discussion enabled + +#Delete Comment from a Document +# Given a logged-in Site Administrator +# and a document with discussion enabled + + +*** Keywords *** + +# Given + +a logged-in Site Administrator + Enable autologin as Site Administrator + +a document + Create content type=Document id=my-document title=My Document + +a document with discussion enabled + a document + I enable discussion on the document + + +# When + +I enable discussion on the document + Go To ${PLONE_URL}/my-document/edit + Wait until page contains Settings + Click Link Settings + Wait until element is visible name=form.widgets.IAllowDiscussion.allow_discussion:list + Select From List name=form.widgets.IAllowDiscussion.allow_discussion:list True + Click Button Save + +I add a comment + Wait until page contains element id=form-widgets-comment-text + Input Text id=form-widgets-comment-text This is a comment + Click Button Comment + + +# Then + +I can see a comment form on the document + Go To ${PLONE_URL}/my-document/view + Wait until page contains My Document + Page should contain Add comment + Page should contain element id=form-widgets-comment-text + +I can see the comment below the document + Go To ${PLONE_URL}/my-document/view + Page should contain This is a comment diff --git a/plone/app/discussion/tests/test_catalog.py b/plone/app/discussion/tests/test_catalog.py index 9e3f113..9003648 100644 --- a/plone/app/discussion/tests/test_catalog.py +++ b/plone/app/discussion/tests/test_catalog.py @@ -13,13 +13,12 @@ from Products.CMFCore.utils import getToolByName from plone.app.testing import TEST_USER_ID, setRoles -from plone.app.discussion.testing import \ - PLONE_APP_DISCUSSION_INTEGRATION_TESTING +from plone.app.discussion.testing import ( + PLONE_APP_DISCUSSION_INTEGRATION_TESTING +) from plone.app.discussion.interfaces import IConversation -from plone.app.discussion.testing import COLLECTION_TYPE - class CatalogSetupTest(unittest.TestCase): @@ -29,16 +28,26 @@ class CatalogSetupTest(unittest.TestCase): self.portal = self.layer['portal'] def test_catalog_installed(self): - self.assertTrue('total_comments' in - self.portal.portal_catalog.indexes()) - self.assertTrue('commentators' in - self.portal.portal_catalog.indexes()) - self.assertTrue('total_comments' in - self.portal.portal_catalog.schema()) - self.assertTrue('in_response_to' in - self.portal.portal_catalog.schema()) + self.assertTrue( + 'total_comments' in + self.portal.portal_catalog.indexes() + ) + self.assertTrue( + 'commentators' in + self.portal.portal_catalog.indexes() + ) + self.assertTrue( + 'total_comments' in + self.portal.portal_catalog.schema() + ) + self.assertTrue( + 'in_response_to' in + self.portal.portal_catalog.schema() + ) def test_collection_criteria_installed(self): + if 'portal_atct' not in self.portal: + return try: self.portal.portal_atct.getIndex('commentators') self.portal.portal_atct.getIndex('total_comments') @@ -54,16 +63,17 @@ class ConversationCatalogTest(unittest.TestCase): def setUp(self): self.portal = self.layer['portal'] setRoles(self.portal, TEST_USER_ID, ['Manager']) - self.portal.invokeFactory(id='doc1', - Title='Document 1', - type_name='Document') - + self.portal.invokeFactory( + id='doc1', + Title='Document 1', + type_name='Document' + ) self.catalog = getToolByName(self.portal, 'portal_catalog') conversation = IConversation(self.portal.doc1) comment1 = createObject('plone.Comment') comment1.title = 'Comment 1' comment1.text = 'Comment text' - comment1.creator = 'Jim' + comment1.creator = 'jim' comment1.author_username = 'Jim' comment1.creation_date = datetime(2006, 9, 17, 14, 18, 12) comment1.modification_date = datetime(2006, 9, 17, 14, 18, 12) @@ -72,10 +82,12 @@ class ConversationCatalogTest(unittest.TestCase): self.comment_id = new_comment1_id brains = self.catalog.searchResults(dict( - path={'query': - '/'.join(self.portal.doc1.getPhysicalPath())}, - portal_type="Document" - )) + path={ + 'query': + '/'.join(self.portal.doc1.getPhysicalPath()) + }, + portal_type="Document" + )) self.conversation = conversation self.brains = brains self.doc1_brain = brains[0] @@ -89,30 +101,32 @@ class ConversationCatalogTest(unittest.TestCase): comment2 = createObject('plone.Comment') comment2.title = 'Comment 2' comment2.text = 'Comment text' - comment2.creator = 'Emma' new_comment2_id = self.conversation.addComment(comment2) comment2 = self.portal.doc1.restrictedTraverse( '++conversation++default/%s' % new_comment2_id) comment2.reindexObject() brains = self.catalog.searchResults(dict( - path={'query': - '/'.join(self.portal.doc1.getPhysicalPath())}, - portal_type="Document" - )) + path={ + 'query': + '/'.join(self.portal.doc1.getPhysicalPath()) + }, + portal_type="Document" + )) doc1_brain = brains[0] self.assertEqual(doc1_brain.total_comments, 2) def test_last_comment_date(self): self.assertTrue('last_comment_date' in self.doc1_brain) - self.assertEqual(self.doc1_brain.last_comment_date, - datetime(2006, 9, 17, 14, 18, 12)) + self.assertEqual( + self.doc1_brain.last_comment_date, + datetime(2006, 9, 17, 14, 18, 12) + ) # Add another comment and check if last comment date is updated. comment2 = createObject('plone.Comment') comment2.title = 'Comment 2' comment2.text = 'Comment text' - comment2.creator = 'Emma' comment2.creation_date = datetime(2009, 9, 17, 14, 18, 12) comment2.modification_date = datetime(2009, 9, 17, 14, 18, 12) new_comment2_id = self.conversation.addComment(comment2) @@ -121,33 +135,43 @@ class ConversationCatalogTest(unittest.TestCase): '++conversation++default/%s' % new_comment2_id) comment2.reindexObject() brains = self.catalog.searchResults(dict( - path={'query': - '/'.join(self.portal.doc1.getPhysicalPath())}, - portal_type="Document" - )) + path={ + 'query': + '/'.join(self.portal.doc1.getPhysicalPath()) + }, + portal_type="Document" + )) doc1_brain = brains[0] - self.assertEqual(doc1_brain.last_comment_date, - datetime(2009, 9, 17, 14, 18, 12)) + self.assertEqual( + doc1_brain.last_comment_date, + datetime(2009, 9, 17, 14, 18, 12) + ) # Remove the comment again del self.conversation[new_comment2_id] brains = self.catalog.searchResults(dict( - path={'query': - '/'.join(self.portal.doc1.getPhysicalPath())}, - portal_type="Document" - )) + path={ + 'query': + '/'.join(self.portal.doc1.getPhysicalPath()) + }, + portal_type="Document" + )) doc1_brain = brains[0] - self.assertEqual(doc1_brain.last_comment_date, - datetime(2006, 9, 17, 14, 18, 12)) + self.assertEqual( + doc1_brain.last_comment_date, + datetime(2006, 9, 17, 14, 18, 12) + ) # remove all comments del self.conversation[self.new_comment1_id] brains = self.catalog.searchResults(dict( - path={'query': - '/'.join(self.portal.doc1.getPhysicalPath())}, - portal_type="Document" - )) + path={ + 'query': + '/'.join(self.portal.doc1.getPhysicalPath()) + }, + portal_type="Document" + )) doc1_brain = brains[0] self.assertEqual(doc1_brain.last_comment_date, None) @@ -159,7 +183,7 @@ class ConversationCatalogTest(unittest.TestCase): comment2 = createObject('plone.Comment') comment2.title = 'Comment 2' comment2.text = 'Comment text' - comment2.creator = 'Emma' + comment2.creator = 'emma' comment2.author_username = 'Emma' new_comment2_id = self.conversation.addComment(comment2) @@ -168,45 +192,66 @@ class ConversationCatalogTest(unittest.TestCase): comment2.reindexObject() brains = self.catalog.searchResults(dict( - path={'query': - '/'.join(self.portal.doc1.getPhysicalPath())}, - portal_type="Document" - )) + path={ + 'query': + '/'.join(self.portal.doc1.getPhysicalPath()) + }, + portal_type="Document" + )) doc1_brain = brains[0] - self.assertEqual(doc1_brain.commentators, ('Emma', 'Jim')) + self.assertEqual(doc1_brain.commentators, ('Jim', 'Emma')) # remove one comments del self.conversation[new_comment2_id] brains = self.catalog.searchResults(dict( - path={'query': - '/'.join(self.portal.doc1.getPhysicalPath())}, - portal_type="Document" - )) + path={ + 'query': + '/'.join(self.portal.doc1.getPhysicalPath()) + }, + portal_type="Document" + )) doc1_brain = brains[0] self.assertEqual(doc1_brain.commentators, ('Jim',)) # remove all comments del self.conversation[self.new_comment1_id] brains = self.catalog.searchResults(dict( - path={'query': - '/'.join(self.portal.doc1.getPhysicalPath())}, - portal_type="Document" - )) + path={ + 'query': + '/'.join(self.portal.doc1.getPhysicalPath()) + }, + portal_type="Document" + )) doc1_brain = brains[0] self.assertEqual(doc1_brain.commentators, ()) def test_conversation_indexes_not_in_comments(self): brains = self.catalog.searchResults(dict( - path={'query': - '/'.join(self.portal.doc1.getPhysicalPath())}, - portal_type="Discussion Item" - )) + path={ + 'query': + '/'.join(self.portal.doc1.getPhysicalPath()) + }, + portal_type="Discussion Item" + )) comment1_brain = brains[0] self.assertEqual(comment1_brain.commentators, None) self.assertEqual(comment1_brain.last_comment_date, None) self.assertEqual(comment1_brain.total_comments, None) + def test_dont_index_private_commentators(self): + self.comment1.manage_permission("View", roles=tuple()) + self.portal.doc1.reindexObject() + brains = self.catalog.searchResults(dict( + path={ + 'query': + '/'.join(self.portal.doc1.getPhysicalPath()) + }, + portal_type="Document" + )) + doc1_brain = brains[0] + self.assertEqual(doc1_brain.commentators, ()) + class CommentCatalogTest(unittest.TestCase): @@ -225,7 +270,8 @@ class CommentCatalogTest(unittest.TestCase): comment1 = createObject('plone.Comment') comment1.text = 'Comment text' - comment1.creator = 'Jim' + comment1.creator = 'jim' + comment1.author_name = 'Jim' new_comment1_id = conversation.addComment(comment1) self.comment_id = new_comment1_id @@ -233,8 +279,11 @@ class CommentCatalogTest(unittest.TestCase): self.comment = self.portal.doc1.restrictedTraverse( '++conversation++default/%s' % new_comment1_id) brains = self.catalog.searchResults(dict( - path={'query': - '/'.join(self.comment.getPhysicalPath())})) + path={ + 'query': + '/'.join(self.comment.getPhysicalPath()) + } + )) self.comment_brain = brains[0] def test_title(self): @@ -249,8 +298,11 @@ class CommentCatalogTest(unittest.TestCase): comment = self.portal.doc1.restrictedTraverse( '++conversation++default/%s' % cid) brains = self.catalog.searchResults(dict( - path={'query': - '/'.join(comment.getPhysicalPath())})) + path={ + 'query': + '/'.join(comment.getPhysicalPath()) + } + )) comment_brain = brains[0] self.assertEqual(comment_brain.Title, "Anonymous on Document 1") @@ -263,7 +315,7 @@ class CommentCatalogTest(unittest.TestCase): self.assertEqual(self.comment_brain.review_state, 'published') def test_creator(self): - self.assertEqual(self.comment_brain.Creator, 'Jim') + self.assertEqual(self.comment_brain.Creator, 'jim') def test_in_response_to(self): """Make sure in_response_to returns the title or id of the content @@ -279,8 +331,11 @@ class CommentCatalogTest(unittest.TestCase): # deleted. del self.conversation[self.comment_id] brains = self.catalog.searchResults(dict( - path={'query': - '/'.join(self.comment.getPhysicalPath())})) + path={ + 'query': + '/'.join(self.comment.getPhysicalPath()) + } + )) self.assertEqual(len(brains), 0) def test_remove_comments_when_content_object_is_removed(self): @@ -295,15 +350,21 @@ class CommentCatalogTest(unittest.TestCase): def test_move_comments_when_content_object_is_moved(self): # Create two folders and a content object with a comment - self.portal.invokeFactory(id='folder1', - title='Folder 1', - type_name='Folder') - self.portal.invokeFactory(id='folder2', - title='Folder 2', - type_name='Folder') - self.portal.folder1.invokeFactory(id='moveme', - title='Move Me', - type_name='Document') + self.portal.invokeFactory( + id='folder1', + title='Folder 1', + type_name='Folder' + ) + self.portal.invokeFactory( + id='folder2', + title='Folder 2', + type_name='Folder' + ) + self.portal.folder1.invokeFactory( + id='moveme', + title='Move Me', + type_name='Document' + ) conversation = IConversation(self.portal.folder1.moveme) comment = createObject('plone.Comment') comment_id = conversation.addComment(comment) @@ -316,21 +377,71 @@ class CommentCatalogTest(unittest.TestCase): # Make sure no old comment brains are brains = self.catalog.searchResults(dict( - portal_type="Discussion Item", - path={'query': '/'.join(self.portal.folder1.getPhysicalPath())} - )) - self.assertEquals(len(brains), 0) + portal_type="Discussion Item", + path={'query': '/'.join(self.portal.folder1.getPhysicalPath())} + )) + self.assertEqual(len(brains), 0) brains = self.catalog.searchResults(dict( - portal_type="Discussion Item", - path={ - 'query': '/'.join(self.portal.folder2.getPhysicalPath()) - } - )) - self.assertEquals(len(brains), 1) - self.assertEquals(brains[0].getPath(), - '/plone/folder2/moveme/++conversation++default/' + - str(comment_id)) + portal_type="Discussion Item", + path={ + 'query': '/'.join(self.portal.folder2.getPhysicalPath()) + } + )) + self.assertEqual(len(brains), 1) + self.assertEqual( + brains[0].getPath(), + '/plone/folder2/moveme/++conversation++default/' + + str(comment_id) + ) + + def test_move_upper_level_folder(self): + # create a folder with a nested structure + self.portal.invokeFactory(id='sourcefolder', + title='Source Folder', + type_name='Folder') + self.portal.sourcefolder.invokeFactory(id='moveme', + title='Move Me', + type_name='Folder') + self.portal.sourcefolder.moveme.invokeFactory(id='mydocument', + title='My Document', + type_name='Folder') + self.portal.invokeFactory(id='targetfolder', + title='Target Folder', + type_name='Folder') + + # create comment on my-document + conversation = IConversation( + self.portal.sourcefolder.moveme.mydocument + ) + comment = createObject('plone.Comment') + comment_id = conversation.addComment(comment) + + # We need to commit here so that _p_jar isn't None and move will work + transaction.savepoint(optimistic=True) + + # Move moveme from folder1 to folder2 + cp = self.portal.sourcefolder.manage_cutObjects(ids=('moveme',)) + self.portal.targetfolder.manage_pasteObjects(cp) + + # Make sure no old comment brains are left + brains = self.catalog.searchResults(dict( + portal_type="Discussion Item", + path={'query': '/plone/sourcefolder/moveme'} + )) + self.assertEqual(len(brains), 0) + + # make sure comments are correctly index on the target + brains = self.catalog.searchResults(dict( + portal_type="Discussion Item", + path={'query': '/plone/targetfolder/moveme'} + )) + self.assertEqual(len(brains), 1) + self.assertEqual( + brains[0].getPath(), + '/plone/targetfolder/moveme/mydocument/++conversation++default/' + + str(comment_id) + ) def test_update_comments_when_content_object_is_renamed(self): # We need to commit here so that _p_jar isn't None and move will work @@ -340,12 +451,17 @@ class CommentCatalogTest(unittest.TestCase): brains = self.catalog.searchResults( portal_type='Discussion Item') - self.assertEquals(len(brains), 1) - self.assertEquals(brains[0].getPath(), - '/plone/doc2/++conversation++default/' + - str(self.comment_id)) + self.assertEqual(len(brains), 1) + self.assertEqual( + brains[0].getPath(), + '/plone/doc2/++conversation++default/' + + str(self.comment_id) + ) def test_clear_and_rebuild_catalog(self): + brains = self.catalog.searchResults({'portal_type': 'Discussion Item'}) + self.assertTrue(brains) + # Clear and rebuild catalog self.catalog.clearFindAndRebuild() @@ -354,9 +470,11 @@ class CommentCatalogTest(unittest.TestCase): self.assertTrue(brains) comment_brain = brains[0] self.assertEqual(comment_brain.Title, u'Jim on Document 1') - self.assertEqual(comment_brain.getPath(), + self.assertEqual( + comment_brain.getPath(), '/plone/doc1/++conversation++default/' + - str(self.comment_id)) + str(self.comment_id) + ) def test_clear_and_rebuild_catalog_for_nested_comments(self): @@ -414,30 +532,6 @@ class CommentCatalogTest(unittest.TestCase): self.assertTrue(brains) self.assertEqual(len(brains), 6) - def test_collection(self): - if COLLECTION_TYPE == "Topic": - self.portal.invokeFactory('Topic', id='topic') - topic = self.portal.topic - crit = topic.addCriterion('Type', 'ATSimpleStringCriterion') - crit.setValue('Comment') - query = topic.buildQuery() - - self.assertEqual(len(query), 1) - self.assertEqual(query['Type'], 'Comment') - self.assertEqual(len(topic.queryCatalog()), 1) - else: - self.portal.invokeFactory('Collection', id='collection') - collection = self.portal.collection - collection.query = [{ - 'i': 'Type', - 'o': 'plone.app.querystring.operation.string.is', - 'v': 'Comment', - }] - - self.assertEqual(len(collection.results()), 1) - self.assertEqual(collection.results()[0].text, 'Comment text') - self.assertEqual(collection.results()[0].creator, 'Jim') - class NoConversationCatalogTest(unittest.TestCase): @@ -455,10 +549,12 @@ class NoConversationCatalogTest(unittest.TestCase): conversation = IConversation(self.portal.doc1) brains = self.catalog.searchResults(dict( - path={'query': - '/'.join(self.portal.doc1.getPhysicalPath())}, - portal_type="Document" - )) + path={ + 'query': + '/'.join(self.portal.doc1.getPhysicalPath()) + }, + portal_type="Document" + )) self.conversation = conversation self.brains = brains self.doc1_brain = brains[0] @@ -468,9 +564,7 @@ class NoConversationCatalogTest(unittest.TestCase): self.assertEqual(self.doc1_brain.total_comments, 0) # Make sure no conversation has been created - self.assertTrue('plone.app.discussion:conversation' not in - IAnnotations(self.portal.doc1)) - - -def test_suite(): - return unittest.defaultTestLoader.loadTestsFromName(__name__) + self.assertTrue( + 'plone.app.discussion:conversation' not in + IAnnotations(self.portal.doc1) + ) diff --git a/plone/app/discussion/tests/test_comment.py b/plone/app/discussion/tests/test_comment.py index 309086a..5277f5f 100644 --- a/plone/app/discussion/tests/test_comment.py +++ b/plone/app/discussion/tests/test_comment.py @@ -34,9 +34,11 @@ class CommentTest(unittest.TestCase): self.request = self.layer['request'] setRoles(self.portal, TEST_USER_ID, ['Manager']) - self.portal.invokeFactory(id='doc1', - title='Document 1', - type_name='Document') + self.portal.invokeFactory( + id='doc1', + title='Document 1', + type_name='Document' + ) self.catalog = getToolByName(self.portal, 'portal_catalog') self.document_brain = self.catalog.searchResults( portal_type='Document')[0] @@ -74,7 +76,8 @@ class CommentTest(unittest.TestCase): comment1 = createObject('plone.Comment') conversation.addComment(comment1) comment_brain = self.catalog.searchResults( - portal_type='Discussion Item')[0] + portal_type='Discussion Item' + )[0] self.assertTrue(comment_brain.UID) def test_uid_is_unique(self): @@ -84,7 +87,8 @@ class CommentTest(unittest.TestCase): comment2 = createObject('plone.Comment') conversation.addComment(comment2) brains = self.catalog.searchResults( - portal_type='Discussion Item') + portal_type='Discussion Item' + ) self.assertNotEqual(brains[0].UID, brains[1].UID) def test_comment_uid_differs_from_content_uid(self): @@ -92,13 +96,14 @@ class CommentTest(unittest.TestCase): comment1 = createObject('plone.Comment') conversation.addComment(comment1) comment_brain = self.catalog.searchResults( - portal_type='Discussion Item')[0] + portal_type='Discussion Item' + )[0] self.assertNotEqual(self.document_brain.UID, comment_brain.UID) def test_title(self): conversation = IConversation(self.portal.doc1) comment1 = createObject('plone.Comment') - comment1.creator = "Jim Fulton" + comment1.author_name = "Jim Fulton" conversation.addComment(comment1) self.assertEqual("Jim Fulton on Document 1", comment1.Title()) @@ -109,63 +114,120 @@ class CommentTest(unittest.TestCase): self.assertEqual("Anonymous on Document 1", comment1.Title()) def test_title_special_characters(self): - self.portal.invokeFactory(id='doc_sp_chars', - title=u'Document äüö', - type_name='Document') + self.portal.invokeFactory( + id='doc_sp_chars', + title=u'Document äüö', + type_name='Document' + ) conversation = IConversation(self.portal.doc_sp_chars) comment1 = createObject('plone.Comment') - comment1.creator = u"Tarek Ziadé" + comment1.author_name = u"Tarek Ziadé" conversation.addComment(comment1) self.assertEqual(u"Tarek Ziadé on Document äüö", comment1.Title()) + def test_title_special_characters_utf8(self): + self.portal.invokeFactory( + id='doc_sp_chars_utf8', + title='Document ëïû', + type_name='Document' + ) + conversation = IConversation(self.portal.doc_sp_chars_utf8) + comment1 = createObject('plone.Comment') + comment1.author_name = "Hüüb Bôûmä" + conversation.addComment(comment1) + self.assertEqual(u"Hüüb Bôûmä on Document ëïû", comment1.Title()) + def test_creator(self): comment1 = createObject('plone.Comment') - comment1.creator = "Jim" - self.assertEqual("Jim", comment1.Creator()) + comment1.creator = "jim" + self.assertEqual("jim", comment1.Creator()) + + def test_creator_author_name(self): + comment1 = createObject('plone.Comment') + comment1.author_name = "joey" + self.assertEqual("joey", comment1.Creator()) + + def test_owner(self): + comment1 = createObject('plone.Comment') + self.assertEqual((['plone', 'acl_users'], TEST_USER_ID), + comment1.getOwnerTuple()) def test_type(self): comment1 = createObject('plone.Comment') self.assertEqual(comment1.Type(), 'Comment') + def test_mime_type(self): + comment1 = createObject('plone.Comment') + self.assertEqual(comment1.mime_type, 'text/plain') + def test_getText(self): comment1 = createObject('plone.Comment') comment1.text = """First paragraph Second paragraph""" - self.assertEqual(comment1.getText(), - "

    First paragraph

    Second paragraph

    ") + self.assertEqual( + comment1.getText(), + "

    First paragraph

    Second paragraph

    " + ) def test_getText_escapes_HTML(self): comment1 = createObject('plone.Comment') comment1.text = """Got HTML?""" - self.assertEqual(comment1.getText(), - "

    <b>Got HTML?</b>

    ") + self.assertEqual( + comment1.getText(), + "

    <b>Got HTML?</b>

    " + ) def test_getText_with_non_ascii_characters(self): comment1 = createObject('plone.Comment') comment1.text = u"""Umlaute sind ä, ö und ü.""" - self.assertEqual(comment1.getText(), - '

    Umlaute sind \xc3\xa4, \xc3\xb6 und \xc3\xbc.

    ') + self.assertEqual( + comment1.getText(), + '

    Umlaute sind \xc3\xa4, \xc3\xb6 und \xc3\xbc.

    ' + ) def test_getText_doesnt_link(self): comment1 = createObject('plone.Comment') comment1.text = "Go to http://www.plone.org" - self.assertEqual(comment1.getText(), - "

    Go to http://www.plone.org

    ") + self.assertEqual( + comment1.getText(), + "

    Go to http://www.plone.org

    " + ) def test_getText_uses_comment_mime_type(self): comment1 = createObject('plone.Comment') comment1.text = "Go to http://www.plone.org" comment1.mime_type = 'text/x-web-intelligent' - self.assertEqual(comment1.getText(), + self.assertEqual( + comment1.getText(), 'Go to http://www.plone.org') + 'rel="nofollow">http://www.plone.org' + ) + + def test_getText_uses_comment_mime_type_html(self): + comment1 = createObject('plone.Comment') + comment1.text = 'Go to plone.org' + comment1.mime_type = 'text/html' + self.assertEqual( + comment1.getText(), + 'Go to plone.org' + ) def test_getText_w_custom_targetMimetype(self): comment1 = createObject('plone.Comment') comment1.text = 'para' self.assertEqual(comment1.getText(targetMimetype='text/plain'), 'para') + def test_getText_invalid_transformation_raises_error(self): + conversation = IConversation(self.portal.doc1) + comment1 = createObject('plone.Comment') + comment1.mime_type = 'text/x-html-safe' + comment1.text = 'para' + conversation.addComment(comment1) + self.assertEqual( + comment1.getText(targetMimetype='text/html'), + 'para') + def test_traversal(self): # make sure comments are traversable, have an id, absolute_url and # physical path @@ -181,19 +243,28 @@ class CommentTest(unittest.TestCase): '++conversation++default/%s' % new_comment1_id) self.assertTrue(IComment.providedBy(comment)) - self.assertEqual(('', 'plone', 'doc1', '++conversation++default', - str(new_comment1_id)), comment.getPhysicalPath()) - self.assertEqual('http://nohost/plone/doc1/++conversation++default/' + - str(new_comment1_id), comment.absolute_url()) + self.assertEqual( + ( + '', 'plone', 'doc1', '++conversation++default', + str(new_comment1_id) + ), + comment.getPhysicalPath() + ) + self.assertEqual( + 'http://nohost/plone/doc1/++conversation++default/' + + str(new_comment1_id), comment.absolute_url() + ) def test_view_blob_types(self): """ Make sure that traversal to images/files redirects to the version of the url with a /view in it. """ - self.portal.invokeFactory(id='image1', - title='Image', - type_name='Image') + self.portal.invokeFactory( + id='image1', + title='Image', + type_name='Image' + ) conversation = IConversation(self.portal.image1) comment1 = createObject('plone.Comment') @@ -225,147 +296,26 @@ class CommentTest(unittest.TestCase): self.assertEqual(('comment_review_workflow',), chain) # Ensure the initial state was entered and recorded - self.assertEqual(1, - len(comment.workflow_history['comment_review_workflow'])) - self.assertEqual(None, - comment.workflow_history['comment_review_workflow'][0]['action']) - self.assertEqual('pending', - self.portal.portal_workflow.getInfoFor(comment, 'review_state')) + self.assertEqual( + 1, + len(comment.workflow_history['comment_review_workflow']) + ) + self.assertEqual( + None, + comment.workflow_history['comment_review_workflow'][0]['action'] + ) + self.assertEqual( + 'pending', + self.portal.portal_workflow.getInfoFor(comment, 'review_state') + ) def test_fti(self): # test that we can look up an FTI for Discussion Item - self.assertTrue("Discussion Item" in - self.portal.portal_types.objectIds()) - - comment1 = createObject('plone.Comment') - - fti = self.portal.portal_types.getTypeInfo(comment1) - self.assertEqual('Discussion Item', fti.getTypeInfo(comment1).getId()) - - def test_view(self): - # make sure that the comment view is there and redirects to the right - # URL - - # Create a conversation. In this case we doesn't assign it to an - # object, as we just want to check the Conversation object API. - conversation = IConversation(self.portal.doc1) - - # Create a comment - comment1 = createObject('plone.Comment') - comment1.text = 'Comment text' - - # Add comment to the conversation - new_comment1_id = conversation.addComment(comment1) - - comment = self.portal.doc1.restrictedTraverse( - '++conversation++default/%s' % new_comment1_id) - - # make sure the view is there - self.assertTrue(getMultiAdapter((comment, self.request), - name='view')) - - # make sure the HTTP redirect (status code 302) works when a comment - # is called directly - view = View(comment, self.request) - View.__call__(view) - self.assertEqual(self.request.response.status, 302) - - def test_workflow(self): - """Basic test for the 'comment_review_workflow' - """ - self.portal.portal_workflow.setChainForPortalTypes( - ('Discussion Item',), - ('comment_review_workflow,')) - - conversation = IConversation(self.portal.doc1) - comment1 = createObject('plone.Comment') - new_comment1_id = conversation.addComment(comment1) - - comment = conversation[new_comment1_id] - - # Make sure comments use the 'comment_review_workflow' - chain = self.portal.portal_workflow.getChainFor(comment) - self.assertEqual(('comment_review_workflow',), chain) - - # Ensure the initial state was entered and recorded - self.assertEqual(1, - len(comment.workflow_history['comment_review_workflow'])) - self.assertEqual(None, - comment.workflow_history['comment_review_workflow'][0]['action']) - self.assertEqual('pending', - self.portal.portal_workflow.getInfoFor(comment, 'review_state')) - - def test_fti(self): - # test that we can look up an FTI for Discussion Item - - self.assertTrue("Discussion Item" in - self.portal.portal_types.objectIds()) - - comment1 = createObject('plone.Comment') - - fti = self.portal.portal_types.getTypeInfo(comment1) - self.assertEqual('Discussion Item', fti.getTypeInfo(comment1).getId()) - - def test_view(self): - # make sure that the comment view is there and redirects to the right - # URL - - # Create a conversation. In this case we doesn't assign it to an - # object, as we just want to check the Conversation object API. - conversation = IConversation(self.portal.doc1) - - # Create a comment - comment1 = createObject('plone.Comment') - comment1.text = 'Comment text' - - # Add comment to the conversation - new_comment1_id = conversation.addComment(comment1) - - comment = self.portal.doc1.restrictedTraverse( - '++conversation++default/%s' % new_comment1_id) - - # make sure the view is there - self.assertTrue(getMultiAdapter((comment, self.request), - name='view')) - - # make sure the HTTP redirect (status code 302) works when a comment - # is called directly - view = View(comment, self.request) - View.__call__(view) - - - - def test_workflow(self): - """Basic test for the 'comment_review_workflow' - """ - self.portal.portal_workflow.setChainForPortalTypes( - ('Discussion Item',), - ('comment_review_workflow,')) - - conversation = IConversation(self.portal.doc1) - comment1 = createObject('plone.Comment') - new_comment1_id = conversation.addComment(comment1) - - comment = conversation[new_comment1_id] - - # Make sure comments use the 'comment_review_workflow' - chain = self.portal.portal_workflow.getChainFor(comment) - self.assertEqual(('comment_review_workflow',), chain) - - # Ensure the initial state was entered and recorded - self.assertEqual(1, - len(comment.workflow_history['comment_review_workflow'])) - self.assertEqual(None, - comment.workflow_history['comment_review_workflow'][0]['action']) - self.assertEqual('pending', - self.portal.portal_workflow.getInfoFor(comment, 'review_state')) - - def test_fti(self): - # test that we can look up an FTI for Discussion Item - - self.assertTrue("Discussion Item" in - self.portal.portal_types.objectIds()) + self.assertTrue( + "Discussion Item" in + self.portal.portal_types.objectIds() + ) comment1 = createObject('plone.Comment') @@ -410,9 +360,11 @@ class RepliesTest(unittest.TestCase): def setUp(self): self.portal = self.layer['portal'] setRoles(self.portal, TEST_USER_ID, ['Manager']) - self.portal.invokeFactory(id='doc1', - title='Document 1', - type_name='Document') + self.portal.invokeFactory( + id='doc1', + title='Document 1', + type_name='Document' + ) def test_add_comment(self): # Add comments to a CommentReplies adapter @@ -507,7 +459,8 @@ class RepliesTest(unittest.TestCase): replies = IReplies(comment) new_re_id = replies.addComment(re_comment) re_comment = self.portal.doc1.restrictedTraverse( - '++conversation++default/%s' % new_re_id) + '++conversation++default/%s' % new_re_id + ) # Add a reply to the reply re_re_comment = createObject('plone.Comment') @@ -515,7 +468,8 @@ class RepliesTest(unittest.TestCase): replies = IReplies(re_comment) new_re_re_id = replies.addComment(re_re_comment) re_re_comment = self.portal.doc1.restrictedTraverse( - '++conversation++default/%s' % new_re_re_id) + '++conversation++default/%s' % new_re_re_id + ) # Add a reply to the replies reply re_re_re_comment = createObject('plone.Comment') @@ -525,25 +479,44 @@ class RepliesTest(unittest.TestCase): re_re_re_comment = self.portal.doc1.restrictedTraverse( '++conversation++default/%s' % new_re_re_re_id) - self.assertEqual(('', 'plone', 'doc1', '++conversation++default', - str(new_id)), comment.getPhysicalPath()) - self.assertEqual('http://nohost/plone/doc1/++conversation++default/' + - str(new_id), comment.absolute_url()) - self.assertEqual(('', 'plone', 'doc1', '++conversation++default', - str(new_re_id)), re_comment.getPhysicalPath()) - self.assertEqual('http://nohost/plone/doc1/++conversation++default/' + - str(new_re_id), re_comment.absolute_url()) - self.assertEqual(('', 'plone', 'doc1', '++conversation++default', - str(new_re_re_id)), re_re_comment.getPhysicalPath()) - self.assertEqual('http://nohost/plone/doc1/++conversation++default/' + - str(new_re_re_id), re_re_comment.absolute_url()) - self.assertEqual(('', 'plone', 'doc1', '++conversation++default', - str(new_re_re_re_id)), - re_re_re_comment.getPhysicalPath()) - self.assertEqual('http://nohost/plone/doc1/++conversation++default/' + - str(new_re_re_re_id), - re_re_re_comment.absolute_url()) - - -def test_suite(): - return unittest.defaultTestLoader.loadTestsFromName(__name__) + self.assertEqual( + ('', 'plone', 'doc1', '++conversation++default', str(new_id)), + comment.getPhysicalPath() + ) + self.assertEqual( + 'http://nohost/plone/doc1/++conversation++default/' + + str(new_id), comment.absolute_url() + ) + self.assertEqual( + ('', 'plone', 'doc1', '++conversation++default', str(new_re_id)), + re_comment.getPhysicalPath() + ) + self.assertEqual( + 'http://nohost/plone/doc1/++conversation++default/' + + str(new_re_id), + re_comment.absolute_url() + ) + self.assertEqual( + ( + '', 'plone', 'doc1', '++conversation++default', + str(new_re_re_id) + ), + re_re_comment.getPhysicalPath() + ) + self.assertEqual( + 'http://nohost/plone/doc1/++conversation++default/' + + str(new_re_re_id), + re_re_comment.absolute_url() + ) + self.assertEqual( + ( + '', 'plone', 'doc1', '++conversation++default', + str(new_re_re_re_id) + ), + re_re_re_comment.getPhysicalPath() + ) + self.assertEqual( + 'http://nohost/plone/doc1/++conversation++default/' + + str(new_re_re_re_id), + re_re_re_comment.absolute_url() + ) diff --git a/plone/app/discussion/tests/test_comments_viewlet.py b/plone/app/discussion/tests/test_comments_viewlet.py index 1b97b92..0aff711 100644 --- a/plone/app/discussion/tests/test_comments_viewlet.py +++ b/plone/app/discussion/tests/test_comments_viewlet.py @@ -33,11 +33,14 @@ from plone.app.testing import login from plone.app.discussion.browser.comments import CommentsViewlet from plone.app.discussion.browser.comments import CommentForm +from plone.app.discussion.browser.comment import EditCommentForm from plone.app.discussion import interfaces from plone.app.discussion.interfaces import IConversation -from plone.app.discussion.testing import \ +from plone.app.discussion.testing import ( PLONE_APP_DISCUSSION_INTEGRATION_TESTING +) from plone.app.discussion.interfaces import IDiscussionSettings +from plone.app.discussion.interfaces import IConversation class TestCommentForm(unittest.TestCase): @@ -52,14 +55,15 @@ class TestCommentForm(unittest.TestCase): self.folder = self.portal['test-folder'] interface.alsoProvides( - self.portal.REQUEST, interfaces.IDiscussionLayer) + self.portal.REQUEST, + interfaces.IDiscussionLayer, + ) typetool = self.portal.portal_types typetool.constructContent('Document', self.portal, 'doc1') - self.discussionTool = getToolByName(self.portal, - 'portal_discussion', - None) - self.discussionTool.overrideDiscussionFor(self.portal.doc1, False) + wftool = getToolByName(self.portal, "portal_workflow") + wftool.doActionFor(self.portal.doc1, action='publish') + self.portal.doc1.allow_discussion = True self.membershipTool = getToolByName(self.folder, 'portal_membership') self.memberdata = self.portal.portal_memberdata self.context = getattr(self.portal, 'doc1') @@ -74,7 +78,7 @@ class TestCommentForm(unittest.TestCase): """ # Allow discussion - self.discussionTool.overrideDiscussionFor(self.portal.doc1, True) + self.portal.doc1.allow_discussion = True self.viewlet = CommentsViewlet(self.context, self.request, None, None) def make_request(form={}): @@ -84,16 +88,20 @@ class TestCommentForm(unittest.TestCase): alsoProvides(request, IAttributeAnnotatable) return request - provideAdapter(adapts=(Interface, IBrowserRequest), - provides=Interface, - factory=CommentForm, - name=u"comment-form") + provideAdapter( + adapts=(Interface, IBrowserRequest), + provides=Interface, + factory=CommentForm, + name=u"comment-form" + ) # The form should return an error if the comment text field is empty request = make_request(form={}) - commentForm = getMultiAdapter((self.context, request), - name=u"comment-form") + commentForm = getMultiAdapter( + (self.context, request), + name=u"comment-form" + ) commentForm.update() data, errors = commentForm.extractData() # pylint: disable-msg=W0612 @@ -104,16 +112,162 @@ class TestCommentForm(unittest.TestCase): # filled out request = make_request(form={'form.widgets.text': u'bar'}) - commentForm = getMultiAdapter((self.context, request), - name=u"comment-form") + commentForm = getMultiAdapter( + (self.context, request), + name=u"comment-form" + ) commentForm.update() data, errors = commentForm.extractData() # pylint: disable-msg=W0612 self.assertEqual(len(errors), 0) self.assertFalse(commentForm.handleComment(commentForm, "foo")) + comments = IConversation(commentForm.context).getComments() + comments = [comment for comment in comments] # consume itertor + self.assertEqual(len(comments), 1) + + for comment in comments: + self.assertEqual(comment.text, u"bar") + self.assertEqual(comment.creator, "test_user_1_") + self.assertEqual(comment.getOwner().getUserName(), "test-user") + local_roles = comment.get_local_roles() + self.assertEqual(len(local_roles), 1) + userid, roles = local_roles[0] + self.assertEqual(userid, 'test_user_1_') + self.assertEqual(len(roles), 1) + self.assertEqual(roles[0], 'Owner') + + def test_edit_comment(self): + """Edit a comment as logged-in user. + """ + + # Allow discussion + self.portal.doc1.allow_discussion = True + self.viewlet = CommentsViewlet(self.context, self.request, None, None) + + def make_request(form={}): + request = TestRequest() + request.form.update(form) + alsoProvides(request, IFormLayer) + alsoProvides(request, IAttributeAnnotatable) + return request + + provideAdapter( + adapts=(Interface, IBrowserRequest), + provides=Interface, + factory=CommentForm, + name=u"comment-form" + ) + + provideAdapter( + adapts=(Interface, IBrowserRequest), + provides=Interface, + factory=EditCommentForm, + name=u"edit-comment-form" + ) + + # The form is submitted successfully, if the required text field is + # filled out + request = make_request(form={'form.widgets.text': u'bar'}) + + commentForm = getMultiAdapter( + (self.context, request), + name=u"comment-form" + ) + commentForm.update() + data, errors = commentForm.extractData() # pylint: disable-msg=W0612 + + self.assertEqual(len(errors), 0) + self.assertFalse(commentForm.handleComment(commentForm, "foo")) + + # Edit the last comment + conversation = IConversation(self.context) + comment = [x for x in conversation.getComments()][-1] + request = make_request(form={'form.widgets.text': u'foobar'}) + editForm = getMultiAdapter( + (comment, request), + name=u"edit-comment-form" + ) + editForm.update() + data, errors = editForm.extractData() # pylint: disable-msg=W0612 + + self.assertEqual(len(errors), 0) + self.assertFalse(editForm.handleComment(editForm, "foo")) + comment = [x for x in conversation.getComments()][-1] + self.assertEquals(comment.text, u"foobar") + + comments = IConversation(commentForm.context).getComments() + comments = [comment for comment in comments] # consume itertor + self.assertEqual(len(comments), 1) + + for comment in comments: + self.assertEqual(comment.text, u"foobar") + self.assertEqual(comment.creator, "test_user_1_") + + self.assertEqual(comment.getOwner().getUserName(), "test-user") + local_roles = comment.get_local_roles() + self.assertEqual(len(local_roles), 1) + userid, roles = local_roles[0] + self.assertEqual(userid, 'test_user_1_') + self.assertEqual(len(roles), 1) + self.assertEqual(roles[0], 'Owner') + + def test_delete_comment(self): + """Delete a comment as logged-in user. + """ + + # Allow discussion + self.portal.doc1.allow_discussion = True + self.viewlet = CommentsViewlet(self.context, self.request, None, None) + + def make_request(form={}): + request = TestRequest() + request.form.update(form) + alsoProvides(request, IFormLayer) + alsoProvides(request, IAttributeAnnotatable) + return request + + provideAdapter( + adapts=(Interface, IBrowserRequest), + provides=Interface, + factory=CommentForm, + name=u"comment-form" + ) + + # The form is submitted successfully, if the required text field is + # filled out + form_request = make_request(form={'form.widgets.text': u'bar'}) + + commentForm = getMultiAdapter( + (self.context, form_request), + name=u"comment-form" + ) + + commentForm.update() + data, errors = commentForm.extractData() # pylint: disable-msg=W0612 + self.assertEqual(len(errors), 0) + self.assertFalse(commentForm.handleComment(commentForm, "foo")) + + # Delete the last comment + conversation = IConversation(self.context) + comment = [x for x in conversation.getComments()][-1] + deleteView = getMultiAdapter( + (comment, self.request), + name=u"moderate-delete-comment" + ) + # try to delete last comment without "Delete comments" permission + setRoles(self.portal, TEST_USER_ID, ['Member']) + self.assertRaises(Unauthorized, comment.restrictedTraverse, "@@moderate-delete-comment") + deleteView() + self.assertEqual(1, len([x for x in conversation.getComments()])) + # try to delete last comment with "Delete comments" permission + setRoles(self.portal, TEST_USER_ID, ['Reviewer']) + deleteView() + self.assertEqual(0, len([x for x in conversation.getComments()])) + setRoles(self.portal, TEST_USER_ID, ['Manager']) + def test_add_anonymous_comment(self): - self.discussionTool.overrideDiscussionFor(self.portal.doc1, True) + self.portal.doc1.allow_discussion = True self.viewlet = CommentsViewlet(self.context, self.request, None, None) @@ -137,22 +291,39 @@ class TestCommentForm(unittest.TestCase): name=u"comment-form") # Post an anonymous comment and provide a name - request = make_request(form={'form.widgets.name': u'john doe', - 'form.widgets.text': u'bar'}) + request = make_request(form={ + 'form.widgets.name': u'john doe', + 'form.widgets.text': u'bar' + }) - commentForm = getMultiAdapter((self.context, request), - name=u"comment-form") + commentForm = getMultiAdapter( + (self.context, request), + name=u"comment-form" + ) commentForm.update() data, errors = commentForm.extractData() # pylint: disable-msg=W0612 self.assertEqual(len(errors), 0) self.assertFalse(commentForm.handleComment(commentForm, "action")) + comments = IConversation(commentForm.context).getComments() + comments = [comment for comment in comments] # consume itertor + self.assertEqual(len(comments), 1) + + for comment in IConversation(commentForm.context).getComments(): + self.assertEqual(comment.text, u"bar") + self.assertIsNone(comment.creator) + roles = comment.get_local_roles() + self.assertEqual(len(roles), 0) + def test_can_not_add_comments_if_discussion_is_not_allowed(self): """Make sure that comments can't be posted if discussion is disabled. """ - # Discussion is disabled by default + # Disable discussion + registry = queryUtility(IRegistry) + settings = registry.forInterface(IDiscussionSettings) + settings.globally_enabled = False def make_request(form={}): request = TestRequest() @@ -168,14 +339,17 @@ class TestCommentForm(unittest.TestCase): request = make_request(form={'form.widgets.text': u'bar'}) - commentForm = getMultiAdapter((self.context, request), - name=u"comment-form") + commentForm = getMultiAdapter( + (self.context, request), + name=u"comment-form" + ) commentForm.update() data, errors = commentForm.extractData() # pylint: disable-msg=W0612 # No form errors, but raise unauthorized because discussion is not # allowed self.assertEqual(len(errors), 0) + self.assertRaises(Unauthorized, commentForm.handleComment, commentForm, @@ -210,10 +384,12 @@ class TestCommentForm(unittest.TestCase): data, errors = commentForm.extractData() # pylint: disable-msg=W0612 self.assertEqual(len(errors), 0) - self.assertRaises(Unauthorized, - commentForm.handleComment, - commentForm, - "foo") + self.assertRaises( + Unauthorized, + commentForm.handleComment, + commentForm, + "foo" + ) class TestCommentsViewlet(unittest.TestCase): @@ -227,16 +403,15 @@ class TestCommentsViewlet(unittest.TestCase): self.portal.invokeFactory('Folder', 'test-folder') self.folder = self.portal['test-folder'] interface.alsoProvides( - self.request, interfaces.IDiscussionLayer) + self.request, + interfaces.IDiscussionLayer + ) self.workflowTool = getToolByName(self.portal, 'portal_workflow') self.workflowTool.setDefaultChain('one_state_workflow') typetool = self.portal.portal_types typetool.constructContent('Document', self.portal, 'doc1') - self.portal_discussion = getToolByName(self.portal, - 'portal_discussion', - None) self.membershipTool = getToolByName(self.folder, 'portal_membership') self.memberdata = self.portal.portal_memberdata context = getattr(self.portal, 'doc1') @@ -286,8 +461,7 @@ class TestCommentsViewlet(unittest.TestCase): # By default, discussion is disabled self.assertFalse(self.viewlet.is_discussion_allowed()) # Enable discussion - portal_discussion = getToolByName(self.portal, 'portal_discussion') - portal_discussion.overrideDiscussionFor(self.portal.doc1, True) + self.portal.doc1.allow_discussion = True # Test if discussion has been enabled self.assertTrue(self.viewlet.is_discussion_allowed()) @@ -310,7 +484,8 @@ class TestCommentsViewlet(unittest.TestCase): self.viewlet.comment_transform_message(), "You can add a comment by filling out the form below. " + "Plain text formatting. Web and email addresses are transformed " + - "into clickable links.") + "into clickable links." + ) # Enable moderation workflow self.workflowTool.setChainForPortalTypes( @@ -346,6 +521,14 @@ class TestCommentsViewlet(unittest.TestCase): replies.next() self.assertRaises(StopIteration, replies.next) + def test_get_replies_on_non_annotatable_object(self): + context = self.portal.MailHost # the mail host is not annotatable + viewlet = CommentsViewlet(context, self.request, None, None) + replies = viewlet.get_replies() + self.assertEqual(len(tuple(replies)), 0) + replies = viewlet.get_replies() + self.assertRaises(StopIteration, replies.next) + def test_get_replies_with_workflow_actions(self): self.assertFalse(self.viewlet.get_replies(workflow_actions=True)) comment = createObject('plone.Comment') @@ -353,19 +536,26 @@ class TestCommentsViewlet(unittest.TestCase): conversation = IConversation(self.portal.doc1) c1 = conversation.addComment(comment) self.assertEqual( - len(tuple(self.viewlet.get_replies(workflow_actions=True))), 1) + len(tuple(self.viewlet.get_replies(workflow_actions=True))), + 1 + ) # Enable moderation workflow self.workflowTool.setChainForPortalTypes( ('Discussion Item',), - ('comment_review_workflow,')) + ('comment_review_workflow,') + ) # Check if workflow actions are available reply = self.viewlet.get_replies(workflow_actions=True).next() self.assertTrue('actions' in reply) - self.assertEqual(reply['actions'][0]['id'], - 'publish') - self.assertEqual(reply['actions'][0]['url'], + self.assertEqual( + reply['actions'][0]['id'], + 'publish' + ) + self.assertEqual( + reply['actions'][0]['url'], 'http://nohost/plone/doc1/++conversation++default/%s' % int(c1) + - '/content_status_modify?workflow_action=publish') + '/content_status_modify?workflow_action=publish' + ) def test_get_commenter_home_url(self): comment = createObject('plone.Comment') @@ -373,8 +563,10 @@ class TestCommentsViewlet(unittest.TestCase): IConversation(self.portal.doc1) portal_membership = getToolByName(self.portal, 'portal_membership') m = portal_membership.getAuthenticatedMember() - self.assertEqual(self.viewlet.get_commenter_home_url(m.getUserName()), - 'http://nohost/plone/author/test-user') + self.assertEqual( + self.viewlet.get_commenter_home_url(m.getUserName()), + 'http://nohost/plone/author/test-user' + ) def test_get_commenter_home_url_is_none(self): self.assertFalse(self.viewlet.get_commenter_home_url()) @@ -383,13 +575,19 @@ class TestCommentsViewlet(unittest.TestCase): # Add a user with a member image self.membershipTool.addMember('jim', 'Jim', ['Member'], []) - self.memberdata._setPortrait(Image(id='jim', - file=dummy.File(), - title=''), 'jim') - self.assertEqual(self.memberdata._getPortrait('jim').getId(), - 'jim') - self.assertEqual(self.memberdata._getPortrait('jim').meta_type, - 'Image') + self.memberdata._setPortrait(Image( + id='jim', + file=dummy.File(), + title='' + ), 'jim') + self.assertEqual( + self.memberdata._getPortrait('jim').getId(), + 'jim' + ) + self.assertEqual( + self.memberdata._getPortrait('jim').meta_type, + 'Image' + ) # Add a conversation with a comment conversation = IConversation(self.portal.doc1) @@ -404,12 +602,20 @@ class TestCommentsViewlet(unittest.TestCase): portrait_url = self.viewlet.get_commenter_portrait('jim') # Check if the correct member image URL is returned - self.assertEqual(portrait_url, - 'http://nohost/plone/portal_memberdata/portraits/jim') + self.assertEqual( + portrait_url, + 'http://nohost/plone/portal_memberdata/portraits/jim' + ) def test_get_commenter_portrait_is_none(self): - self.assertEqual(self.viewlet.get_commenter_portrait(), - 'defaultUser.gif') + + self.assertTrue( + self.viewlet.get_commenter_portrait() in ( + 'defaultUser.png', + 'defaultUser.gif', + ) + + ) def test_get_commenter_portrait_without_userimage(self): @@ -431,25 +637,32 @@ class TestCommentsViewlet(unittest.TestCase): # Check if the correct default member image URL is returned. # Note that Products.PlonePAS 4.0.5 and later have .png and # earlier versions have .gif. - self.assertTrue(portrait_url in - ('http://nohost/plone/defaultUser.png', - 'http://nohost/plone/defaultUser.gif')) + self.assertTrue( + portrait_url in ( + 'http://nohost/plone/defaultUser.png', + 'http://nohost/plone/defaultUser.gif' + ) + ) def test_anonymous_discussion_allowed(self): # Anonymous discussion is not allowed by default self.assertFalse(self.viewlet.anonymous_discussion_allowed()) # Allow anonymous discussion registry = queryUtility(IRegistry) - registry['plone.app.discussion.interfaces.IDiscussionSettings.' + - 'anonymous_comments'] = True + registry[ + 'plone.app.discussion.interfaces.IDiscussionSettings.' + + 'anonymous_comments' + ] = True # Test if anonymous discussion is allowed for the viewlet self.assertTrue(self.viewlet.anonymous_discussion_allowed()) def test_show_commenter_image(self): self.assertTrue(self.viewlet.show_commenter_image()) registry = queryUtility(IRegistry) - registry['plone.app.discussion.interfaces.IDiscussionSettings.' + - 'show_commenter_image'] = False + registry[ + 'plone.app.discussion.interfaces.IDiscussionSettings.' + + 'show_commenter_image' + ] = False self.assertFalse(self.viewlet.show_commenter_image()) def test_is_anonymous(self): @@ -459,8 +672,10 @@ class TestCommentsViewlet(unittest.TestCase): def test_login_action(self): self.viewlet.update() - self.assertEqual(self.viewlet.login_action(), - 'http://nohost/plone/login_form?came_from=http%3A//nohost') + self.assertEqual( + self.viewlet.login_action(), + 'http://nohost/plone/login_form?came_from=http%3A//nohost' + ) def test_format_time(self): python_time = datetime(2009, 02, 01, 23, 32, 03, 57) @@ -473,10 +688,8 @@ class TestCommentsViewlet(unittest.TestCase): # time of the local time given above. That way, the time for the # example below is correct within each time zone, independent of DST python_time = datetime( - *time.gmtime(time.mktime(python_time.timetuple()))[:7]) + *time.gmtime(time.mktime(python_time.timetuple()))[:7] + ) localized_time = self.viewlet.format_time(python_time) - self.assertEqual(localized_time, "Feb 01, 2009 11:32 PM") - - -def test_suite(): - return unittest.defaultTestLoader.loadTestsFromName(__name__) + self.assertTrue( + localized_time in ['Feb 01, 2009 11:32 PM', '2009-02-01 23:32']) diff --git a/plone/app/discussion/tests/test_contentrules.py b/plone/app/discussion/tests/test_contentrules.py new file mode 100644 index 0000000..16618e2 --- /dev/null +++ b/plone/app/discussion/tests/test_contentrules.py @@ -0,0 +1,151 @@ +# -*- coding: utf-8 -*- + +import unittest2 as unittest +from Testing import ZopeTestCase as ztc +from zope.component import createObject, getAdapter +from zope.event import notify +from plone.app.testing import TEST_USER_ID, setRoles + +from plone.contentrules.rule.interfaces import IRuleEventType +from plone.stringinterp.interfaces import IStringSubstitution + +from plone.app.discussion.interfaces import IConversation, IReplies +from plone.app.discussion.interfaces import ICommentAddedEvent +from plone.app.discussion.interfaces import ICommentRemovedEvent +from plone.app.discussion.interfaces import IReplyAddedEvent +from plone.app.discussion.interfaces import IReplyRemovedEvent + +from plone.app.discussion.testing import ( + PLONE_APP_DISCUSSION_INTEGRATION_TESTING, +) + +class CommentContentRulesTest(unittest.TestCase): + """ Test custom comments events + """ + layer = PLONE_APP_DISCUSSION_INTEGRATION_TESTING + + def setUp(self): + # Setup session manager + ztc.utils.setupCoreSessions(self.layer['app']) + + # Setup sandbox + self.portal = self.layer['portal'] + self.request = self.layer['request'] + + # Setup current user properties + member = self.portal.portal_membership.getMemberById(TEST_USER_ID) + member.setMemberProperties({ + 'fullname': 'X Manager', + 'email': 'xmanager@example.com' + }) + + setRoles(self.portal, TEST_USER_ID, ['Manager']) + name = self.portal.invokeFactory( + id='doc1', + title='Document 1', + type_name='Document') + + self.document = self.portal[name] + + comment = createObject('plone.Comment') + comment.text = "This is a comment" + comment.author_username = "jim" + comment.author_name = "Jim" + comment.author_email = "jim@example.com" + conversation = IConversation(self.document) + conversation.addComment(comment) + + + def testEventTypesMarked(self): + self.assertTrue(IRuleEventType.providedBy(ICommentAddedEvent)) + self.assertTrue(IRuleEventType.providedBy(ICommentRemovedEvent)) + self.assertTrue(IRuleEventType.providedBy(IReplyAddedEvent)) + self.assertTrue(IRuleEventType.providedBy(IReplyRemovedEvent)) + + def testCommentIdStringSubstitution(self): + comment_id = getAdapter(self.document, IStringSubstitution, + name=u"comment_id") + self.assertIsInstance(comment_id(), long) + + def testCommentTextStringSubstitution(self): + comment_text = getAdapter(self.document, IStringSubstitution, + name=u"comment_text") + self.assertEqual(comment_text(), u"This is a comment") + + def testCommentUserIdStringSubstitution(self): + comment_user_id = getAdapter(self.document, IStringSubstitution, + name=u"comment_user_id") + self.assertEqual(comment_user_id(), u"jim") + + def testCommentUserFullNameStringSubstitution(self): + comment_user_fullname = getAdapter(self.document, IStringSubstitution, + name=u"comment_user_fullname") + self.assertEqual(comment_user_fullname(), u"Jim") + + def testCommentUserEmailStringSubstitution(self): + comment_user_email = getAdapter(self.document, IStringSubstitution, + name=u"comment_user_email") + self.assertEqual(comment_user_email(), u"jim@example.com") + + +class ReplyContentRulesTest(unittest.TestCase): + """ Test custom comments events + """ + layer = PLONE_APP_DISCUSSION_INTEGRATION_TESTING + + def setUp(self): + # Setup session manager + ztc.utils.setupCoreSessions(self.layer['app']) + + # Setup sandbox + self.portal = self.layer['portal'] + self.request = self.layer['request'] + setRoles(self.portal, TEST_USER_ID, ['Manager']) + name = self.portal.invokeFactory( + id='doc1', + title='Document 1', + type_name='Document') + + self.document = self.portal[name] + conversation = IConversation(self.document) + replies = IReplies(conversation) + + comment = createObject('plone.Comment') + comment.text = 'This is a comment' + new_id = replies.addComment(comment) + comment = self.document.restrictedTraverse( + '++conversation++default/%s' % new_id) + + re_comment = createObject('plone.Comment') + re_comment.text = 'This is a reply' + re_comment.author_username = "julia" + re_comment.author_name = "Juliana" + re_comment.author_email = "julia@example.com" + + replies = IReplies(comment) + new_re_id = replies.addComment(re_comment) + + def testReplyIdStringSubstitution(self): + reply_id = getAdapter(self.document, IStringSubstitution, + name=u"comment_id") + self.assertIsInstance(reply_id(), long) + + def testReplyTextStringSubstitution(self): + reply_text = getAdapter(self.document, IStringSubstitution, + name=u"comment_text") + self.assertEqual(reply_text(), u"This is a reply") + + def testReplyUserIdStringSubstitution(self): + reply_user_id = getAdapter(self.document, IStringSubstitution, + name=u"comment_user_id") + self.assertEqual(reply_user_id(), u"julia") + + def testReplyUserFullNameStringSubstitution(self): + reply_user_fullname = getAdapter(self.document, IStringSubstitution, + name=u"comment_user_fullname") + self.assertEqual(reply_user_fullname(), u"Juliana") + + def testReplyUserEmailStringSubstitution(self): + reply_user_email = getAdapter(self.document, IStringSubstitution, + name=u"comment_user_email") + self.assertEqual(reply_user_email(), u"julia@example.com") diff --git a/plone/app/discussion/tests/test_controlpanel.py b/plone/app/discussion/tests/test_controlpanel.py index 91f6f15..8a2ba47 100644 --- a/plone/app/discussion/tests/test_controlpanel.py +++ b/plone/app/discussion/tests/test_controlpanel.py @@ -31,65 +31,116 @@ class RegistryTest(unittest.TestCase): self.assertTrue(registry.forInterface(IDiscussionSettings)) def test_discussion_controlpanel_view(self): - view = getMultiAdapter((self.portal, self.portal.REQUEST), - name="discussion-settings") + view = getMultiAdapter( + (self.portal, self.portal.REQUEST), + name="discussion-settings" + ) view = view.__of__(self.portal) self.assertTrue(view()) def test_discussion_in_controlpanel(self): # Check if discussion is in the control panel self.controlpanel = getToolByName(self.portal, "portal_controlpanel") - self.assertTrue('discussion' in [a.getAction(self)['id'] - for a in self.controlpanel.listActions()]) + self.assertTrue( + 'discussion' in [ + a.getAction(self)['id'] + for a in self.controlpanel.listActions() + ] + ) def test_globally_enabled(self): # Check globally_enabled record self.assertTrue('globally_enabled' in IDiscussionSettings) self.assertEqual( - self.registry['plone.app.discussion.interfaces.' + - 'IDiscussionSettings.globally_enabled'], - False) + self.registry[ + 'plone.app.discussion.interfaces.' + + 'IDiscussionSettings.globally_enabled' + ], + False + ) def test_anonymous_comments(self): # Check anonymous_comments record self.assertTrue('anonymous_comments' in IDiscussionSettings) - self.assertEqual(self.registry['plone.app.discussion.interfaces.' + - 'IDiscussionSettings.anonymous_comments'], False) + self.assertEqual( + self.registry[ + 'plone.app.discussion.interfaces.' + + 'IDiscussionSettings.anonymous_comments' + ], + False + ) def test_moderation_enabled(self): # Check globally_enabled record self.assertTrue('moderation_enabled' in IDiscussionSettings) + self.assertEqual( + self.registry[ + 'plone.app.discussion.interfaces.' + + 'IDiscussionSettings.moderation_enabled' + ], + False + ) + + def test_edit_comment_enabled(self): + # Check edit_comment_enabled record + self.assertTrue('edit_comment_enabled' in IDiscussionSettings) self.assertEqual( self.registry['plone.app.discussion.interfaces.' + - 'IDiscussionSettings.moderation_enabled'], + 'IDiscussionSettings.edit_comment_enabled'], + False) + + def test_edit_comment_enabled(self): + # Check edit_comment_enabled record + self.assertTrue('edit_comment_enabled' in IDiscussionSettings) + self.assertEqual( + self.registry['plone.app.discussion.interfaces.' + + 'IDiscussionSettings.edit_comment_enabled'], False) def test_text_transform(self): self.assertTrue('text_transform' in IDiscussionSettings) self.assertEqual( - self.registry['plone.app.discussion.interfaces.' + - 'IDiscussionSettings.text_transform'], - 'text/plain') + self.registry[ + 'plone.app.discussion.interfaces.' + + 'IDiscussionSettings.text_transform' + ], + 'text/plain' + ) def test_captcha(self): # Check globally_enabled record self.assertTrue('captcha' in IDiscussionSettings) - self.assertEqual(self.registry['plone.app.discussion.interfaces.' + - 'IDiscussionSettings.captcha'], - 'disabled') + self.assertEqual( + self.registry[ + 'plone.app.discussion.interfaces.' + + 'IDiscussionSettings.captcha' + ], + 'disabled' + ) def test_show_commenter_image(self): # Check show_commenter_image record self.assertTrue('show_commenter_image' in IDiscussionSettings) - self.assertEqual(self.registry['plone.app.discussion.interfaces.' + - 'IDiscussionSettings.show_commenter_image'], True) + self.assertEqual( + self.registry[ + 'plone.app.discussion.interfaces.' + + 'IDiscussionSettings.show_commenter_image' + ], + True + ) def test_moderator_notification_enabled(self): # Check show_commenter_image record - self.assertTrue('moderator_notification_enabled' in - IDiscussionSettings) - self.assertEqual(self.registry['plone.app.discussion.interfaces.' + - 'IDiscussionSettings.moderator_notification_enabled'], False) + self.assertTrue( + 'moderator_notification_enabled' in IDiscussionSettings + ) + self.assertEqual( + self.registry[ + 'plone.app.discussion.interfaces.' + + 'IDiscussionSettings.moderator_notification_enabled' + ], + False + ) #def test_user_notification_enabled(self): # # Check show_commenter_image record @@ -117,23 +168,32 @@ class ConfigurationChangedSubscriberTest(unittest.TestCase): changes. """ # By default the one_state_workflow without moderation is enabled - self.assertEqual(('one_state_workflow',), - self.portal.portal_workflow.getChainForPortalType( - 'Discussion Item')) + self.assertEqual( + ('one_state_workflow',), + self.portal.portal_workflow.getChainForPortalType( + 'Discussion Item' + ) + ) # Enable moderation in the discussion control panel self.settings.moderation_enabled = True # Make sure the comment_review_workflow with moderation enabled is # enabled - self.assertEqual(('comment_review_workflow',), - self.portal.portal_workflow.getChainForPortalType( - 'Discussion Item')) + self.assertEqual( + ('comment_review_workflow',), + self.portal.portal_workflow.getChainForPortalType( + 'Discussion Item' + ) + ) # And back self.settings.moderation_enabled = False - self.assertEqual(('one_state_workflow',), - self.portal.portal_workflow.getChainForPortalType( - 'Discussion Item')) + self.assertEqual( + ('one_state_workflow',), + self.portal.portal_workflow.getChainForPortalType( + 'Discussion Item' + ) + ) def test_change_workflow_in_types_control_panel(self): """Make sure the setting in the discussion control panel is changed @@ -146,7 +206,8 @@ class ConfigurationChangedSubscriberTest(unittest.TestCase): # Enable the 'comment_review_workflow' with moderation enabled self.portal.portal_workflow.setChainForPortalTypes( ('Discussion Item',), - ('comment_review_workflow',)) + ('comment_review_workflow',) + ) # Make sure the moderation_enabled settings has changed self.settings.moderation_enabled = True @@ -154,19 +215,17 @@ class ConfigurationChangedSubscriberTest(unittest.TestCase): # Enable the 'comment_review_workflow' with moderation enabled self.portal.portal_workflow.setChainForPortalTypes( ('Discussion Item',), - ('one_state_workflow',)) + ('one_state_workflow',) + ) self.settings.moderation_enabled = True # Enable a 'custom' discussion workflow self.portal.portal_workflow.setChainForPortalTypes( ('Discussion Item',), - ('intranet_workflow',)) + ('intranet_workflow',) + ) # Setting has not changed. A Custom workflow disables the # enable_moderation checkbox in the discussion control panel. The # setting itself remains unchanged. self.settings.moderation_enabled = True - - -def test_suite(): - return unittest.defaultTestLoader.loadTestsFromName(__name__) diff --git a/plone/app/discussion/tests/test_conversation.py b/plone/app/discussion/tests/test_conversation.py index a90b725..8400b05 100644 --- a/plone/app/discussion/tests/test_conversation.py +++ b/plone/app/discussion/tests/test_conversation.py @@ -15,8 +15,9 @@ from Products.CMFCore.utils import getToolByName from plone.app.testing import TEST_USER_ID, setRoles -from plone.app.discussion.testing import \ +from plone.app.discussion.testing import ( PLONE_APP_DISCUSSION_INTEGRATION_TESTING +) from plone.app.discussion import interfaces from plone.app.discussion.interfaces import IConversation @@ -24,6 +25,12 @@ from plone.app.discussion.interfaces import IComment from plone.app.discussion.interfaces import IReplies from plone.app.discussion.interfaces import IDiscussionSettings +try: + from plone.dexterity.interfaces import IDexterityContent + DEXTERITY = True +except: + DEXTERITY = False + class ConversationTest(unittest.TestCase): @@ -38,9 +45,11 @@ class ConversationTest(unittest.TestCase): typetool = self.portal.portal_types typetool.constructContent('Document', self.portal, 'doc1') self.typetool = typetool - self.portal_discussion = getToolByName(self.portal, - 'portal_discussion', - None) + self.portal_discussion = getToolByName( + self.portal, + 'portal_discussion', + None, + ) # Allow discussion registry = queryUtility(IRegistry) settings = registry.forInterface(IDiscussionSettings) @@ -62,14 +71,30 @@ class ConversationTest(unittest.TestCase): # Check that the conversation methods return the correct data self.assertTrue(isinstance(comment.comment_id, long)) self.assertTrue(IComment.providedBy(conversation[new_id])) - self.assertEqual(aq_base(conversation[new_id].__parent__), - aq_base(conversation)) + self.assertEqual( + aq_base(conversation[new_id].__parent__), + aq_base(conversation) + ) self.assertEqual(new_id, comment.comment_id) self.assertEqual(len(list(conversation.getComments())), 1) self.assertEqual(len(tuple(conversation.getThreads())), 1) self.assertEqual(conversation.total_comments, 1) - self.assertTrue(conversation.last_comment_date - datetime.utcnow() < - timedelta(seconds=1)) + self.assertTrue( + conversation.last_comment_date - datetime.utcnow() < + timedelta(seconds=1) + ) + + def test_private_comment(self): + conversation = IConversation(self.portal.doc1) + + comment = createObject('plone.Comment') + comment.author_username = "nobody" + conversation.addComment(comment) + comment.manage_permission("View", roles=tuple()) + self.assertEqual(0, conversation.total_comments) + self.assertEqual(None, conversation.last_comment_date) + self.assertEqual(["nobody"], list(conversation.commentators)) + self.assertEqual([], list(conversation.public_commentators)) def test_delete_comment(self): # Create a conversation. In this case we doesn't assign it to an @@ -151,10 +176,10 @@ class ConversationTest(unittest.TestCase): del conversation[new_id_1] - self.assertEqual( - [{'comment': comment2, 'depth': 0, 'id': new_id_2}, - {'comment': comment2_1, 'depth': 1, 'id': new_id_2_1}, - ], list(conversation.getThreads())) + self.assertEqual([ + {'comment': comment2, 'depth': 0, 'id': new_id_2}, + {'comment': comment2_1, 'depth': 1, 'id': new_id_2_1}, + ], list(conversation.getThreads())) def test_delete_comment_when_content_object_is_deleted(self): # Make sure all comments of a content object are deleted when the @@ -172,82 +197,16 @@ class ConversationTest(unittest.TestCase): self.assertEqual(len(tuple(conversation.getThreads())), 0) self.assertEqual(conversation.total_comments, 0) - def test_allow_discussion(self): - # This is not a real test! It's only there to understand the - # allow discussion attribute. Maybe we should remove this at - # some point. - - # 1) allow_discussion attribute: Every content object in Plone - # has a allow_discussion attribute. By default it is set to None. - - # Create a conversation. - IConversation(self.portal.doc1) - - # By default, discussion is disabled for all content types - portal_types = getToolByName(self.portal, 'portal_types') - for type in list(portal_types): - type_fti = getattr(portal_types, type) - if type not in BAD_TYPES: - if type != 'Discussion Item': - self.assertFalse(type_fti.allowDiscussion()) - - # By default, allow_discussion on newly created content objects is - # set to False - portal_discussion = getToolByName(self.portal, 'portal_discussion') - self.assertEqual(portal_discussion.isDiscussionAllowedFor( - self.portal.doc1), False) - self.assertEqual(self.portal.doc1.getTypeInfo().allowDiscussion(), - False) - - # The allow discussion flag is None by default - self.assertFalse(getattr(self.portal.doc1, 'allow_discussion', None)) - - # But isDiscussionAllowedFor, also checks if discussion is allowed on - # the content type. So we allow discussion on the Document content - # type and check if the Document object allows discussion now. - document_fti = getattr(portal_types, 'Document') - document_fti.manage_changeProperties(allow_discussion=True) - self.assertEqual(portal_discussion.isDiscussionAllowedFor( - self.portal.doc1), True) - self.assertEqual(self.portal.doc1.getTypeInfo().allowDiscussion(), - True) - - # We can also override the allow_discussion locally - self.portal_discussion.overrideDiscussionFor(self.portal.doc1, False) - # Check if the Document discussion is disabled - self.assertEqual(portal_discussion.isDiscussionAllowedFor( - self.portal.doc1), False) - # Check that the local allow_discussion flag is now explicitly set to - # False - self.assertEqual(getattr(self.portal.doc1, 'allow_discussion', None), - False) - - # Disallow discussion on the Document content type again - document_fti.manage_changeProperties(allow_discussion=False) - self.assertEqual(portal_discussion.isDiscussionAllowedFor( - self.portal.doc1), False) - self.assertEqual(self.portal.doc1.getTypeInfo().allowDiscussion(), - False) - - # Now we override allow_discussion again (True) for the Document - # content object - self.portal_discussion.overrideDiscussionFor(self.portal.doc1, True) - self.assertEqual(portal_discussion.isDiscussionAllowedFor( - self.portal.doc1), True) - self.assertEqual(getattr(self.portal.doc1, 'allow_discussion', None), - True) - def test_comments_enabled_on_doc_in_subfolder(self): typetool = self.portal.portal_types typetool.constructContent('Folder', self.portal, 'folder1') typetool.constructContent('Document', self.portal.folder1, 'doc2') folder = self.portal.folder1 - folder.allowDiscussion(False) - self.assertFalse(hasattr(aq_base(folder), 'allow_discussion')) - folder.allowDiscussion(True) + + folder.allow_discussion = True self.assertTrue(aq_base(folder).allow_discussion) - folder.allowDiscussion(False) + folder.allow_discussion = False self.assertFalse(aq_base(folder).allow_discussion) doc = self.portal.folder1.doc2 @@ -320,7 +279,8 @@ class ConversationTest(unittest.TestCase): # Create a conversation. conversation = self.portal.doc1.restrictedTraverse( - '@@conversation_view') + '@@conversation_view' + ) # The Document content type is disabled by default self.assertEqual(conversation.enabled(), False) @@ -342,74 +302,44 @@ class ConversationTest(unittest.TestCase): self.assertEqual(conversation.enabled(), False) def test_allow_discussion_on_folder(self): - # The enabled method should always return False for the folder - # itself. + # The ATContentTypes based allow_discussion method did not allow to + # allow discussion on a folder. The dexerity behavior shipped with + # plone.app.contenttypes does not have this restriction any longer. - # Create a folderp + # Create a folder self.typetool.constructContent('Folder', self.portal, 'f1') - f1 = self.portal.f1 + # Usually we don't create a conversation on a folder conversation = self.portal.f1.restrictedTraverse('@@conversation_view') # Allow discussion for the folder - self.portal_discussion.overrideDiscussionFor(f1, True) + self.portal.f1.allow_discussion = True # Allow discussion on Folder content type portal_types = getToolByName(self.portal, 'portal_types') document_fti = getattr(portal_types, 'Folder') document_fti.manage_changeProperties(allow_discussion=True) - # Always return False - self.assertFalse(conversation.enabled()) - - def test_is_discussion_allowed_for_folder(self): - # When a content item provides IFolderish from CMF and - # does not provide INonStructuralFolder from Plone, - # allow_discussion acts as an on/off flag for all items - # in that folder, overriding settings for any parent folders, - # and the for the FTI, but is overridden by child items and - # folders further down. - - # Create a folder - self.typetool.constructContent('Folder', self.portal, 'f1') - f1 = self.portal.f1 - - # Create a document inside the folder - self.typetool.constructContent('Document', f1, 'doc1') - doc1 = self.portal.f1.doc1 - doc1_conversation = doc1.restrictedTraverse('@@conversation_view') - - self.assertEqual(doc1_conversation.enabled(), False) - - # Allow commenting for the folder - self.portal_discussion.overrideDiscussionFor(f1, True) - - # Check if the content objects allows discussion - self.assertEqual(doc1_conversation.enabled(), True) - - # Turn commenting for the folder off - self.portal_discussion.overrideDiscussionFor(f1, False) - - # Check if content objects do not allow discussion anymore - self.assertEqual(doc1_conversation.enabled(), False) + self.assertTrue(conversation.enabled()) def test_is_discussion_allowed_on_content_object(self): # Allow discussion on a single content object # Create a conversation. conversation = self.portal.doc1.restrictedTraverse( - '@@conversation_view') + '@@conversation_view' + ) # Discussion is disallowed by default self.assertEqual(conversation.enabled(), False) # Allow discussion on content object - self.portal_discussion.overrideDiscussionFor(self.portal.doc1, True) + self.portal.doc1.allow_discussion = True # Check if discussion is now allowed on the content object self.assertEqual(conversation.enabled(), True) - self.portal_discussion.overrideDiscussionFor(self.portal.doc1, False) + self.portal.doc1.allow_discussion = False self.assertEqual(conversation.enabled(), False) def test_dict_operations(self): @@ -581,30 +511,42 @@ class ConversationTest(unittest.TestCase): new_comment3_id = conversation.addComment(comment3) # check if the latest comment is exactly one day old - self.assertTrue(conversation.last_comment_date < datetime.utcnow() - - timedelta(hours=23, minutes=59, seconds=59)) - self.assertTrue(conversation.last_comment_date > - datetime.utcnow() - timedelta(days=1, seconds=1)) + self.assertTrue( + conversation.last_comment_date < datetime.utcnow() - + timedelta(hours=23, minutes=59, seconds=59) + ) + self.assertTrue( + conversation.last_comment_date > + datetime.utcnow() - timedelta(days=1, seconds=1) + ) # remove the latest comment del conversation[new_comment3_id] # check if the latest comment has been updated # the latest comment should be exactly two days old - self.assertTrue(conversation.last_comment_date < datetime.utcnow() - - timedelta(days=1, hours=23, minutes=59, seconds=59)) - self.assertTrue(conversation.last_comment_date > datetime.utcnow() - - timedelta(days=2, seconds=1)) + self.assertTrue( + conversation.last_comment_date < datetime.utcnow() - + timedelta(days=1, hours=23, minutes=59, seconds=59) + ) + self.assertTrue( + conversation.last_comment_date > datetime.utcnow() - + timedelta(days=2, seconds=1) + ) # remove the latest comment again del conversation[new_comment2_id] # check if the latest comment has been updated # the latest comment should be exactly four days old - self.assertTrue(conversation.last_comment_date < datetime.utcnow() - - timedelta(days=3, hours=23, minutes=59, seconds=59)) - self.assertTrue(conversation.last_comment_date > datetime.utcnow() - - timedelta(days=4, seconds=2)) + self.assertTrue( + conversation.last_comment_date < datetime.utcnow() - + timedelta(days=3, hours=23, minutes=59, seconds=59) + ) + self.assertTrue( + conversation.last_comment_date > datetime.utcnow() - + timedelta(days=4, seconds=2) + ) def test_get_comments_full(self): pass @@ -667,14 +609,14 @@ class ConversationTest(unittest.TestCase): # Get threads - self.assertEqual( - [{'comment': comment1, 'depth': 0, 'id': new_id_1}, - {'comment': comment1_1, 'depth': 1, 'id': new_id_1_1}, - {'comment': comment1_1_1, 'depth': 2, 'id': new_id_1_1_1}, - {'comment': comment1_2, 'depth': 1, 'id': new_id_1_2}, - {'comment': comment2, 'depth': 0, 'id': new_id_2}, - {'comment': comment2_1, 'depth': 1, 'id': new_id_2_1}, - ], list(conversation.getThreads())) + self.assertEqual([ + {'comment': comment1, 'depth': 0, 'id': new_id_1}, + {'comment': comment1_1, 'depth': 1, 'id': new_id_1_1}, + {'comment': comment1_1_1, 'depth': 2, 'id': new_id_1_1_1}, + {'comment': comment1_2, 'depth': 1, 'id': new_id_1_2}, + {'comment': comment2, 'depth': 0, 'id': new_id_2}, + {'comment': comment2_1, 'depth': 1, 'id': new_id_2_1}, + ], list(conversation.getThreads())) def test_get_threads_batched(self): # TODO: test start, size, root and depth arguments to getThreads() @@ -685,13 +627,27 @@ class ConversationTest(unittest.TestCase): # make sure we can traverse to conversations and get a URL and path conversation = self.portal.doc1.restrictedTraverse( - '++conversation++default') + '++conversation++default' + ) self.assertTrue(IConversation.providedBy(conversation)) - self.assertEqual(('', 'plone', 'doc1', '++conversation++default'), - conversation.getPhysicalPath()) - self.assertEqual('http://nohost/plone/doc1/++conversation++default', - conversation.absolute_url()) + self.assertEqual( + ('', 'plone', 'doc1', '++conversation++default'), + conversation.getPhysicalPath() + ) + self.assertEqual( + 'http://nohost/plone/doc1/++conversation++default', + conversation.absolute_url() + ) + + def test_unconvertible_id(self): + # make sure the conversation view doesn't break when given comment id + # can't be converted to long + + conversation = self.portal.doc1.restrictedTraverse( + '++conversation++default/ThisCantBeRight' + ) + self.assertEqual(conversation, None) def test_parent(self): # Check that conversation has a content object as parent @@ -711,8 +667,78 @@ class ConversationTest(unittest.TestCase): def test_no_comment(self): IConversation(self.portal.doc1) # Make sure no conversation has been created - self.assertTrue('plone.app.discussion:conversation' not in - IAnnotations(self.portal.doc1)) + self.assertTrue( + 'plone.app.discussion:conversation' not in + IAnnotations(self.portal.doc1) + ) + + +class ConversationEnabledForDexterityTypesTest(unittest.TestCase): + + layer = PLONE_APP_DISCUSSION_INTEGRATION_TESTING + + def setUp(self): + self.portal = self.layer['portal'] + setRoles(self.portal, TEST_USER_ID, ['Manager']) + interface.alsoProvides( + self.portal.REQUEST, + interfaces.IDiscussionLayer + ) + + typetool = self.portal.portal_types + typetool.constructContent('Document', self.portal, 'doc1') + if DEXTERITY: + interface.alsoProvides( + self.portal.doc1, + IDexterityContent + ) + + def _makeOne(self, *args, **kw): + return self.portal.doc1.restrictedTraverse('@@conversation_view') + + def _globally_enable_discussion(self, value): + registry = queryUtility(IRegistry) + settings = registry.forInterface(IDiscussionSettings) + settings.globally_enabled = value + + def _enable_discussion_on_portal_type(self, portal_type, allow_discussion): + portal_types = getToolByName(self.portal, 'portal_types') + document_fti = getattr(portal_types, portal_type) + document_fti.manage_changeProperties(allow_discussion=allow_discussion) + + def test_conversation_is_not_enabled_by_default(self): + if DEXTERITY: + conversation = self._makeOne(self.portal.doc1) + self.assertFalse(conversation.enabled()) + + def test_conversation_is_not_enabled_by_default_on_portal_type(self): + if DEXTERITY: + self._globally_enable_discussion(True) + conversation = self._makeOne(self.portal.doc1) + self.assertFalse(conversation.enabled()) + + def test_conversation_needs_to_be_enabled_globally_and_for_type(self): + if DEXTERITY: + self._globally_enable_discussion(True) + self._enable_discussion_on_portal_type('Document', True) + conversation = self._makeOne(self.portal.doc1) + self.assertTrue(conversation.enabled()) + + def test_disable_discussion(self): + if DEXTERITY: + self._globally_enable_discussion(True) + self._enable_discussion_on_portal_type('Document', True) + self.portal.doc1.allow_discussion = False + conversation = self._makeOne(self.portal.doc1) + self.assertFalse(conversation.enabled()) + + def test_enable_discussion(self): + if DEXTERITY: + self._globally_enable_discussion(True) + self._enable_discussion_on_portal_type('Document', True) + self.portal.doc1.allow_discussion = True + conversation = self._makeOne(self.portal.doc1) + self.assertTrue(conversation.enabled()) class RepliesTest(unittest.TestCase): @@ -847,7 +873,3 @@ class RepliesTest(unittest.TestCase): self.assertEqual(len(replies_to_comment1), 2) self.assertEqual(len(replies_to_comment1_1), 1) self.assertEqual(len(replies_to_comment2), 1) - - -def test_suite(): - return unittest.defaultTestLoader.loadTestsFromName(__name__) diff --git a/plone/app/discussion/tests/test_events.py b/plone/app/discussion/tests/test_events.py new file mode 100644 index 0000000..11ab4c9 --- /dev/null +++ b/plone/app/discussion/tests/test_events.py @@ -0,0 +1,179 @@ +# -*- coding: utf-8 -*- + +import unittest2 as unittest +from zope.component import createObject +from Zope2.App import zcml +import Products.Five +from plone.app.testing import TEST_USER_ID, setRoles +from plone.app.discussion.interfaces import IConversation, IReplies +from plone.app.discussion.testing import ( + PLONE_APP_DISCUSSION_INTEGRATION_TESTING, +) +# +# Fake events registry +# +class EventsRegistry(object): + """ Fake registry to be used while testing discussion events + """ + commentAdded = False + commentRemoved = False + replyAdded = False + replyRemoved = False + +# +# Fake event handlers +# +def comment_added(doc, evt): + EventsRegistry.commentAdded = True + +def comment_removed(doc, evt): + EventsRegistry.commentRemoved = True + +def reply_added(doc, evt): + EventsRegistry.replyAdded = True + +def reply_removed(doc, evt): + EventsRegistry.replyRemoved = True +# +# Tests +# +class CommentEventsTest(unittest.TestCase): + """ Test custom comments events + """ + layer = PLONE_APP_DISCUSSION_INTEGRATION_TESTING + + def setUp(self): + + # Setup sandbox + self.portal = self.layer['portal'] + self.request = self.layer['request'] + self.registry = EventsRegistry + + setRoles(self.portal, TEST_USER_ID, ['Manager']) + name = self.portal.invokeFactory( + id='doc1', + title='Document 1', + type_name='Document') + + self.document = self.portal[name] + + # + # Subscribers + # + configure = """ + + + + + + + + """ + zcml.load_config("configure.zcml", Products.Five) + zcml.load_string(configure) + + def test_addEvent(self): + self.assertFalse(self.registry.commentAdded) + comment = createObject('plone.Comment') + conversation = IConversation(self.document) + conversation.addComment(comment) + self.assertTrue(self.registry.commentAdded) + + def test_removedEvent(self): + self.assertFalse(self.registry.commentRemoved) + comment = createObject('plone.Comment') + conversation = IConversation(self.document) + cid = conversation.addComment(comment) + del conversation[cid] + self.assertTrue(self.registry.commentRemoved) + +class RepliesEventsTest(unittest.TestCase): + """ Test custom replies events + """ + layer = PLONE_APP_DISCUSSION_INTEGRATION_TESTING + + def setUp(self): + self.portal = self.layer['portal'] + self.request = self.layer['request'] + self.registry = EventsRegistry + + setRoles(self.portal, TEST_USER_ID, ['Manager']) + name = self.portal.invokeFactory( + id='doc1', + title='Document 1', + type_name='Document') + + self.document = self.portal[name] + + # + # Subscribers + # + configure = """ + + + + + + + + """ + zcml.load_config("configure.zcml", Products.Five) + zcml.load_string(configure) + + def test_addEvent(self): + self.assertFalse(self.registry.replyAdded) + + conversation = IConversation(self.document) + replies = IReplies(conversation) + + comment = createObject('plone.Comment') + comment.text = 'Comment text' + new_id = replies.addComment(comment) + comment = self.document.restrictedTraverse( + '++conversation++default/%s' % new_id) + + re_comment = createObject('plone.Comment') + re_comment.text = 'Comment text' + + replies = IReplies(comment) + new_re_id = replies.addComment(re_comment) + + self.assertTrue(self.registry.replyAdded) + + def test_removedEvent(self): + self.assertFalse(self.registry.replyRemoved) + + conversation = IConversation(self.portal.doc1) + replies = IReplies(conversation) + + comment = createObject('plone.Comment') + comment.text = 'Comment text' + new_id = replies.addComment(comment) + comment = self.portal.doc1.restrictedTraverse( + '++conversation++default/%s' % new_id) + + re_comment = createObject('plone.Comment') + re_comment.text = 'Comment text' + replies = IReplies(comment) + new_re_id = replies.addComment(re_comment) + + del replies[new_re_id] + self.assertTrue(self.registry.replyRemoved) diff --git a/plone/app/discussion/tests/test_functional.py b/plone/app/discussion/tests/test_functional.py index 25730b0..98bd51f 100644 --- a/plone/app/discussion/tests/test_functional.py +++ b/plone/app/discussion/tests/test_functional.py @@ -15,12 +15,13 @@ from plone.app.discussion.testing import \ optionflags = ( - doctest.ELLIPSIS | \ - doctest.NORMALIZE_WHITESPACE | \ - doctest.REPORT_ONLY_FIRST_FAILURE) + doctest.ELLIPSIS | + doctest.NORMALIZE_WHITESPACE | + doctest.REPORT_ONLY_FIRST_FAILURE +) normal_testfiles = [ 'functional_test_comments.txt', - 'functional_test_comment_review_workflow.txt' + 'functional_test_comment_review_workflow.txt', ] diff --git a/plone/app/discussion/tests/test_indexers.py b/plone/app/discussion/tests/test_indexers.py index 27f7bff..23721f0 100644 --- a/plone/app/discussion/tests/test_indexers.py +++ b/plone/app/discussion/tests/test_indexers.py @@ -40,16 +40,18 @@ class ConversationIndexersTest(unittest.TestCase): self.portal = self.layer['portal'] setRoles(self.portal, TEST_USER_ID, ['Manager']) - self.portal.invokeFactory(id='doc1', - title='Document 1', - type_name='Document') + self.portal.invokeFactory( + id='doc1', + title='Document 1', + type_name='Document' + ) # Create a conversation. conversation = IConversation(self.portal.doc1) comment1 = createObject('plone.Comment') comment1.text = 'Comment Text' - comment1.creator = "Jim" + comment1.creator = "jim" comment1.author_username = "Jim" comment1.creation_date = datetime(2006, 9, 17, 14, 18, 12) comment1.modification_date = datetime(2006, 9, 17, 14, 18, 12) @@ -57,7 +59,7 @@ class ConversationIndexersTest(unittest.TestCase): comment2 = createObject('plone.Comment') comment2.text = 'Comment Text' - comment2.creator = "Emma" + comment2.creator = "emma" comment2.author_username = "Emma" comment2.creation_date = datetime(2007, 12, 13, 4, 18, 12) comment2.modification_date = datetime(2007, 12, 13, 4, 18, 12) @@ -65,7 +67,7 @@ class ConversationIndexersTest(unittest.TestCase): comment3 = createObject('plone.Comment') comment3.text = 'Comment Text' - comment3.creator = "Lukas" + comment3.creator = "lukas" comment3.author_username = "Lukas" comment3.creation_date = datetime(2009, 4, 12, 11, 12, 12) comment3.modification_date = datetime(2009, 4, 12, 11, 12, 12) @@ -74,8 +76,10 @@ class ConversationIndexersTest(unittest.TestCase): self.conversation = conversation def test_conversation_total_comments(self): - self.assertTrue(isinstance(catalog.total_comments, - DelegatingIndexerFactory)) + self.assertTrue(isinstance( + catalog.total_comments, + DelegatingIndexerFactory + )) self.assertEqual(catalog.total_comments(self.portal.doc1)(), 3) del self.conversation[self.new_id1] self.assertEqual(catalog.total_comments(self.portal.doc1)(), 2) @@ -84,13 +88,19 @@ class ConversationIndexersTest(unittest.TestCase): self.assertEqual(catalog.total_comments(self.portal.doc1)(), 0) def test_conversation_last_comment_date(self): - self.assertTrue(isinstance(catalog.last_comment_date, - DelegatingIndexerFactory)) - self.assertEqual(catalog.last_comment_date(self.portal.doc1)(), - datetime(2009, 4, 12, 11, 12, 12)) + self.assertTrue(isinstance( + catalog.last_comment_date, + DelegatingIndexerFactory + )) + self.assertEqual( + catalog.last_comment_date(self.portal.doc1)(), + datetime(2009, 4, 12, 11, 12, 12) + ) del self.conversation[self.new_id3] - self.assertEqual(catalog.last_comment_date(self.portal.doc1)(), - datetime(2007, 12, 13, 4, 18, 12)) + self.assertEqual( + catalog.last_comment_date(self.portal.doc1)(), + datetime(2007, 12, 13, 4, 18, 12) + ) del self.conversation[self.new_id2] del self.conversation[self.new_id1] self.assertEqual(catalog.last_comment_date(self.portal.doc1)(), None) @@ -111,9 +121,11 @@ class CommentIndexersTest(unittest.TestCase): self.portal = self.layer['portal'] setRoles(self.portal, TEST_USER_ID, ['Manager']) - self.portal.invokeFactory(id='doc1', - title='Document 1', - type_name='Document') + self.portal.invokeFactory( + id='doc1', + title='Document 1', + type_name='Document' + ) # Create a conversation. In this case we doesn't assign it to an # object, as we just want to check the Conversation object API. @@ -124,7 +136,8 @@ class CommentIndexersTest(unittest.TestCase): comment = createObject('plone.Comment') comment.text = 'Lorem ipsum dolor sit amet.' - comment.creator = "Jim" + comment.creator = "jim" + comment.author_name = "Jim" comment.creation_date = datetime(2006, 9, 17, 14, 18, 12) comment.modification_date = datetime(2008, 3, 12, 7, 32, 52) @@ -137,8 +150,10 @@ class CommentIndexersTest(unittest.TestCase): self.assertTrue(isinstance(catalog.title, DelegatingIndexerFactory)) def test_description(self): - self.assertEqual(catalog.description(self.comment)(), - 'Lorem ipsum dolor sit amet.') + self.assertEqual( + catalog.description(self.comment)(), + 'Lorem ipsum dolor sit amet.' + ) self.assertTrue( isinstance(catalog.description, DelegatingIndexerFactory)) @@ -150,33 +165,41 @@ class CommentIndexersTest(unittest.TestCase): comment_long.text = LONG_TEXT self.conversation.addComment(comment_long) - self.assertEqual(catalog.description(comment_long)(), - LONG_TEXT_CUT.replace("\n", " ")) + self.assertEqual( + catalog.description(comment_long)(), + LONG_TEXT_CUT.replace("\n", " ") + ) def test_dates(self): # Test if created, modified, effective etc. are set correctly - self.assertEqual(catalog.created(self.comment)(), - DateTime(2006, 9, 17, 14, 18, 12, 'GMT')) - self.assertEqual(catalog.effective(self.comment)(), - DateTime(2006, 9, 17, 14, 18, 12, 'GMT')) - self.assertEqual(catalog.modified(self.comment)(), - DateTime(2008, 3, 12, 7, 32, 52, 'GMT')) + self.assertEqual( + catalog.created(self.comment)(), + DateTime(2006, 9, 17, 14, 18, 12, 'GMT') + ) + self.assertEqual( + catalog.effective(self.comment)(), + DateTime(2006, 9, 17, 14, 18, 12, 'GMT') + ) + self.assertEqual( + catalog.modified(self.comment)(), + DateTime(2008, 3, 12, 7, 32, 52, 'GMT') + ) def test_searchable_text(self): # Test if searchable text is a concatenation of title and comment text - self.assertEqual(catalog.searchable_text(self.comment)(), - ('Lorem ipsum dolor sit amet.')) - self.assertTrue(isinstance(catalog.searchable_text, - DelegatingIndexerFactory)) + self.assertEqual( + catalog.searchable_text(self.comment)(), + ('Lorem ipsum dolor sit amet.') + ) + self.assertTrue(isinstance( + catalog.searchable_text, + DelegatingIndexerFactory + )) def test_creator(self): - self.assertEqual(catalog.creator(self.comment)(), ('Jim')) + self.assertEqual(catalog.creator(self.comment)(), ('jim')) def test_in_response_to(self): # make sure in_response_to returns the title or id of the content # object the comment was added to self.assertEqual(catalog.in_response_to(self.comment)(), 'Document 1') - - -def test_suite(): - return unittest.defaultTestLoader.loadTestsFromName(__name__) diff --git a/plone/app/discussion/tests/test_migration.py b/plone/app/discussion/tests/test_migration.py deleted file mode 100644 index 89949d7..0000000 --- a/plone/app/discussion/tests/test_migration.py +++ /dev/null @@ -1,226 +0,0 @@ -from datetime import datetime -from DateTime import DateTime - -import unittest2 as unittest - -from zope.annotation.interfaces import IAnnotations - -from Products.CMFCore.utils import getToolByName - -from plone.app.testing import TEST_USER_ID, setRoles - -from plone.app.discussion.testing import \ - PLONE_APP_DISCUSSION_INTEGRATION_TESTING - -from plone.app.discussion.browser.migration import View - -from plone.app.discussion.interfaces import IConversation, IComment - - -class MigrationTest(unittest.TestCase): - - layer = PLONE_APP_DISCUSSION_INTEGRATION_TESTING - - def setUp(self): - self.portal = self.layer['portal'] - self.request = self.layer['request'] - setRoles(self.portal, TEST_USER_ID, ['Manager']) - - self.portal.invokeFactory(id='doc', - title='Document 1', - type_name='Document') - # Create a document - self.discussion = getToolByName(self.portal, 'portal_discussion', None) - self.discussion.overrideDiscussionFor(self.portal.doc, 1) - # Publish it - self.workflowTool = getToolByName(self.portal, 'portal_workflow') - self.workflowTool.setDefaultChain('simple_publication_workflow') - self.workflowTool.doActionFor(self.portal.doc, 'publish') - - self.request.set("test", True) - self.view = View(self.portal, self.request) - self.workflowTool.setChainForPortalTypes(('Discussion Item',), - 'comment_review_workflow') - - self.doc = self.portal.doc - - def test_migrate_comment(self): - - # Create a comment - talkback = self.discussion.getDiscussionFor(self.doc) - self.doc.talkback.createReply('My Title', 'My Text', Creator='Jim') - reply = talkback.getReplies()[0] - reply.setReplyTo(self.doc) - reply.creation_date = DateTime(2003, 3, 11, 9, 28, 6, 'GMT') - reply.modification_date = DateTime(2009, 7, 12, 19, 38, 7, 'GMT') - self.assertEqual(reply.Title(), 'My Title') - self.assertEqual(reply.EditableBody(), 'My Text') - self.assertTrue('Jim' in reply.listCreators()) - self.assertEqual(talkback.replyCount(self.doc), 1) - self.assertEqual(reply.inReplyTo(), self.doc) - - # Call migration script - self.view() - - # Make sure a conversation has been created - self.assertTrue('plone.app.discussion:conversation' in - IAnnotations(self.doc)) - conversation = IConversation(self.doc) - - # Check migration - self.assertEqual(conversation.total_comments, 1) - self.assertTrue(conversation.getComments().next()) - comment1 = conversation.values()[0] - self.assertTrue(IComment.providedBy(comment1)) - self.assertEqual(comment1.Title(), 'My Title') - self.assertEqual(comment1.text, '

    My Text

    \n') - self.assertEqual(comment1.mime_type, 'text/html') - self.assertEqual(comment1.Creator(), 'Jim') - self.assertEqual(comment1.creation_date, - datetime(2003, 3, 11, 9, 28, 6)) - self.assertEqual(comment1.modification_date, - datetime(2009, 7, 12, 19, 38, 7)) - self.assertEqual([ - {'comment': comment1, 'depth': 0, 'id': long(comment1.id)} - ], list(conversation.getThreads())) - self.assertFalse(self.doc.talkback) - - def test_migrate_nested_comments(self): - # Create some nested comments and migrate them - # - # self.doc - # +- First comment - # +- Re: First comment - # + Re: Re: First comment - # + Re: Re: Re: First comment - # +- Re: First comment (2) - # +- Re: First comment (3) - # +- Re: First comment (4) - # +- Second comment - - talkback = self.discussion.getDiscussionFor(self.doc) - - # First comment - talkback.createReply(title='First comment', - text='This is my first comment.') - comment1 = talkback.getReplies()[0] - talkback_comment1 = self.discussion.getDiscussionFor(comment1) - - # Re: First comment - talkback_comment1.createReply(title='Re: First comment', - text='This is my first reply.') - comment1_1 = talkback_comment1.getReplies()[0] - talkback_comment1_1 = self.discussion.getDiscussionFor(comment1_1) - - self.assertEqual(len(talkback.getReplies()), 1) - self.assertEqual(len(talkback_comment1.getReplies()), 1) - self.assertEqual(len(talkback_comment1_1.getReplies()), 0) - - #Re: Re: First comment - talkback_comment1_1.createReply(title='Re: Re: First comment', - text='This is my first re-reply.') - comment1_1_1 = talkback_comment1_1.getReplies()[0] - talkback_comment1_1_1 = self.discussion.getDiscussionFor(comment1_1_1) - - # Re: Re: Re: First comment - talkback_comment1_1_1.createReply(title='Re: Re: Re: First comment', - text='This is my first re-re-reply.') - - # Re: First comment (2) - talkback_comment1.createReply(title='Re: First comment (2)', - text='This is my first reply (2).') - - # Re: First comment (3) - talkback_comment1.createReply(title='Re: First comment (3)', - text='This is my first reply (3).') - - # Re: First comment (4) - talkback_comment1.createReply(title='Re: First comment (4)', - text='This is my first reply (4).') - - # Second comment - talkback.createReply(title='Second comment', - text='This is my second comment.') - - # Call migration script - self.view() - - # Check migration - conversation = IConversation(self.doc) - self.assertEqual(conversation.total_comments, 8) - - comment1 = conversation.values()[0] - comment1_1 = conversation.values()[1] - comment1_1_1 = conversation.values()[2] - comment1_1_1_1 = conversation.values()[3] - comment1_2 = conversation.values()[4] - comment1_3 = conversation.values()[5] - comment1_4 = conversation.values()[6] - comment2 = conversation.values()[7] - - self.assertEqual( - [{'comment': comment1, 'depth': 0, 'id': long(comment1.id)}, - {'comment': comment1_1, 'depth': 1, 'id': long(comment1_1.id)}, - {'comment': comment1_1_1, 'depth': 2, 'id': long(comment1_1_1.id)}, - {'comment': comment1_1_1_1, 'depth': 3, - 'id': long(comment1_1_1_1.id)}, - {'comment': comment1_2, 'depth': 1, 'id': long(comment1_2.id)}, - {'comment': comment1_3, 'depth': 1, 'id': long(comment1_3.id)}, - {'comment': comment1_4, 'depth': 1, 'id': long(comment1_4.id)}, - {'comment': comment2, 'depth': 0, 'id': long(comment2.id)}, - ], list(conversation.getThreads())) - - talkback = self.discussion.getDiscussionFor(self.doc) - self.assertEqual(len(talkback.getReplies()), 0) - - def test_migrate_nested_comments_with_filter(self): - # Create some nested comments and migrate them. - # But use a filter that filters the top-level comment. - # All the comments should be removed, but not migrated. - # - # self.doc - # +- First comment - # +- Re: First comment - - talkback = self.discussion.getDiscussionFor(self.doc) - - # First comment - talkback.createReply(title='First comment', - text='This is my first comment.') - comment1 = talkback.getReplies()[0] - talkback_comment1 = self.discussion.getDiscussionFor(comment1) - - # Re: First comment - talkback_comment1.createReply(title='Re: First comment', - text='This is my first reply.') - comment1_1 = talkback_comment1.getReplies()[0] - talkback_comment1_1 = self.discussion.getDiscussionFor(comment1_1) - - self.assertEqual(len(talkback.getReplies()), 1) - self.assertEqual(len(talkback_comment1.getReplies()), 1) - self.assertEqual(len(talkback_comment1_1.getReplies()), 0) - - def deny_comments(reply): - return False - - # Call migration script - self.view(filter_callback=deny_comments) - - # Check migration - conversation = IConversation(self.doc) - self.assertEqual(conversation.total_comments, 0) - talkback = self.discussion.getDiscussionFor(self.doc) - self.assertEqual(len(talkback.getReplies()), 0) - - def test_migrate_no_comment(self): - - # Call migration script - self.view() - - # Make sure no conversation has been created - self.assertTrue('plone.app.discussion:conversation' not in - IAnnotations(self.doc)) - - -def test_suite(): - return unittest.defaultTestLoader.loadTestsFromName(__name__) diff --git a/plone/app/discussion/tests/test_moderation_view.py b/plone/app/discussion/tests/test_moderation_view.py index 01d7057..c533190 100644 --- a/plone/app/discussion/tests/test_moderation_view.py +++ b/plone/app/discussion/tests/test_moderation_view.py @@ -1,8 +1,6 @@ # -*- coding: utf-8 -*- import unittest -from DateTime import DateTime - from zope.component import createObject from Products.CMFCore.utils import getToolByName @@ -58,29 +56,6 @@ class ModerationViewTest(unittest.TestCase): ('comment_review_workflow,')) self.assertEqual(self.view.moderation_enabled(), True) - def test_old_comments_not_shown_in_moderation_view(self): - # Create old comment - discussion = getToolByName(self.portal, 'portal_discussion', None) - discussion.overrideDiscussionFor(self.portal.doc1, 1) - talkback = discussion.getDiscussionFor(self.portal.doc1) - self.portal.doc1.talkback.createReply('My Title', - 'My Text', - Creator='Jim') - reply = talkback.getReplies()[0] - reply.setReplyTo(self.portal.doc1) - reply.creation_date = DateTime(2003, 3, 11, 9, 28, 6) - reply.modification_date = DateTime(2009, 7, 12, 19, 38, 7) - self.assertEqual(reply.Title(), 'My Title') - self.assertEqual(reply.EditableBody(), 'My Text') - self.assertTrue('Jim' in reply.listCreators()) - self.assertEqual(talkback.replyCount(self.portal.doc1), 1) - self.assertEqual(reply.inReplyTo(), self.portal.doc1) - - view = self.view() - - self.assertTrue('No comments to moderate' in view) - self.assertEqual(len(self.view.comments), 0) - class ModerationBulkActionsViewTest(unittest.TestCase): @@ -107,22 +82,25 @@ class ModerationBulkActionsViewTest(unittest.TestCase): comment1.text = 'Comment text' comment1.Creator = 'Jim' new_id_1 = conversation.addComment(comment1) - self.comment1 = self.portal.doc1.restrictedTraverse(\ - '++conversation++default/%s' % new_id_1) + self.comment1 = self.portal.doc1.restrictedTraverse( + '++conversation++default/%s' % new_id_1 + ) comment2 = createObject('plone.Comment') comment2.title = 'Comment 2' comment2.text = 'Comment text' comment2.Creator = 'Joe' new_id_2 = conversation.addComment(comment2) - self.comment2 = self.portal.doc1.restrictedTraverse(\ - '++conversation++default/%s' % new_id_2) + self.comment2 = self.portal.doc1.restrictedTraverse( + '++conversation++default/%s' % new_id_2 + ) comment3 = createObject('plone.Comment') comment3.title = 'Comment 3' comment3.text = 'Comment text' comment3.Creator = 'Emma' new_id_3 = conversation.addComment(comment3) - self.comment3 = self.portal.doc1.restrictedTraverse(\ - '++conversation++default/%s' % new_id_3) + self.comment3 = self.portal.doc1.restrictedTraverse( + '++conversation++default/%s' % new_id_3 + ) self.conversation = conversation def test_default_bulkaction(self): @@ -171,7 +149,7 @@ class ModerationBulkActionsViewTest(unittest.TestCase): def test_delete(self): # Initially we have three comments - self.assertEqual(self.conversation.total_comments, 3) + self.assertEqual(len(self.conversation.objectIds()), 3) # Delete two comments with bulk actions self.request.set('form.select.BulkAction', 'delete') self.request.set('paths', ['/'.join(self.comment1.getPhysicalPath()), @@ -181,11 +159,7 @@ class ModerationBulkActionsViewTest(unittest.TestCase): view() # Make sure that the two comments have been deleted - self.assertEqual(self.conversation.total_comments, 1) + self.assertEqual(len(self.conversation.objectIds()), 1) comment = self.conversation.getComments().next() self.assertTrue(comment) self.assertEqual(comment, self.comment2) - - -def test_suite(): - return unittest.defaultTestLoader.loadTestsFromName(__name__) diff --git a/plone/app/discussion/tests/test_notifications.py b/plone/app/discussion/tests/test_notifications.py index 10970f6..ab5c764 100644 --- a/plone/app/discussion/tests/test_notifications.py +++ b/plone/app/discussion/tests/test_notifications.py @@ -42,7 +42,6 @@ class TestUserNotificationUnit(unittest.TestCase): '.user_notification_enabled'] = True # Create test content self.portal.invokeFactory('Document', 'doc1') - self.portal_discussion = self.portal.portal_discussion # Archetypes content types store data as utf-8 encoded strings # The missing u in front of a string is therefor not missing self.portal.doc1.title = 'Kölle Alaaf' # What is "Fasching"? @@ -92,8 +91,10 @@ class TestUserNotificationUnit(unittest.TestCase): def test_do_not_notify_user_when_notification_is_disabled(self): registry = queryUtility(IRegistry) - registry['plone.app.discussion.interfaces.IDiscussionSettings.' + - 'user_notification_enabled'] = False + registry[ + 'plone.app.discussion.interfaces.IDiscussionSettings.' + + 'user_notification_enabled' + ] = False comment = createObject('plone.Comment') comment.text = 'Comment text' comment.user_notification = True @@ -177,14 +178,16 @@ class TestModeratorNotificationUnit(unittest.TestCase): self.portal.portal_types['Document'].allow_discussion = True self.portal.portal_workflow.setChainForPortalTypes( ('Discussion Item',), - ('comment_review_workflow',)) + ('comment_review_workflow',) + ) # Enable moderator notification setting registry = queryUtility(IRegistry) - registry['plone.app.discussion.interfaces.IDiscussionSettings.' + - 'moderator_notification_enabled'] = True + registry[ + 'plone.app.discussion.interfaces.IDiscussionSettings.' + + 'moderator_notification_enabled' + ] = True # Create test content self.portal.invokeFactory('Document', 'doc1') - self.portal_discussion = self.portal.portal_discussion # Archetypes content types store data as utf-8 encoded strings # The missing u in front of a string is therefor not missing self.portal.doc1.title = 'Kölle Alaaf' # What is "Fasching"? @@ -272,7 +275,3 @@ class TestModeratorNotificationUnit(unittest.TestCase): self.conversation.addComment(comment) self.assertEqual(len(self.mailhost.messages), 0) - - -def test_suite(): - return unittest.defaultTestLoader.loadTestsFromName(__name__) diff --git a/plone/app/discussion/tests/test_robot.py b/plone/app/discussion/tests/test_robot.py new file mode 100644 index 0000000..3b9eb21 --- /dev/null +++ b/plone/app/discussion/tests/test_robot.py @@ -0,0 +1,27 @@ +from plone.app.discussion.testing import PLONE_APP_DISCUSSION_ROBOT_TESTING +from plone.app.testing import ROBOT_TEST_LEVEL +from plone.testing import layered +import os +import unittest +import robotsuite + + +def test_suite(): + suite = unittest.TestSuite() + current_dir = os.path.abspath(os.path.dirname(__file__)) + robot_dir = os.path.join(current_dir, 'robot') + robot_tests = [ + os.path.join('robot', doc) for doc in + os.listdir(robot_dir) if doc.endswith('.robot') and + doc.startswith('test_') + ] + for robot_test in robot_tests: + robottestsuite = robotsuite.RobotTestSuite(robot_test) + robottestsuite.level = ROBOT_TEST_LEVEL + suite.addTests([ + layered( + robottestsuite, + layer=PLONE_APP_DISCUSSION_ROBOT_TESTING + ), + ]) + return suite diff --git a/plone/app/discussion/tests/test_tool.py b/plone/app/discussion/tests/test_tool.py deleted file mode 100644 index 783bdca..0000000 --- a/plone/app/discussion/tests/test_tool.py +++ /dev/null @@ -1,53 +0,0 @@ -import unittest2 as unittest - -from zope.component import queryUtility, createObject - -from plone.app.testing import TEST_USER_ID, setRoles - -from plone.app.discussion.testing import \ - PLONE_APP_DISCUSSION_INTEGRATION_TESTING - -from plone.app.discussion.interfaces import ICommentingTool, IConversation - - -class ToolTest(unittest.TestCase): - - layer = PLONE_APP_DISCUSSION_INTEGRATION_TESTING - - def setUp(self): - self.portal = self.layer['portal'] - setRoles(self.portal, TEST_USER_ID, ['Manager']) - self.portal.invokeFactory(id='doc1', - title='Document 1', - type_name='Document') - - def test_tool_indexing(self): - # Create a conversation. In this case we doesn't assign it to an - # object, as we just want to check the Conversation object API. - conversation = IConversation(self.portal.doc1) - - # Add a comment. - comment = createObject('plone.Comment') - comment.creator = 'Jim' - comment.text = 'Comment text' - - conversation.addComment(comment) - - # Check that the comment got indexed in the tool: - tool = queryUtility(ICommentingTool) - comment = list(tool.searchResults()) - self.assertTrue(len(comment) == 1, - "There is only one comment, but we got" - " %s results in the search" % len(comment)) - self.assertEqual(comment[0].Title, 'Jim on Document 1') - - def test_unindexing(self): - pass - - def test_search(self): - # search returns only comments - pass - - -def test_suite(): - return unittest.defaultTestLoader.loadTestsFromName(__name__) diff --git a/plone/app/discussion/tests/test_workflow.py b/plone/app/discussion/tests/test_workflow.py index 95c8878..c8cf216 100644 --- a/plone/app/discussion/tests/test_workflow.py +++ b/plone/app/discussion/tests/test_workflow.py @@ -32,7 +32,6 @@ class WorkflowSetupTest(unittest.TestCase): self.portal.invokeFactory('Folder', 'test-folder') self.folder = self.portal['test-folder'] self.portal.portal_types['Document'].allow_discussion = True - self.portal_discussion = self.portal.portal_discussion self.folder.invokeFactory('Document', 'doc1') self.doc = self.folder.doc1 @@ -47,9 +46,12 @@ class WorkflowSetupTest(unittest.TestCase): def test_default_workflow(self): """Make sure one_state_workflow is the default workflow. """ - self.assertEqual(('one_state_workflow',), - self.portal.portal_workflow.getChainForPortalType( - 'Discussion Item')) + self.assertEqual( + ('one_state_workflow',), + self.portal.portal_workflow.getChainForPortalType( + 'Discussion Item' + ) + ) def test_review_comments_permission(self): #'Review comments' in self.portal.permissionsOfRole('Admin') @@ -58,8 +60,13 @@ class WorkflowSetupTest(unittest.TestCase): self.assertTrue(self.portal.portal_membership.checkPermission( 'Review comments', self.folder), self.folder) setRoles(self.portal, TEST_USER_ID, ['Member']) - self.assertFalse(self.portal.portal_membership.checkPermission( - 'Review comments', self.folder), self.folder) + self.assertFalse( + self.portal.portal_membership.checkPermission( + 'Review comments', + self.folder + ), + self.folder + ) def test_reply_to_item_permission(self): pass @@ -121,8 +128,9 @@ class CommentOneStateWorkflowTest(unittest.TestCase): comment.text = 'Comment text' cid = conversation.addComment(comment) - self.comment = self.folder.doc1.restrictedTraverse(\ - '++conversation++default/%s' % cid) + self.comment = self.folder.doc1.restrictedTraverse( + '++conversation++default/%s' % cid + ) self.portal.acl_users._doAddUser('member', 'secret', ['Member'], []) self.portal.acl_users._doAddUser( @@ -181,7 +189,6 @@ class CommentReviewWorkflowTest(unittest.TestCase): # Create a Document self.portal.invokeFactory('Document', 'doc1') - self.portal_discussion = self.portal.portal_discussion # Create a conversation for this Document conversation = IConversation(self.portal.doc1) @@ -228,26 +235,42 @@ class CommentReviewWorkflowTest(unittest.TestCase): def test_publish(self): self.portal.REQUEST.form['comment_id'] = self.comment_id self.portal.REQUEST.form['workflow_action'] = 'publish' - self.assertEqual('pending', - self.portal.portal_workflow.getInfoFor( - self.comment, 'review_state')) + self.assertEqual( + 'pending', + self.portal.portal_workflow.getInfoFor( + self.comment, + 'review_state' + ) + ) view = self.comment.restrictedTraverse('@@moderate-publish-comment') view() - self.assertEqual('published', self.portal.portal_workflow.\ - getInfoFor(self.comment, 'review_state')) + self.assertEqual( + 'published', + self.portal.portal_workflow.getInfoFor( + self.comment, + 'review_state' + ) + ) def test_publish_as_anonymous(self): logout() self.portal.REQUEST.form['comment_id'] = self.comment_id self.portal.REQUEST.form['workflow_action'] = 'publish' - self.assertEqual('pending', self.portal.portal_workflow.\ - getInfoFor(self.comment, 'review_state')) - self.assertRaises(Unauthorized, - self.comment.restrictedTraverse, - '@@moderate-publish-comment') - self.assertEqual('pending', self.portal.portal_workflow.\ - getInfoFor(self.comment, 'review_state')) - - -def test_suite(): - return unittest.defaultTestLoader.loadTestsFromName(__name__) + self.assertEqual( + 'pending', self.portal.portal_workflow.getInfoFor( + self.comment, + 'review_state' + ) + ) + self.assertRaises( + Unauthorized, + self.comment.restrictedTraverse, + '@@moderate-publish-comment' + ) + self.assertEqual( + 'pending', + self.portal.portal_workflow.getInfoFor( + self.comment, + 'review_state' + ) + ) diff --git a/plone/app/discussion/upgrades.py b/plone/app/discussion/upgrades.py index bf9df71..652e060 100644 --- a/plone/app/discussion/upgrades.py +++ b/plone/app/discussion/upgrades.py @@ -2,7 +2,13 @@ from zope.component import getUtility from plone.registry.interfaces import IRegistry from plone.app.discussion.interfaces import IDiscussionSettings +default_profile = 'profile-plone.app.discussion:default' + def update_registry(context): registry = getUtility(IRegistry) registry.registerInterface(IDiscussionSettings) + + +def update_rolemap(context): + context.runImportStepFromProfile(default_profile, 'rolemap') diff --git a/plone/app/discussion/vocabularies.py b/plone/app/discussion/vocabularies.py index ee1ad28..b811dce 100644 --- a/plone/app/discussion/vocabularies.py +++ b/plone/app/discussion/vocabularies.py @@ -6,28 +6,28 @@ from plone.app.discussion.interfaces import _ HAS_CAPTCHA = False try: - import plone.formwidget.captcha + import plone.formwidget.captcha # noqa HAS_CAPTCHA = True # pragma: no cover except ImportError: pass HAS_RECAPTCHA = False try: - import plone.formwidget.recaptcha + import plone.formwidget.recaptcha # noqa HAS_RECAPTCHA = True # pragma: no cover except ImportError: pass HAS_AKISMET = False try: - import collective.akismet + import collective.akismet # noqa HAS_AKISMET = True # pragma: no cover except ImportError: pass HAS_NOROBOTS = False try: - import collective.z3cform.norobots + import collective.z3cform.norobots # noqa HAS_NOROBOTS = True # pragma: no cover except ImportError: pass @@ -82,6 +82,11 @@ def text_transform_vocabulary(context): value='text/plain', token='text/plain', title='Plain text')) + terms.append( + SimpleTerm( + value='text/html', + token='text/html', + title='HTML')) terms.append( SimpleTerm( value='text/x-web-markdown', diff --git a/setup.py b/setup.py index d9a7b91..a912d59 100644 --- a/setup.py +++ b/setup.py @@ -1,6 +1,7 @@ -from setuptools import setup, find_packages +from setuptools import find_packages +from setuptools import setup -version = '2.1.6dev' +version = '2.3.3.dev0' install_requires = [ 'setuptools', @@ -12,6 +13,7 @@ install_requires = [ 'plone.indexer', 'plone.registry', 'plone.z3cform', + 'Products.CMFPlone', 'ZODB3', 'zope.interface', 'zope.component', @@ -21,22 +23,22 @@ install_requires = [ 'zope.lifecycleevent', 'zope.site', 'z3c.form>=2.3.3', - ] +] setup(name='plone.app.discussion', version=version, description="Enhanced discussion support for Plone", long_description=open("README.rst").read() + "\n" + - open("CHANGES.txt").read(), + open("CHANGES.rst").read(), classifiers=[ - "Framework :: Plone", - "Framework :: Plone :: 3.3", - "Framework :: Plone :: 4.0", - "Framework :: Plone :: 4.1", - "Framework :: Plone :: 4.2", - "Framework :: Plone :: 4.3", - "Programming Language :: Python", - ], + "Framework :: Plone", + "Framework :: Plone :: 3.3", + "Framework :: Plone :: 4.0", + "Framework :: Plone :: 4.1", + "Framework :: Plone :: 4.2", + "Framework :: Plone :: 4.3", + "Programming Language :: Python", + ], keywords='plone discussion', author='Timo Stollenwerk - Plone Foundation', author_email='plone-developers@lists.sourceforge.net', @@ -50,7 +52,11 @@ setup(name='plone.app.discussion', extras_require={ 'test': [ 'plone.app.testing', - 'interlude', + 'plone.stringinterp', + 'plone.contentrules', + 'plone.app.contentrules', + 'plone.app.contenttypes[test]', + 'plone.app.robotframework[ride,reload,debug]', ] }, entry_points=""" diff --git a/src/README.txt b/src/README.txt deleted file mode 100644 index ad5da8f..0000000 --- a/src/README.txt +++ /dev/null @@ -1 +0,0 @@ -Source directory for plone.app.discussion add-ons and related products.