From 569cd0f33bff24a365733acb513df3fee2a11947 Mon Sep 17 00:00:00 2001 From: Luca Fabbri Date: Sun, 24 Jan 2010 11:25:22 +0000 Subject: [PATCH 1/4] Added the locales support. Also refactored interfaces string to cleanup the default i18n messages default. svn path=/plone.app.discussion/branches/localization-enabled/; revision=33352 --- plone/app/discussion/configure.zcml | 2 +- plone/app/discussion/i18n.sh | 14 + plone/app/discussion/interfaces.py | 39 ++- .../it/LC_MESSAGES/plone.app.discussion.po | 302 +++++++++++++++++ .../locales/plone.app.discussion.pot | 314 ++++++++++++++++++ 5 files changed, 653 insertions(+), 18 deletions(-) create mode 100755 plone/app/discussion/i18n.sh create mode 100644 plone/app/discussion/locales/it/LC_MESSAGES/plone.app.discussion.po create mode 100644 plone/app/discussion/locales/plone.app.discussion.pot diff --git a/plone/app/discussion/configure.zcml b/plone/app/discussion/configure.zcml index 0a4a72d..f66a27a 100644 --- a/plone/app/discussion/configure.zcml +++ b/plone/app/discussion/configure.zcml @@ -10,7 +10,7 @@ - + \n" +"Language-Team: RedTurtle Technology \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" + +#: ./interfaces.py:165 +msgid "A comment id unique to this conversation" +msgstr "" + +#: ./profiles/default/workflows/comment_review_workflow/definition.xml +msgid "A simple workflow for comments" +msgstr "" + +#: ./browser/comments.py:59 +msgid "Add a comment" +msgstr "" + +#: ./interfaces.py:180 +msgid "Author name (for display)" +msgstr "" + +#: ./browser/comments.py:177 +msgid "Cancel" +msgstr "" + +#: ./interfaces.py:39 +msgid "Captcha" +msgstr "" + +#: ./browser/comments.py:85 +#: ./interfaces.py:178 +#: ./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 "" + +#: ./browser/moderation.py:87 +msgid "Comment deleted." +msgstr "" + +#: ./browser/moderation.py:109 +msgid "Comment published." +msgstr "" + +#: ./browser/controlpanel.py:17 +msgid "CommentComment Review Workflow" +msgstr "" + +#: ./profiles/default/portal_atct.xml +msgid "Commentators" +msgstr "" + +#: ./profiles/default/types/Discussion_Item.xml +msgid "Comments added to a content item." +msgstr "" + +#: ./interfaces.py:162 +msgid "Conversation" +msgstr "" + +#: ./interfaces.py:181 +msgid "Creation date" +msgstr "" + +#: ./interfaces.py:80 +msgid "Date of the most recent comment" +msgstr "" + +#: ./profiles/default/controlpanel.xml +msgid "Discussion" +msgstr "" + +#: ./browser/controlpanel.py:16 +msgid "Discussion settings" +msgstr "" + +#: ./interfaces.py:173 +msgid "Email" +msgstr "" + +#: ./interfaces.py:28 +msgid "Enable anonymous comments" +msgstr "" + +#: ./interfaces.py:166 +msgid "Id of comment this comment is in reply to" +msgstr "" + +#: ./interfaces.py:177 +msgid "MIME type" +msgstr "" + +#: ./profiles/default/actions.xml +msgid "Moderate comments" +msgstr "Moderazione commenti" + +#: ./interfaces.py:182 +msgid "Modification date" +msgstr "" + +#: ./interfaces.py:163 +msgid "Name" +msgstr "" + +#: ./profiles/default/workflows/comment_review_workflow/definition.xml +msgid "Pending" +msgstr "" + +#: ./interfaces.py:160 +msgid "Portal type" +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 "Publish" +msgstr "" + +#: ./profiles/default/workflows/comment_review_workflow/definition.xml +msgid "Published" +msgstr "" + +#: ./profiles/default/workflows/comment_review_workflow/definition.xml +msgid "Publishing the comment makes it visible to other users." +msgstr "" + +#: ./profiles/default/workflows/comment_review_workflow/definition.xml +msgid "Reviewer publishes content" +msgstr "" + +#: ./interfaces.py:50 +msgid "Show commenter image" +msgstr "" + +#: ./interfaces.py:175 +msgid "Subject" +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 "" + +#: ./browser/validator.py:28 +msgid "The code you entered was wrong, please enter the new one." +msgstr "" + +#: ./interfaces.py:81 +msgid "The set of unique commentators (usernames)" +msgstr "" + +#: ./profiles/default/portal_atct.xml +msgid "Total number of comments" +msgstr "" + +#: ./interfaces.py:79 +msgid "Total number of comments on this item" +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 "" + +#: ./browser/comments.py:170 +msgid "Your comment awaits moderator approval." +msgstr "" + +#. Default: "Delete" +#: ./browser/moderation.pt:52 +msgid "bulkactions_delete" +msgstr "" + +#. Default: "Publish" +#: ./browser/moderation.pt:49 +msgid "bulkactions_publish" +msgstr "" + +#. Default: "Action" +#: ./browser/moderation.pt:70 +msgid "heading_action" +msgstr "" + +#. Default: "Commenter" +#: ./browser/moderation.pt:65 +msgid "heading_author" +msgstr "" + +#. Default: "Comment" +#: ./browser/moderation.pt:69 +msgid "heading_comment" +msgstr "" + +#. Default: "In Response To" +#: ./browser/moderation.pt:67 +msgid "heading_context" +msgstr "" + +#. Default: "Date" +#: ./browser/moderation.pt:66 +msgid "heading_date" +msgstr "" + +#. Default: "Subject" +#: ./browser/moderation.pt:68 +msgid "heading_subject" +msgstr "" + +#. Default: "If selected, anonymous users are able to post comments without logging in. It is highly recommended to use a captcha solution to prevent spam if this setting is enabled." +#: ./interfaces.py:29 +msgid "help_anonymous_comments" +msgstr "" + +#. Default: "Use this setting to enable or disable captcha validation for comments. If no captcha options are currently available, install plone.formwidget.captcha or plone.formwidget.recaptcha." +#: ./interfaces.py:40 +msgid "help_captcha" +msgstr "" + +#. Default: "If selected, users are able to post comments on the site." +#: ./interfaces.py:22 +msgid "help_globally_enabled" +msgstr "" + +#. Default: "If selected, an image of the user is shown next to the comment." +#: ./interfaces.py:51 +msgid "help_show_commenter_image" +msgstr "" + +#. Default: "Apply" +#: ./browser/moderation.pt:55 +msgid "label_apply" +msgstr "" + +#. Default: "Delete" +#: ./browser/moderation.pt:113 +msgid "label_delete" +msgstr "" + +#. Default: "Globally enable comments" +#: ./interfaces.py:20 +msgid "label_globally_enabled" +msgstr "" + +#. Default: "Publish" +#: ./browser/moderation.pt:104 +msgid "label_publish" +msgstr "" + +#. Default: "No comments to moderate." +#: ./browser/moderation.pt:27 +msgid "message_nothing_to_moderate" +msgstr "" + +#. Default: "Bulk Actions" +#: ./browser/moderation.pt:48 +msgid "title_bulkactions" +msgstr "" + +#. Default: "Moderate comments" +#: ./browser/moderation.pt:21 +msgid "title_review" +msgstr "" + diff --git a/plone/app/discussion/locales/plone.app.discussion.pot b/plone/app/discussion/locales/plone.app.discussion.pot new file mode 100644 index 0000000..1d39fdd --- /dev/null +++ b/plone/app/discussion/locales/plone.app.discussion.pot @@ -0,0 +1,314 @@ +# --- PLEASE EDIT THE LINES BELOW CORRECTLY --- +# SOME DESCRIPTIVE TITLE. +# FIRST AUTHOR , YEAR. +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"POT-Creation-Date: 2010-01-24 11:15+0000\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI +ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \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: plone.app.discussion\n" + +#: ./interfaces.py:165 +msgid "A comment id unique to this conversation" +msgstr "" + +#: ./profiles/default/workflows/comment_review_workflow/definition.xml +msgid "A simple workflow for comments" +msgstr "" + +#: ./browser/comments.py:59 +msgid "Add a comment" +msgstr "" + +#: ./interfaces.py:180 +msgid "Author name (for display)" +msgstr "" + +#: ./browser/comments.py:177 +msgid "Cancel" +msgstr "" + +#: ./interfaces.py:39 +msgid "Captcha" +msgstr "" + +#: ./browser/comments.py:85 +#: ./interfaces.py:178 +#: ./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 "" + +#: ./browser/moderation.py:87 +msgid "Comment deleted." +msgstr "" + +#: ./browser/moderation.py:109 +msgid "Comment published." +msgstr "" + +#: ./profiles/default/portal_atct.xml +msgid "Commentators" +msgstr "" + +#: ./profiles/default/types/Discussion_Item.xml +msgid "Comments added to a content item." +msgstr "" + +#: ./interfaces.py:162 +msgid "Conversation" +msgstr "" + +#: ./interfaces.py:181 +msgid "Creation date" +msgstr "" + +#: ./interfaces.py:80 +msgid "Date of the most recent comment" +msgstr "" + +#: ./profiles/default/controlpanel.xml +msgid "Discussion" +msgstr "" + +#: ./browser/controlpanel.py:16 +msgid "Discussion settings" +msgstr "" + +#: ./interfaces.py:173 +msgid "Email" +msgstr "" + +#: ./interfaces.py:28 +msgid "Enable anonymous comments" +msgstr "" + +#: ./interfaces.py:166 +msgid "Id of comment this comment is in reply to" +msgstr "" + +#: ./interfaces.py:177 +msgid "MIME type" +msgstr "" + +#: ./profiles/default/actions.xml +msgid "Moderate comments" +msgstr "" + +#: ./interfaces.py:182 +msgid "Modification date" +msgstr "" + +#: ./interfaces.py:163 +msgid "Name" +msgstr "" + +#: ./profiles/default/workflows/comment_review_workflow/definition.xml +msgid "Pending" +msgstr "" + +#: ./interfaces.py:160 +msgid "Portal type" +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 "Publish" +msgstr "" + +#: ./profiles/default/workflows/comment_review_workflow/definition.xml +msgid "Published" +msgstr "" + +#: ./profiles/default/workflows/comment_review_workflow/definition.xml +msgid "Publishing the comment makes it visible to other users." +msgstr "" + +#: ./profiles/default/workflows/comment_review_workflow/definition.xml +msgid "Reviewer publishes content" +msgstr "" + +#: ./interfaces.py:50 +msgid "Show commenter image" +msgstr "" + +#: ./browser/controlpanel.py:17 +msgid "Some discussion related settings are not located + in the Discussion Control Panel. + + To enable comments for a specific content type, + go to the Types Control Panel of this type and + choose 'enable moderation'. + + To enable the moderation workflow for comments, + go to the Types Control Panel, choose "Comment" + and set workflow to "Comment Review Workflow". + " +msgstr "" + +#: ./interfaces.py:175 +msgid "Subject" +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 "" + +#: ./browser/validator.py:28 +msgid "The code you entered was wrong, please enter the new one." +msgstr "" + +#: ./interfaces.py:81 +msgid "The set of unique commentators (usernames)" +msgstr "" + +#: ./profiles/default/portal_atct.xml +msgid "Total number of comments" +msgstr "" + +#: ./interfaces.py:79 +msgid "Total number of comments on this item" +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 "" + +#: ./browser/comments.py:170 +msgid "Your comment awaits moderator approval." +msgstr "" + +#. Default: "Delete" +#: ./browser/moderation.pt:52 +msgid "bulkactions_delete" +msgstr "" + +#. Default: "Publish" +#: ./browser/moderation.pt:49 +msgid "bulkactions_publish" +msgstr "" + +#. Default: "Action" +#: ./browser/moderation.pt:70 +msgid "heading_action" +msgstr "" + +#. Default: "Commenter" +#: ./browser/moderation.pt:65 +msgid "heading_author" +msgstr "" + +#. Default: "Comment" +#: ./browser/moderation.pt:69 +msgid "heading_comment" +msgstr "" + +#. Default: "In Response To" +#: ./browser/moderation.pt:67 +msgid "heading_context" +msgstr "" + +#. Default: "Date" +#: ./browser/moderation.pt:66 +msgid "heading_date" +msgstr "" + +#. Default: "Subject" +#: ./browser/moderation.pt:68 +msgid "heading_subject" +msgstr "" + +#. Default: "If selected, anonymous users are able to post comments without logging in. It is highly recommended to use a captcha solution to prevent spam if this setting is enabled." +#: ./interfaces.py:29 +msgid "help_anonymous_comments" +msgstr "" + +#. Default: "Use this setting to enable or disable captcha validation for comments. If no captcha options are currently available, install plone.formwidget.captcha or plone.formwidget.recaptcha." +#: ./interfaces.py:40 +msgid "help_captcha" +msgstr "" + +#. Default: "If selected, users are able to post comments on the site." +#: ./interfaces.py:22 +msgid "help_globally_enabled" +msgstr "" + +#. Default: "If selected, an image of the user is shown next to the comment." +#: ./interfaces.py:51 +msgid "help_show_commenter_image" +msgstr "" + +#. Default: "Apply" +#: ./browser/moderation.pt:55 +msgid "label_apply" +msgstr "" + +#. Default: "Delete" +#: ./browser/moderation.pt:113 +msgid "label_delete" +msgstr "" + +#. Default: "Globally enable comments" +#: ./interfaces.py:20 +msgid "label_globally_enabled" +msgstr "" + +#. Default: "Publish" +#: ./browser/moderation.pt:104 +msgid "label_publish" +msgstr "" + +#. Default: "No comments to moderate." +#: ./browser/moderation.pt:27 +msgid "message_nothing_to_moderate" +msgstr "" + +#. Default: "Bulk Actions" +#: ./browser/moderation.pt:48 +msgid "title_bulkactions" +msgstr "" + +#. Default: "Moderate comments" +#: ./browser/moderation.pt:21 +msgid "title_review" +msgstr "" + From a6a1904d3ec29c8286b10f7622eefee62bce1bd5 Mon Sep 17 00:00:00 2001 From: Luca Fabbri Date: Sun, 24 Jan 2010 13:47:39 +0000 Subject: [PATCH 2/4] Commiting working translation. Some light fixes was needed also to the code. svn path=/plone.app.discussion/branches/localization-enabled/; revision=33353 --- plone/app/discussion/browser/comments.pt | 3 +- plone/app/discussion/browser/controlpanel.py | 26 ++-- .../it/LC_MESSAGES/plone.app.discussion.po | 143 ++++++++++-------- .../locales/plone.app.discussion.pot | 37 +++-- plone/app/discussion/vocabularies.py | 4 +- 5 files changed, 120 insertions(+), 93 deletions(-) diff --git a/plone/app/discussion/browser/comments.pt b/plone/app/discussion/browser/comments.pt index 4bcf1a2..cef0812 100644 --- a/plone/app/discussion/browser/comments.pt +++ b/plone/app/discussion/browser/comments.pt @@ -87,7 +87,7 @@
@@ -118,6 +118,7 @@ class="context" type="submit" tal:attributes="value action/title" + i18n:attributes="value" /> diff --git a/plone/app/discussion/browser/controlpanel.py b/plone/app/discussion/browser/controlpanel.py index 59cf4b8..b7d0c91 100644 --- a/plone/app/discussion/browser/controlpanel.py +++ b/plone/app/discussion/browser/controlpanel.py @@ -14,17 +14,15 @@ class DiscussionSettingsEditForm(controlpanel.RegistryEditForm): schema = IDiscussionSettings label = _(u"Discussion settings") - description = _(u"""Some discussion related settings are not located - in the Discussion Control Panel. - - To enable comments for a specific content type, - go to the Types Control Panel of this type and - choose 'enable moderation'. - - 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 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 'enable moderation'.\n" + "To enable the moderation workflow for comments, " + "go to the Types Control Panel, choose \"Comment\" " + "and set workflow to \"Comment Review Workflow\".") def updateFields(self): super(DiscussionSettingsEditForm, self).updateFields() @@ -34,9 +32,9 @@ class DiscussionSettingsEditForm(controlpanel.RegistryEditForm): def updateWidgets(self): 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" + 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") class DiscussionSettingsControlPanel(controlpanel.ControlPanelFormWrapper): 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 c1737e1..8f87693 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 @@ -2,7 +2,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" -"POT-Creation-Date: 2010-01-24 11:15+0000\n" +"POT-Creation-Date: 2010-01-24 12:55+0000\n" "PO-Revision-Date: YEAR-MO-DA HO:MI +ZONE\n" "Last-Translator: Luca Fabbri \n" "Language-Team: RedTurtle Technology \n" @@ -17,23 +17,27 @@ msgstr "" #: ./interfaces.py:165 msgid "A comment id unique to this conversation" -msgstr "" +msgstr "Un id del commento unico per questa conversazione" #: ./profiles/default/workflows/comment_review_workflow/definition.xml msgid "A simple workflow for comments" -msgstr "" +msgstr "Un semplice workflow per i commenti" #: ./browser/comments.py:59 msgid "Add a comment" -msgstr "" +msgstr "Aggiungi un commento" + +#: ./browser/controlpanel.py:36 +msgid "Anonymous Comments" +msgstr "Commenti da anonimi" #: ./interfaces.py:180 msgid "Author name (for display)" -msgstr "" +msgstr "Nome autore (da visualizzare)" #: ./browser/comments.py:177 msgid "Cancel" -msgstr "" +msgstr "Annulla" #: ./interfaces.py:39 msgid "Captcha" @@ -43,67 +47,75 @@ msgstr "" #: ./interfaces.py:178 #: ./profiles/default/types/Discussion_Item.xml msgid "Comment" -msgstr "" +msgstr "Commento" #: ./profiles/default/workflows/comment_review_workflow/definition.xml msgid "Comment Review Workflow" -msgstr "" +msgstr "Workflow Revisione Commento" #: ./profiles/default/workflows/comment_review_workflow/definition.xml msgid "Comment about the last transition" -msgstr "" +msgstr "Commento relativo all'ultima transizione" #: ./browser/moderation.py:87 msgid "Comment deleted." -msgstr "" +msgstr "Commento eliminato." #: ./browser/moderation.py:109 msgid "Comment published." -msgstr "" - -#: ./browser/controlpanel.py:17 -msgid "CommentComment Review Workflow" -msgstr "" +msgstr "Commento pubblicato." #: ./profiles/default/portal_atct.xml msgid "Commentators" -msgstr "" +msgstr "Commentatori" + +#: ./browser/controlpanel.py:37 +msgid "Commenter Image" +msgstr "Immagine commentatore" #: ./profiles/default/types/Discussion_Item.xml msgid "Comments added to a content item." -msgstr "" +msgstr "Commenti aggiunti ad un contenuto" #: ./interfaces.py:162 msgid "Conversation" -msgstr "" +msgstr "Conversazione" #: ./interfaces.py:181 msgid "Creation date" -msgstr "" +msgstr "Data di creazione" #: ./interfaces.py:80 msgid "Date of the most recent comment" -msgstr "" +msgstr "Data del commento più recente" + +#: ./vocabularies.py:30 +msgid "Disabled" +msgstr "Disabilitato" #: ./profiles/default/controlpanel.xml msgid "Discussion" -msgstr "" +msgstr "Discussioni" #: ./browser/controlpanel.py:16 msgid "Discussion settings" -msgstr "" +msgstr "Impostazioni delle discussioni" #: ./interfaces.py:173 msgid "Email" -msgstr "" +msgstr "E-mail" + +#: ./browser/controlpanel.py:35 +msgid "Enable Comments" +msgstr "Abilita commenti" #: ./interfaces.py:28 msgid "Enable anonymous comments" -msgstr "" +msgstr "Abilita commenti da parte di anonimi" #: ./interfaces.py:166 msgid "Id of comment this comment is in reply to" -msgstr "" +msgstr "Id del commento a cui si risponde" #: ./interfaces.py:177 msgid "MIME type" @@ -115,19 +127,19 @@ msgstr "Moderazione commenti" #: ./interfaces.py:182 msgid "Modification date" -msgstr "" +msgstr "Data di modifica" #: ./interfaces.py:163 msgid "Name" -msgstr "" +msgstr "Nome" #: ./profiles/default/workflows/comment_review_workflow/definition.xml msgid "Pending" -msgstr "" +msgstr "Attesa di approvazione" #: ./interfaces.py:160 msgid "Portal type" -msgstr "" +msgstr "Tipo di contenuto" #: ./profiles/default/workflows/comment_review_workflow/definition.xml msgid "Previous transition" @@ -139,31 +151,31 @@ msgstr "" #: ./profiles/default/workflows/comment_review_workflow/definition.xml msgid "Publish" -msgstr "" +msgstr "Pubblica" #: ./profiles/default/workflows/comment_review_workflow/definition.xml msgid "Published" -msgstr "" +msgstr "Pubblicato" #: ./profiles/default/workflows/comment_review_workflow/definition.xml msgid "Publishing the comment makes it visible to other users." -msgstr "" +msgstr "Pubblica il commento per renderlo visibile agli utenti." #: ./profiles/default/workflows/comment_review_workflow/definition.xml msgid "Reviewer publishes content" -msgstr "" +msgstr "Revisiona commenti pubblicati" #: ./interfaces.py:50 msgid "Show commenter image" -msgstr "" +msgstr "Mostra immagine del commentatore" #: ./interfaces.py:175 msgid "Subject" -msgstr "" +msgstr "Oggetto" #: ./profiles/default/workflows/comment_review_workflow/definition.xml msgid "Submitted, pending review." -msgstr "" +msgstr "Inviato, in attesa di revisione" #: ./profiles/default/workflows/comment_review_workflow/definition.xml msgid "The ID of the user who performed the previous transition" @@ -171,27 +183,27 @@ msgstr "" #: ./browser/validator.py:28 msgid "The code you entered was wrong, please enter the new one." -msgstr "" +msgstr "Il codice immesso è errato, prego forniscine uno nuovo" #: ./interfaces.py:81 msgid "The set of unique commentators (usernames)" -msgstr "" +msgstr "L'insieme unico dei commentatore (username)" #: ./profiles/default/portal_atct.xml msgid "Total number of comments" -msgstr "" +msgstr "Numero totale di commenti" #: ./interfaces.py:79 msgid "Total number of comments on this item" -msgstr "" +msgstr "Totale dei commenti per questo contenuto" #: ./profiles/default/portal_atct.xml msgid "Total number of comments on this item." -msgstr "" +msgstr "Totale dei commenti per questo contenuto" #: ./profiles/default/portal_atct.xml msgid "Users who have commented on the item" -msgstr "" +msgstr "Utenti che hanno commentato il contenuto" #: ./profiles/default/workflows/comment_review_workflow/definition.xml msgid "Visible to everyone, non-editable." @@ -203,100 +215,107 @@ msgstr "" #: ./browser/comments.py:170 msgid "Your comment awaits moderator approval." -msgstr "" +msgstr "Il tuo commento è in attesa di approvazione" #. Default: "Delete" #: ./browser/moderation.pt:52 msgid "bulkactions_delete" -msgstr "" +msgstr "Elimina" #. Default: "Publish" #: ./browser/moderation.pt:49 msgid "bulkactions_publish" -msgstr "" +msgstr "Pubblica" #. Default: "Action" #: ./browser/moderation.pt:70 msgid "heading_action" -msgstr "" +msgstr "Azione" #. Default: "Commenter" #: ./browser/moderation.pt:65 msgid "heading_author" -msgstr "" +msgstr "Commentatore" #. Default: "Comment" #: ./browser/moderation.pt:69 msgid "heading_comment" -msgstr "" +msgstr "Commento" #. Default: "In Response To" #: ./browser/moderation.pt:67 msgid "heading_context" -msgstr "" +msgstr "In risposta a" #. Default: "Date" #: ./browser/moderation.pt:66 msgid "heading_date" -msgstr "" +msgstr "Data" #. Default: "Subject" #: ./browser/moderation.pt:68 msgid "heading_subject" -msgstr "" +msgstr "Oggetto" #. Default: "If selected, anonymous users are able to post comments without logging in. It is highly recommended to use a captcha solution to prevent spam if this setting is enabled." #: ./interfaces.py:29 msgid "help_anonymous_comments" -msgstr "" +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: "Use this setting to enable or disable captcha validation for comments. If no captcha options are currently available, install plone.formwidget.captcha or plone.formwidget.recaptcha." #: ./interfaces.py:40 msgid "help_captcha" +msgstr "Usa questa impostazione per abilitato 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 'enable moderation'.\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:17 +msgid "help_discussion_settings_editform" msgstr "" +"Alcune impostazioni relative ai commenti non sono nel Pannello di Controllo delle Discussioni.\n" +"Per abilitare i commenti per uni specifico tipo di contenuto, vai alle Impostazioni tipo di contenuto del tipo voluto e scegli 'consenti i commenti'.\n" +"Per abilitare i workflow di moderazioni dei commenti, vai alle Impostazioni tipo di contenuto, scegli \"Commento\" e imposta il workflow a \"Workflow Revisione Commento\"." #. Default: "If selected, users are able to post comments on the site." #: ./interfaces.py:22 msgid "help_globally_enabled" -msgstr "" +msgstr "Se selezionato, gli utenti saranno in grado di inserire commenti nel sito." #. Default: "If selected, an image of the user is shown next to the comment." #: ./interfaces.py:51 msgid "help_show_commenter_image" -msgstr "" +msgstr "Se selezionato, un'immagine dell'utente verrà mostrata a fianco dei commenti." #. Default: "Apply" #: ./browser/moderation.pt:55 msgid "label_apply" -msgstr "" +msgstr "Applica" #. Default: "Delete" #: ./browser/moderation.pt:113 msgid "label_delete" -msgstr "" +msgstr "Elimina" #. Default: "Globally enable comments" #: ./interfaces.py:20 msgid "label_globally_enabled" -msgstr "" +msgstr "Abilita globalmente i commenti" #. Default: "Publish" #: ./browser/moderation.pt:104 msgid "label_publish" -msgstr "" +msgstr "Pubblica" #. Default: "No comments to moderate." #: ./browser/moderation.pt:27 msgid "message_nothing_to_moderate" -msgstr "" +msgstr "Non ci sono commenti da moderare" #. Default: "Bulk Actions" #: ./browser/moderation.pt:48 msgid "title_bulkactions" -msgstr "" +msgstr "Azioni in blocco" #. Default: "Moderate comments" #: ./browser/moderation.pt:21 msgid "title_review" -msgstr "" - +msgstr "Moderazione dei commenti" diff --git a/plone/app/discussion/locales/plone.app.discussion.pot b/plone/app/discussion/locales/plone.app.discussion.pot index 1d39fdd..90d0f3d 100644 --- a/plone/app/discussion/locales/plone.app.discussion.pot +++ b/plone/app/discussion/locales/plone.app.discussion.pot @@ -4,7 +4,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" -"POT-Creation-Date: 2010-01-24 11:15+0000\n" +"POT-Creation-Date: 2010-01-24 12:55+0000\n" "PO-Revision-Date: YEAR-MO-DA HO:MI +ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -29,6 +29,10 @@ msgstr "" msgid "Add a comment" msgstr "" +#: ./browser/controlpanel.py:36 +msgid "Anonymous Comments" +msgstr "" + #: ./interfaces.py:180 msgid "Author name (for display)" msgstr "" @@ -67,6 +71,10 @@ msgstr "" msgid "Commentators" msgstr "" +#: ./browser/controlpanel.py:37 +msgid "Commenter Image" +msgstr "" + #: ./profiles/default/types/Discussion_Item.xml msgid "Comments added to a content item." msgstr "" @@ -83,6 +91,10 @@ msgstr "" msgid "Date of the most recent comment" msgstr "" +#: ./vocabularies.py:30 +msgid "Disabled" +msgstr "" + #: ./profiles/default/controlpanel.xml msgid "Discussion" msgstr "" @@ -95,6 +107,10 @@ msgstr "" msgid "Email" msgstr "" +#: ./browser/controlpanel.py:35 +msgid "Enable Comments" +msgstr "" + #: ./interfaces.py:28 msgid "Enable anonymous comments" msgstr "" @@ -155,20 +171,6 @@ msgstr "" msgid "Show commenter image" msgstr "" -#: ./browser/controlpanel.py:17 -msgid "Some discussion related settings are not located - in the Discussion Control Panel. - - To enable comments for a specific content type, - go to the Types Control Panel of this type and - choose 'enable moderation'. - - To enable the moderation workflow for comments, - go to the Types Control Panel, choose "Comment" - and set workflow to "Comment Review Workflow". - " -msgstr "" - #: ./interfaces.py:175 msgid "Subject" msgstr "" @@ -267,6 +269,11 @@ msgstr "" 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 'enable moderation'.\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:17 +msgid "help_discussion_settings_editform" +msgstr "" + #. Default: "If selected, users are able to post comments on the site." #: ./interfaces.py:22 msgid "help_globally_enabled" diff --git a/plone/app/discussion/vocabularies.py b/plone/app/discussion/vocabularies.py index 31adf7d..92ff48e 100644 --- a/plone/app/discussion/vocabularies.py +++ b/plone/app/discussion/vocabularies.py @@ -3,6 +3,8 @@ from zope import component import zope.schema.interfaces import zope.schema.vocabulary +from plone.app.discussion.interfaces import _ + HAS_CAPTCHA=False try: import plone.formwidget.captcha @@ -25,7 +27,7 @@ def captcha_vocabulary(context): zope.schema.vocabulary.SimpleTerm( value='disabled', token='disabled', - title='Disabled')) + title=_(u'Disabled'))) if HAS_CAPTCHA: terms.append( From 677490a4452a6de8504cb7025b7c3a6883cde4f3 Mon Sep 17 00:00:00 2001 From: Luca Fabbri Date: Sun, 24 Jan 2010 14:00:51 +0000 Subject: [PATCH 3/4] Final fixes: now also the "Comment" button is translated svn path=/plone.app.discussion/branches/localization-enabled/; revision=33354 --- plone/app/discussion/browser/comments.py | 4 ++-- .../it/LC_MESSAGES/plone.app.discussion.po | 17 +++++++++++------ .../discussion/locales/plone.app.discussion.pot | 8 ++++++-- 3 files changed, 19 insertions(+), 10 deletions(-) diff --git a/plone/app/discussion/browser/comments.py b/plone/app/discussion/browser/comments.py index fabd721..80acbb3 100644 --- a/plone/app/discussion/browser/comments.py +++ b/plone/app/discussion/browser/comments.py @@ -25,7 +25,7 @@ from Products.Five.browser.pagetemplatefile import ViewPageTemplateFile from Products.CMFCore.utils import getToolByName -from Products.CMFPlone import PloneMessageFactory as _ +from plone.app.discussion.interfaces import _ from Products.statusmessages.interfaces import IStatusMessage from plone.registry.interfaces import IRegistry @@ -82,7 +82,7 @@ class CommentForm(extensible.ExtensibleForm, form.Form): # integrators or later use. self.widgets['author_email'].mode = interfaces.HIDDEN_MODE - @button.buttonAndHandler(_(u"Comment")) + @button.buttonAndHandler(_(u"add_comment_button",default=u"Comment"), name='comment') def handleComment(self, action): context = aq_inner(self.context) wf = getToolByName(context, 'portal_workflow') 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 8f87693..29e9628 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 @@ -2,18 +2,18 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" -"POT-Creation-Date: 2010-01-24 12:55+0000\n" -"PO-Revision-Date: YEAR-MO-DA HO:MI +ZONE\n" +"POT-Creation-Date: 2010-01-24 13:53+0000\n" +"PO-Revision-Date: 2010-01-24 14:59+0000\n" "Last-Translator: Luca Fabbri \n" "Language-Team: RedTurtle Technology \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" +"Language-Code: it\n" +"Language-Name: Italian\n" "Preferred-Encodings: utf-8 latin1\n" -"Domain: DOMAIN\n" +"Domain: plone.app.discussion\n" #: ./interfaces.py:165 msgid "A comment id unique to this conversation" @@ -43,7 +43,6 @@ msgstr "Annulla" msgid "Captcha" msgstr "" -#: ./browser/comments.py:85 #: ./interfaces.py:178 #: ./profiles/default/types/Discussion_Item.xml msgid "Comment" @@ -217,6 +216,11 @@ msgstr "" msgid "Your comment awaits moderator approval." msgstr "Il tuo commento è in attesa di approvazione" +#. Default: "Comment" +#: ./browser/comments.py:85 +msgid "add_comment_button" +msgstr "Commenta" + #. Default: "Delete" #: ./browser/moderation.pt:52 msgid "bulkactions_delete" @@ -319,3 +323,4 @@ msgstr "Azioni in blocco" #: ./browser/moderation.pt:21 msgid "title_review" msgstr "Moderazione dei commenti" + diff --git a/plone/app/discussion/locales/plone.app.discussion.pot b/plone/app/discussion/locales/plone.app.discussion.pot index 90d0f3d..9c268dd 100644 --- a/plone/app/discussion/locales/plone.app.discussion.pot +++ b/plone/app/discussion/locales/plone.app.discussion.pot @@ -4,7 +4,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" -"POT-Creation-Date: 2010-01-24 12:55+0000\n" +"POT-Creation-Date: 2010-01-24 13:53+0000\n" "PO-Revision-Date: YEAR-MO-DA HO:MI +ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -45,7 +45,6 @@ msgstr "" msgid "Captcha" msgstr "" -#: ./browser/comments.py:85 #: ./interfaces.py:178 #: ./profiles/default/types/Discussion_Item.xml msgid "Comment" @@ -219,6 +218,11 @@ msgstr "" msgid "Your comment awaits moderator approval." msgstr "" +#. Default: "Comment" +#: ./browser/comments.py:85 +msgid "add_comment_button" +msgstr "" + #. Default: "Delete" #: ./browser/moderation.pt:52 msgid "bulkactions_delete" From e7bec36665883d7575eed7a662faaf21e41f863f Mon Sep 17 00:00:00 2001 From: Luca Fabbri Date: Sun, 24 Jan 2010 14:11:50 +0000 Subject: [PATCH 4/4] Fixes to po and pot head infos svn path=/plone.app.discussion/branches/localization-enabled/; revision=33355 --- .../discussion/locales/it/LC_MESSAGES/plone.app.discussion.po | 2 +- plone/app/discussion/locales/plone.app.discussion.pot | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 29e9628..c6d7845 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,7 +1,7 @@ # Translations for plone.app.discussion msgid "" msgstr "" -"Project-Id-Version: PACKAGE VERSION\n" +"Project-Id-Version: plone.app.discussion\n" "POT-Creation-Date: 2010-01-24 13:53+0000\n" "PO-Revision-Date: 2010-01-24 14:59+0000\n" "Last-Translator: Luca Fabbri \n" diff --git a/plone/app/discussion/locales/plone.app.discussion.pot b/plone/app/discussion/locales/plone.app.discussion.pot index 9c268dd..4bc9636 100644 --- a/plone/app/discussion/locales/plone.app.discussion.pot +++ b/plone/app/discussion/locales/plone.app.discussion.pot @@ -3,7 +3,7 @@ # FIRST AUTHOR , YEAR. msgid "" msgstr "" -"Project-Id-Version: PACKAGE VERSION\n" +"Project-Id-Version: plone.app.discussion\n" "POT-Creation-Date: 2010-01-24 13:53+0000\n" "PO-Revision-Date: YEAR-MO-DA HO:MI +ZONE\n" "Last-Translator: FULL NAME \n"