Skip to content

Commit

Permalink
fr localisation
Browse files Browse the repository at this point in the history
  • Loading branch information
BuildTools committed Oct 3, 2018
1 parent df755a3 commit 88139bc
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 4 deletions.
2 changes: 1 addition & 1 deletion config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
max-trade-distance: 10.0

# All messages are located in "lang/lang_**.yml" (ie. "lang/lang_en.yml")
lang: en
lang: fr
14 changes: 11 additions & 3 deletions fr/rafoudiablol/ft/listeners/DummyUpdater.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ public void event(StatusTransactionEvent e) {


FairTrade.getFt().taskAtNextTick(() -> {

for (int i = 0; i <= 1; ++i) {

Offer o = trade.getOffer(i);
Expand Down Expand Up @@ -64,8 +65,15 @@ else if(remote) {
msg = EnumI18n.NOBODY_ACCEPTED.localize();
}

ItemStacksUtils.renameAndBrief(confirm, title, msg,
EnumI18n.MONEY_GIVE.localize(FairTrade.getFt().getEconomy().format(localMoney)),
EnumI18n.MONEY_GET.localize(FairTrade.getFt().getEconomy().format(remoteMoney)));
if(FairTrade.getFt().getEconomy() == null) {

ItemStacksUtils.renameAndBrief(confirm, title, msg);
}
else {

ItemStacksUtils.renameAndBrief(confirm, title, msg,
EnumI18n.MONEY_GIVE.localize(FairTrade.getFt().formatMoney(localMoney)),
EnumI18n.MONEY_GET.localize(FairTrade.getFt().formatMoney(remoteMoney)));
}
}
}
25 changes: 25 additions & 0 deletions lang/lang_fr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
WELCOME: "Plugin <name> initialisé, bienvenue!"
PREFIX: "§b[§lCommerce§r§b]§r "
CONFIRM: "Clic gauche pour confirmer!"
NO_REQUEST: "Pas de requêtes en attente."
NO_TRANSACTION: "Transaction avec l'ID §l<id>§c introuvable."
TITLE: "Commercer avec §l<player>"
REQUEST: "Vous avez reçu une requête de commerce venant de §i<player>"
REASON_WORLD: "Vous êtes dans des mondes différents."
REASON_DISTANCE: "Distance trop élevée."
FINALIZED: "Transaction finalisée! ID §u<id>"

BUTTON_CONFIRM: "Clic pour §2accepter§c!"
BUTTON_CANCEL: "Clic to §2annuler§c!"

YOU_ACCEPTED: "Vous avez accepté."
NOBODY_ACCEPTED: "Personne n'a accepté."
REMOTE_ACCEPTED: "<player> a accepté."

MONEY_GIVE: "Donner: §b<money>"
MONEY_GET: "Recevoir: §b<money>"

LOG_BRIEF:
- "à §e<date>"
- "<p0> a donné §2<money0>"
- "<p1> a donné §2<money1>"

0 comments on commit 88139bc

Please sign in to comment.