From d6aadb57af4e02a22db1ae951a9281f708bd6df0 Mon Sep 17 00:00:00 2001 From: thibaud Date: Thu, 20 Apr 2017 14:37:47 +0200 Subject: [PATCH] Added french translation --- .../main/java/com/example/diceroller/DiceActivity.java | 2 +- app/src/main/res/values-fr/strings.xml | 9 +++++++++ app/src/main/res/values/strings.xml | 2 +- 3 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 app/src/main/res/values-fr/strings.xml diff --git a/app/src/main/java/com/example/diceroller/DiceActivity.java b/app/src/main/java/com/example/diceroller/DiceActivity.java index 312404b..aefb9cb 100644 --- a/app/src/main/java/com/example/diceroller/DiceActivity.java +++ b/app/src/main/java/com/example/diceroller/DiceActivity.java @@ -26,7 +26,7 @@ public class DiceActivity extends Activity implements View.OnClickListener { max = getIntent().getIntExtra("max", 0); TextView textTitle = (TextView)findViewById(R.id.textTitle); - textTitle.setText(String.valueOf(max) + "-sided dice"); + textTitle.setText(String.valueOf(max) + " " + getString(R.string.x_sided_dice)); textResult = (TextView)findViewById(R.id.textResult); textResult.setText(""); diff --git a/app/src/main/res/values-fr/strings.xml b/app/src/main/res/values-fr/strings.xml new file mode 100644 index 0000000..615d63c --- /dev/null +++ b/app/src/main/res/values-fr/strings.xml @@ -0,0 +1,9 @@ + + + DiceRoller + Dé à 6 faces + Dé à 20 faces + faces + X + Lancer le dé ! + \ No newline at end of file diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index f052cf0..24aa97e 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -2,7 +2,7 @@ DiceRoller 6-sided dice 20-sided dice - X sided dice + sided dice X Roll dice !