diff --git a/config/locales/da.yml b/config/locales/da.yml index fc53cc0144..032cab62a4 100644 --- a/config/locales/da.yml +++ b/config/locales/da.yml @@ -25,7 +25,3 @@ da: units: Enheder validation_failure_date: er en ugyldig dato validation_failure_integer: er et ugyldigt heltal - js: - reporting_engine: - label_remove: Slet - label_response_error: En fejl opstod under forespørgselshåndtering. diff --git a/config/locales/de.yml b/config/locales/de.yml index 269f15c562..a917663a65 100644 --- a/config/locales/de.yml +++ b/config/locales/de.yml @@ -25,7 +25,3 @@ de: units: Einheiten validation_failure_date: ist kein gültiges Datum validation_failure_integer: ist keine ganze Zahl - js: - reporting_engine: - label_remove: Lösche - label_response_error: Bei der Bearbeitung der Anfrage ist ein Fehler aufgetreten. diff --git a/config/locales/en.yml b/config/locales/en.yml index 0bf0ce447f..4882778801 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -48,8 +48,3 @@ en: validation_failure_date: "is not a valid date" validation_failure_integer: "is not a valid integer" - - js: - reporting_engine: - label_remove: "Delete" - label_response_error: "There was an error handling the query." diff --git a/config/locales/fr.yml b/config/locales/fr.yml index 4b9586ac90..129ffbe6c0 100644 --- a/config/locales/fr.yml +++ b/config/locales/fr.yml @@ -26,7 +26,3 @@ fr: units: Unités validation_failure_date: "n'est pas une date valide" validation_failure_integer: "n'est pas un nombre entier valide" - js: - reporting_engine: - label_remove: Supprimer - label_response_error: "Une erreur s'est produite lors du traitement de la requête." diff --git a/config/locales/it.yml b/config/locales/it.yml index af2e985fe8..26dd419e4a 100644 --- a/config/locales/it.yml +++ b/config/locales/it.yml @@ -25,7 +25,3 @@ it: units: Unità di misura validation_failure_date: non è una data valida validation_failure_integer: non è un numero intero valido - js: - reporting_engine: - label_remove: Cancella - label_response_error: "C'era un errore di gestione query." diff --git a/config/locales/ja.yml b/config/locales/ja.yml index 0b23fee8e0..1d6fe013a9 100644 --- a/config/locales/ja.yml +++ b/config/locales/ja.yml @@ -25,7 +25,3 @@ ja: units: 単位 validation_failure_date: は有効な日付ではありません。 validation_failure_integer: は有効な整数ではありません。 - js: - reporting_engine: - label_remove: 削除 - label_response_error: クエリの処理中にエラーが発生しました。 diff --git a/config/locales/js-da.yml b/config/locales/js-da.yml new file mode 100644 index 0000000000..ec78848513 --- /dev/null +++ b/config/locales/js-da.yml @@ -0,0 +1,5 @@ +da: + js: + reporting_engine: + label_remove: Slet + label_response_error: En fejl opstod under forespørgselshåndtering. diff --git a/config/locales/js-de.yml b/config/locales/js-de.yml new file mode 100644 index 0000000000..ce6aebac8a --- /dev/null +++ b/config/locales/js-de.yml @@ -0,0 +1,5 @@ +de: + js: + reporting_engine: + label_remove: Lösche + label_response_error: Bei der Bearbeitung der Anfrage ist ein Fehler aufgetreten. diff --git a/config/locales/js-en.yml b/config/locales/js-en.yml new file mode 100644 index 0000000000..f4963ee0e7 --- /dev/null +++ b/config/locales/js-en.yml @@ -0,0 +1,23 @@ +#-- copyright +# ReportingEngine +# +# Copyright (C) 2010 - 2014 the OpenProject Foundation (OPF) +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +#++ +en: + js: + reporting_engine: + label_remove: "Delete" + label_response_error: "There was an error handling the query." diff --git a/config/locales/js-fr.yml b/config/locales/js-fr.yml new file mode 100644 index 0000000000..de4c887a30 --- /dev/null +++ b/config/locales/js-fr.yml @@ -0,0 +1,5 @@ +fr: + js: + reporting_engine: + label_remove: Supprimer + label_response_error: "Une erreur s'est produite lors du traitement de la requête." diff --git a/config/locales/js-it.yml b/config/locales/js-it.yml new file mode 100644 index 0000000000..3db20548a6 --- /dev/null +++ b/config/locales/js-it.yml @@ -0,0 +1,5 @@ +it: + js: + reporting_engine: + label_remove: Cancella + label_response_error: "C'era un errore di gestione query." diff --git a/config/locales/js-ja.yml b/config/locales/js-ja.yml new file mode 100644 index 0000000000..7b3aaa17c4 --- /dev/null +++ b/config/locales/js-ja.yml @@ -0,0 +1,5 @@ +ja: + js: + reporting_engine: + label_remove: 削除 + label_response_error: クエリの処理中にエラーが発生しました。 diff --git a/config/locales/js-pt-BR.yml b/config/locales/js-pt-BR.yml new file mode 100644 index 0000000000..8ac3abf886 --- /dev/null +++ b/config/locales/js-pt-BR.yml @@ -0,0 +1,5 @@ +pt-BR: + js: + reporting_engine: + label_remove: Excluir + label_response_error: Ocorreu um erro na manipulação da consulta. diff --git a/config/locales/js-ru.yml b/config/locales/js-ru.yml new file mode 100644 index 0000000000..99067d1c73 --- /dev/null +++ b/config/locales/js-ru.yml @@ -0,0 +1,5 @@ +ru: + js: + reporting_engine: + label_remove: Удалить + label_response_error: Произошла ошибка при обработке запроса. diff --git a/config/locales/js-sk.yml b/config/locales/js-sk.yml new file mode 100644 index 0000000000..2820fce5c9 --- /dev/null +++ b/config/locales/js-sk.yml @@ -0,0 +1,5 @@ +sk: + js: + reporting_engine: + label_remove: Odstrániť + label_response_error: Počas spracovania dotazu sa vyskytla chyba. diff --git a/config/locales/js-sv-SE.yml b/config/locales/js-sv-SE.yml new file mode 100644 index 0000000000..4720b34e30 --- /dev/null +++ b/config/locales/js-sv-SE.yml @@ -0,0 +1,5 @@ +sv: + js: + reporting_engine: + label_remove: Ta bort + label_response_error: Det uppstod ett fel när frågan hanterades. diff --git a/config/locales/js-tr.yml b/config/locales/js-tr.yml new file mode 100644 index 0000000000..c41c8c05f1 --- /dev/null +++ b/config/locales/js-tr.yml @@ -0,0 +1,5 @@ +tr: + js: + reporting_engine: + label_remove: Sil + label_response_error: Sorgu işleme sırasında bir hata oluştu. diff --git a/config/locales/ru.yml b/config/locales/ru.yml index ad034381a2..bcf95669d0 100644 --- a/config/locales/ru.yml +++ b/config/locales/ru.yml @@ -25,7 +25,3 @@ ru: units: Модули validation_failure_date: не является допустимой датой validation_failure_integer: не является допустимым целым числом - js: - reporting_engine: - label_remove: Удалить - label_response_error: Произошла ошибка при обработке запроса. diff --git a/config/locales/sk.yml b/config/locales/sk.yml index 3917fe6c0b..91d6fa4a33 100644 --- a/config/locales/sk.yml +++ b/config/locales/sk.yml @@ -25,7 +25,3 @@ sk: units: Jednotky validation_failure_date: nie je platný dátum validation_failure_integer: nie je platné celé číslo - js: - reporting_engine: - label_remove: Odstrániť - label_response_error: Počas spracovania dotazu sa vyskytla chyba. diff --git a/config/locales/sv-SE.yml b/config/locales/sv-SE.yml index 4c393a2c4d..8359cbe5af 100644 --- a/config/locales/sv-SE.yml +++ b/config/locales/sv-SE.yml @@ -25,7 +25,3 @@ sv: units: Enheter validation_failure_date: inte är ett giltigt datum validation_failure_integer: är inte ett giltigt heltal - js: - reporting_engine: - label_remove: Ta bort - label_response_error: Det uppstod ett fel när frågan hanterades. diff --git a/config/locales/tr.yml b/config/locales/tr.yml index f100018b98..0abe954c9f 100644 --- a/config/locales/tr.yml +++ b/config/locales/tr.yml @@ -25,7 +25,3 @@ tr: units: Birimler validation_failure_date: geçerli bir tarih değil validation_failure_integer: geçerli bir tamsayı değil - js: - reporting_engine: - label_remove: Sil - label_response_error: Sorgu işleme sırasında bir hata oluştu. diff --git a/frontend/app/reporting_engine-app.js b/frontend/app/reporting_engine-app.js new file mode 100644 index 0000000000..678b3841f4 --- /dev/null +++ b/frontend/app/reporting_engine-app.js @@ -0,0 +1,34 @@ +//-- copyright +// OpenProject is a project management system. +// Copyright (C) 2012-2014 the OpenProject Foundation (OPF) +// +// This program is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License version 3. +// +// OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows: +// Copyright (C) 2006-2013 Jean-Philippe Lang +// Copyright (C) 2010-2013 the ChiliProject Team +// +// This program is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License +// as published by the Free Software Foundation; either version 2 +// of the License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program; if not, write to the Free Software +// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +// +// See doc/COPYRIGHT.rdoc for more details. +//++ + +// load all js locales +var localeFiles = require.context('../../config/locales', false, /js-[\w|-]{2,5}\.yml$/); +localeFiles.keys().forEach(function(localeFile) { + var locale = localeFile.match(/js-([\w|-]{2,5})\.yml/)[1]; + I18n.addTranslations(locale, localeFiles(localeFile)[locale]); +}); \ No newline at end of file diff --git a/package.json b/package.json new file mode 100644 index 0000000000..d075acd94a --- /dev/null +++ b/package.json @@ -0,0 +1,6 @@ +{ + "name": "reporting_engine", + "version": "0.1.0", + "main": "frontend/app/reporting_engine-app.js", + "dependencies": {} +} \ No newline at end of file