Transifex translation support

This commit is contained in:
Ingo Schommer 2013-07-08 12:08:02 +02:00
parent 8f57e21db8
commit 8e6be3f361
11 changed files with 59 additions and 37 deletions

8
.tx/config Normal file
View File

@ -0,0 +1,8 @@
[main]
host = https://www.transifex.com
[silverstripe-comments.master]
file_filter = lang/<lang>.yml
source_file = lang/en.yml
source_lang = en
type = YML

View File

@ -26,3 +26,17 @@ See docs/en/Installing.md
## Related ## Related
* [tractorcow/silverstripe-comments-notifications](https://github.com/tractorcow/silverstripe-comments-notifications): Comment admin email notifications module * [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.

View File

@ -24,7 +24,7 @@ de:
WEBSITEURL: 'Website URL' WEBSITEURL: 'Website URL'
CommentsAdmin: CommentsAdmin:
NeedsModeration: 'Benötigt Moderation' NeedsModeration: 'Benötigt Moderation'
CommentsInterface.ss: CommentsInterface_ss:
COMMENTLOGINERROR: 'Sie können diese Seite nur kommentieren, wenn Sie eingeloggt sind' COMMENTLOGINERROR: 'Sie können diese Seite nur kommentieren, wenn Sie eingeloggt sind'
COMMENTPERMISSIONERROR: 'und die nötige Berechtigung besitzen' COMMENTPERMISSIONERROR: 'und die nötige Berechtigung besitzen'
COMMENTPOSTLOGIN: 'Login' COMMENTPOSTLOGIN: 'Login'
@ -37,9 +37,9 @@ de:
PREV: zurück PREV: zurück
RSSFEEDALLCOMMENTS: 'RSS Feed für alle Kommentare' RSSFEEDALLCOMMENTS: 'RSS Feed für alle Kommentare'
RSSFEEDCOMMENTS: 'RSS Feed für Kommentare auf dieser Seite' 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.' AWAITINGMODERATION: 'Ihr Kommentar wurde gespeichert und wird durch einen Moderator freigeschaltet.'
CommentsInterface_singlecomment.ss: CommentsInterface_singlecomment_ss:
APPROVE: 'Diesen Kommetar akzeptieren' APPROVE: 'Diesen Kommetar akzeptieren'
ISNTSPAM: 'Dieser Kommentar ist kein Spam' ISNTSPAM: 'Dieser Kommentar ist kein Spam'
ISSPAM: 'Dieser Kommentar ist Spam' ISSPAM: 'Dieser Kommentar ist Spam'

View File

@ -24,7 +24,7 @@ en:
WEBSITEURL: 'Your website URL' WEBSITEURL: 'Your website URL'
CommentsAdmin: CommentsAdmin:
NeedsModeration: 'Needs Moderation' NeedsModeration: 'Needs Moderation'
CommentsInterface.ss: CommentsInterface_ss:
COMMENTLOGINERROR: 'You cannot post comments until you have logged in' COMMENTLOGINERROR: 'You cannot post comments until you have logged in'
COMMENTPERMISSIONERROR: 'and that you have an appropriate permission level' COMMENTPERMISSIONERROR: 'and that you have an appropriate permission level'
COMMENTPOSTLOGIN: 'Login Here' COMMENTPOSTLOGIN: 'Login Here'
@ -37,9 +37,9 @@ en:
PREV: previous PREV: previous
RSSFEEDALLCOMMENTS: 'RSS feed for all comments' RSSFEEDALLCOMMENTS: 'RSS feed for all comments'
RSSFEEDCOMMENTS: 'RSS feed for comments on this page' 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.' AWAITINGMODERATION: 'Your comment has been submitted and is now awaiting moderation.'
CommentsInterface_singlecomment.ss: CommentsInterface_singlecomment_ss:
APPROVE: 'approve this comment' APPROVE: 'approve this comment'
ISNTSPAM: 'this comment is not spam' ISNTSPAM: 'this comment is not spam'
ISSPAM: 'this comment is spam' ISSPAM: 'this comment is spam'

View File

@ -24,7 +24,7 @@ fi:
WEBSITEURL: 'WWW-sivustosi osoite' WEBSITEURL: 'WWW-sivustosi osoite'
CommentsAdmin: CommentsAdmin:
NeedsModeration: 'Tarvitsee moderointia' NeedsModeration: 'Tarvitsee moderointia'
CommentsInterface.ss: CommentsInterface_ss:
COMMENTLOGINERROR: 'Et voi kommentoida ennen kuin olet kirjautunut sisään' COMMENTLOGINERROR: 'Et voi kommentoida ennen kuin olet kirjautunut sisään'
COMMENTPERMISSIONERROR: 'ja käyttöoikeustasosi on oltava riittävä' COMMENTPERMISSIONERROR: 'ja käyttöoikeustasosi on oltava riittävä'
COMMENTPOSTLOGIN: 'Kirjaudu tästä' COMMENTPOSTLOGIN: 'Kirjaudu tästä'
@ -37,9 +37,9 @@ fi:
PREV: 'edellinen' PREV: 'edellinen'
RSSFEEDALLCOMMENTS: 'RSS-syöte kaikista kommenteista' RSSFEEDALLCOMMENTS: 'RSS-syöte kaikista kommenteista'
RSSFEEDCOMMENTS: 'RSS-syöte tämän sivun kommenteista' RSSFEEDCOMMENTS: 'RSS-syöte tämän sivun kommenteista'
CommentsInterface_pendingcomment.ss: CommentsInterface_pendingcomment_ss:
AWAITINGMODERATION: 'Kommenttisi on lähetetty ja on moderoitavana.' AWAITINGMODERATION: 'Kommenttisi on lähetetty ja on moderoitavana.'
CommentsInterface_singlecomment.ss: CommentsInterface_singlecomment_ss:
APPROVE: 'hyväksy kommentti' APPROVE: 'hyväksy kommentti'
ISNTSPAM: 'kommentti ei ole spämmiä' ISNTSPAM: 'kommentti ei ole spämmiä'
ISSPAM: 'kommentti on spämmiä' ISSPAM: 'kommentti on spämmiä'

View File

@ -24,7 +24,7 @@ lt:
WEBSITEURL: 'Jūsų svetainės nuoroda' WEBSITEURL: 'Jūsų svetainės nuoroda'
CommentsAdmin: CommentsAdmin:
NeedsModeration: 'Laukia patvirtinimo' NeedsModeration: 'Laukia patvirtinimo'
CommentsInterface.ss: CommentsInterface_ss:
COMMENTLOGINERROR: 'Negalite rašyti komentarų neprisijungęs' COMMENTLOGINERROR: 'Negalite rašyti komentarų neprisijungęs'
COMMENTPERMISSIONERROR: 'ir neturėdamas atitinkamo teisių lygio' COMMENTPERMISSIONERROR: 'ir neturėdamas atitinkamo teisių lygio'
COMMENTPOSTLOGIN: 'Prisijungti čia' COMMENTPOSTLOGIN: 'Prisijungti čia'
@ -37,9 +37,9 @@ lt:
PREV: ankstesni PREV: ankstesni
RSSFEEDALLCOMMENTS: 'Visų komentarų RSS' RSSFEEDALLCOMMENTS: 'Visų komentarų RSS'
RSSFEEDCOMMENTS: 'Šio puslapio komentarų RSS' RSSFEEDCOMMENTS: 'Šio puslapio komentarų RSS'
CommentsInterface_pendingcomment.ss: CommentsInterface_pendingcomment_ss:
AWAITINGMODERATION: 'Jūsų komentaras išsiųstas ir laukia patvirtinimo.' AWAITINGMODERATION: 'Jūsų komentaras išsiųstas ir laukia patvirtinimo.'
CommentsInterface_singlecomment.ss: CommentsInterface_singlecomment_ss:
APPROVE: 'patvirtinti šį komentarą' APPROVE: 'patvirtinti šį komentarą'
ISNTSPAM: 'šis komentaras nėra šlamštas' ISNTSPAM: 'šis komentaras nėra šlamštas'
ISSPAM: 'šis komentaras yra šlamštas' ISSPAM: 'šis komentaras yra šlamštas'

View File

@ -28,7 +28,7 @@ nb:
WEBSITEURL: 'Hjemmeside' WEBSITEURL: 'Hjemmeside'
CommentsAdmin: CommentsAdmin:
NeedsModeration: 'Trenger moderering' NeedsModeration: 'Trenger moderering'
CommentsInterface.ss: CommentsInterface_ss:
COMMENTLOGINERROR: 'Du kan ikke skrive kommentarer før du har logget inn' COMMENTLOGINERROR: 'Du kan ikke skrive kommentarer før du har logget inn'
COMMENTPERMISSIONERROR: 'og at du har et passende tilgangsnivå' COMMENTPERMISSIONERROR: 'og at du har et passende tilgangsnivå'
COMMENTPOSTLOGIN: 'Logg inn her' COMMENTPOSTLOGIN: 'Logg inn her'
@ -41,9 +41,9 @@ nb:
PREV: forrige PREV: forrige
RSSFEEDALLCOMMENTS: 'RSS-feed for alle kommentarer' RSSFEEDALLCOMMENTS: 'RSS-feed for alle kommentarer'
RSSFEEDCOMMENTS: 'RSS-feed for kommentarer på denne siden' 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.' AWAITINGMODERATION: 'Kommentaren din har blitt lagret og er lagt i kø for moderering.'
CommentsInterface_singlecomment.ss: CommentsInterface_singlecomment_ss:
APPROVE: 'Godta kommentar' APPROVE: 'Godta kommentar'
ISNTSPAM: 'Kommentaren er ikke spam' ISNTSPAM: 'Kommentaren er ikke spam'
ISSPAM: 'Merk som spam' ISSPAM: 'Merk som spam'

View File

@ -24,7 +24,7 @@ nl:
WEBSITEURL: 'Website URL' WEBSITEURL: 'Website URL'
CommentsAdmin: CommentsAdmin:
NeedsModeration: 'Wacht op moderatie' NeedsModeration: 'Wacht op moderatie'
CommentsInterface.ss: CommentsInterface_ss:
COMMENTLOGINERROR: 'Je moet ingelogd zijn om reacties te kunnen plaatsen' COMMENTLOGINERROR: 'Je moet ingelogd zijn om reacties te kunnen plaatsen'
COMMENTPERMISSIONERROR: 'en controleer je gebruikersrechten' COMMENTPERMISSIONERROR: 'en controleer je gebruikersrechten'
COMMENTPOSTLOGIN: 'Inloggen' COMMENTPOSTLOGIN: 'Inloggen'
@ -37,9 +37,9 @@ nl:
PREV: vorige PREV: vorige
RSSFEEDALLCOMMENTS: 'RSS feed voor alle reacties' RSSFEEDALLCOMMENTS: 'RSS feed voor alle reacties'
RSSFEEDCOMMENTS: 'RSS feed voor reacties op deze pagina' 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.' AWAITINGMODERATION: 'Je reactie is verstuurd en is in afwachting van moderatie.'
CommentsInterface_singlecomment.ss: CommentsInterface_singlecomment_ss:
APPROVE: 'reactie goedkeuren' APPROVE: 'reactie goedkeuren'
ISNTSPAM: 'deze reactie is geen spam' ISNTSPAM: 'deze reactie is geen spam'
ISSPAM: 'deze reactie is spam' ISSPAM: 'deze reactie is spam'

View File

@ -1,23 +1,23 @@
<% if CommentsEnabled %> <% if CommentsEnabled %>
<div id="$CommentHolderID" class="comments-holder-container"> <div id="$CommentHolderID" class="comments-holder-container">
<h4><% _t('POSTCOM','Post your comment') %></h4> <h4><% _t('CommentsInterface_ss.POSTCOM','Post your comment') %></h4>
<% if AddCommentForm %> <% if AddCommentForm %>
<% if CanPost %> <% if CanPost %>
<% if ModeratedSubmitted %> <% if ModeratedSubmitted %>
<p id="$CommentHolderID_PostCommentForm_error" class="message good"><% _t('AWAITINGMODERATION', 'Your comment has been submitted and is now awaiting moderation.') %></p> <p id="$CommentHolderID_PostCommentForm_error" class="message good"><% _t('CommentsInterface_ss.AWAITINGMODERATION', 'Your comment has been submitted and is now awaiting moderation.') %></p>
<% end_if %> <% end_if %>
$AddCommentForm $AddCommentForm
<% else %> <% else %>
<p><% _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 %>. <p><% _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 %>.
<a href="Security/login?BackURL={$Parent.Link}" title="<% _t('LOGINTOPOSTCOMMENT', 'Login to post a comment') %>"><% _t('COMMENTPOSTLOGIN', 'Login Here') %></a>. <a href="Security/login?BackURL={$Parent.Link}" title="<% _t('CommentsInterface_ss.LOGINTOPOSTCOMMENT', 'Login to post a comment') %>"><% _t('CommentsInterface_ss.COMMENTPOSTLOGIN', 'Login Here') %></a>.
</p> </p>
<% end_if %> <% end_if %>
<% else %> <% else %>
<p><% _t('COMMENTSDISABLED', 'Posting comments has been disabled') %>.</p> <p><% _t('CommentsInterface_ss.COMMENTSDISABLED', 'Posting comments has been disabled') %>.</p>
<% end_if %> <% end_if %>
<h4><% _t('COMMENTS','Comments') %></h4> <h4><% _t('CommentsInterface_ss.COMMENTS','Comments') %></h4>
<div class="comments-holder"> <div class="comments-holder">
<% if Comments %> <% if Comments %>
@ -33,7 +33,7 @@
<div class="comments-pagination"> <div class="comments-pagination">
<p> <p>
<% if Comments.PrevLink %> <% if Comments.PrevLink %>
<a href="$Comments.PrevLink" class="previous">&laquo; <% _t('PREV','previous') %></a> <a href="$Comments.PrevLink" class="previous">&laquo; <% _t('CommentsInterface_ss.PREV','previous') %></a>
<% end_if %> <% end_if %>
<% if Comments.Pages %> <% if Comments.Pages %>
@ -47,26 +47,26 @@
<% end_if %> <% end_if %>
<% if Comments.NextLink %> <% if Comments.NextLink %>
<a href="$Comments.NextLink" class="next"><% _t('NEXT','next') %> &raquo;</a> <a href="$Comments.NextLink" class="next"><% _t('CommentsInterface_ss.NEXT','next') %> &raquo;</a>
<% end_if %> <% end_if %>
</p> </p>
</div> </div>
<% end_if %> <% end_if %>
<% end_if %> <% end_if %>
<p class="no-comments-yet"<% if $Comments.Count %> style='display: none' <% end_if %> ><% _t('NOCOMMENTSYET','No one has commented on this page yet.') %></p> <p class="no-comments-yet"<% if $Comments.Count %> style='display: none' <% end_if %> ><% _t('CommentsInterface_ss.NOCOMMENTSYET','No one has commented on this page yet.') %></p>
</div> </div>
<% if DeleteAllLink %> <% if DeleteAllLink %>
<p class="delete-comments"> <p class="delete-comments">
<a href="$DeleteAllLink"><% _t('PageCommentInterface.DELETEALLCOMMENTS','Delete all comments on this page') %></a> <a href="$DeleteAllLink"><% _t('CommentsInterface_ss.PageCommentInterface.DELETEALLCOMMENTS','Delete all comments on this page') %></a>
</p> </p>
<% end_if %> <% end_if %>
<p class="commenting-rss-feed"> <p class="commenting-rss-feed">
<a href="$RssLinkPage"><% _t('RSSFEEDCOMMENTS', 'RSS feed for comments on this page') %></a> | <a href="$RssLinkPage"><% _t('CommentsInterface_ss.RSSFEEDCOMMENTS', 'RSS feed for comments on this page') %></a> |
<a href="$RssLink"><% _t('RSSFEEDALLCOMMENTS', 'RSS feed for all comments') %></a> <a href="$RssLink"><% _t('CommentsInterface_ss.RSSFEEDALLCOMMENTS', 'RSS feed for all comments') %></a>
</p> </p>
</div> </div>
<% end_if %> <% end_if %>

View File

@ -1,3 +1,3 @@
<div class="pending-comment"> <div class="pending-comment">
<p><% _t('AWAITINGMODERATION', 'Your comment has been submitted and is now awaiting moderation.') %></p> <p><% _t('CommentsInterface_pendingcomment_ss.AWAITINGMODERATION', 'Your comment has been submitted and is now awaiting moderation.') %></p>
</div> </div>

View File

@ -6,25 +6,25 @@
<% if not isPreview %> <% if not isPreview %>
<p class="info"> <p class="info">
<% if $URL %> <% if $URL %>
<% _t('PBY','Posted by') %> <a href="$URL.URL" rel="nofollow">$AuthorName.XML</a>, $Created.Nice ($Created.Ago) <% _t('CommentsInterface_singlecomment_ss.PBY','Posted by') %> <a href="$URL.URL" rel="nofollow">$AuthorName.XML</a>, $Created.Nice ($Created.Ago)
<% else %> <% 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 %> <% end_if %>
</p> </p>
<% if $ApproveLink || $SpamLink || $HamLink || $DeleteLink %> <% if $ApproveLink || $SpamLink || $HamLink || $DeleteLink %>
<ul class="action-links"> <ul class="action-links">
<% if ApproveLink %> <% if ApproveLink %>
<li><a href="$ApproveLink.ATT" class="approve"><% _t('APPROVE', 'approve this comment') %></a></li> <li><a href="$ApproveLink.ATT" class="approve"><% _t('CommentsInterface_singlecomment_ss.APPROVE', 'approve this comment') %></a></li>
<% end_if %> <% end_if %>
<% if SpamLink %> <% if SpamLink %>
<li><a href="$SpamLink.ATT" class="spam"><% _t('ISSPAM','this comment is spam') %></a></li> <li><a href="$SpamLink.ATT" class="spam"><% _t('CommentsInterface_singlecomment_ss.ISSPAM','this comment is spam') %></a></li>
<% end_if %> <% end_if %>
<% if HamLink %> <% if HamLink %>
<li><a href="$HamLink.ATT" class="ham"><% _t('ISNTSPAM','this comment is not spam') %></a></li> <li><a href="$HamLink.ATT" class="ham"><% _t('CommentsInterface_singlecomment_ss.ISNTSPAM','this comment is not spam') %></a></li>
<% end_if %> <% end_if %>
<% if DeleteLink %> <% if DeleteLink %>
<li class="last"><a href="$DeleteLink.ATT" class="delete"><% _t('REMCOM','remove this comment') %></a></li> <li class="last"><a href="$DeleteLink.ATT" class="delete"><% _t('CommentsInterface_singlecomment_ss.REMCOM','remove this comment') %></a></li>
<% end_if %> <% end_if %>
</ul> </ul>
<% end_if %> <% end_if %>