WoW:Localizing an addon: Difference between revisions

(→‎Some links: Old removed)
Line 38: Line 38:


=== Localization in the .toc file ===
=== Localization in the .toc file ===
A number of [[TOC format#Official tags|official .toc tags]] support localization by appending a locale suffix to a tag name. This mechanism allows addons to present a localized name and description of the addon in the addons interface. The following example illustrates this, by adding a french ("frFR" locale) title and description to the Gatherer addon:
#A number of [[TOC format#Official tags|official .toc tags]] support localization by appending a locale suffix to a tag name. This mechanism allows addons to present a localized name and description of the addon in the addons interface. The following example illustrates this, by adding a french ("frFR" locale) title and description to the Gatherer addon:
  Title: Gatherer
  Title: Gatherer
  Title-frFR: Gatherer (en Francais, in French)
  Title-frFR: Gatherer (en Francais, in French)
  Notes: Gatherer, displays stuff you gather in your minimap
  Notes: Gatherer, displays stuff you gather in your minimap
  Notes-frFR: Gatherer, affiche les objets recoltes dans la minicarte
  Notes-frFR: Gatherer, affiche les objets recoltés dans la minicarte


=== Making an addon localizable ===
=== Making an addon localizable ===
Anonymous user