This chat command can be used to meet the local need is a way. #17


  • Accepted
  • Patch
Open
Assigned to beeeeeaaaaar
  • _ForgeUser3673626 created this issue Jan 11, 2012

    What does the provided patch do?
          Always reflect positively juseoseo thanks, Celess.
          One kind of would like to provide feedback.
          (This chat command can be used to meet the local need is a way.)

    Please provide any additional information below.

    1. Modification of the conditional RaidTracker.lua file source
        # Before
              function RaidTracker: OnCommandCustom (msg, cmd, args)
                   local frame = RaidTrackerFrame
                   local db, o, L = self._db, self._options, self.L
                   local lsCommand = L [cmd]

                   if cmd == "debug" then

         # After
          function RaidTracker: OnCommandCustom (msg, cmd, args)
               local frame = RaidTrackerFrame
               local db, o, L = self._db, self._options, self.L
               local lsCommand = L [cmd]

               if L [cmd] == "debug" then

    2. Adding language files, the source (koKR.lua)
            L ["debug"] = "debug"
            L ["debug"] = true

    3. Modification of the conditional LibKarma-1.0.lua.lua file source

        # Before
             function LibKarma:OnCommand( msg, ... )
                     local _, _, cmd, args = string.find(msg, "%s?(%w+)%s?(.*)")

         # After
             function LibKarma:OnCommand( msg, ... )
                     local _, _, cmd, args = string.find(msg, "%s?(%S+)%s?(.*)")

    If you are applying the above two kinds of local users to easily, according to local chat commands will be able to do duty.

    Tell receive feedback if the update local-koKR.lua Please add the following information.

    - Chat Commands
    L ["debug"] = "debug"
    L ["added my wife"] = "addwipe"
    L ["delete"] = "deleteall"
    L ["add"] = "additem"
    L ["position"] = "join"
    L ["Exit"] = "leave"
    L ["Boss"] = "bossnext"
    L ["item options"] = "io"
    L ["ㅑ ㅐ"] = "io"
    L ["options"] = "options"
    L ["ㅇ"] = "options"
    L ["ㅐ"] = "o"
    L ["hidden"] = "hide"
    L ["help"] = "help"
    L ["aw"] = "addwipe"
    L ["delete"] = "deleteall"
    L ["ai"] = "additem"
    L ["j"] = "join"
    L ["l"] = "leave"
    L ["o"] = "options"
    L ["O"] = "options"
    L ["h"] = "help"
    L ["debug"] = true
    L ["addwipe"] = true
    L ["deleteall"] = true
    L ["additem"] = true
    L ["join"] = true
    L ["leave"] = true
    L ["bossnext"] = true
    L ["io"] = true
    L ["options"] = true
    L ["o"] = true
    L ["hide"] = true
    L ["help"] = true

  • _ForgeUser3673626 added the tags New Patch Jan 11, 2012
  • _ForgeUser3673626 edited description Jan 11, 2012
  • _ForgeUser3673626 removed a tag New Jan 11, 2012
  • _ForgeUser3673626 added a tag Invalid Jan 11, 2012
  • _ForgeUser3673626 closed issue Jan 11, 2012
  • SleepyBear posted a comment Jan 11, 2012

    How about:

    	local Lcmd = L[cmd]
    
    	if cmd == "debug" or Lcmd == L["debug"] then
    

    So that both standard command and translated command both work?

    I worry that some automation or personal habit may need the english command.

    Or perhaps:

    	local Lcmd = L[cmd]
    	local Lhas = Lcmd ~= cmd
    
    	if cmd == "debug" or (Lhas and Lcmd == L["debug"]) then
    

    Edited Jan 11, 2012
  • SleepyBear removed a tag Invalid Jan 11, 2012
  • SleepyBear added a tag Accepted Jan 11, 2012
  • SleepyBear reopened issue Jan 11, 2012
  • _ForgeUser3673626 posted a comment Jan 12, 2012

    other users at the time of the raid tacker first heard the standard instructions and the local (South Korea) command  Was enabled by modifying the upload.
     But now that the user of the site, as well as the activity does not vanish, too.
     Also, add or modify existing files on your personal blog and posted it once was not enough time, but can not raise.

     If it reflects the opinions of more help to South Korea will be the local user.
     In addition, users of any other country you think will help you too.


    Edited Jan 12, 2012
  • _ForgeUser3673626 posted a comment Jan 12, 2012

    <<reply 492463>>

    Originally presented in two ways: by modifying the file OK, but did not execute the command.

     Perhaps the first article, the third modification naeyongjung %w function is part of the string do not seem to recognize and brew.

     w do you capitalize the W by changing the local execution of the command have been confirmed.

     Way I recommend L [cmd] and string functions %S fixes and around the local only, If you could add a small increase is expected to add capacity.


    Edited Jan 12, 2012

To post a comment, please login or register a new account.