DtlTraders/locale: Difference between revisions

From Citizens Wiki
No edit summary
 
(2 intermediate revisions 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>
 
=== 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
 
# 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.
 
This file is going to be cleared with any next build after a release version.
 
<pre>
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:  
keywords:  
<tt style="color:red">#{action} keywords</tt>
  bought:
<span>  action:</span>
    keyword: Bought
<span>    withdrawed: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">'withdrawed'</tt></span>
  sold:
<span>    deposited: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">'deposited'</tt></span>
    keyword: Sold
<span>    balance: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">'has'</tt></span>
  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">#manging {action} keywords</tt>
=== Release locale file (atm latest build 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>
<pre>
<span>    removed: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">'Removed'</tt></span>
ver: 1.0.5
<span>    updated: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">'Updated'</tt></span>
messages:
<span>    invalid: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">'Invalid'</tt></span>
  plugin-reload: ^6Successfuly reloaded ^3dtlTraders
    
  plugin-command-message: '^6== dtlTraders ^3{version} ^6=='
<tt style="color:red">#{transaction} keywords</tt>
  error-nopermission: ^6You dont have permissions to do this
<span>  transaction:</span>
  error-nopermission-creative: ^6You dont have permissions to do this while in ^3creative mode
<span>    buying: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">'Buying'</tt></span>
  error-command-invalid: '^6This command is invalid'
<span>    bought: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">'bought'</tt></span>
  error-argument-missing: '^6Argument is missing: {argument}'
<span>    buy: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">'buy'</tt></span>
  error-argument-invalid: '^6Invalid argument was supplied: ^3{argument}'
<span>    selling: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">'Selling'</tt></span>
  error-npc-not-selected: '^6You did not selected any trader'
<span>    sold: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">'sold'</tt></span>
   trader-manage-toggle: ^6Toggled ^3{mode} ^6management
<span>    sell: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">'sell'</tt></span>
  trader-created: '^6You created a new trader: {trader}'
   
  trader-stock-item-select: ^6Item selected
<tt style="color:red">#{type}, {argument}, {object} keywords</tt>
  trader-stock-item-add: ^6Item added
<span>  type: </span>
  trader-stock-item-update: ^6Item updated
<span>    tab-price: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">'Tab price'</tt></span>
  trader-stock-item-remove: ^6Item removed
<span>    withdraw-fee: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">'Withdraw fee'</tt></span>
  trader-transaction-success: ^3You bought/sold an item
<span>    deposit-fee: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">'Deposit fee'</tt></span>
  trader-transaction-failed-limit: ^6Limit for that item has been reached
   
  trader-transaction-failed-inventory: ^6You dont got enough place in your inventory
<span>  argument:</span>
  trader-transaction-failed-money: ^6Someone does not have enough money
<span>    page: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">'Page'</tt></span>
  managermode-enabled: ^6Manager mode enabled for ^3{npc}
<span>    wallet: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">'Wallet'</tt></span>
  managermode-disabled: ^6Manager mode disabled for ^3{npc}
<span>    account: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">'Wallet account'</tt></span>
  wallet-balance: '^6Wallet balance: ^3{amount}'
<span>    type: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">'Type'</tt></span>
  wallet-deposit: ^6Deposited ^3{amount}
<span>    amount: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">'Amount'</tt></span>
  wallet-deposit-fail: 'You dont have enought money'  
   
  wallet-withdraw: ^6Withdrawed ^3{amount}
<span>  object: </span>
  wallet-withdraw-fail: '^6Is there enough money to withdraw from this wallet?'  
<span>    command: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">'command'</tt></span>
  wallet-invalid: ^6You can not use this command on this wallet type
<span>    wallet: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">'wallet'</tt></span>
  pattern-save-success: ^6Successfuly created ^3{pattern} ^6pattern
<span>    trader: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">'trader type'</tt></span>
  pattern-save-fail-exists: ^6This pattern already exists ^3{pattern}
<span>    banker: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">'banker type'</tt></span>
  banker-created: '^6You created a new banker: {banker}'
<span>    type: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">'type'</tt></span>
  banker-tab-switch: ^6Switched to ^3{tab}
<span>    tab: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">'tab'</tt></span>
  banker-deposit-success: ^6Item deposited
    
  banker-withdraw-success: ^6Item withdrawed
<tt style="color:red">#{entity} keywords</tt>
  banker-tab-buy-success: ^6Bought a new tab
<span>  entity: </span>
  banker-tab-select-item: ^6Select a new tab item
<span>    trader: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">'Trader'</tt></span>
  banker-tab-select-item-success: ^6New item was set
<span>    banker: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">'Banker'</tt></span>
  banker-tab-select-item-canceled: ^6Selecting was aborted
<span>    player: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">'You'</tt></span>
  denizen-item-hint: '{item}: {price}'
<span>    name: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">'{name}'</tt></span>
  key-change: '^6Changed {key}: ^3{value}'
<!--
  key-value: '^6{key}: ^3{value}'
<span>  wallet-action: </span>
keywords:
<span>    balance: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">'Balance'</tt></span>
  manage-global-limit: Global limit
<span>    withdraw: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">'Withdrawed'</tt></span>
  manage-player-limit: Player Limit
<span>    deposit: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">'Deposited'</tt></span>
  manage-stock: Stock
-->
  manage-price: Price
<tt style="color:red">#{setting} keywords</tt>
  price: Price
<span>  setting: </span>
  owner: Owner
<span>    trader: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">'Trader type'</tt></span>
  wallet: Wallet
<span>    banker: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">'Banker type'</tt></span>
  stack-price: Stack price
<span>    wallet: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">'Wallet type'</tt></span>
  enabled: Enabled
<span>    owner: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">'Owner'</tt></span>
  disabled: Disabled
    
  tab-price: Tab price
<tt style="color:red">#{reason} keywords</tt>
  trader-type: Trader type
<span>  reason: </span>
  trader-server: Server Trader
<span>    money: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">'not enough money'</tt></span>
  trader-player: Player Trader
<span>    limit: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">'limit reached'</tt></span>
   trader-market: Market Trader
<span>    inventory: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">'full inventory'</tt></span>
  banker-type: Banker type
<span>    permission: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">'no permission'</tt></span>
  banker-private: Private Banker
 
  banker-money: Money Banker
<tt style="color:red">#{manage} keywords</tt>
lores:
<span>  manage: </span>
  player-inventory:
<span>    stock: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">'Stock'</tt></span>
    lore:
<span>    buy: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">'Buy item'</tt></span>
    - '^7Unit price: ^6{unit}'
<span>    sell: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">'Sell item'</tt></span>
    - '^7Stack price: ^6{stack}'
<span>    global-limit: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">'Global limit'</tt></span>
    - ^7Click to sell
<span>    player-limit: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">'Player limit'</tt></span>
  trader-inventory-sell:
<span>    multiple-amounts: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">'Multiple amounts'</tt></span>
    lore:
<span>    buy-limit: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">'Buy limit'</tt></span>
    - '^7Price: ^6{price}'
<span>    player-timeout: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">'Player timeout'</tt></span>
    - ^7Click to buy
<span>    global-timeout: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">'Global timeout'</tt></span>
  trader-inventory-buy:
<span>    stack-price: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">'Stack price'</tt></span>
    lore:
<span>    price: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">'Price'</tt></span>
    - '^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>
 
== Navigation ==
{| class="wikitable" style="text-align: center; width: 500px"
|-
! style="width: 100%; background-color:#ADD8E6" colspan="2" | '''DtlTraders'''
|-
| Configuration || <!--| [http://wiki.citizensnpcs.com/DtlTraders/config Configuration] -->| [http://wiki.citizensnpcs.com/DtlTraders/Commands Commands] | [http://wiki.citizensnpcs.com/DtlTraders/permissions Permissions] | [http://wiki.citizensnpcs.com/DtlTraders/locale Locale]
|-
| Usage || <!--| [http://wiki.citizensnpcs.com/DtlTraders/managing Managing] | [http://wiki.citizensnpcs.com/DtlTraders/trading Trading] | [http://wiki.citizensnpcs.com/DtlTraders/banking Banking] |--> [http://wiki.citizensnpcs.com/DtlTraders/patterns Patterns]
|-
| Types || <!--| [http://wiki.citizensnpcs.com/DtlTraders/traders Traders] | [http://wiki.citizensnpcs.com/DtlTraders/bankers Bankers] <!--| [http://wiki.citizensnpcs.com/DtlTraders/auctionhouse Auction House] | [http://wiki.citizensnpcs.com/DtlTraders/wallets Wallets]-->
|-
| Denizen Support || <!--| [http://wiki.citizensnpcs.com/DtlTraders/denizen/commands Commands] | [http://wiki.citizensnpcs.com/DtlTraders/denizen/triggers Triggers] -->
|}


<tt style="color:red">#Messages</tt>
messages:


<tt style="color:red">#General Trader messages</tt>
<!--
<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>
<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>
<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>
<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>
<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>
 
<tt style="color:red">#Player trader messages</tt>
<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>
<span>  item-amount-recover: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">^6You got ^e{amount}</tt></span>
<span>  item-in-stock: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">^6Item already in stock</tt></span>
<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>
<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>
<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>
 
<tt style="color:red">#Commands</tt>
<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>
<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>
<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>
<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>
<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>
<span>  xxx-wallet: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">'^6{wallet-action}: {value}$'</tt></span>
<span>  xxx-created-xxx: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">'{entity} created a {entity}'</tt></span>
<span>  save-config: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">^6Configuration was saved</tt></span>
<span>  reload-config: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">^6Configuration was reloaded</tt></span>
 
<tt style="color:red">#money messages</tt>
<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>
<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>
<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>
 
<tt style="color:red">#manager messages</tt>
<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>
<span>  xxx-value: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">'^6{manage}: ^e{value}' </tt></span>
<span>  xxx-value-changed: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">'^6Changed {manage}: ^e{value}' </tt></span>
<span>  xxx-item: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">^6{action} item</tt></span>
 
<tt style="color:red">#List command format</tt>
<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>
<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>
 
<tt style="color:red">#Warnings, errors etc</tt>
<span>  lacks-permissions: <tt style="color:black;background-color: #F8F8E0;border: solid 1px black;padding:0px 1px">^6You don't have permission</tt></span>
<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>
<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>
<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>


<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 153: Line 237:
| Configuration || | [http://wiki.citizensnpcs.com/DtlTraders/config Configuration] | [http://wiki.citizensnpcs.com/DtlTraders/Commands Commands] | [http://wiki.citizensnpcs.com/DtlTraders/permissions Permissions] | [http://wiki.citizensnpcs.com/DtlTraders/locale Locale]  
| Configuration || | [http://wiki.citizensnpcs.com/DtlTraders/config Configuration] | [http://wiki.citizensnpcs.com/DtlTraders/Commands Commands] | [http://wiki.citizensnpcs.com/DtlTraders/permissions Permissions] | [http://wiki.citizensnpcs.com/DtlTraders/locale Locale]  
|-
|-
| Types || | [http://wiki.citizensnpcs.com/DtlTraders/traders Traders] | [http://wiki.citizensnpcs.com/DtlTraders/bankers Bankers] <!--| [http://wiki.citizensnpcs.com/DtlTraders/auctionhouse Auction House] | [http://wiki.citizensnpcs.com/DtlTraders/wallets Wallets]-->
| Types || | [http://wiki.citizensnpcs.com/DtlTraders/traders Traders] | [http://wiki.citizensnpcs.com/DtlTraders/bankers Bankers] | [http://wiki.citizensnpcs.com/DtlTraders/auctionhouse Auction House] | [http://wiki.citizensnpcs.com/DtlTraders/wallets Wallets]
|}
|}
-->

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