forked from inception-project/inception
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
inception-project#4068 - Ability to change interface language (i18n)
- Telemetry HTML pages translation with properties files
- Loading branch information
1 parent
64b73dc
commit 570f455
Showing
9 changed files
with
141 additions
and
167 deletions.
There are no files selected for viewing
51 changes: 51 additions & 0 deletions
51
...n-telemetry/src/main/java/de/tudarmstadt/ukp/clarin/webanno/telemetry/TelemetryIntro.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
/* | ||
* Licensed to the Technische Universität Darmstadt under one | ||
* or more contributor license agreements. See the NOTICE file | ||
* distributed with this work for additional information | ||
* regarding copyright ownership. The Technische Universität Darmstadt | ||
* licenses this file to you under the Apache License, Version 2.0 (the | ||
* "License"); you may not use this file except in compliance | ||
* with the License. | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package de.tudarmstadt.ukp.clarin.webanno.telemetry; | ||
|
||
import java.io.Serializable; | ||
|
||
import de.tudarmstadt.ukp.clarin.webanno.support.wicket.resource.Strings; | ||
|
||
public class TelemetryIntro | ||
implements Serializable | ||
{ | ||
private final String productName; | ||
private final String save; | ||
|
||
public TelemetryIntro() | ||
{ | ||
this(Strings.getString("product.name"), Strings.getString("save")); | ||
} | ||
|
||
public TelemetryIntro(String aProductName, String aSave) | ||
{ | ||
super(); | ||
productName = aProductName; | ||
save = aSave; | ||
} | ||
|
||
public String getProductName() | ||
{ | ||
return productName; | ||
} | ||
|
||
public String getSave() | ||
{ | ||
return save; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 0 additions & 43 deletions
43
...rc/main/java/de/tudarmstadt/ukp/clarin/webanno/telemetry/ui/TelemetryDetailsPanel_fr.html
This file was deleted.
Oops, something went wrong.
27 changes: 0 additions & 27 deletions
27
...src/main/java/de/tudarmstadt/ukp/clarin/webanno/telemetry/ui/TelemetryFooterPanel_fr.html
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
71 changes: 0 additions & 71 deletions
71
...rc/main/java/de/tudarmstadt/ukp/clarin/webanno/telemetry/ui/TelemetrySettingsPage_fr.html
This file was deleted.
Oops, something went wrong.
28 changes: 28 additions & 0 deletions
28
...metry/src/main/java/de/tudarmstadt/ukp/clarin/webanno/telemetry/wicket-package.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Licensed to the Technische Universität Darmstadt under one | ||
# or more contributor license agreements. See the NOTICE file | ||
# distributed with this work for additional information | ||
# regarding copyright ownership. The Technische Universität Darmstadt | ||
# licenses this file to you under the Apache License, Version 2.0 (the | ||
# "License"); you may not use this file except in compliance | ||
# with the License. | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
details=Details | ||
keyTitle=Key | ||
valueTitle=Value | ||
descriptionTitle=Description | ||
introText=In order to support the development of ${productName}, it would \ | ||
like to collect some data and send it home. Please review the settings below and \ | ||
opt in or out of the respective data collections. Once you are done, use the \ | ||
<b>${save}</b> button on the right side to save your choices. If \ | ||
there were any changes to the data collection process, this page will appear again \ | ||
when an administrator logs in. You can always revise your choices by accessing this \ | ||
page via the <i class="fa fa-heartbeat"></i> icon in the page footer. | ||
toggleDetails=Toggle details... | ||
changeAlert=The behavior of this data collector has changed. Please review the description and settings. |
29 changes: 29 additions & 0 deletions
29
...ry/src/main/java/de/tudarmstadt/ukp/clarin/webanno/telemetry/wicket-package_fr.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Licensed to the Technische Universität Darmstadt under one | ||
# or more contributor license agreements. See the NOTICE file | ||
# distributed with this work for additional information | ||
# regarding copyright ownership. The Technische Universität Darmstadt | ||
# licenses this file to you under the Apache License, Version 2.0 (the | ||
# "License"); you may not use this file except in compliance | ||
# with the License. | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
details=Détails | ||
keyTitle=Clé | ||
valueTitle=Valeur | ||
descriptionTitle=Description | ||
introText=Afin de soutenir le développement de ${productName}\ | ||
, nous souhaiterions collecter quelques données et les envoyer chez nous. Veuillez consulter \ | ||
les paramètres ci-dessous et accepter ou refuser les collectes de données correspondantes. \ | ||
Une fois que vous aurez terminé, cliquez sur le bouton <b>${save}</b> \ | ||
sur le côté droit pour enregistrer vos choix. Si des modifications ont été apportées au \ | ||
processus de collecte des données, cette page apparaîtra à nouveau lorsqu'un administrateur \ | ||
se connectera. Vous pouvez toujours revoir vos choix en accédant à cette page par le biais \ | ||
de l'icone <i class="fa fa-heartbeat"></i> dans le pied de page. | ||
toggleDetails=Basculer vers les détails... | ||
changeAlert=Le comportement de ce collecteur de données a changé. Veuillez revoir la description et les paramètres. |