Skip to content

[Feature Request] Add localization files for GUI #141

@anon1231823

Description

@anon1231823

I saw that the strings to translate the GUI for the addon are embedded directly in the main code

Example: From Options.lua

MinimapButtonShow = {
                    type = "toggle",
                    order = 1,
                    name = "Show Minimap Button",
                    get = function(info) return not Addon.db.profile.MinimapButton.LibDBIcon.hide end,
                    set = function(info, value)
                        Addon.db.profile.MinimapButton.LibDBIcon.hide = not value
                        if value then
                            LibStub("LibDBIcon-1.0"):Show("VoiceOver")
                        else
                            LibStub("LibDBIcon-1.0"):Hide("VoiceOver")
                        end
                    end,
                },

But I think we ought to have localization files such that

name = L["Show Minimap Button"],

So then there would be some files like localization.es.lua (and the rest of the locales)

if GetLocale() ~= "esES" and GetLocale() ~= "esMX" then return end

["Show Minimap Button"] = "Mostrar botón del minimapa"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions