DtlTraders/locale: Difference between revisions

From Citizens Wiki
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<div style="border: solid 1px black;padding:10px;padding-top:0px"><span style="white-space: pre;color:darkgreen;">
== Locale incoming with version 2.5 ==
lang: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">en-us</tt>
 
keywords:
=== General changes ===
<tt style="color:red">#{action} keywords</tt>
In generally the whole locale system was changed.
<span>  action:</span>
That allowed me to create a self updating locale, so if you are running the plugin in the default english version you don't need anymore to matter about the locale, its going to update itself if needed :)
<span>    withdrawed: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">'withdrawed'</tt></span>
 
<span>    deposited: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">'deposited'</tt></span>
Also translating the locale should be easier, every key is now named in a much obvious way :P
<span>    balance: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">'has'</tt></span>
Decreased the amount of keywords but from up now there are more messages in the locale
 
# all old messages where renamed, so the are much more obvious
# many keywords where removed
# added lores to the locale file
 
 
=== Updating ===
When a locale is going to update itself, it will '''backup''' all old messages into a '''backup''' tree within the same locale file, so no messages are going vanish with a update.
However if a locale is going to be updated several the backup form the previous update is lost.
 
Also when creating a '''translated locale''', always keep in mind to set the '''ver''' tag for the version you are creating the locale
 
=== Latest build changes ===
 
This file tells the updater what changes to apply to outdated locale files.
Depending if the '''new''' key exists in a definition, it will '''add''' or '''change''' the given locale entry.
 
example:
<pre>
  player-trader:
    keyword: Player Trader
    new: trader-player
</pre>
will look for the '''player-trader''' keyword, save it into the backup tree and add a new key with the name in '''new''' with the given value.


<tt style="color:red">#manging {action} keywords</tt>
This file is going to be cleared with any next build after a release version.
<span>    added: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">'Added'</tt></span>
<span>    selected: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">'Selected'</tt></span>
<span>    removed: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">'Removed'</tt></span>
<span>    updated: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">'Updated'</tt></span>
<span>    invalid: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">'Invalid'</tt></span>
 
<tt style="color:red">#{transaction} keywords</tt>
<span>  transaction:</span>
<span>    buying: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">'Buying'</tt></span>
<span>    bought: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">'bought'</tt></span>
<span>    buy: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">'buy'</tt></span>
<span>    selling: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">'Selling'</tt></span>
<span>    sold: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">'sold'</tt></span>
<span>    sell: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">'sell'</tt></span>
   
<tt style="color:red">#{type}, {argument}, {object} keywords</tt>
<span>  type: </span>
<span>    tab-price: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">'Tab price'</tt></span>
<span>    withdraw-fee: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">'Withdraw fee'</tt></span>
<span>    deposit-fee: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">'Deposit fee'</tt></span>
   
<span>  argument:</span>
<span>    page: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">'Page'</tt></span>
<span>    wallet: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">'Wallet'</tt></span>
<span>    account: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">'Wallet account'</tt></span>
<span>    type: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">'Type'</tt></span>
<span>    amount: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">'Amount'</tt></span>
   
<span>  object: </span>
<span>    command: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">'command'</tt></span>
<span>    wallet: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">'wallet'</tt></span>
<span>    trader: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">'trader type'</tt></span>
<span>    banker: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">'banker type'</tt></span>
<span>    type: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">'type'</tt></span>
<span>    tab: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">'tab'</tt></span>
 
<tt style="color:red">#{entity} keywords</tt>
<span>  entity: </span>
<span>    trader: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">'Trader'</tt></span>
<span>    banker: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">'Banker'</tt></span>
<span>    player: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">'You'</tt></span>
<span>    name: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">'{name}'</tt></span>
<!-- 
<span>  wallet-action: </span>
<span>    balance: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">'Balance'</tt></span>
<span>    withdraw: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">'Withdrawed'</tt></span>
<span>    deposit: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">'Deposited'</tt></span>
-->
<tt style="color:red">#{setting} keywords</tt>
<span>  setting: </span>
<span>    trader: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">'Trader type'</tt></span>
<span>    banker: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">'Banker type'</tt></span>
<span>    wallet: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">'Wallet type'</tt></span>
<span>    owner: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">'Owner'</tt></span>
 
<tt style="color:red">#{reason} keywords</tt>
<span>  reason: </span>
<span>    money: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">'not enough money'</tt></span>
<span>    limit: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">'limit reached'</tt></span>
<span>    inventory: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">'full inventory'</tt></span>
<span>    permission: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">'no permission'</tt></span>
 
<tt style="color:red">#{manage} keywords</tt>
<span>  manage: </span>
<span>    stock: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">'Stock'</tt></span>
<span>    buy: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">'Buy item'</tt></span>
<span>    sell: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">'Sell item'</tt></span>
<span>    global-limit: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">'Global limit'</tt></span>
<span>    player-limit: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">'Player limit'</tt></span>
<span>    multiple-amounts: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">'Multiple amounts'</tt></span>
<span>    buy-limit: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">'Buy limit'</tt></span>
<span>    player-timeout: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">'Player timeout'</tt></span>
<span>    global-timeout: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">'Global timeout'</tt></span>
<span>    stack-price: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">'Stack price'</tt></span>
<span>    price: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">'Price'</tt></span>


<tt style="color:red">#Messages</tt>
<pre>
messages:  
messages:  
  denizen-item-hint:
    message: '{item}: {price}'
  trader-transaction-success:
    message: ^6You {action} ^3{amount} ^6for ^3{price}
  error-argument-invalid:
    message: '^6Invalid argument was supplied: ^3{argument}'
  plugin-command-message:
    message: '^6== dtlTraders ^3{version} ^6=='
  error-npc-not-selected:
    message: '^6You did not selected any trader'
  wallet-balance:
    message: '^6Wallet balance: ^3{amount}'
  wallet-deposit:
    message: ^6Deposited ^3{amount}
  wallet-deposit-fail:
    message: 'You dont have enought money'
  wallet-withdraw:
    message: ^6Withdrawed ^3{amount}
  wallet-withdraw-fail:
    message: '^6Is there enough money to withdraw from this wallet?'
  wallet-invalid:
    message: ^6You can not use this command on this wallet type
  pattern-save-success:
    message: ^6Successfuly created ^3{pattern} ^6pattern
  pattern-save-fail-exists:
    message: ^6This pattern already exists {pattern}
  error-command-invalid:
    message: '^6This command is invalid'
  banker-created:
    message: '^6You created a new banker: {banker}'
  trader-created:
    message: '^6You created a new trader: {trader}'
keywords:
  bought:
    keyword: Bought
  sold:
    keyword: Sold
  type:
    keyword: Type
  server-trader:
    keyword: Server Trader
    new: trader-server
  player-trader:
    keyword: Player Trader
    new: trader-player
  market-trader:
    keyword: Market Trader
    new: trader-market
  banker-type:
    keyword: Banker type
  banker-private:
    keyword: Private Banker
  banker-money:
    keyword: Money Banker
lores:
  manage-price:
    name: ^r^6Price management
    lore:
    - ^7Click to toggle price managing
  manage-buy-limit:
    name: ^r^6Buy limit management
    lore:
    - ^7Allows to set amounts you
    - ^7want to buy from players
</pre>


<tt style="color:red">#General Trader messages</tt>
=== Release locale file (atm latest build version) ===
<span>  xxx-item-cost-xxx: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">^6This item costs ^e{price}$</tt></span>
 
<span>  xxx-item-price-xxx: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">^6Items price is ^e{price}$</tt></span>
<pre>
<span>  xxx-transaction-xxx-item: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">^e{entity} ^6{transaction} this item (^e{amount}^6) for ^e{price}$</tt></span>
ver: 1.0.5
<span>  xxx-transaction-falied-xxx: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">^6{transaction} falied, ^e{reason}</tt></span>
messages:
<span>  xxx-transaction-continue: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">^6To {transaction}, click a second time</tt></span>
  plugin-reload: ^6Successfuly reloaded ^3dtlTraders
<span>  xxx-transaction-tab: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">^6Switched to ^e{transaction} ^6tab</tt></span>
  plugin-command-message: '^6== dtlTraders ^3{version} ^6=='
    
  error-nopermission: ^6You dont have permissions to do this
<tt style="color:red">#Player trader messages</tt>
  error-nopermission-creative: ^6You dont have permissions to do this while in ^3creative mode
<span>  xxx-transaction-xxx-item-log: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">^e{entity} ^6{transaction} ^e{item}</tt></span>
  error-command-invalid: '^6This command is invalid'
<span>  item-amount-recover: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">^6You got ^e{amount}</tt></span>
  error-argument-missing: '^6Argument is missing: {argument}'
<span>  item-in-stock: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">^6Item already in stock</tt></span>
  error-argument-invalid: '^6Invalid argument was supplied: ^3{argument}'
<span>  item-not-in-stock: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">^6Item is not stock</tt></span>
  error-npc-not-selected: '^6You did not selected any trader'
<span>  item-added-selling: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">^6Added ^e{amount} ^6item{ending} for sell</tt></span>
  trader-manage-toggle: ^6Toggled ^3{mode} ^6management
<span>  item-buy-limit: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">'^6Buy limit: ^e{amount}^6/^c{limit}' </tt></span>
  trader-created: '^6You created a new trader: {trader}'
    
  trader-stock-item-select: ^6Item selected
<tt style="color:red">#Commands</tt>
  trader-stock-item-add: ^6Item added
<span>  xxx-argument-invalid: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">^e{argument} ^6argument is invalid</tt></span>
  trader-stock-item-update: ^6Item updated
<span>  xxx-argument-missing: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">^e{argument} ^6argument is missing</tt></span>
   trader-stock-item-remove: ^6Item removed
<span>  xxx-setting-changed: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">^e{setting} ^6has ben changed to ^e{value}</tt></span>
  trader-transaction-success: ^3You bought/sold an item
<span>  xxx-setting-value: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">^6Current ^e{setting} ^6is ^e{value}</tt></span>
  trader-transaction-failed-limit: ^6Limit for that item has been reached
<span>  xxx-not-selected: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">^6You haven't selected any ^e{object}</tt></span>
  trader-transaction-failed-inventory: ^6You dont got enough place in your inventory
<span>  xxx-wallet: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">'^6{wallet-action}: {value}$'</tt></span>
  trader-transaction-failed-money: ^6Someone does not have enough money
<span>  xxx-created-xxx: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">'{entity} created a {entity}'</tt></span>
  managermode-enabled: ^6Manager mode enabled for ^3{npc}
<span>  save-config: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">^6Configuration was saved</tt></span>
  managermode-disabled: ^6Manager mode disabled for ^3{npc}
<span>  reload-config: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">^6Configuration was reloaded</tt></span>
  wallet-balance: '^6Wallet balance: ^3{amount}'
    
  wallet-deposit: ^6Deposited ^3{amount}  
<tt style="color:red">#money messages</tt>
   wallet-deposit-fail: 'You dont have enought money'
<span>  xxx-not-enough-money: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">^6{entity} ^c{name} ^6has not enough money</tt></span>
  wallet-withdraw: ^6Withdrawed ^3{amount}  
<span>  xxx-money-xxx: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">^e{entity} ^6{action} ^e{money}$ </tt></span>
  wallet-withdraw-fail: '^6Is there enough money to withdraw from this wallet?'
<span>  not-enough-money: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">^6You don't have enought money</tt></span>
  wallet-invalid: ^6You can not use this command on this wallet type
    
  pattern-save-success: ^6Successfuly created ^3{pattern} ^6pattern
<tt style="color:red">#manager messages</tt>
  pattern-save-fail-exists: ^6This pattern already exists ^3{pattern}
<span>  xxx-managing-toggled: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">^6{entity} toggled the ^e{manage} ^6managing mode </tt></span>
  banker-created: '^6You created a new banker: {banker}'
<span>  xxx-value: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">'^6{manage}: ^e{value}' </tt></span>
  banker-tab-switch: ^6Switched to ^3{tab}
<span>  xxx-value-changed: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">'^6Changed {manage}: ^e{value}' </tt></span>
  banker-deposit-success: ^6Item deposited
<span>  xxx-item: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">^6{action} item</tt></span>
  banker-withdraw-success: ^6Item withdrawed
    
  banker-tab-buy-success: ^6Bought a new tab
<tt style="color:red">#List command format</tt>
  banker-tab-select-item: ^6Select a new tab item
<span>  list-header: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">^6Trader stock list, page ^e{curp} ^6of ^c{allp}</tt></span>
  banker-tab-select-item-success: ^6New item was set
<span>  list-message: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">^7{nr}. ^e{name} ^7(^e{id}^e/^c{data}^e) ^f{amount} {price} ^e[{slot}] </tt></span>
  banker-tab-select-item-canceled: ^6Selecting was aborted
    
   denizen-item-hint: '{item}: {price}'
<tt style="color:red">#Warnings, errors etc</tt>
  key-change: '^6Changed {key}: ^3{value}'
<span>  lacks-permissions: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">^6You don't have permission</tt></span>
  key-value: '^6{key}: ^3{value}'
<span>  lacks-permissions-xxx: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">^6You don't have permission, to use this ^b{object}</tt></span>
keywords:
<span>  lacks-permissions-manage-xxx: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">^6You don't have permission, to manage ^b{manage}s</tt></span>
  manage-global-limit: Global limit
<span>  lacks-permissions-creative: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">^6You can't use this while in creative mode</tt></span>
  manage-player-limit: Player Limit
  manage-stock: Stock
  manage-price: Price
  price: Price
   owner: Owner
  wallet: Wallet
  stack-price: Stack price
  enabled: Enabled
  disabled: Disabled
  tab-price: Tab price
  trader-type: Trader type
  trader-server: Server Trader
  trader-player: Player Trader
  trader-market: Market Trader
  banker-type: Banker type
  banker-private: Private Banker
  banker-money: Money Banker
lores:
  player-inventory:
    lore:
    - '^7Unit price: ^6{unit}'
    - '^7Stack price: ^6{stack}'
    - ^7Click to sell
  trader-inventory-sell:
    lore:
    - '^7Price: ^6{price}'
    - ^7Click to buy
  trader-inventory-buy:
    lore:
    - '^7Price: ^6{price}'
   sell-tab:
    name: ^r^6Sell stock
    lore:
    - ^7Click to switch to buy stock
  buy-tab:
    name: ^r^6Buy stock
    lore:
    - ^7Click to switch to sell stock
  manage-price:  
    name: ^r^6Price management
    lore:
    - ^7Click to toggle price managing
   manage-global-limit:
    name: ^r^6Global limit management
    lore:
    - ^7Click to toggle global limit managing
  manage-player-limit:  
    name: ^r^6Player limit management
    lore:
    - ^7Click to toggle player limit managing
  manage-buy-limit:  
    name: ^r^6Buy limit management
    lore:
    - ^7Allows to set amounts you
    - ^7want to buy from players
  return:
    name: ^r^6Return
    lore:
    - ^7Return to stock management
  amounts-return:  
    name: 'Back to stock'
</pre>


<tt style="color:red">#money banker messages</tt>
<span>  mbank-item-xxx: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">^6You {action} ^e{amount} ^6items</tt></span>
       
<tt style="color:red">#banker</tt>
<span>  tab-xxx: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">^6You {action} a tab {value}</tt></span>
<span>  tab-switched: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">^6You switched to ^e{tab} ^6tab</tt></span>
<span>  cant-create-account: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">^6You can't create an account</tt></span>
</span></div>
== Navigation ==
== Navigation ==
{| class="wikitable" style="text-align: center; width: 500px"
{| class="wikitable" style="text-align: center; width: 500px"
Line 157: Line 224:
| Denizen Support || <!--| [http://wiki.citizensnpcs.com/DtlTraders/denizen/commands Commands] | [http://wiki.citizensnpcs.com/DtlTraders/denizen/triggers Triggers] -->
| Denizen Support || <!--| [http://wiki.citizensnpcs.com/DtlTraders/denizen/commands Commands] | [http://wiki.citizensnpcs.com/DtlTraders/denizen/triggers Triggers] -->
|}
|}





Latest revision as of 22:49, 5 February 2013

Locale incoming with version 2.5

General changes

In generally the whole locale system was changed. That allowed me to create a self updating locale, so if you are running the plugin in the default english version you don't need anymore to matter about the locale, its going to update itself if needed :)

Also translating the locale should be easier, every key is now named in a much obvious way :P Decreased the amount of keywords but from up now there are more messages in the locale

  1. all old messages where renamed, so the are much more obvious
  2. many keywords where removed
  3. added lores to the locale file


Updating

When a locale is going to update itself, it will backup all old messages into a backup tree within the same locale file, so no messages are going vanish with a update. However if a locale is going to be updated several the backup form the previous update is lost.

Also when creating a translated locale, always keep in mind to set the ver tag for the version you are creating the locale

Latest build changes

This file tells the updater what changes to apply to outdated locale files. Depending if the new key exists in a definition, it will add or change the given locale entry.

example:

  player-trader:
    keyword: Player Trader
    new: trader-player

will look for the player-trader keyword, save it into the backup tree and add a new key with the name in new with the given value.

This file is going to be cleared with any next build after a release version.

messages: 
  denizen-item-hint:
    message: '{item}: {price}'
  trader-transaction-success: 
    message: ^6You {action} ^3{amount} ^6for ^3{price}
  error-argument-invalid:
    message: '^6Invalid argument was supplied: ^3{argument}'
  plugin-command-message: 
    message: '^6== dtlTraders ^3{version} ^6=='
  error-npc-not-selected:
    message: '^6You did not selected any trader'
  wallet-balance: 
    message: '^6Wallet balance: ^3{amount}'
  wallet-deposit: 
    message: ^6Deposited ^3{amount} 
  wallet-deposit-fail: 
    message: 'You dont have enought money' 
  wallet-withdraw: 
    message: ^6Withdrawed ^3{amount} 
  wallet-withdraw-fail: 
    message: '^6Is there enough money to withdraw from this wallet?' 
  wallet-invalid: 
    message: ^6You can not use this command on this wallet type
  pattern-save-success: 
    message: ^6Successfuly created ^3{pattern} ^6pattern
  pattern-save-fail-exists: 
    message: ^6This pattern already exists {pattern}
  error-command-invalid: 
    message: '^6This command is invalid'
  banker-created: 
    message: '^6You created a new banker: {banker}'
  trader-created:
    message: '^6You created a new trader: {trader}'
keywords: 
  bought:
    keyword: Bought
  sold: 
    keyword: Sold
  type: 
    keyword: Type
  server-trader:
    keyword: Server Trader
    new: trader-server
  player-trader:
    keyword: Player Trader
    new: trader-player
  market-trader:
    keyword: Market Trader
    new: trader-market
  banker-type: 
    keyword: Banker type
  banker-private: 
    keyword: Private Banker
  banker-money:
    keyword: Money Banker
lores: 
  manage-price: 
    name: ^r^6Price management
    lore:
    - ^7Click to toggle price managing
  manage-buy-limit: 
    name: ^r^6Buy limit management
    lore:
    - ^7Allows to set amounts you 
    - ^7want to buy from players

Release locale file (atm latest build version)

ver: 1.0.5
messages:
  plugin-reload: ^6Successfuly reloaded ^3dtlTraders
  plugin-command-message: '^6== dtlTraders ^3{version} ^6=='
  error-nopermission: ^6You dont have permissions to do this
  error-nopermission-creative: ^6You dont have permissions to do this while in ^3creative mode
  error-command-invalid: '^6This command is invalid'
  error-argument-missing: '^6Argument is missing: {argument}'
  error-argument-invalid: '^6Invalid argument was supplied: ^3{argument}'
  error-npc-not-selected: '^6You did not selected any trader'
  trader-manage-toggle: ^6Toggled ^3{mode} ^6management
  trader-created: '^6You created a new trader: {trader}'
  trader-stock-item-select: ^6Item selected
  trader-stock-item-add: ^6Item added
  trader-stock-item-update: ^6Item updated
  trader-stock-item-remove: ^6Item removed
  trader-transaction-success: ^3You bought/sold an item
  trader-transaction-failed-limit: ^6Limit for that item has been reached
  trader-transaction-failed-inventory: ^6You dont got enough place in your inventory
  trader-transaction-failed-money: ^6Someone does not have enough money
  managermode-enabled: ^6Manager mode enabled for ^3{npc}
  managermode-disabled: ^6Manager mode disabled for ^3{npc}
  wallet-balance: '^6Wallet balance: ^3{amount}'
  wallet-deposit: ^6Deposited ^3{amount} 
  wallet-deposit-fail: 'You dont have enought money' 
  wallet-withdraw: ^6Withdrawed ^3{amount} 
  wallet-withdraw-fail: '^6Is there enough money to withdraw from this wallet?' 
  wallet-invalid: ^6You can not use this command on this wallet type
  pattern-save-success: ^6Successfuly created ^3{pattern} ^6pattern
  pattern-save-fail-exists: ^6This pattern already exists ^3{pattern}
  banker-created: '^6You created a new banker: {banker}'
  banker-tab-switch: ^6Switched to ^3{tab}
  banker-deposit-success: ^6Item deposited
  banker-withdraw-success: ^6Item withdrawed 
  banker-tab-buy-success: ^6Bought a new tab
  banker-tab-select-item: ^6Select a new tab item
  banker-tab-select-item-success: ^6New item was set
  banker-tab-select-item-canceled: ^6Selecting was aborted
  denizen-item-hint: '{item}: {price}'
  key-change: '^6Changed {key}: ^3{value}'
  key-value: '^6{key}: ^3{value}'
keywords:
  manage-global-limit: Global limit
  manage-player-limit: Player Limit
  manage-stock: Stock
  manage-price: Price
  price: Price
  owner: Owner
  wallet: Wallet
  stack-price: Stack price
  enabled: Enabled
  disabled: Disabled
  tab-price: Tab price
  trader-type: Trader type
  trader-server: Server Trader
  trader-player: Player Trader
  trader-market: Market Trader
  banker-type: Banker type
  banker-private: Private Banker
  banker-money: Money Banker
lores:
  player-inventory:
    lore:
    - '^7Unit price: ^6{unit}'
    - '^7Stack price: ^6{stack}'
    - ^7Click to sell
  trader-inventory-sell:
    lore:
    - '^7Price: ^6{price}'
    - ^7Click to buy
  trader-inventory-buy:
    lore:
    - '^7Price: ^6{price}'
  sell-tab:
    name: ^r^6Sell stock
    lore:
    - ^7Click to switch to buy stock
  buy-tab:
    name: ^r^6Buy stock
    lore:
    - ^7Click to switch to sell stock
  manage-price: 
    name: ^r^6Price management
    lore:
    - ^7Click to toggle price managing
  manage-global-limit: 
    name: ^r^6Global limit management
    lore:
    - ^7Click to toggle global limit managing
  manage-player-limit: 
    name: ^r^6Player limit management
    lore:
    - ^7Click to toggle player limit managing
  manage-buy-limit: 
    name: ^r^6Buy limit management
    lore:
    - ^7Allows to set amounts you 
    - ^7want to buy from players
  return: 
    name: ^r^6Return
    lore:
    - ^7Return to stock management
  amounts-return: 
    name: 'Back to stock'

Navigation

DtlTraders
Configuration Commands | Permissions | Locale
Usage Patterns
Types
Denizen Support