mirror of
https://github.com/silverstripe/silverstripe-comments
synced 2024-10-22 11:05:49 +02:00
Merge branch '2'
This commit is contained in:
commit
b02928e02a
@ -2,11 +2,16 @@
|
||||
"name": "silverstripe/comments",
|
||||
"description": "This module provides commenting functionality for Pages and other DataObjects on your SilverStripe site.",
|
||||
"type": "silverstripe-vendormodule",
|
||||
"keywords": ["silverstripe", "comments"],
|
||||
"authors": [{
|
||||
"keywords": [
|
||||
"silverstripe",
|
||||
"comments"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "Will Rossiter",
|
||||
"email": "will@fullscreen.io"
|
||||
}],
|
||||
}
|
||||
],
|
||||
"require": {
|
||||
"silverstripe/framework": "^4.0",
|
||||
"colymba/gridfield-bulk-editing-tools": "^3.0"
|
||||
|
@ -4,7 +4,7 @@ if (typeof(ss) == 'undefined' || typeof(ss.i18n) == 'undefined') {
|
||||
if (typeof(console) != 'undefined') console.error('Class ss.i18n not defined');
|
||||
} else {
|
||||
ss.i18n.addDictionary('en', {
|
||||
"CommentsInterface_singlecomment_ss.DELETE_CONFIRMATION": "Are you sure?",
|
||||
"CommentsInterface_singlecomment_ss.DELETE_CONFIRMATION": "Are you sure you want to delete this comment?",
|
||||
"CommentsInterface_singlecomment_ss.AJAX_ERROR": "An error occurred whilst updating the comment",
|
||||
});
|
||||
}
|
||||
|
14
lang/de.yml
14
lang/de.yml
@ -11,9 +11,12 @@ de:
|
||||
YOURNAME_MESSAGE_REQUIRED: 'Bitte geben Sie Ihren Namen ein'
|
||||
CommentsAdmin:
|
||||
NeedsModeration: 'Benötigt Moderation'
|
||||
NewComments: Neu
|
||||
SpamComments: Spam
|
||||
CommentsInterface_pendingcomment_ss:
|
||||
AWAITINGMODERATION: 'Ihr Kommentar wurde gespeichert und wird durch einen Moderator freigeschaltet.'
|
||||
CommentsInterface_singlecomment_ss:
|
||||
ISNTSPAM: 'kein Spam'
|
||||
PBY: 'Geschrieben von'
|
||||
CommentsInterface_ss:
|
||||
AWAITINGMODERATION: 'Ihr Kommentar wurde gespeichert und wird durch einen Moderator freigeschaltet.'
|
||||
@ -37,12 +40,20 @@ de:
|
||||
MENUTITLE: Kommentare
|
||||
Moderated: Moderiert
|
||||
NeedsModeration: 'Benötigt Moderation'
|
||||
NewComments: Neu
|
||||
SpamComments: Spam
|
||||
SilverStripe\Comments\Admin\CommentsGridFieldAction:
|
||||
SPAM: Spam
|
||||
SilverStripe\Comments\Admin\CommentsGridFieldConfig:
|
||||
SPAM: Spam
|
||||
SilverStripe\Comments\Controllers\CommentingController:
|
||||
COMMENTS: Kommentare
|
||||
EMAILADDRESS: 'E-Mail Adresse (wird nicht angezeigt)'
|
||||
PERMISSIONFAILURE: 'Sie sind nicht berechtigt diese Seite zu kommentieren. Bitte stellen Sie sicher das Sie eingeloggt sind und die nötige Berechtigung besitzen.'
|
||||
RSSTITLE: 'Kommentare RSS Feed'
|
||||
WEBSITEURL: 'Website URL'
|
||||
SilverStripe\Comments\Extensions\CommentsExtension:
|
||||
COMMENTOPTIONS: Kommentare
|
||||
SilverStripe\Comments\Model\Comment:
|
||||
ALLOWCOMMENTS: 'Kommentare Erlauben'
|
||||
COMMENT: Kommentar
|
||||
@ -52,6 +63,9 @@ de:
|
||||
ISSPAM: 'Spam?'
|
||||
MODERATED: 'Moderiert?'
|
||||
NAME: 'Autor Name'
|
||||
'ON': am
|
||||
OPTIONS: Optionen
|
||||
OPTION_DESCRIPTION: 'Unmoderierte und Spam-Kommentare werden nicht angezeigt, bis sie freigeschaltet sind'
|
||||
PARENTTITLE: Parent
|
||||
PLURALNAME: Kommentare
|
||||
SINGULARNAME: Kommentar
|
||||
|
21
lang/en.yml
21
lang/en.yml
@ -12,9 +12,7 @@ en:
|
||||
Comments:
|
||||
COMMENTSREQUIRELOGIN: 'Require login to comment'
|
||||
CommentsAdmin:
|
||||
ApprovedComments: Approved
|
||||
Comments: Approved
|
||||
NeedsModeration: 'Needs Moderation'
|
||||
NewComments: New
|
||||
SpamComments: Spam
|
||||
CommentsInterface_pendingcomment_ss:
|
||||
@ -23,12 +21,12 @@ en:
|
||||
APPROVE: 'approve it'
|
||||
ISNTSPAM: 'not spam'
|
||||
ISSPAM: 'spam it'
|
||||
PBY: 'Posted by'
|
||||
REMCOM: 'reject it'
|
||||
REPLYTO: 'Reply to'
|
||||
CommentsInterface_ss:
|
||||
AWAITINGMODERATION: 'Your comment has been submitted and is now awaiting moderation.'
|
||||
COMMENTLOGINERROR: 'You cannot post comments until you have logged in'
|
||||
COMMENTPERMISSIONERROR: 'and that you have an appropriate permission level'
|
||||
COMMENTPERMISSIONERROR: 'and have an appropriate permission level'
|
||||
COMMENTPOSTLOGIN: 'Login Here'
|
||||
COMMENTS: Comments
|
||||
COMMENTSDISABLED: 'Posting comments has been disabled'
|
||||
@ -40,17 +38,13 @@ en:
|
||||
PREV: previous
|
||||
RSSFEEDALLCOMMENTS: 'RSS feed for all comments'
|
||||
RSSFEEDCOMMENTS: 'RSS feed for comments on this page'
|
||||
PageCommentInterface:
|
||||
DELETEALLCOMMENTS: 'Delete all comments on this page'
|
||||
SilverStripe\Comments\Admin\CommentAdmin:
|
||||
ADMIN_PERMISSION: 'Access to ''Comments'' section'
|
||||
ApprovedComments: Approved ({count})
|
||||
ApprovedComments: 'Approved ({count})'
|
||||
Comments: Approved
|
||||
MENUTITLE: Comments
|
||||
Moderated: Moderated
|
||||
NeedsModeration: 'Needs Moderation'
|
||||
NewComments: New ({count})
|
||||
SpamComments: Spam ({count})
|
||||
NewComments: New
|
||||
SpamComments: Spam
|
||||
SilverStripe\Comments\Admin\CommentsGridFieldAction:
|
||||
APPROVE: Approve
|
||||
COMMENTAPPROVED: 'Comment approved.'
|
||||
@ -66,7 +60,9 @@ en:
|
||||
RSSTITLE: 'Comments RSS Feed'
|
||||
WEBSITEURL: 'Your website URL'
|
||||
SilverStripe\Comments\Extensions\CommentsExtension:
|
||||
COMMENTMODERATION: 'Comment Moderation'
|
||||
COMMENTOPTIONS: Comments
|
||||
COMMENTSTABSET: Comments
|
||||
MODERATIONREQUIRED_NONE: 'No moderation required'
|
||||
MODERATIONREQUIRED_NONMEMBERSONLY: 'Only moderate non-members'
|
||||
MODERATIONREQUIRED_REQUIRED: 'Moderate all comments'
|
||||
@ -84,6 +80,9 @@ en:
|
||||
OPTION_DESCRIPTION: 'Unmoderated and spam comments will not be displayed until approved'
|
||||
PARENTTITLE: Parent
|
||||
PLURALNAME: Comments
|
||||
PLURALS:
|
||||
one: 'A Comment'
|
||||
other: '{count} Comments'
|
||||
ParentComment_Title: 'This comment is a reply to the below'
|
||||
SINGULARNAME: Comment
|
||||
URL: URL
|
||||
|
11
lang/eo.yml
11
lang/eo.yml
@ -25,6 +25,7 @@ eo:
|
||||
ISSPAM: 'spamigi ĝin'
|
||||
PBY: 'Afiŝita de'
|
||||
REMCOM: 'malakcepti ĝin'
|
||||
REPLYTO: 'Respondi al'
|
||||
CommentsInterface_ss:
|
||||
AWAITINGMODERATION: 'Via komento afiŝiĝis kaj nun atendas kontrolon.'
|
||||
COMMENTLOGINERROR: 'Vi ne povas afiŝi komenton ĝis vi ensalutis'
|
||||
@ -51,6 +52,14 @@ eo:
|
||||
NeedsModeration: 'Bezonas kontrolon'
|
||||
NewComments: Nova
|
||||
SpamComments: Spamo
|
||||
SilverStripe\Comments\Admin\CommentsGridFieldAction:
|
||||
APPROVE: Aprobi
|
||||
COMMENTAPPROVED: 'Komento aprobita.'
|
||||
COMMENTMARKEDSPAM: 'Markis komenton kiel spamon'
|
||||
SPAM: Spamo
|
||||
SilverStripe\Comments\Admin\CommentsGridFieldConfig:
|
||||
APPROVE: Aprobi
|
||||
SPAM: Spamo
|
||||
SilverStripe\Comments\Controllers\CommentingController:
|
||||
COMMENTS: Komentoj
|
||||
EMAILADDRESS: 'Via retadreso (ne publikiĝos)'
|
||||
@ -59,6 +68,7 @@ eo:
|
||||
WEBSITEURL: 'Via reteja URL'
|
||||
SilverStripe\Comments\Extensions\CommentsExtension:
|
||||
COMMENTOPTIONS: Komentoj
|
||||
COMMENTSTABSET: Komentoj
|
||||
MODERATIONREQUIRED_NONE: 'Kontrolado ne bezonatas'
|
||||
MODERATIONREQUIRED_NONMEMBERSONLY: 'Kontroli nur nemembrojn'
|
||||
MODERATIONREQUIRED_REQUIRED: 'Kontroli ĉiujn komentojn'
|
||||
@ -72,6 +82,7 @@ eo:
|
||||
MODERATED: 'Ĉu kontrolata?'
|
||||
NAME: 'Nomo de aŭtoro'
|
||||
'ON': en
|
||||
OPTIONS: Agordoj
|
||||
OPTION_DESCRIPTION: 'Ne vidigos nekontrolitajn aŭ spamajn komentojn antaŭ aprobo'
|
||||
PARENTTITLE: Patra
|
||||
PLURALNAME: Komentoj
|
||||
|
@ -5,8 +5,8 @@ fa_IR:
|
||||
EMAILADDRESS_MESSAGE_EMAIL: 'لطفاً نشانی ایمیل معتبر وارد نمایید'
|
||||
EMAILADDRESS_MESSAGE_REQUIRED: 'لطفاً نشانی ایمیل خود را وارد نمایید'
|
||||
POST: ارسال
|
||||
PREVIEW: 'پیشنمایش'
|
||||
PREVIEWLABEL: 'پیشنمایش'
|
||||
PREVIEW: پیشنمایش
|
||||
PREVIEWLABEL: پیشنمایش
|
||||
YOURNAME: 'نام شما'
|
||||
YOURNAME_MESSAGE_REQUIRED: 'لطفاً نام خود را وارد نمایید'
|
||||
Comments:
|
||||
@ -25,6 +25,7 @@ fa_IR:
|
||||
ISSPAM: هرزنوشته
|
||||
PBY: 'ارسال شده توسط'
|
||||
REMCOM: 'رد کردن'
|
||||
REPLYTO: 'ارسال پاسخ به'
|
||||
CommentsInterface_ss:
|
||||
AWAITINGMODERATION: 'دیدگاه شما ارسال شده و هماکنون در انتظار بررسی است.'
|
||||
COMMENTLOGINERROR: 'تا زمانیکه وارد سایت نشدهاید نمیتوانید دیدگاهی درج نمایید'
|
||||
@ -51,6 +52,14 @@ fa_IR:
|
||||
NeedsModeration: 'نیازمند مدیریت'
|
||||
NewComments: تازه
|
||||
SpamComments: هرزنوشت
|
||||
SilverStripe\Comments\Admin\CommentsGridFieldAction:
|
||||
APPROVE: تایید
|
||||
COMMENTAPPROVED: 'دیدگاه تایید شد.'
|
||||
COMMENTMARKEDSPAM: 'دیدگاه به عنوان هرزنوشت علامتگذاری شد.'
|
||||
SPAM: هرزنوشت
|
||||
SilverStripe\Comments\Admin\CommentsGridFieldConfig:
|
||||
APPROVE: تایید
|
||||
SPAM: هرزنوشت
|
||||
SilverStripe\Comments\Controllers\CommentingController:
|
||||
COMMENTS: دیدگاهها
|
||||
EMAILADDRESS: 'ایمیل شما (منتشر نخواهد شد)'
|
||||
@ -67,11 +76,12 @@ fa_IR:
|
||||
COMMENT: دیدگاه
|
||||
COMMENTBY: 'دیدگاه توسط %s'
|
||||
CREATED: 'تاریخ ارسال'
|
||||
EMAIL: 'ایمیل'
|
||||
EMAIL: ایمیل
|
||||
ISSPAM: هرزنوشت؟
|
||||
MODERATED: 'مدیریت شده؟'
|
||||
NAME: 'نام نگارنده'
|
||||
'ON': در
|
||||
OPTIONS: گزینهها
|
||||
OPTION_DESCRIPTION: 'دیدگاههای مدیریت نشده و هرزنوشتها تا زمان تایید به نمایش در نخواهند آمد'
|
||||
PARENTTITLE: والد
|
||||
PLURALNAME: دیدگاهها
|
||||
|
40
lang/fi.yml
40
lang/fi.yml
@ -9,19 +9,31 @@ fi:
|
||||
PREVIEWLABEL: Esikatselu
|
||||
YOURNAME: Nimesi
|
||||
YOURNAME_MESSAGE_REQUIRED: Nimesi
|
||||
Comments:
|
||||
COMMENTSREQUIRELOGIN: 'Vaadi kirjautuminen kommentointiin'
|
||||
CommentsAdmin:
|
||||
ApprovedComments: Hyväksytty
|
||||
Comments: Hyväksytty
|
||||
NeedsModeration: 'Tarvitsee moderointia'
|
||||
NewComments: Uusi
|
||||
SpamComments: Spämmiä
|
||||
CommentsInterface_pendingcomment_ss:
|
||||
AWAITINGMODERATION: 'Kommenttisi on lähetetty ja on moderoitavana.'
|
||||
AWAITINGMODERATION: 'Kommenttisi on lähetetty ja odottaa moderointia.'
|
||||
CommentsInterface_singlecomment_ss:
|
||||
APPROVE: 'hyväksy se'
|
||||
ISNTSPAM: 'ei spämmiä'
|
||||
ISSPAM: 'merkitse spämmiksi'
|
||||
PBY: Lähettänyt
|
||||
REMCOM: 'hylkää se'
|
||||
REPLYTO: Vastausosoite
|
||||
CommentsInterface_ss:
|
||||
AWAITINGMODERATION: 'Kommenttisi on lähetetty ja on moderoitavana.'
|
||||
AWAITINGMODERATION: 'Kommenttisi on lähetetty ja odottaa moderointia.'
|
||||
COMMENTLOGINERROR: 'Et voi kommentoida ennen kuin olet kirjautunut sisään'
|
||||
COMMENTPERMISSIONERROR: 'ja käyttöoikeustasosi on oltava riittävä'
|
||||
COMMENTPOSTLOGIN: 'Kirjaudu tästä'
|
||||
COMMENTS: Comments
|
||||
COMMENTSDISABLED: 'Kommentointi on lukittu'
|
||||
DELETEALLCOMMENTS: 'Poista kaikki tämän sivun kommentit'
|
||||
LOGINTOPOSTCOMMENT: 'Kirjaudu kommentoidaksesi'
|
||||
NEXT: seuraava
|
||||
NOCOMMENTSYET: 'Kukaan ei ole vielä kommentoinut tätä sivua.'
|
||||
@ -32,15 +44,34 @@ fi:
|
||||
PageCommentInterface:
|
||||
DELETEALLCOMMENTS: 'Poista kaikki tämän sivun kommentit'
|
||||
SilverStripe\Comments\Admin\CommentAdmin:
|
||||
ADMIN_PERMISSION: 'Pääsy Comments-osioon'
|
||||
ApprovedComments: Hyväksytty
|
||||
Comments: Hyväksytty
|
||||
MENUTITLE: Kommentit
|
||||
Moderated: Moderoitu
|
||||
NeedsModeration: 'Tarvitsee moderointia'
|
||||
NewComments: Uusi
|
||||
SpamComments: Spämmiä
|
||||
SilverStripe\Comments\Admin\CommentsGridFieldAction:
|
||||
APPROVE: Hyväksy
|
||||
COMMENTAPPROVED: 'Kommentti hyväksytty'
|
||||
COMMENTMARKEDSPAM: 'Kommentti merkitty spämmiksi.'
|
||||
SPAM: Spämmiä
|
||||
SilverStripe\Comments\Admin\CommentsGridFieldConfig:
|
||||
APPROVE: Hyväksy
|
||||
SPAM: Spämmiä
|
||||
SilverStripe\Comments\Controllers\CommentingController:
|
||||
COMMENTS: Kommentit
|
||||
EMAILADDRESS: 'Sähköpostiosoitteesi (ei julkaista)'
|
||||
PERMISSIONFAILURE: 'Et voi kommentoida tätä sivua. Varmista, että olet kirjatuneena ja että käyttöoikeutesi ovat riittävät.'
|
||||
RSSTITLE: 'Kommenttien RSS-syöte'
|
||||
WEBSITEURL: 'WWW-sivustosi osoite'
|
||||
SilverStripe\Comments\Extensions\CommentsExtension:
|
||||
COMMENTOPTIONS: Kommentit
|
||||
COMMENTSTABSET: Kommentit
|
||||
MODERATIONREQUIRED_NONE: 'Moderointia ei tarvita'
|
||||
MODERATIONREQUIRED_NONMEMBERSONLY: 'Moderoi vain ei-jäsenet'
|
||||
MODERATIONREQUIRED_REQUIRED: 'Moderoi kaikki kommentit'
|
||||
SilverStripe\Comments\Model\Comment:
|
||||
ALLOWCOMMENTS: 'Salli kommentointi'
|
||||
COMMENT: Komentti
|
||||
@ -51,7 +82,10 @@ fi:
|
||||
MODERATED: 'Moderoitu?'
|
||||
NAME: 'Kirjoittajan nimi'
|
||||
'ON': pvm
|
||||
OPTIONS: Asetukset
|
||||
OPTION_DESCRIPTION: 'Moderoimattomat ja roskakommentit eivät näy ennen hyväksymistä'
|
||||
PARENTTITLE: Isäntä
|
||||
PLURALNAME: Kommentit
|
||||
SINGULARNAME: Komentti
|
||||
ParentComment_Title: 'Tämä kommentti on vastaus alla olevaan'
|
||||
SINGULARNAME: Kommentti
|
||||
URL: URL-osoite
|
||||
|
@ -15,7 +15,6 @@ fr:
|
||||
AWAITINGMODERATION: 'Votre commentaire a été soumis à modération.'
|
||||
CommentsInterface_singlecomment_ss:
|
||||
PBY: 'Posté par'
|
||||
REPLYTO: 'Répondre à'
|
||||
CommentsInterface_ss:
|
||||
AWAITINGMODERATION: 'Votre commentaire a été soumis à modération.'
|
||||
COMMENTLOGINERROR: 'Vous ne pouvez pas poster de commentaires sans être connecté'
|
||||
@ -33,7 +32,6 @@ fr:
|
||||
PageCommentInterface:
|
||||
DELETEALLCOMMENTS: 'Supprimer tout les commentaires de cette page'
|
||||
SilverStripe\Comments\Admin\CommentAdmin:
|
||||
ADMIN_PERMISSION: 'Accès à la section Commentaires'
|
||||
MENUTITLE: Commentaires
|
||||
Moderated: Modéré
|
||||
NeedsModeration: 'Besoin de modération'
|
||||
|
90
lang/hr.yml
Normal file
90
lang/hr.yml
Normal file
@ -0,0 +1,90 @@
|
||||
hr:
|
||||
CommentInterface:
|
||||
COMMENT_MESSAGE_REQUIRED: 'Molimo unesite vaš komentar'
|
||||
COMMENT_MESSAGE_URL: 'Molimo unesite ispravan link'
|
||||
EMAILADDRESS_MESSAGE_EMAIL: 'Molimo unesite ispravnu email adresu'
|
||||
EMAILADDRESS_MESSAGE_REQUIRED: 'Molimo unesite email adresu'
|
||||
POST: Objava
|
||||
PREVIEW: Pregled
|
||||
PREVIEWLABEL: Pregled
|
||||
YOURNAME: 'Vaše ime'
|
||||
YOURNAME_MESSAGE_REQUIRED: 'Molimo unesite vaše ime'
|
||||
Comments:
|
||||
COMMENTSREQUIRELOGIN: 'Zahtjeva prijavu za komentiranje'
|
||||
CommentsAdmin:
|
||||
ApprovedComments: Odobren
|
||||
Comments: Odobren
|
||||
NeedsModeration: 'Zahtjeva moderaciju'
|
||||
NewComments: Novo
|
||||
SpamComments: Spam
|
||||
CommentsInterface_pendingcomment_ss:
|
||||
AWAITINGMODERATION: 'Vaš komentar je zaprimljen i čeka odobrenje.'
|
||||
CommentsInterface_singlecomment_ss:
|
||||
APPROVE: 'odobri ga'
|
||||
ISNTSPAM: 'nije spam'
|
||||
ISSPAM: 'Spamaj ga'
|
||||
PBY: Objavio
|
||||
REMCOM: 'odbaci ga'
|
||||
REPLYTO: 'Odgovori na'
|
||||
CommentsInterface_ss:
|
||||
AWAITINGMODERATION: 'Vaš komentar je zaprimljen i čeka odobrenje.'
|
||||
COMMENTLOGINERROR: 'Ne možete objavljivati komentare dok se ne prijavite'
|
||||
COMMENTPERMISSIONERROR: 'i da imate potrebna prava'
|
||||
COMMENTPOSTLOGIN: 'Prijavi se ovdje'
|
||||
COMMENTS: Komentari
|
||||
COMMENTSDISABLED: 'Objavljivanje komentara je onemogućeno'
|
||||
DELETEALLCOMMENTS: 'Obriši sve komentare na ovoj stranici'
|
||||
LOGINTOPOSTCOMMENT: 'Prijavi se da objaviš komentar'
|
||||
NEXT: sljedeći
|
||||
NOCOMMENTSYET: 'Nitko nije komentirao na ovu stranicu.'
|
||||
POSTCOM: 'Objavi svoj komentar'
|
||||
PREV: prethodni
|
||||
RSSFEEDALLCOMMENTS: 'RSS kanal za sve komentare'
|
||||
RSSFEEDCOMMENTS: 'RSS kanal za sve komentare na ovoj stranici'
|
||||
PageCommentInterface:
|
||||
DELETEALLCOMMENTS: 'Obriši sve komentare na ovoj stranici'
|
||||
SilverStripe\Comments\Admin\CommentAdmin:
|
||||
ADMIN_PERMISSION: 'Pristup ''Comments'' sekciji'
|
||||
ApprovedComments: Odobren
|
||||
Comments: Odobren
|
||||
MENUTITLE: Komentari
|
||||
Moderated: Moderiran
|
||||
NeedsModeration: 'Zahtjeva moderaciju'
|
||||
NewComments: Novo
|
||||
SpamComments: Spam
|
||||
SilverStripe\Comments\Admin\CommentsGridFieldAction:
|
||||
APPROVE: Odobri
|
||||
COMMENTAPPROVED: 'Komentar odobren.'
|
||||
COMMENTMARKEDSPAM: 'Komentar označen kao spam.'
|
||||
SPAM: SPam
|
||||
SilverStripe\Comments\Admin\CommentsGridFieldConfig:
|
||||
APPROVE: Odobri
|
||||
SPAM: Spam
|
||||
SilverStripe\Comments\Controllers\CommentingController:
|
||||
COMMENTS: Komentari
|
||||
EMAILADDRESS: 'Vaša email adresa (neće biti objavljena)'
|
||||
PERMISSIONFAILURE: 'Ne možete objavljivati komentare na ovoj stranici. Molimo provjerite da li ste prijavljeni i imate potrebna prava.'
|
||||
RSSTITLE: 'RSS kanal komentara'
|
||||
WEBSITEURL: 'Vaša web adresa'
|
||||
SilverStripe\Comments\Extensions\CommentsExtension:
|
||||
COMMENTOPTIONS: Komentari
|
||||
MODERATIONREQUIRED_NONE: 'Nije potrebna moderacija'
|
||||
MODERATIONREQUIRED_NONMEMBERSONLY: 'Samo moderiraj goste'
|
||||
MODERATIONREQUIRED_REQUIRED: 'Moderiraj sve komentare'
|
||||
SilverStripe\Comments\Model\Comment:
|
||||
ALLOWCOMMENTS: 'Dozvoli komentare'
|
||||
COMMENT: Komentar
|
||||
COMMENTBY: 'Komentar od %s'
|
||||
CREATED: 'Datum objave'
|
||||
EMAIL: Email
|
||||
ISSPAM: 'Spam?'
|
||||
MODERATED: 'Moderirano?'
|
||||
NAME: 'Ime autora'
|
||||
'ON': na
|
||||
OPTIONS: Opcije
|
||||
OPTION_DESCRIPTION: 'Nemoderirani i spam komentari neće biti objavljeni dok se ne odobre'
|
||||
PARENTTITLE: Roditelj
|
||||
PLURALNAME: Komentari
|
||||
ParentComment_Title: 'Ovaj komentar je odgovor na dolje'
|
||||
SINGULARNAME: Komentar
|
||||
URL: Link
|
@ -16,7 +16,7 @@ lt:
|
||||
Comments: Patvirtinti
|
||||
NeedsModeration: 'Laukia patvirtinimo'
|
||||
NewComments: Nauji
|
||||
SpamComments: 'Šlamštas'
|
||||
SpamComments: Šlamštas
|
||||
CommentsInterface_pendingcomment_ss:
|
||||
AWAITINGMODERATION: 'Jūsų komentaras išsiųstas ir laukia patvirtinimo.'
|
||||
CommentsInterface_singlecomment_ss:
|
||||
@ -50,7 +50,7 @@ lt:
|
||||
Moderated: Patvirtinti
|
||||
NeedsModeration: 'Laukia patvirtinimo'
|
||||
NewComments: Nauji
|
||||
SpamComments: 'Šlamštas'
|
||||
SpamComments: Šlamštas
|
||||
SilverStripe\Comments\Controllers\CommentingController:
|
||||
COMMENTS: Komentarai
|
||||
EMAILADDRESS: 'Jūsų el.pašto adresas (nebus skelbiamas)'
|
||||
|
@ -5,8 +5,8 @@ pl_PL:
|
||||
EMAILADDRESS_MESSAGE_EMAIL: 'Wprowadź poprawny adres email'
|
||||
EMAILADDRESS_MESSAGE_REQUIRED: 'Wprowadź swój adres email'
|
||||
POST: Wyślij
|
||||
PREVIEW: 'Podgląd'
|
||||
PREVIEWLABEL: 'Podgląd'
|
||||
PREVIEW: Podgląd
|
||||
PREVIEWLABEL: Podgląd
|
||||
YOURNAME: 'Twoja nazwa'
|
||||
YOURNAME_MESSAGE_REQUIRED: 'Wprowadź swoje imie'
|
||||
Comments:
|
||||
|
46
lang/ru.yml
46
lang/ru.yml
@ -1,5 +1,6 @@
|
||||
ru:
|
||||
CommentInterface:
|
||||
COMMENT_MESSAGE_REQUIRED: 'Введите ваш комментарий'
|
||||
COMMENT_MESSAGE_URL: 'Пожалуйста, задайте действительный URL-адрес'
|
||||
EMAILADDRESS_MESSAGE_EMAIL: 'Пожалуйста, укажите действительный электронный адрес'
|
||||
EMAILADDRESS_MESSAGE_REQUIRED: 'Пожалуйста, укажите свой электронный адрес'
|
||||
@ -8,29 +9,68 @@ ru:
|
||||
PREVIEWLABEL: Просмотр
|
||||
YOURNAME: Имя
|
||||
YOURNAME_MESSAGE_REQUIRED: 'Пожалуйста, укажите своё имя'
|
||||
Comments:
|
||||
COMMENTSREQUIRELOGIN: 'Необходимо войти в систему для комментирования'
|
||||
CommentsAdmin:
|
||||
ApprovedComments: Одобренные
|
||||
Comments: Одобрен
|
||||
NeedsModeration: 'Необходима Проверка'
|
||||
NewComments: Новые
|
||||
SpamComments: Спам
|
||||
CommentsInterface_pendingcomment_ss:
|
||||
AWAITINGMODERATION: 'Ваш комментарий отправлен и ожидает проверки.'
|
||||
CommentsInterface_singlecomment_ss:
|
||||
APPROVE: Одобрить
|
||||
ISNTSPAM: 'не спам'
|
||||
ISSPAM: 'это спам'
|
||||
PBY: 'Автор:'
|
||||
REMCOM: удалить
|
||||
REPLYTO: Ответить
|
||||
CommentsInterface_ss:
|
||||
AWAITINGMODERATION: 'Ваш комментарий отправлен и ожидает проверки.'
|
||||
COMMENTLOGINERROR: 'Вы не можете отправлять комментарии пока не войдёте в систему'
|
||||
COMMENTPERMISSIONERROR: 'и пока не получите соответствующие права доступа'
|
||||
COMMENTPOSTLOGIN: 'Вход в систему'
|
||||
COMMENTS: Комментарии
|
||||
COMMENTSDISABLED: 'Комментарии отключены'
|
||||
DELETEALLCOMMENTS: 'удалить все комментарии со страницы'
|
||||
LOGINTOPOSTCOMMENT: 'Войдите чтобы получить возможность отправлять комментарии'
|
||||
NEXT: следующий
|
||||
NOCOMMENTSYET: 'Комментариев на этой странице пока нет.'
|
||||
POSTCOM: 'Отправить комментарий'
|
||||
PREV: предыдущие
|
||||
RSSFEEDALLCOMMENTS: 'RSS лента для всех комментариев'
|
||||
RSSFEEDCOMMENTS: 'RSS лента для комментариев на этой странице'
|
||||
PageCommentInterface:
|
||||
DELETEALLCOMMENTS: 'Удалить все комментарии на этой странице'
|
||||
SilverStripe\Comments\Admin\CommentAdmin:
|
||||
ADMIN_PERMISSION: 'Доступ к разделу ''Комментарии'''
|
||||
ApprovedComments: Одобренные
|
||||
Comments: Одобрен
|
||||
MENUTITLE: Комментарии
|
||||
Moderated: Проверен
|
||||
NeedsModeration: 'Необходима Проверка'
|
||||
NewComments: Новый
|
||||
SpamComments: Спам
|
||||
SilverStripe\Comments\Admin\CommentsGridFieldAction:
|
||||
APPROVE: Одобрить
|
||||
COMMENTAPPROVED: 'Комментарий одобрен.'
|
||||
COMMENTMARKEDSPAM: 'Комментарий помечен как спам.'
|
||||
SPAM: Спам
|
||||
SilverStripe\Comments\Admin\CommentsGridFieldConfig:
|
||||
APPROVE: Одобрить
|
||||
SPAM: Спам
|
||||
SilverStripe\Comments\Controllers\CommentingController:
|
||||
COMMENTS: Комментарии
|
||||
EMAILADDRESS: 'Ваш электронный адрес (не будет опубликован)'
|
||||
PERMISSIONFAILURE: 'Вы не можете отправлять комментарии на эту страницу. Убедитесь что вы вошли в систему и имеете необходимые права доступа.'
|
||||
RSSTITLE: 'RSS-лента комментариев'
|
||||
WEBSITEURL: 'Адрес вашего сайта'
|
||||
SilverStripe\Comments\Extensions\CommentsExtension:
|
||||
COMMENTOPTIONS: Комментарии
|
||||
MODERATIONREQUIRED_NONE: 'Проверка не требуется'
|
||||
MODERATIONREQUIRED_NONMEMBERSONLY: 'Проверка требуется только для незарегистрированных пользователей'
|
||||
MODERATIONREQUIRED_REQUIRED: 'Проверка требуется для всех комментариев'
|
||||
SilverStripe\Comments\Model\Comment:
|
||||
ALLOWCOMMENTS: 'Разрешить комментарии'
|
||||
COMMENT: Комментарий
|
||||
@ -40,7 +80,11 @@ ru:
|
||||
ISSPAM: 'Спам?'
|
||||
MODERATED: 'Проверено?'
|
||||
NAME: Автор
|
||||
PARENTTITLE: 'Родительская'
|
||||
'ON': на
|
||||
OPTIONS: Опции
|
||||
OPTION_DESCRIPTION: 'Комментарии не будут отображаться пока не будут одобрены модератором'
|
||||
PARENTTITLE: Родительская
|
||||
PLURALNAME: Комментарии
|
||||
ParentComment_Title: 'Этот комментарий ответ на сообщение ниже'
|
||||
SINGULARNAME: Комментарий
|
||||
URL: URL
|
||||
|
90
lang/sk.yml
Normal file
90
lang/sk.yml
Normal file
@ -0,0 +1,90 @@
|
||||
sk:
|
||||
CommentInterface:
|
||||
COMMENT_MESSAGE_REQUIRED: 'Prosím vložte komentár'
|
||||
COMMENT_MESSAGE_URL: 'Prosím zadajte platnú URL adresu'
|
||||
EMAILADDRESS_MESSAGE_EMAIL: 'Prosím zadajte platnú e-mailovú adresu'
|
||||
EMAILADDRESS_MESSAGE_REQUIRED: 'Prosím zadajte váš e-mail'
|
||||
POST: Odoslať
|
||||
PREVIEW: Náhľad
|
||||
PREVIEWLABEL: Náhľad
|
||||
YOURNAME: 'Vaše meno'
|
||||
YOURNAME_MESSAGE_REQUIRED: 'Vložte vaše meno'
|
||||
Comments:
|
||||
COMMENTSREQUIRELOGIN: 'Vyžadovať prihlásenie na pridávanie komentárov'
|
||||
CommentsAdmin:
|
||||
ApprovedComments: Schválené
|
||||
Comments: Schválené
|
||||
NeedsModeration: 'Vyžaduje schválenie'
|
||||
NewComments: Nové
|
||||
SpamComments: Spam
|
||||
CommentsInterface_pendingcomment_ss:
|
||||
AWAITINGMODERATION: 'Váš komentár bol odoslaný a čaká na kontrolu.'
|
||||
CommentsInterface_singlecomment_ss:
|
||||
APPROVE: Schváliť
|
||||
ISNTSPAM: 'nie je spam'
|
||||
ISSPAM: 'je spam'
|
||||
PBY: Napísal
|
||||
REMCOM: Odmietnuť
|
||||
REPLYTO: Odpovedať
|
||||
CommentsInterface_ss:
|
||||
AWAITINGMODERATION: 'Váš komentár bol odoslaný a čaká na kontrolu.'
|
||||
COMMENTLOGINERROR: 'Nemôžete pridávať komentáre pokiaľ nie ste prihlásený'
|
||||
COMMENTPERMISSIONERROR: 'a nemáte dostatočné oprávnenia'
|
||||
COMMENTPOSTLOGIN: 'Prihlásiť sa'
|
||||
COMMENTS: Komentáre
|
||||
COMMENTSDISABLED: 'Už nie je možné pridávať nové komentáre'
|
||||
DELETEALLCOMMENTS: 'Odstrániť všetky komentáre na tejto stránke'
|
||||
LOGINTOPOSTCOMMENT: 'Pre komentovanie sa prihláste'
|
||||
NEXT: nasledujúce
|
||||
NOCOMMENTSYET: 'Táto stránka ešte nebola komentovaná.'
|
||||
POSTCOM: 'Napíšte komentárPridať komentár'
|
||||
PREV: predchádzajúce
|
||||
RSSFEEDALLCOMMENTS: 'RSS kanál pre všetky komentáre'
|
||||
RSSFEEDCOMMENTS: 'RSS kanál pre komentáre na tejto stránke'
|
||||
PageCommentInterface:
|
||||
DELETEALLCOMMENTS: 'Odstrániť všetky komentáre na tejto stránke'
|
||||
SilverStripe\Comments\Admin\CommentAdmin:
|
||||
ADMIN_PERMISSION: 'Prístup k sekcii ''Komentáre'''
|
||||
ApprovedComments: Schválené
|
||||
Comments: Schválené
|
||||
MENUTITLE: Komentáre
|
||||
Moderated: Odsúhlasený
|
||||
NeedsModeration: 'Vyžaduje odsúhlasenie'
|
||||
NewComments: Nové
|
||||
SpamComments: Spam
|
||||
SilverStripe\Comments\Admin\CommentsGridFieldAction:
|
||||
APPROVE: Schváliť
|
||||
COMMENTAPPROVED: 'Komentár schválený.'
|
||||
COMMENTMARKEDSPAM: 'Komentár označený ako spam.'
|
||||
SPAM: Spam
|
||||
SilverStripe\Comments\Admin\CommentsGridFieldConfig:
|
||||
APPROVE: Schváliť
|
||||
SPAM: Spam
|
||||
SilverStripe\Comments\Controllers\CommentingController:
|
||||
COMMENTS: Komentáre
|
||||
EMAILADDRESS: 'Váš e-mail (nebude zverejnený)'
|
||||
PERMISSIONFAILURE: 'Nemôžete písať komentáre k tejto stránke. Prosím skontrolujte či ste prihlásený, a že máte dostatočné oprávnenia.'
|
||||
RSSTITLE: 'RSS feed komentárov'
|
||||
WEBSITEURL: 'Vaša web stránka'
|
||||
SilverStripe\Comments\Extensions\CommentsExtension:
|
||||
COMMENTOPTIONS: Komentáre
|
||||
MODERATIONREQUIRED_NONE: 'Nevyžadovať odsúhlasenie'
|
||||
MODERATIONREQUIRED_NONMEMBERSONLY: 'Vyžadovať odsúhlasenie len od neprihlásených užívateľov'
|
||||
MODERATIONREQUIRED_REQUIRED: 'Odsúhlasiť všetky komentáre'
|
||||
SilverStripe\Comments\Model\Comment:
|
||||
ALLOWCOMMENTS: 'Povoliť komentáre'
|
||||
COMMENT: Komentár
|
||||
COMMENTBY: 'Komentáre od %s'
|
||||
CREATED: 'Dátum odoslania'
|
||||
EMAIL: E-mail
|
||||
ISSPAM: 'Spam?'
|
||||
MODERATED: 'Odsúhlasený?'
|
||||
NAME: 'Meno autora'
|
||||
'ON': na
|
||||
OPTIONS: Možnosti
|
||||
OPTION_DESCRIPTION: 'Neodsúhlasené a spamové komentáre nebudú zobrazené'
|
||||
PARENTTITLE: 'Komentovaný príspevok'
|
||||
PLURALNAME: Komentáre
|
||||
ParentComment_Title: 'Tento komentár je odpoveď na komentár zobrazený nižšie'
|
||||
SINGULARNAME: Komentár
|
||||
URL: 'Web adresa'
|
@ -1,27 +1,76 @@
|
||||
sk_SK:
|
||||
CommentInterface:
|
||||
COMMENT_MESSAGE_REQUIRED: 'Pridaj scoj komentár'
|
||||
COMMENT_MESSAGE_URL: 'Vlož platbú adresu URL'
|
||||
COMMENT_MESSAGE_REQUIRED: 'Prosím vložte komentár'
|
||||
COMMENT_MESSAGE_URL: 'Prosím zadajte platnú URL adresu'
|
||||
EMAILADDRESS_MESSAGE_EMAIL: 'Prosím zadajte platnú e-mailovú adresu'
|
||||
EMAILADDRESS_MESSAGE_REQUIRED: 'Prosím zadajte váš e-mail'
|
||||
POST: Odoslať
|
||||
PREVIEW: Náhľad
|
||||
PREVIEWLABEL: Náhľad
|
||||
YOURNAME: 'Vaše meno'
|
||||
YOURNAME_MESSAGE_REQUIRED: 'Vlož svoje meno'
|
||||
YOURNAME_MESSAGE_REQUIRED: 'Vložte vaše meno'
|
||||
Comments:
|
||||
COMMENTSREQUIRELOGIN: 'Vyžadovať prihlásenie na pridávanie komentárov'
|
||||
CommentsAdmin:
|
||||
ApprovedComments: Schválené
|
||||
Comments: Schválené
|
||||
NeedsModeration: 'Vyžaduje schválenie'
|
||||
NewComments: Nové
|
||||
SpamComments: Spam
|
||||
CommentsInterface_pendingcomment_ss:
|
||||
AWAITINGMODERATION: 'Váš komentár bol odoslaný a čaká na kontrolu.'
|
||||
CommentsInterface_singlecomment_ss:
|
||||
APPROVE: Schváliť
|
||||
ISNTSPAM: 'nie je spam'
|
||||
ISSPAM: 'je spam'
|
||||
PBY: Napísal
|
||||
REMCOM: Odmietnuť
|
||||
REPLYTO: Odpovedať
|
||||
CommentsInterface_ss:
|
||||
COMMENTLOGINERROR: 'Komentáre môže pridávať len prihlásený užívateľ'
|
||||
AWAITINGMODERATION: 'Váš komentár bol odoslaný a čaká na kontrolu.'
|
||||
COMMENTLOGINERROR: 'Nemôžete pridávať komentáre pokiaľ nie ste prihlásený'
|
||||
COMMENTPERMISSIONERROR: 'a nemáte dostatočné oprávnenia'
|
||||
COMMENTPOSTLOGIN: 'Prihlásiť sa'
|
||||
COMMENTS: Komentáre
|
||||
COMMENTSDISABLED: 'Už nie je možné pridávať nové komentáre'
|
||||
DELETEALLCOMMENTS: 'Odstrániť všetky komentáre na tejto stránke'
|
||||
LOGINTOPOSTCOMMENT: 'Prihláste sa, aby ste mohli písať komentáre'
|
||||
NEXT: nasledujúce
|
||||
NOCOMMENTSYET: 'Táto stránka ešte nebola komentovaná.'
|
||||
POSTCOM: 'Napíšte komentár'
|
||||
PREV: predchádzajúce
|
||||
RSSFEEDALLCOMMENTS: 'RSS kanál pre všetky komentáre'
|
||||
RSSFEEDCOMMENTS: 'RSS kanál pre komentáre na tejto stránke'
|
||||
PageCommentInterface:
|
||||
DELETEALLCOMMENTS: 'Odstrániť všetky komentáre na tejto stránke'
|
||||
SilverStripe\Comments\Admin\CommentAdmin:
|
||||
ADMIN_PERMISSION: 'Prístup k sekcii ''Komentáre'''
|
||||
ApprovedComments: Schválené
|
||||
Comments: Schválené
|
||||
MENUTITLE: Komentáre
|
||||
Moderated: Odsúhlasený
|
||||
NeedsModeration: 'Vyžaduje odsúhlasenie'
|
||||
NewComments: Nové
|
||||
SpamComments: Spam
|
||||
SilverStripe\Comments\Admin\CommentsGridFieldAction:
|
||||
APPROVE: Schváliť
|
||||
COMMENTAPPROVED: 'Komentár schválený.'
|
||||
COMMENTMARKEDSPAM: 'Komentár označený ako spam.'
|
||||
SPAM: Spam
|
||||
SilverStripe\Comments\Admin\CommentsGridFieldConfig:
|
||||
APPROVE: Schváliť
|
||||
SPAM: Spam
|
||||
SilverStripe\Comments\Controllers\CommentingController:
|
||||
COMMENTS: Komentáre
|
||||
EMAILADDRESS: 'Váš e-mail (nebude zverejnený)'
|
||||
PERMISSIONFAILURE: 'Nemôžete písať komentáre k tejto stránke. Prosím skontrolujte či ste prihlásený, a že máte dostatočné oprávnenia.'
|
||||
RSSTITLE: 'RSS feed komentárov'
|
||||
WEBSITEURL: 'Vaša web stránka'
|
||||
SilverStripe\Comments\Extensions\CommentsExtension:
|
||||
COMMENTOPTIONS: Komentáre
|
||||
MODERATIONREQUIRED_NONE: 'Nevyžadovať odsúhlasenie'
|
||||
MODERATIONREQUIRED_NONMEMBERSONLY: 'Vyžadovať odsúhlasenie len od neprihlásených užívateľov'
|
||||
MODERATIONREQUIRED_REQUIRED: 'Odsúhlasiť všetky komentáre'
|
||||
SilverStripe\Comments\Model\Comment:
|
||||
ALLOWCOMMENTS: 'Povoliť komentáre'
|
||||
COMMENT: Komentár
|
||||
@ -31,7 +80,11 @@ sk_SK:
|
||||
ISSPAM: 'Spam?'
|
||||
MODERATED: 'Odsúhlasený?'
|
||||
NAME: 'Meno autora'
|
||||
'ON': na
|
||||
OPTIONS: Možnosti
|
||||
OPTION_DESCRIPTION: 'Neodsúhlasené a spamové komentáre nebudú zobrazené'
|
||||
PARENTTITLE: Rodič
|
||||
PLURALNAME: Komentáre
|
||||
ParentComment_Title: 'Tento komentár je odpoveď na komentár zobrazený nižšie'
|
||||
SINGULARNAME: Komentár
|
||||
URL: 'Web adresa'
|
||||
|
@ -2,6 +2,7 @@
|
||||
|
||||
namespace SilverStripe\Comments\Extensions;
|
||||
|
||||
use SilverStripe\CMS\Model\SiteTree;
|
||||
use SilverStripe\Comments\Admin\CommentsGridField;
|
||||
use SilverStripe\Comments\Admin\CommentsGridFieldConfig;
|
||||
use SilverStripe\Comments\Controllers\CommentingController;
|
||||
@ -152,7 +153,7 @@ class CommentsExtension extends DataExtension
|
||||
*/
|
||||
public function updateSettingsFields(FieldList $fields)
|
||||
{
|
||||
$options = FieldGroup::create()->setTitle(_t('SilverStripe\\Comments\\Extensions\\CommentsExtension.COMMENTOPTIONS', 'Comments'));
|
||||
$options = FieldGroup::create()->setTitle(_t(__CLASS__ . '.COMMENTOPTIONS', 'Comments'));
|
||||
|
||||
// Check if enabled setting should be cms configurable
|
||||
if ($this->owner->getCommentsOption('enabled_cms')) {
|
||||
@ -179,9 +180,9 @@ class CommentsExtension extends DataExtension
|
||||
|
||||
// Check if moderation should be enabled via cms configurable
|
||||
if ($this->owner->getCommentsOption('require_moderation_cms')) {
|
||||
$moderationField = new DropdownField('ModerationRequired', _t('SilverStripe\\Comments\\Extensions\\CommentsExtension.COMMENTMODERATION', 'Comment Moderation'), array(
|
||||
'None' => _t('SilverStripe\\Comments\\Extensions\\CommentsExtension.MODERATIONREQUIRED_NONE', 'No moderation required'),
|
||||
'Required' => _t('SilverStripe\\Comments\\Extensions\\CommentsExtension.MODERATIONREQUIRED_REQUIRED', 'Moderate all comments'),
|
||||
$moderationField = new DropdownField('ModerationRequired', _t(__CLASS__ . '.COMMENTMODERATION', 'Comment Moderation'), array(
|
||||
'None' => _t(__CLASS__ . '.MODERATIONREQUIRED_NONE', 'No moderation required'),
|
||||
'Required' => _t(__CLASS__ . '.MODERATIONREQUIRED_REQUIRED', 'Moderate all comments'),
|
||||
'NonMembersOnly' => _t(
|
||||
'SilverStripe\\Comments\\Extensions\\CommentsExtension.MODERATIONREQUIRED_NONMEMBERSONLY',
|
||||
'Only moderate non-members'
|
||||
@ -594,6 +595,8 @@ class CommentsExtension extends DataExtension
|
||||
$spamGrid
|
||||
)
|
||||
);
|
||||
$tabs->setTitle(_t(__CLASS__ . '.COMMENTSTABSET', 'Comments'));
|
||||
|
||||
$fields->addFieldToTab('Root', $tabs);
|
||||
} else {
|
||||
$fields->push($newGrid);
|
||||
|
@ -34,4 +34,36 @@ class CommentAdminTest extends SapphireTest
|
||||
);
|
||||
$this->assertEquals($expected, $commentAdmin->providePermissions());
|
||||
}
|
||||
|
||||
public function testGetEditForm()
|
||||
{
|
||||
$commentAdmin = new CommentAdmin();
|
||||
$this->logInWithPermission('CMS_ACCESS_CommentAdmin');
|
||||
$form = $commentAdmin->getEditForm();
|
||||
$names = $this->getFormFieldNames($form);
|
||||
$expected = array(
|
||||
'NewComments',
|
||||
'ApprovedComments',
|
||||
'SpamComments'
|
||||
);
|
||||
$this->assertEquals($expected, $names);
|
||||
|
||||
if ($member = Member::currentUser()) {
|
||||
$member->logOut();
|
||||
}
|
||||
|
||||
$form = $commentAdmin->getEditForm();
|
||||
}
|
||||
|
||||
private function getFormFieldNames($form)
|
||||
{
|
||||
$result = array();
|
||||
$fields = $form->Fields();
|
||||
$tab = $fields->findOrMakeTab('Root');
|
||||
$fields = $tab->FieldList();
|
||||
foreach ($fields as $field) {
|
||||
array_push($result, $field->getName());
|
||||
}
|
||||
return $result;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user