Results 1 to 17 of 17

Thread: Localization Editor (Updated Oct 1, 2009)

  1. #1

    Default Localization Editor (Updated Oct 1, 2009)

    This is a very simple program I have been working on for my personal use, but I might as well share it.

    This takes the exported tsv files from the Pack File Manager so you need that tool first.

    If you would like the Source code just send me a PM. Also if you have any trouble post here and I will help.


    Features:

    Ability to Search by Key or Value through all Records
    Ability to Search by a Known Key, New ones can be added to the Catergories.txt file.
    Ability to Merge any Two files, Records in the Second file will override the ones in the first file.
    Ability to Save a file with Only the records you have changed in a File.
    Ability to Merge the Changes of the file with another file.


    Important:
    Once you save a file in this editor, it will not open in excel correctly, but it will still reopen in the editor, and still be able to be imported back into the localization file, so don't worry if it does not open right.

    See Attached Files for Download.
    Last edited by harshman_chris; October 01, 2009 at 10:04 PM.
    http://www.twcenter.net/forums/showthread.php?t=260572

    Game Scripter @ Reverie World Studios

  2. #2

    Default Re: Localization Editor

    Excellent Chris! Very useful for this monster-file and most important another tool in modding arsenal, +rep .




  3. #3
    ♔Pom♔'s Avatar Ducenarius
    Join Date
    Jun 2009
    Location
    Essex,England
    Posts
    976

    Default Re: Localization Editor

    Excellent,+Rep

  4. #4

  5. #5
    plissken3's Avatar Decanus
    Join Date
    Sep 2008
    Location
    In Scotland & In My Bedroom
    Posts
    565

    Default Re: Localization Editor

    Yes sounds fantastic nice work mate cheers +REP
    WHY NOT TRY MY MODS BELOW - FOR EMPIRE & NAPOLEON
    here:BetterMusicMod& here:SharpeThemeMod
    & here:WarpathPictureMod

  6. #6

    Default Re: Localization Editor

    I updated the tool with some nice features that I have found useful.

    Features Added Include:

    Ability to Merge to files into a new file, where if a record exists in the second file it will override the record in the first file.
    Ability to Save to a file only the records you have changed.
    Ability to Merge the changed records with a existing file.
    http://www.twcenter.net/forums/showthread.php?t=260572

    Game Scripter @ Reverie World Studios

  7. #7

    Default Re: Localization Editor

    wow this sounds really nice.

    I imagine it like: Take your mods localisation, take another languages patch_xxx.pack (xxx=spa, or =ger) Press the merge button and voila, you have a mod loc file that's 90% xxx language.


  8. #8

    Default Re: Localization Editor

    Quote Originally Posted by Lazy Knight View Post
    wow this sounds really nice.

    I imagine it like: Take your mods localisation, take another languages patch_xxx.pack (xxx=spa, or =ger) Press the merge button and voila, you have a mod loc file that's 90% xxx language.
    Thats one option, I made it to solve the issue of CA adding more localization records every patch, just keep your changed seperate, and then after every patch merge them.

    It also can make translating easier.
    http://www.twcenter.net/forums/showthread.php?t=260572

    Game Scripter @ Reverie World Studios

  9. #9

    Default Re: Localization Editor

    oh yes it does. But I think your description is wrong

    Quote Originally Posted by harshman_chris View Post
    Ability to Merge to files into a new file, where if a record exists in the second file it will override the record in the first file.
    In fact the first file overrides the second one. (At least if my state of mind serves me, which is not guaranteed)


  10. #10

    Default Re: Localization Editor

    Quote Originally Posted by Lazy Knight View Post
    oh yes it does. But I think your description is wrong



    In fact the first file overrides the second one. (At least if my state of mind serves me, which is not guaranteed)
    Well I tested it but there might be cases were it does not work, if you walk me through what you did I can fix any bugs.
    http://www.twcenter.net/forums/showthread.php?t=260572

    Game Scripter @ Reverie World Studios

  11. #11

    Default Re: Localization Editor (Updated Oct 1, 2009)

    Alright, I changed the merge logic, as a result it will most likely be a slower merge, but it will work much better because it should now always valid only the key.
    http://www.twcenter.net/forums/showthread.php?t=260572

    Game Scripter @ Reverie World Studios

  12. #12

    Default Re: Localization Editor (Updated Oct 1, 2009)

    okay, I spent the evening localising IS with your editor. First off, great work! It would not have been possible like this without your editor

    However I found a nasty bug: When you press Enter in a description for a line break, that will be written into the TSV, which interpretes it as a linebreak.
    That will cause stuff to terrible explode and burn and die. It's not pretty. Like you save the file and then you cannot open it again, or import it to PFM.


  13. #13

    Default Re: Localization Editor (Updated Oct 1, 2009)

    Quote Originally Posted by Lazy Knight View Post
    okay, I spent the evening localising IS with your editor. First off, great work! It would not have been possible like this without your editor

    However I found a nasty bug: When you press Enter in a description for a line break, that will be written into the TSV, which interpretes it as a linebreak.
    That will cause stuff to terrible explode and burn and die. It's not pretty. Like you save the file and then you cannot open it again, or import it to PFM.
    alright I will remove the return character, or maybe I will remove the return and newline character, but only if they are together.

    because the newline character is used for spacing the things like the unit descriptions.

    I think I after that I am going to right a much better tool tha maybe can bypass the tsv stuff and just open the packfile with the localization file. I won't have it save back to the pack file though, because most likely you don't want it to, unless I have you select a pack file, we will see what I can come up with and ho much time I have.
    http://www.twcenter.net/forums/showthread.php?t=260572

    Game Scripter @ Reverie World Studios

  14. #14

    Default Re: Localization Editor (Updated Oct 1, 2009)

    Alright I changed the code so that it will remove any "\r\n" or when enter is pressed, it won't effect adding newline characters for formating in game.
    http://www.twcenter.net/forums/showthread.php?t=260572

    Game Scripter @ Reverie World Studios

  15. #15

    Default Re: Localization Editor (Updated Oct 1, 2009)

    excellent, this should spare me the headache of searching through endless amounts of data just to rename/add stuff

  16. #16

  17. #17

    Default Re: Localization Editor (Updated Oct 1, 2009)

    Hey np, and thanks for the credit.
    http://www.twcenter.net/forums/showthread.php?t=260572

    Game Scripter @ Reverie World Studios

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •