Community

    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Original String Order

    General Discussion
    3
    8
    67
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Nicola Vento
      Nicola Vento last edited by

      Hello.
      I have a question:
      How can I restore the display order of the strings to the original developer format? Cause once modified it cannot be restored

      Alan Kilborn 1 Reply Last reply Reply Quote 0
      • Alan Kilborn
        Alan Kilborn @Nicola Vento last edited by

        @Nicola-Vento

        You start by elaborating more about what you’re asking.

        To me it sounds like you just want to Undo (Ctrl+z) one or more times, but it feels like there will be more to the story than that…

        1 Reply Last reply Reply Quote 1
        • Nicola Vento
          Nicola Vento last edited by

          I have a Notepad ++ sheet with an initial order, the one provided by the developer. If I change the order by entering the alphabetic mode and save the sheet, can I be able to return to the old string order?

          Alan Kilborn 1 Reply Last reply Reply Quote 0
          • Alan Kilborn
            Alan Kilborn @Nicola Vento last edited by

            @Nicola-Vento

            Sorry, I still don’t know what basically anything you’ve said means. :-(
            Maybe someone else will…

            1 Reply Last reply Reply Quote 1
            • Nicola Vento
              Nicola Vento last edited by

              This post is deleted!
              1 Reply Last reply Reply Quote 0
              • Nicola Vento
                Nicola Vento last edited by Nicola Vento

                I’m working on Notepad for a game translation. Each string represents a line of text. The localization original version has strings sorted in a certain way. When I act to change the order of the strings (for ex. in alphabetical order) if I save the file and reopen it I no longer have the possibility to restore the strings order to the original one. The question is: is there a way to return to the original strings order?

                Alternatively, is there a way to know the string ordering of the original file so that I can put it in the edited file?

                Alan Kilborn Terry R 2 Replies Last reply Reply Quote 0
                • Alan Kilborn
                  Alan Kilborn @Nicola Vento last edited by

                  @Nicola-Vento

                  Ah, okay, that finally makes some sense. Thank you for clarifying.

                  The answer is No, once you close a file and then later reopen it, there is no history of changes.

                  You could always keep a copy of the original file in order to refer to the original line ordering later.

                  1 Reply Last reply Reply Quote 1
                  • Terry R
                    Terry R @Nicola Vento last edited by

                    @Nicola-Vento said in Original String Order:

                    Alternatively, is there a way to know the string ordering of the original file so that I can put it in the edited file?

                    There is one thing you could do, although that means adding text to the file whilst editing it. You could add the original line number to each line, then move that to the end of each line. Then when ordering it alphabetically the number would not interfere with the new ordering. Once editing is complete you could move that number back to the start of the line, re-order based on the number and then remove the number.

                    This is achieved through the “Column Editor” function. You would have the cursor in the very first position of the file, use the Column editor to add a number, starting at 1, adding 1, no repeat and have the “leading zeros” ticked. Then use a regex (regular expression) to move that number to the end of each line. Continue with your editing.

                    Lastly move the number back to the start of each line using another regex, order by number and then a final regex to remove the number.

                    Terry

                    1 Reply Last reply Reply Quote 3
                    • First post
                      Last post
                    Copyright © 2014 NodeBB Forums | Contributors