diff --git a/.tx/config b/.tx/config new file mode 100644 index 0000000..fe5880f --- /dev/null +++ b/.tx/config @@ -0,0 +1,8 @@ +[main] +host = https://www.transifex.com + +[silverstripe-widgets.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 78e4f17..1dfbef5 100644 --- a/README.md +++ b/README.md @@ -294,3 +294,17 @@ Page class). One way to fix this is to comment out line 30 in BlogHolder.php and Then you can use the Widget area you defined on Page.php + +## 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-widgets/](https://www.transifex.com/projects/p/silverstripe-widgets/) 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 6ce03e5..5065295 100644 --- a/lang/de.yml +++ b/lang/de.yml @@ -1,13 +1,13 @@ de: - WidgetAreaEditor.ss: + WidgetAreaEditor_ss: AVAILABLE: "Vorhandene Widgets" AVAILWIDGETS: "Klicke den Widget Titel, um es zu benutzen." NOAVAIL: "Es sind derzeit keine Widgets verfügbar." INUSE: "Benutzte Widgets" TOSORT: "Um die Widgets auf dieser Seite zu sortieren, ziehe sie nach oben oder unten." - WidgetEditor.ss: + WidgetEditor_ss: DELETE: "Löschen" - WidgetDescription.ss: + WidgetDescription_ss: CLICKTOADDWIDGET: "Klicke um dieses Widget hinzuzufügen" WidgetArea: PLURALNAME: "Widgetbereiche" diff --git a/lang/en.yml b/lang/en.yml index 92b012e..439d2ce 100644 --- a/lang/en.yml +++ b/lang/en.yml @@ -1,13 +1,13 @@ en: - WidgetAreaEditor.ss: + WidgetAreaEditor_ss: AVAILABLE: "Available Widgets" AVAILWIDGETS: "Click a widget title below to use it on this page." NOAVAIL: "There are currently no widgets available." INUSE: "Widgets currently used" TOSORT: "To sort currently used widgets on this page, drag them up and down." - WidgetEditor.ss: + WidgetEditor_ss: DELETE: "Delete" - WidgetDescription.ss: + WidgetDescription_ss: CLICKTOADDWIDGET: "Click to add this widget" WidgetArea: PLURALNAME: "Widget areas" diff --git a/lang/nl.yml b/lang/nl.yml index 21f9a3e..6ba87fc 100644 --- a/lang/nl.yml +++ b/lang/nl.yml @@ -1,13 +1,13 @@ nl: - WidgetAreaEditor.ss: + WidgetAreaEditor_ss: AVAILABLE: "Beschikbare Widgets" AVAILWIDGETS: "Klik op een widget titel hieronder, om de widget te gebruiken op deze pagina." NOAVAIL: "Er zijn geen widgets beschikbaar." INUSE: "Huidige gebruikte Widgets" TOSORT: "Om uw widgets te sorteren op deze pagina, rangschik met drag & drop." - WidgetEditor.ss: + WidgetEditor_ss: DELETE: "Verwijderen" - WidgetDescription.ss: + WidgetDescription_ss: CLICKTOADDWIDGET: "Klik om deze widget toe te voegen" WidgetArea: PLURALNAME: "Widget plaatsen" diff --git a/lang/sv.yml b/lang/sv.yml index a059887..c956cb8 100644 --- a/lang/sv.yml +++ b/lang/sv.yml @@ -1,13 +1,13 @@ sv: - WidgetAreaEditor.ss: + WidgetAreaEditor_ss: AVAILABLE: "Tillgängliga widgets" AVAILWIDGETS: "Klicka på en widget nedan för att använda den på sidan." NOAVAIL: "Inga widgets tillängliga." INUSE: "Använda widgets" TOSORT: "För att sortera widgetar på denna sida, dra dem uppåt eller nedåt." - WidgetEditor.ss: + WidgetEditor_ss: DELETE: "Radera" - WidgetDescription.ss: + WidgetDescription_ss: CLICKTOADDWIDGET: "Klicka för att lägga till denna widget" WidgetArea: PLURALNAME: "Widget Areas" diff --git a/templates/WidgetAreaEditor.ss b/templates/WidgetAreaEditor.ss index 9fe4eeb..b735eec 100644 --- a/templates/WidgetAreaEditor.ss +++ b/templates/WidgetAreaEditor.ss @@ -1,8 +1,8 @@
maxwidgets="$MaxWidgets"<% end_if %>>
-

<% _t('AVAILABLE', 'Available Widgets') %>

-

<% _t('AVAILWIDGETS', 'Click a widget title below to use it on this page.') %>

+

<% _t('WidgetAreaEditor_ss.AVAILABLE', 'Available Widgets') %>

+

<% _t('WidgetAreaEditor_ss.AVAILWIDGETS', 'Click a widget title below to use it on this page.') %>

<% if AvailableWidgets %> <% loop AvailableWidgets %> @@ -10,14 +10,14 @@ <% end_loop %> <% else %>
-

<% _t('NOAVAIL', 'There are currently no widgets available.') %>

+

<% _t('WidgetAreaEditor_ss.NOAVAIL', 'There are currently no widgets available.') %>

<% end_if %>
-

<% _t('INUSE', 'Widgets currently used') %>

-

<% _t('TOSORT', 'To sort currently used widgets on this page, drag them up and down.') %>

+

<% _t('WidgetAreaEditor_ss.INUSE', 'Widgets currently used') %>

+

<% _t('WidgetAreaEditor_ss.TOSORT', 'To sort currently used widgets on this page, drag them up and down.') %>

<% if UsedWidgets %> diff --git a/templates/WidgetDescription.ss b/templates/WidgetDescription.ss index 423f990..af5e495 100644 --- a/templates/WidgetDescription.ss +++ b/templates/WidgetDescription.ss @@ -1,5 +1,5 @@
-

$CMSTitle

+

$CMSTitle

$Description

diff --git a/templates/WidgetEditor.ss b/templates/WidgetEditor.ss index 6b48143..d784f8b 100644 --- a/templates/WidgetEditor.ss +++ b/templates/WidgetEditor.ss @@ -10,5 +10,5 @@ <% end_if %> -

<% _t('DELETE', 'Delete') %>

+

<% _t('WidgetEditor_ss.DELETE', 'Delete') %>

\ No newline at end of file