diff --git a/.tx/config b/.tx/config new file mode 100644 index 0000000..f51e784 --- /dev/null +++ b/.tx/config @@ -0,0 +1,8 @@ +[main] +host = https://www.transifex.com + +[silverstripe-comments.master] +file_filter = lang/.yml +source_file = lang/en.yml +source_lang = en +type = YML \ No newline at end of file diff --git a/README.md b/README.md index c72f3fd..af347c0 100644 --- a/README.md +++ b/README.md @@ -26,3 +26,17 @@ See docs/en/Installing.md ## Related * [tractorcow/silverstripe-comments-notifications](https://github.com/tractorcow/silverstripe-comments-notifications): Comment admin email notifications module + +## Contributing + +### Translations + +Translations of the natural language strings are managed through a +third party translation interface, transifex.com. +Newly added strings will be periodically uploaded there for translation, +and any new translations will be merged back to the project source code. + +Please use https://www.transifex.com/projects/p/silverstripe-comments/ to contribute translations, +rather than sending pull requests with YAML files. + +See the ["i18n" topic](http://doc.silverstripe.org/framework/en/trunk/topics/i18n) on doc.silverstripe.org for more details. \ No newline at end of file diff --git a/lang/de.yml b/lang/de.yml index ce90c5f..d7dd6ac 100644 --- a/lang/de.yml +++ b/lang/de.yml @@ -24,7 +24,7 @@ de: WEBSITEURL: 'Website URL' CommentsAdmin: NeedsModeration: 'Benötigt Moderation' - CommentsInterface.ss: + CommentsInterface_ss: COMMENTLOGINERROR: 'Sie können diese Seite nur kommentieren, wenn Sie eingeloggt sind' COMMENTPERMISSIONERROR: 'und die nötige Berechtigung besitzen' COMMENTPOSTLOGIN: 'Login' @@ -37,9 +37,9 @@ de: PREV: zurück RSSFEEDALLCOMMENTS: 'RSS Feed für alle Kommentare' RSSFEEDCOMMENTS: 'RSS Feed für Kommentare auf dieser Seite' - CommentsInterface_pendingcomment.ss: + CommentsInterface_pendingcomment_ss: AWAITINGMODERATION: 'Ihr Kommentar wurde gespeichert und wird durch einen Moderator freigeschaltet.' - CommentsInterface_singlecomment.ss: + CommentsInterface_singlecomment_ss: APPROVE: 'Diesen Kommetar akzeptieren' ISNTSPAM: 'Dieser Kommentar ist kein Spam' ISSPAM: 'Dieser Kommentar ist Spam' diff --git a/lang/en.yml b/lang/en.yml index 78e5117..19474b8 100644 --- a/lang/en.yml +++ b/lang/en.yml @@ -24,7 +24,7 @@ en: WEBSITEURL: 'Your website URL' CommentsAdmin: NeedsModeration: 'Needs Moderation' - CommentsInterface.ss: + CommentsInterface_ss: COMMENTLOGINERROR: 'You cannot post comments until you have logged in' COMMENTPERMISSIONERROR: 'and that you have an appropriate permission level' COMMENTPOSTLOGIN: 'Login Here' @@ -37,9 +37,9 @@ en: PREV: previous RSSFEEDALLCOMMENTS: 'RSS feed for all comments' RSSFEEDCOMMENTS: 'RSS feed for comments on this page' - CommentsInterface_pendingcomment.ss: + CommentsInterface_pendingcomment_ss: AWAITINGMODERATION: 'Your comment has been submitted and is now awaiting moderation.' - CommentsInterface_singlecomment.ss: + CommentsInterface_singlecomment_ss: APPROVE: 'approve this comment' ISNTSPAM: 'this comment is not spam' ISSPAM: 'this comment is spam' diff --git a/lang/fi.yml b/lang/fi.yml index da63f06..6daf198 100644 --- a/lang/fi.yml +++ b/lang/fi.yml @@ -24,7 +24,7 @@ fi: WEBSITEURL: 'WWW-sivustosi osoite' CommentsAdmin: NeedsModeration: 'Tarvitsee moderointia' - CommentsInterface.ss: + CommentsInterface_ss: COMMENTLOGINERROR: 'Et voi kommentoida ennen kuin olet kirjautunut sisään' COMMENTPERMISSIONERROR: 'ja käyttöoikeustasosi on oltava riittävä' COMMENTPOSTLOGIN: 'Kirjaudu tästä' @@ -37,9 +37,9 @@ fi: PREV: 'edellinen' RSSFEEDALLCOMMENTS: 'RSS-syöte kaikista kommenteista' RSSFEEDCOMMENTS: 'RSS-syöte tämän sivun kommenteista' - CommentsInterface_pendingcomment.ss: + CommentsInterface_pendingcomment_ss: AWAITINGMODERATION: 'Kommenttisi on lähetetty ja on moderoitavana.' - CommentsInterface_singlecomment.ss: + CommentsInterface_singlecomment_ss: APPROVE: 'hyväksy kommentti' ISNTSPAM: 'kommentti ei ole spämmiä' ISSPAM: 'kommentti on spämmiä' diff --git a/lang/lt.yml b/lang/lt.yml index 62e9f17..f363aa9 100644 --- a/lang/lt.yml +++ b/lang/lt.yml @@ -24,7 +24,7 @@ lt: WEBSITEURL: 'Jūsų svetainės nuoroda' CommentsAdmin: NeedsModeration: 'Laukia patvirtinimo' - CommentsInterface.ss: + CommentsInterface_ss: COMMENTLOGINERROR: 'Negalite rašyti komentarų neprisijungęs' COMMENTPERMISSIONERROR: 'ir neturėdamas atitinkamo teisių lygio' COMMENTPOSTLOGIN: 'Prisijungti čia' @@ -37,9 +37,9 @@ lt: PREV: ankstesni RSSFEEDALLCOMMENTS: 'Visų komentarų RSS' RSSFEEDCOMMENTS: 'Šio puslapio komentarų RSS' - CommentsInterface_pendingcomment.ss: + CommentsInterface_pendingcomment_ss: AWAITINGMODERATION: 'Jūsų komentaras išsiųstas ir laukia patvirtinimo.' - CommentsInterface_singlecomment.ss: + CommentsInterface_singlecomment_ss: APPROVE: 'patvirtinti šį komentarą' ISNTSPAM: 'šis komentaras nėra šlamštas' ISSPAM: 'šis komentaras yra šlamštas' diff --git a/lang/nb.yml b/lang/nb.yml index 14e3d6a..cec0a66 100644 --- a/lang/nb.yml +++ b/lang/nb.yml @@ -28,7 +28,7 @@ nb: WEBSITEURL: 'Hjemmeside' CommentsAdmin: NeedsModeration: 'Trenger moderering' - CommentsInterface.ss: + CommentsInterface_ss: COMMENTLOGINERROR: 'Du kan ikke skrive kommentarer før du har logget inn' COMMENTPERMISSIONERROR: 'og at du har et passende tilgangsnivå' COMMENTPOSTLOGIN: 'Logg inn her' @@ -41,9 +41,9 @@ nb: PREV: forrige RSSFEEDALLCOMMENTS: 'RSS-feed for alle kommentarer' RSSFEEDCOMMENTS: 'RSS-feed for kommentarer på denne siden' - CommentsInterface_pendingcomment.ss: + CommentsInterface_pendingcomment_ss: AWAITINGMODERATION: 'Kommentaren din har blitt lagret og er lagt i kø for moderering.' - CommentsInterface_singlecomment.ss: + CommentsInterface_singlecomment_ss: APPROVE: 'Godta kommentar' ISNTSPAM: 'Kommentaren er ikke spam' ISSPAM: 'Merk som spam' diff --git a/lang/nl.yml b/lang/nl.yml index ecb16da..3914c44 100644 --- a/lang/nl.yml +++ b/lang/nl.yml @@ -24,7 +24,7 @@ nl: WEBSITEURL: 'Website URL' CommentsAdmin: NeedsModeration: 'Wacht op moderatie' - CommentsInterface.ss: + CommentsInterface_ss: COMMENTLOGINERROR: 'Je moet ingelogd zijn om reacties te kunnen plaatsen' COMMENTPERMISSIONERROR: 'en controleer je gebruikersrechten' COMMENTPOSTLOGIN: 'Inloggen' @@ -37,9 +37,9 @@ nl: PREV: vorige RSSFEEDALLCOMMENTS: 'RSS feed voor alle reacties' RSSFEEDCOMMENTS: 'RSS feed voor reacties op deze pagina' - CommentsInterface_pendingcomment.ss: + CommentsInterface_pendingcomment_ss: AWAITINGMODERATION: 'Je reactie is verstuurd en is in afwachting van moderatie.' - CommentsInterface_singlecomment.ss: + CommentsInterface_singlecomment_ss: APPROVE: 'reactie goedkeuren' ISNTSPAM: 'deze reactie is geen spam' ISSPAM: 'deze reactie is spam' diff --git a/templates/CommentsInterface.ss b/templates/CommentsInterface.ss index 8f18c0a..3dd1983 100755 --- a/templates/CommentsInterface.ss +++ b/templates/CommentsInterface.ss @@ -1,23 +1,23 @@ <% if CommentsEnabled %>
-

<% _t('POSTCOM','Post your comment') %>

+

<% _t('CommentsInterface_ss.POSTCOM','Post your comment') %>

<% if AddCommentForm %> <% if CanPost %> <% if ModeratedSubmitted %> -

<% _t('AWAITINGMODERATION', 'Your comment has been submitted and is now awaiting moderation.') %>

+

<% _t('CommentsInterface_ss.AWAITINGMODERATION', 'Your comment has been submitted and is now awaiting moderation.') %>

<% end_if %> $AddCommentForm <% else %> -

<% _t('COMMENTLOGINERROR', 'You cannot post comments until you have logged in') %><% if PostingRequiresPermission %>,<% _t('COMMENTPERMISSIONERROR', 'and that you have an appropriate permission level') %><% end_if %>. - <% _t('COMMENTPOSTLOGIN', 'Login Here') %>. +

<% _t('CommentsInterface_ss.COMMENTLOGINERROR', 'You cannot post comments until you have logged in') %><% if PostingRequiresPermission %>,<% _t('CommentsInterface_ss.COMMENTPERMISSIONERROR', 'and that you have an appropriate permission level') %><% end_if %>. + <% _t('CommentsInterface_ss.COMMENTPOSTLOGIN', 'Login Here') %>.

<% end_if %> <% else %> -

<% _t('COMMENTSDISABLED', 'Posting comments has been disabled') %>.

+

<% _t('CommentsInterface_ss.COMMENTSDISABLED', 'Posting comments has been disabled') %>.

<% end_if %> -

<% _t('COMMENTS','Comments') %>

+

<% _t('CommentsInterface_ss.COMMENTS','Comments') %>

<% if Comments %> @@ -33,7 +33,7 @@

<% if Comments.PrevLink %> - + <% end_if %> <% if Comments.Pages %> @@ -47,26 +47,26 @@ <% end_if %> <% if Comments.NextLink %> - + <% end_if %>

<% end_if %> <% end_if %> -

style='display: none' <% end_if %> ><% _t('NOCOMMENTSYET','No one has commented on this page yet.') %>

+

style='display: none' <% end_if %> ><% _t('CommentsInterface_ss.NOCOMMENTSYET','No one has commented on this page yet.') %>

<% if DeleteAllLink %>

- <% _t('PageCommentInterface.DELETEALLCOMMENTS','Delete all comments on this page') %> + <% _t('CommentsInterface_ss.PageCommentInterface.DELETEALLCOMMENTS','Delete all comments on this page') %>

<% end_if %>

- <% _t('RSSFEEDCOMMENTS', 'RSS feed for comments on this page') %> | - <% _t('RSSFEEDALLCOMMENTS', 'RSS feed for all comments') %> + <% _t('CommentsInterface_ss.RSSFEEDCOMMENTS', 'RSS feed for comments on this page') %> | + <% _t('CommentsInterface_ss.RSSFEEDALLCOMMENTS', 'RSS feed for all comments') %>

<% end_if %> diff --git a/templates/CommentsInterface_pendingcomment.ss b/templates/CommentsInterface_pendingcomment.ss index 3312d42..3f19313 100644 --- a/templates/CommentsInterface_pendingcomment.ss +++ b/templates/CommentsInterface_pendingcomment.ss @@ -1,3 +1,3 @@
-

<% _t('AWAITINGMODERATION', 'Your comment has been submitted and is now awaiting moderation.') %>

+

<% _t('CommentsInterface_pendingcomment_ss.AWAITINGMODERATION', 'Your comment has been submitted and is now awaiting moderation.') %>

\ No newline at end of file diff --git a/templates/CommentsInterface_singlecomment.ss b/templates/CommentsInterface_singlecomment.ss index 5e2ffa6..f4266d6 100755 --- a/templates/CommentsInterface_singlecomment.ss +++ b/templates/CommentsInterface_singlecomment.ss @@ -6,25 +6,25 @@ <% if not isPreview %>

<% if $URL %> - <% _t('PBY','Posted by') %> $AuthorName.XML, $Created.Nice ($Created.Ago) + <% _t('CommentsInterface_singlecomment_ss.PBY','Posted by') %> $AuthorName.XML, $Created.Nice ($Created.Ago) <% else %> - <% _t('PBY','Posted by') %> $AuthorName.XML, $Created.Nice ($Created.Ago) + <% _t('CommentsInterface_singlecomment_ss.PBY','Posted by') %> $AuthorName.XML, $Created.Nice ($Created.Ago) <% end_if %>

<% if $ApproveLink || $SpamLink || $HamLink || $DeleteLink %> <% end_if %>