SpeakinSpell

167 - How to export the local language files from the site, and then applied to the SpeakinSpell?

I use this site local language translation for SpeakinSpell do some translation work, I now need to translate the results applied to the local language game, in the "Export" menu, there are too many options, I am very confused.

Can tell me step by step how to do?

User When Change
rismisner Jan 16, 2013 at 20:05 UTC Changed assigned to from rismisner to Duerma
rismisner Dec 01, 2011 at 02:33 UTC
g2mXagent Nov 30, 2011 at 15:01 UTC Create

You must login to post a comment. Don't have an account? Register to get one!

  • 6 comments
  • Avatar of rismisner rismisner Jan 16, 2013 at 20:05 UTC - 0 likes

    I'm re-assigning all my tickets to Duerma

  • Avatar of g2mXagent g2mXagent Dec 01, 2011 at 06:32 UTC - 0 likes

    I successfully applied to the local language translation of SpeakinSpell, but the method and provide you with some differences:
    -----------------------------------------------------------------------
    local AceLocale = LibStub:GetLibrary("AceLocale-3.0")
    local L = AceLocale:NewLocale("SpeakinSpell", "zhCN", false)
    if not L then return end

    SpeakinSpell:PrintLoading("Locales/Locale-zhCN.lua")
    -----------------------------------------------------------------------
    This code is invalid, WOW can not be loaded SpeakinSpell, type "/ss" also nothing happens.

    So I copied the code from Locale-enUS.lua modified a bit:
    -----------------------------------------------------------------------
    local AceLocale = LibStub:GetLibrary("AceLocale-3.0")
    local L = AceLocale:NewLocale("SpeakinSpell", "zhCN", true, true)
    if not L then return end

    SpeakinSpell:PrintLoading("Locales/Locale-zhCN.lua")
    -----------------------------------------------------------------------
    Success!

    In China, World of Warcraft is still running in the 4.22 version, so I used SpeakinSpell v4.2.0.04-release

  • Avatar of rismisner rismisner Dec 01, 2011 at 02:33 UTC - 0 likes

    Thank you very much for your efforts!

    I am marking this ticket as "accepted" as a documentation task to copy these instructions to a permanent page and create some links to it from various places.

  • Avatar of rismisner rismisner Dec 01, 2011 at 02:32 UTC - 0 likes

    The new release of SpeakinSpell version 4.3.0.03 (beta) includes the new files to support Simplified Chinese (zhCN) and the partial translation that I exported from the website here.

    You should update to the new version to make it easier to work on your translation.

    Simplified step by step instructions to export from the website to SpeakinSpell code:

    • Format: Lua Table Additions (AceLocale 3.0)
    • Select the language to export (Simplified Chinese zhCN)
    • Handle unlocalized: ignore completely
    • Handle subnamespaces: do not show subnamespaces

    Click export

    In the large text area that appears, select all of the text, and copy it.

    Open the file: /SpeakinSpell/Locales/Locale-zhCN.lua

    The top of the file shows:

    -- Simplified Chinese
    local AceLocale = LibStub:GetLibrary("AceLocale-3.0")
    local L = AceLocale:NewLocale("SpeakinSpell", "zhCN", false)
    if not L then return end
    
    SpeakinSpell:PrintLoading("Locales/Locale-zhCN.lua")
    
    -------------------------------------------------------------------------------
    -- Exported from http://www.wowace.com/addons/speakinspell/localization/export/
    -- 2011-11-30, 9pm EST
    -------------------------------------------------------------------------------
    

    Paste your exported translation below that to replace the remainder of the file.

    Back in the game, /reloadui to view your changes

  • Avatar of rismisner rismisner Dec 01, 2011 at 02:14 UTC - 0 likes

    I see a work in progress on Simplified Chinese (zhCN) so I am exporting what is there in order to add the new files that you'll need.

  • Avatar of rismisner rismisner Dec 01, 2011 at 02:10 UTC - 0 likes

    Select the following options:

    • Format: Lua Table Additions (AceLocale 3.0)
    • select the language you want to export
    • Handle unlocalized: ignore completely
    • Handle subnamespaces: do not show subnamespaces

    Click on Export

    A large text box should appear with the Lua code. Copy-paste the contents of that box into the appropriate Lua file, which you can find under /SpeakinSpell/Locales/

    • Locale-frFR.lua = French
    • Locale-deDE.lua = German
    • Locale-koKR.lua = Korean
    • If you are translating to a new language, you'll have to create a new file, which I'll explain more below.

    At the beginning of each of those files is a few lines of code which look like this:

    -- French
    local AceLocale = LibStub:GetLibrary("AceLocale-3.0")
    local L = AceLocale:NewLocale("SpeakinSpell", "frFR", false)
    if not L then return end
    
    SpeakinSpell:PrintLoading("Locales/Locale-frFR.lua")
    
    -------------------------------------------------------------------------------
    -- Exported from http://www.wowace.com/addons/speakinspell/localization/export/
    -- 2010-11-20, 8pm EST
    -------------------------------------------------------------------------------
    

    Paste the exported translations below that, replacing the contents of the remainder of the file.

    You will see additional lua files in the /SpeakinSpell/Locales directory for ads, help, grammar, and the bigredbutton, but those are not supported in the Localization system on the website here. Those files must be edited manually instead, using any text editor, and being careful with the Lua syntax or else it may not load properly in-game.

    -

    If you are working on a new translation that is not already supported (other than French, German, and Korean) then you'll have to create a new locale file.

    Copy one of the existing files, such as Locale-frFR.lua, and rename it with the appropriate locale code in the format Locale-xxXX.lua similar to the other files. Edit the second line of code to provide the correct locale code instead of "frFR". Then add the file name to the list of Lua files in /SpeakinSpell/SpeakinSpell.toc.

    If you edit the TOC file (/SpeakinSpell/SpeakinSpell.toc) then you must exit and restart the game to apply your changes. Otherwise, if you only change a Lua file, then /reloadui is enough to reload the changes in-game.

  • 6 comments

Facts

Last updated
Jan 16, 2013
Reported
Nov 30, 2011
Status
Accepted - Problem reproduced / Need acknowledged.
Type
Other - Some other kind of issue
Priority
Medium - Normal priority.
Votes
0
Component
Localization

Reported by

Possible assignees