• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • Which Pokémon Masters protagonist do you like most? Let us know by casting a vote in our Masters favorite protagonist poll here!
  • Red, Hilda, Paxton, or Kellyn - which Pokémon protagonist is your favorite? Let us know by voting in our poll!
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

[Other Question] Is it possible to revert back language files data ?

hirokimura

Miltank's Fanboy Number One
  • 150
    Posts
    7
    Years
    Hey,
    Accidentally deleted my INTL.txt.
    Is it possible to revert back my French.dat to INTL.txt, so I can edit the translation ?
    How to retrieve the texts ?
    Thanks !
     
    Hey,
    Accidentally deleted my INTL.txt.
    Is it possible to revert back my French.dat to INTL.txt, so I can edit the translation ?
    How to retrieve the texts ?
    Thanks !
    At Intl_Messages script section, change
    Code:
    def extract(outfile)
    #    return if !@messages
        origMessages=Messages.new("Data/messages.dat")
        File.open(outfile,"wb") { |f|
          f.write(0xef.chr)
          f.write(0xbb.chr)
          f.write(0xbf.chr)
          f.write("# To localize this text for a particular language, please\r\n")
          f.write("# translate every second line of this file.\r\n")
          if origMessages.messages[0]
            for i in 0...origMessages.messages[0].length
              msgs=origMessages.messages[0][i]
              Messages.writeObject(f,msgs,"Map#{i}",origMessages)
            end
          end
          for i in 1...origMessages.messages.length
            msgs=origMessages.messages[i]
            Messages.writeObject(f,msgs,i,origMessages)
          end
        }
      end
    to
    Code:
      def extract(outfile)
        return if !@messages
        origMessages=Messages.new("Data/messages.dat")
        File.open(outfile,"wb"){|f|
           f.write(0xef.chr)
           f.write(0xbb.chr)
           f.write(0xbf.chr)
           f.write("# To localize this text for a particular language, please\r\n")
           f.write("# translate every second line of this file.\r\n")
           if @messages[0]
             for i in 0...@messages[0].length
               msgs=@messages[0][i]
               Messages.writeObject(f,msgs,"Map#{i}",origMessages)
             end
           end
           for i in [email protected]
             msgs=@messages[i]
             Messages.writeObject(f,msgs,i,origMessages)
           end
        }
      end
    And extract the text after your French language was loaded.

    After you finish, revert the code.
     
    Back
    Top