Pierre-Sassoulas / grey-handling

Helps you get rid or exchange the right objects when your bags are full in World of Warcraft
https://www.curseforge.com/wow/addons/greyhandling
MIT License
3 stars 2 forks source link

Permit localization in any language #12

Closed Pierre-Sassoulas closed 4 years ago

Pierre-Sassoulas commented 5 years ago

In order to be able to do #11 we need to add localization for all string first.

swetlover commented 5 years ago

Has the localization project been cancelled?

Pierre-Sassoulas commented 5 years ago

Thank you for keeping track of this.

No, I'm still planning on doing it. But I'm still changing text and adding text often at the moment. I want to have something relatively stable in other parts of the code first because I can't update localization myself. I don't want to ask for minor modifications in localizations string too much.

Pierre-Sassoulas commented 4 years ago

Hi @swetlover , as the addon is relatively stable now, I made a first draft for the addon localization. It should permit to create a Chinese localization easily for #11 .

What you can do to get started is copy-paste everything between if GetLocale() == "frFR" then and end in localization/fr.lua in localization/zh.lua between if GetLocale() == "zhTW" and end and replace the french strings by the proper Chinese translation. You can check that it's working by launching the game and checking that the string are what you would expect.

Let me know if you have any question and thanks again for proposing your help!