WoW:Localizing an addon: Difference between revisions

m
replace SeeAlso, Replaced: SeeAlso → AlsoSee AWB
(Previous text was slightly inaccurate)
m (replace SeeAlso, Replaced: SeeAlso → AlsoSee AWB)
Line 1: Line 1:
The locale is what makes it possible to know what language the interface is using and thus determine which specific code is going to be executed in a localized addon.
The locale is what makes it possible to know what language the interface is using and thus determine which specific code is going to be executed in a localized addon.


typically, this is used in a [[API_GetLocale|GetLocale]] block:
typically, this is used in a [[API GetLocale|GetLocale]] block:


Code:
Code:
Line 111: Line 111:


Some corresponding codes :
Some corresponding codes :
     à : \195\160    è : \195\168    ì : \195\172    ò : \195\178    ù : \195\185
     à : \195\160    è : \195\168    ì : \195\172    ò : \195\178    ù : \195\185
     á : \195\161    é : \195\169    í : \195\173    ó : \195\179    ú : \195\186
     á : \195\161    é : \195\169    í : \195\173    ó : \195\179    ú : \195\186
     â : \195\162    ê : \195\170    î : \195\174    ô : \195\180    û : \195\187
     â : \195\162    ê : \195\170    î : \195\174    ô : \195\180    û : \195\187
     ã : \195\163    ë : \195\171    ï : \195\175    õ : \195\181    ü : \195\188
     ã : \195\163    ë : \195\171    ï : \195\175    õ : \195\181    ü : \195\188
     ä : \195\164                    ñ : \195\177    ö : \195\182
     ä : \195\164                    ñ : \195\177    ö : \195\182
     æ : \195\166                                    ø : \195\184
     æ : \195\166                                    ø : \195\184
     ç : \195\167                                    œ : \197\147
     ç : \195\167                                    œ : \197\147
      
      
     Ä : \195\132
     Ä : \195\132
     Ö : \195\150
     Ö : \195\150
     Ü : \195\156
     Ü : \195\156
     ß : \195\159
     ß : \195\159


== Unicode ==
== Unicode ==
Line 144: Line 144:


Note: the Unicode equivalent of the single quote is encoded with 3 UTF-8 bytes:
Note: the Unicode equivalent of the single quote is encoded with 3 UTF-8 bytes:
     ’ : \226\128\153 (UCS 2019 -- RIGHT SINGLE QUOTATION MARK)
     : \226\128\153 (UCS 2019 -- RIGHT SINGLE QUOTATION MARK)


It can for instance be found in the frFR locale game data for the Cri d’intimidation warrior ability (at least in 1.8.4).
It can for instance be found in the frFR locale game data for the Cri d’intimidation warrior ability (at least in 1.8.4).


== Check the GlobalStrings.lua ==
== Check the GlobalStrings.lua ==
Line 242: Line 242:
Here are some of Sarf's tips that can be used to keep addons localized during maintenance and updates.
Here are some of Sarf's tips that can be used to keep addons localized during maintenance and updates.


See the [[Localization_Info|Localization Information]] page for lists of known localized strings (zones, channels, etc.)
See the [[Localization Info]]rmation page for lists of known localized strings (zones, channels, etc.)
=== Do not use item names ===
=== Do not use item names ===


Line 283: Line 283:
  end
  end


{{SeeAlso|[[HOWTO: Localize an addon easily]]}}
{{AlsoSee|[[HOWTO: Localize an addon easily]]}}
[[Category: HOWTOs|Localize an AddOn]]
[[Category:HOWTOs|Localize an AddOn]]
Anonymous user