Skip to content

Commit

Permalink
Merge pull request #232 from creative-commoners/pulls/3/translatable
Browse files Browse the repository at this point in the history
ENH Update translations
  • Loading branch information
emteknetnz authored Mar 9, 2023
2 parents 1c5ae8a + c62be20 commit 793a547
Show file tree
Hide file tree
Showing 36 changed files with 214 additions and 99 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: CI

on:
push:
pull_request:
workflow_dispatch:
# Every Monday at 12:20pm UTC
schedule:
- cron: '20 12 * * 1'

jobs:
ci:
name: CI
# Only run cron on the colymba account
if: (github.event_name == 'schedule' && github.repository_owner == 'colymba') || (github.event_name != 'schedule')
uses: silverstripe/gha-ci/.github/workflows/ci.yml@v1
17 changes: 17 additions & 0 deletions .github/workflows/keepalive.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Keepalive

on:
workflow_dispatch:
# The 4th of every month at 10:50am UTC
schedule:
- cron: '50 10 4 * *'

jobs:
keepalive:
name: Keepalive
# Only run cron on the colymba account
if: (github.event_name == 'schedule' && github.repository_owner == 'colymba') || (github.event_name != 'schedule')
runs-on: ubuntu-latest
steps:
- name: Keepalive
uses: silverstripe/gha-keepalive@v1
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
10
15 changes: 7 additions & 8 deletions .tx/config
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
[main]
host = https://www.transifex.com

[gridfieldbulkeditingtools.yml]
[o:silverstripe:p:silverstripe-gridfield-bulk-editing-tools:r:master]
file_filter = lang/<lang>.yml
minimum_perc = 0
source_file = lang/en.yml
source_lang = en
type = YML
type = YML

[gridfieldbulkeditingtools.js]
file_filter = client/src/lang/<lang>.json
minimum_perc = 0
source_file = client/src/lang/en.json
[o:silverstripe:p:silverstripe-gridfield-bulk-editing-tools:r:master-js]
file_filter = client/lang/src/<lang>.json
source_file = client/lang/src/en.json
source_lang = en
type = JSON
type = KEYVALUEJSON


2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ See [BULK_MANAGER.md](docs/en//BULK_MANAGER.md) for detailed configuration.

Translations of the natural language strings are managed through a third party translation interface, transifex.com.

Please use [https://www.transifex.com/projects/p/gridfieldbulkeditingtools/](https://www.transifex.com/projects/p/gridfieldbulkeditingtools/) to contribute translations, rather than sending pull requests with YAML/JS files.
Please use https://www.transifex.com/silverstripe/silverstripe-gridfield-bulk-editing-tools to contribute translations, rather than sending pull requests with YAML/JS files.

## License and Copyright

Expand Down
8 changes: 6 additions & 2 deletions client/lang/cs.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
if(typeof(ss) == 'undefined' || typeof(ss.i18n) == 'undefined') {
if(typeof(console) != 'undefined') console.error('Class ss.i18n not defined');
// This file was generated by silverstripe/tx-translator from client/lang/src/cs.json.
// See https://github.com/silverstripe/silverstripe-tx-translator for details
if (typeof(ss) === 'undefined' || typeof(ss.i18n) === 'undefined') {
if (typeof(console) !== 'undefined') { // eslint-disable-line no-console
console.error('Class ss.i18n not defined'); // eslint-disable-line no-console
}
} else {
ss.i18n.addDictionary('cs', {
"GRIDFIELD_BULK_UPLOAD.PROGRESS_INFO": "Uploading %s file(s). %s done. %s error(s).",
Expand Down
8 changes: 6 additions & 2 deletions client/lang/de.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
if(typeof(ss) == 'undefined' || typeof(ss.i18n) == 'undefined') {
if(typeof(console) != 'undefined') console.error('Class ss.i18n not defined');
// This file was generated by silverstripe/tx-translator from client/lang/src/de.json.
// See https://github.com/silverstripe/silverstripe-tx-translator for details
if (typeof(ss) === 'undefined' || typeof(ss.i18n) === 'undefined') {
if (typeof(console) !== 'undefined') { // eslint-disable-line no-console
console.error('Class ss.i18n not defined'); // eslint-disable-line no-console
}
} else {
ss.i18n.addDictionary('de', {
"GRIDFIELD_BULK_UPLOAD.PROGRESS_INFO": "Übertrage %s Datei(en). %s erfolgreich übertragen. %s Fehler.",
Expand Down
14 changes: 9 additions & 5 deletions client/lang/en.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
if(typeof(ss) == 'undefined' || typeof(ss.i18n) == 'undefined') {
if(typeof(console) != 'undefined') console.error('Class ss.i18n not defined');
// This file was generated by silverstripe/tx-translator from client/lang/src/en.json.
// See https://github.com/silverstripe/silverstripe-tx-translator for details
if (typeof(ss) === 'undefined' || typeof(ss.i18n) === 'undefined') {
if (typeof(console) !== 'undefined') { // eslint-disable-line no-console
console.error('Class ss.i18n not defined'); // eslint-disable-line no-console
}
} else {
ss.i18n.addDictionary('en', {
"GRIDFIELD_BULK_UPLOAD.PROGRESS_INFO": "Uploading %s file(s). %s done. %s error(s).",
"GRIDFIELD_BULK_MANAGER.BULKACTION_EMPTY_SELECT": "You must select at least one record.",
"GRIDFIELD_BULK_MANAGER.CONFIRM_DESTRUCTIVE_ACTION": "The data will be lost permanently. Do you want to continue?"
"GRIDFIELD_BULK_UPLOAD.PROGRESS_INFO": "Uploading %s file(s). %s done. %s error(s).",
"GRIDFIELD_BULK_MANAGER.BULKACTION_EMPTY_SELECT": "You must select at least one record.",
"GRIDFIELD_BULK_MANAGER.CONFIRM_DESTRUCTIVE_ACTION": "The data will be lost permanently. Do you want to continue?"
});
}
8 changes: 6 additions & 2 deletions client/lang/fi.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
if(typeof(ss) == 'undefined' || typeof(ss.i18n) == 'undefined') {
if(typeof(console) != 'undefined') console.error('Class ss.i18n not defined');
// This file was generated by silverstripe/tx-translator from client/lang/src/fi.json.
// See https://github.com/silverstripe/silverstripe-tx-translator for details
if (typeof(ss) === 'undefined' || typeof(ss.i18n) === 'undefined') {
if (typeof(console) !== 'undefined') { // eslint-disable-line no-console
console.error('Class ss.i18n not defined'); // eslint-disable-line no-console
}
} else {
ss.i18n.addDictionary('fi', {
"GRIDFIELD_BULK_UPLOAD.PROGRESS_INFO": "Lataa %s tiedosto(ja). %s Valmis. %s virhe(itä).",
Expand Down
8 changes: 6 additions & 2 deletions client/lang/fr.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
if(typeof(ss) == 'undefined' || typeof(ss.i18n) == 'undefined') {
if(typeof(console) != 'undefined') console.error('Class ss.i18n not defined');
// This file was generated by silverstripe/tx-translator from client/lang/src/fr.json.
// See https://github.com/silverstripe/silverstripe-tx-translator for details
if (typeof(ss) === 'undefined' || typeof(ss.i18n) === 'undefined') {
if (typeof(console) !== 'undefined') { // eslint-disable-line no-console
console.error('Class ss.i18n not defined'); // eslint-disable-line no-console
}
} else {
ss.i18n.addDictionary('fr', {
"GRIDFIELD_BULK_UPLOAD.PROGRESS_INFO": "%s fichier(s) en transfert. %s terminer. %s erreur(s).",
Expand Down
8 changes: 6 additions & 2 deletions client/lang/it.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
if(typeof(ss) == 'undefined' || typeof(ss.i18n) == 'undefined') {
if(typeof(console) != 'undefined') console.error('Class ss.i18n not defined');
// This file was generated by silverstripe/tx-translator from client/lang/src/it.json.
// See https://github.com/silverstripe/silverstripe-tx-translator for details
if (typeof(ss) === 'undefined' || typeof(ss.i18n) === 'undefined') {
if (typeof(console) !== 'undefined') { // eslint-disable-line no-console
console.error('Class ss.i18n not defined'); // eslint-disable-line no-console
}
} else {
ss.i18n.addDictionary('it', {
"GRIDFIELD_BULK_UPLOAD.PROGRESS_INFO": "Caricamento del/dei file(s) %s. %s completato. %s errore(i).",
Expand Down
8 changes: 6 additions & 2 deletions client/lang/nl.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
if(typeof(ss) == 'undefined' || typeof(ss.i18n) == 'undefined') {
if(typeof(console) != 'undefined') console.error('Class ss.i18n not defined');
// This file was generated by silverstripe/tx-translator from client/lang/src/nl.json.
// See https://github.com/silverstripe/silverstripe-tx-translator for details
if (typeof(ss) === 'undefined' || typeof(ss.i18n) === 'undefined') {
if (typeof(console) !== 'undefined') { // eslint-disable-line no-console
console.error('Class ss.i18n not defined'); // eslint-disable-line no-console
}
} else {
ss.i18n.addDictionary('nl', {
"GRIDFIELD_BULK_UPLOAD.PROGRESS_INFO": "Uploading %s file(s). %s done. %s error(s).",
Expand Down
8 changes: 6 additions & 2 deletions client/lang/pl.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
if(typeof(ss) == 'undefined' || typeof(ss.i18n) == 'undefined') {
if(typeof(console) != 'undefined') console.error('Class ss.i18n not defined');
// This file was generated by silverstripe/tx-translator from client/lang/src/pl.json.
// See https://github.com/silverstripe/silverstripe-tx-translator for details
if (typeof(ss) === 'undefined' || typeof(ss.i18n) === 'undefined') {
if (typeof(console) !== 'undefined') { // eslint-disable-line no-console
console.error('Class ss.i18n not defined'); // eslint-disable-line no-console
}
} else {
ss.i18n.addDictionary('pl', {
"GRIDFIELD_BULK_UPLOAD.PROGRESS_INFO": "Wgrywanie %s plików. Ukończono %s. %s błędów.",
Expand Down
8 changes: 6 additions & 2 deletions client/lang/ru.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
if(typeof(ss) == 'undefined' || typeof(ss.i18n) == 'undefined') {
if(typeof(console) != 'undefined') console.error('Class ss.i18n not defined');
// This file was generated by silverstripe/tx-translator from client/lang/src/ru.json.
// See https://github.com/silverstripe/silverstripe-tx-translator for details
if (typeof(ss) === 'undefined' || typeof(ss.i18n) === 'undefined') {
if (typeof(console) !== 'undefined') { // eslint-disable-line no-console
console.error('Class ss.i18n not defined'); // eslint-disable-line no-console
}
} else {
ss.i18n.addDictionary('ru', {
"GRIDFIELD_BULK_UPLOAD.PROGRESS_INFO": "Загружается %s файл(ов). %s завершено. %s ошибка(и).",
Expand Down
8 changes: 6 additions & 2 deletions client/lang/sk.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
if(typeof(ss) == 'undefined' || typeof(ss.i18n) == 'undefined') {
if(typeof(console) != 'undefined') console.error('Class ss.i18n not defined');
// This file was generated by silverstripe/tx-translator from client/lang/src/sk.json.
// See https://github.com/silverstripe/silverstripe-tx-translator for details
if (typeof(ss) === 'undefined' || typeof(ss.i18n) === 'undefined') {
if (typeof(console) !== 'undefined') { // eslint-disable-line no-console
console.error('Class ss.i18n not defined'); // eslint-disable-line no-console
}
} else {
ss.i18n.addDictionary('sk', {
"GRIDFIELD_BULK_UPLOAD.PROGRESS_INFO": "Nahrávam %s súbor(y/ov). %s hotovo. %s chyb(a/y).",
Expand Down
File renamed without changes.
File renamed without changes.
5 changes: 5 additions & 0 deletions client/lang/src/en.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"GRIDFIELD_BULK_UPLOAD.PROGRESS_INFO": "Uploading %s file(s). %s done. %s error(s).",
"GRIDFIELD_BULK_MANAGER.BULKACTION_EMPTY_SELECT": "You must select at least one record.",
"GRIDFIELD_BULK_MANAGER.CONFIRM_DESTRUCTIVE_ACTION": "The data will be lost permanently. Do you want to continue?"
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
5 changes: 0 additions & 5 deletions client/src/lang/en.json

This file was deleted.

14 changes: 11 additions & 3 deletions lang/cs.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,18 @@
cs:
GRIDFIELD_BULK_UPLOAD: null
GRIDFIELD_BULK_MANAGER:
COMPONENT_TITLE: ''
EDIT_SELECT_LABEL: Upravit
UNLINK_SELECT_LABEL: Odstranit vazbu
UNLINK_SELECT_LABEL: 'Odstranit vazbu'
DELETE_SELECT_LABEL: Smazat
ACTION_BTN_LABEL: Provést
SELECT_ALL_LABEL: Vybrat vše
SELECT_ALL_LABEL: 'Vybrat vše'
PUBLISH_SELECT_LABEL: ''
UNPUBLISH_SELECT_LABEL: ''
ARCHIVE_SELECT_LABEL: ''
GRIDFIELD_BULKMANAGER_EDIT_HANDLER:
SAVE_BTN_LABEL: Uložit vše
HEADER_TEXT: ''
TOGGLE_ALL_LINK: ''
SAVE_BTN_LABEL: 'Uložit vše'
CANCEL_BTN_LABEL: Storno
SAVE_RESULT_TEXT: ''
16 changes: 10 additions & 6 deletions lang/de.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
de:
GRIDFIELD_BULK_UPLOAD: null
GRIDFIELD_BULK_MANAGER:
COMPONENT_TITLE: Einen oder mehrere Einträge gleichzeitig bearbeiten
COMPONENT_TITLE: 'Einen oder mehrere Einträge gleichzeitig bearbeiten'
EDIT_SELECT_LABEL: Bearbeiten
UNLINK_SELECT_LABEL: Verbindung entfernen
UNLINK_SELECT_LABEL: 'Verbindung entfernen'
DELETE_SELECT_LABEL: Löschen
ACTION_BTN_LABEL: Los
SELECT_ALL_LABEL: Alle auswählen
SELECT_ALL_LABEL: 'Alle auswählen'
PUBLISH_SELECT_LABEL: ''
UNPUBLISH_SELECT_LABEL: ''
ARCHIVE_SELECT_LABEL: ''
GRIDFIELD_BULKMANAGER_EDIT_HANDLER:
HEADER_TEXT: Bearbeite {count} {class}
TOGGLE_ALL_LINK: Alle Anzeigen/Verbergen
SAVE_BTN_LABEL: Alle speichern
HEADER_TEXT: 'Bearbeite {count} {class}'
TOGGLE_ALL_LINK: 'Alle Anzeigen/Verbergen'
SAVE_BTN_LABEL: 'Alle speichern'
CANCEL_BTN_LABEL: Abbrechen
SAVE_RESULT_TEXT: '{count} {class} erfolgreich gespeichert.'
36 changes: 18 additions & 18 deletions lang/en.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
en:
GRIDFIELD_BULK_UPLOAD:
GRIDFIELD_BULK_MANAGER:
COMPONENT_TITLE: Modify one or more entry at a time.
EDIT_SELECT_LABEL: Edit
UNLINK_SELECT_LABEL: Unlink
DELETE_SELECT_LABEL: Delete
ACTION_BTN_LABEL: Go
SELECT_ALL_LABEL: Select all
PUBLISH_SELECT_LABEL: Publish
UNPUBLISH_SELECT_LABEL: UnPublish
ARCHIVE_SELECT_LABEL: Archive
GRIDFIELD_BULKMANAGER_EDIT_HANDLER:
HEADER_TEXT: Editing {count} {class}
TOGGLE_ALL_LINK: Show/Hide all
SAVE_BTN_LABEL: Save all
CANCEL_BTN_LABEL: Cancel
SAVE_RESULT_TEXT: '{count} {class} saved successfully.'
en:
GRIDFIELD_BULKMANAGER_EDIT_HANDLER:
CANCEL_BTN_LABEL: Cancel
HEADER_TEXT: 'Editing {count} {class}'
SAVE_BTN_LABEL: 'Save all'
SAVE_RESULT_TEXT: '{count} {class} saved successfully.'
TOGGLE_ALL_LINK: 'Show/Hide all'
GRIDFIELD_BULK_MANAGER:
ACTION_BTN_LABEL: Go
ARCHIVE_SELECT_LABEL: Archive
COMPONENT_TITLE: 'Modify one or more entry at a time.'
DELETE_SELECT_LABEL: Delete
EDIT_SELECT_LABEL: Edit
PUBLISH_SELECT_LABEL: Publish
SELECT_ALL_LABEL: 'Select all'
UNLINK_SELECT_LABEL: Unlink
UNPUBLISH_SELECT_LABEL: UnPublish
GRIDFIELD_BULK_UPLOAD: null
15 changes: 10 additions & 5 deletions lang/fi.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
fi:
GRIDFIELD_BULK_UPLOAD: null
GRIDFIELD_BULK_MANAGER:
COMPONENT_TITLE: Muokkaa yhtä tai useampaa merkintää kerrallaan.
COMPONENT_TITLE: 'Muokkaa yhtä tai useampaa merkintää kerrallaan.'
EDIT_SELECT_LABEL: Muokkaa
UNLINK_SELECT_LABEL: Erota
DELETE_SELECT_LABEL: Poista
ACTION_BTN_LABEL: Suorita
SELECT_ALL_LABEL: Valitse kaikki
SELECT_ALL_LABEL: 'Valitse kaikki'
PUBLISH_SELECT_LABEL: ''
UNPUBLISH_SELECT_LABEL: ''
ARCHIVE_SELECT_LABEL: ''
GRIDFIELD_BULKMANAGER_EDIT_HANDLER:
HEADER_TEXT: Muokkaa {count} {class}
TOGGLE_ALL_LINK: Näytä/Piilota kaikki
SAVE_BTN_LABEL: Tallenna kaikki
HEADER_TEXT: 'Muokkaa {count} {class}'
TOGGLE_ALL_LINK: 'Näytä/Piilota kaikki'
SAVE_BTN_LABEL: 'Tallenna kaikki'
CANCEL_BTN_LABEL: Peruuta
SAVE_RESULT_TEXT: ''
14 changes: 9 additions & 5 deletions lang/fr.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
fr:
GRIDFIELD_BULK_UPLOAD: null
GRIDFIELD_BULK_MANAGER:
COMPONENT_TITLE: Modifier une ou plusieurs entrée à la fois.
COMPONENT_TITLE: 'Modifier une ou plusieurs entrée à la fois.'
EDIT_SELECT_LABEL: Editer
UNLINK_SELECT_LABEL: Dissocier
DELETE_SELECT_LABEL: Supprimer
ACTION_BTN_LABEL: Go
SELECT_ALL_LABEL: Sélectionner tout
SELECT_ALL_LABEL: 'Sélectionner tout'
PUBLISH_SELECT_LABEL: ''
UNPUBLISH_SELECT_LABEL: ''
ARCHIVE_SELECT_LABEL: ''
GRIDFIELD_BULKMANAGER_EDIT_HANDLER:
HEADER_TEXT: Edition de {count} {class}
TOGGLE_ALL_LINK: Afficher/Masquer tout
SAVE_BTN_LABEL: Sauvegarder tout
HEADER_TEXT: 'Edition de {count} {class}'
TOGGLE_ALL_LINK: 'Afficher/Masquer tout'
SAVE_BTN_LABEL: 'Sauvegarder tout'
CANCEL_BTN_LABEL: Annuler
SAVE_RESULT_TEXT: '{count} {class} sauvegardés avec succès.'
14 changes: 9 additions & 5 deletions lang/it.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
it:
GRIDFIELD_BULK_UPLOAD: null
GRIDFIELD_BULK_MANAGER:
COMPONENT_TITLE: Modifica una o più voci alla volta.
COMPONENT_TITLE: 'Modifica una o più voci alla volta.'
EDIT_SELECT_LABEL: Modifica
UNLINK_SELECT_LABEL: Scollega
DELETE_SELECT_LABEL: Elimina
ACTION_BTN_LABEL: Vai
SELECT_ALL_LABEL: Seleziona tutto
SELECT_ALL_LABEL: 'Seleziona tutto'
PUBLISH_SELECT_LABEL: ''
UNPUBLISH_SELECT_LABEL: ''
ARCHIVE_SELECT_LABEL: ''
GRIDFIELD_BULKMANAGER_EDIT_HANDLER:
HEADER_TEXT: Modifica di {count} {class}
TOGGLE_ALL_LINK: Mostra/Nascondi tutto
SAVE_BTN_LABEL: Salva tutto
HEADER_TEXT: 'Modifica di {count} {class}'
TOGGLE_ALL_LINK: 'Mostra/Nascondi tutto'
SAVE_BTN_LABEL: 'Salva tutto'
CANCEL_BTN_LABEL: Annulla
SAVE_RESULT_TEXT: '{count} {class} salvati con successo.'
13 changes: 9 additions & 4 deletions lang/nl.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
nl:
GRIDFIELD_BULK_UPLOAD: null
GRIDFIELD_BULK_MANAGER:
COMPONENT_TITLE: Bewerk één of meerdere items tegelijkertijd
COMPONENT_TITLE: 'Bewerk één of meerdere items tegelijkertijd'
EDIT_SELECT_LABEL: Bewerken
UNLINK_SELECT_LABEL: Loskoppelen
DELETE_SELECT_LABEL: Verwijderen
ACTION_BTN_LABEL: Gaan
SELECT_ALL_LABEL: Selecteer alles
SELECT_ALL_LABEL: 'Selecteer alles'
PUBLISH_SELECT_LABEL: ''
UNPUBLISH_SELECT_LABEL: ''
ARCHIVE_SELECT_LABEL: ''
GRIDFIELD_BULKMANAGER_EDIT_HANDLER:
HEADER_TEXT: '{count} {class} aan het bewerken'
TOGGLE_ALL_LINK: Toon/verberg alle
SAVE_BTN_LABEL: Alles opslaan
TOGGLE_ALL_LINK: 'Toon/verberg alle'
SAVE_BTN_LABEL: 'Alles opslaan'
CANCEL_BTN_LABEL: Annuleren
SAVE_RESULT_TEXT: ''
Loading

0 comments on commit 793a547

Please sign in to comment.