• Login
Community
  • Login

Original String Order

Scheduled Pinned Locked Moved General Discussion
8 Posts 3 Posters 444 Views
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.
  • N
    Nicola Vento
    last edited by Feb 28, 2021, 10:21 AM

    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

    A 1 Reply Last reply Feb 28, 2021, 12:07 PM Reply Quote 0
    • A
      Alan Kilborn @Nicola Vento
      last edited by Feb 28, 2021, 12:07 PM

      @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
      • N
        Nicola Vento
        last edited by Feb 28, 2021, 3:04 PM

        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?

        A 1 Reply Last reply Feb 28, 2021, 3:25 PM Reply Quote 0
        • A
          Alan Kilborn @Nicola Vento
          last edited by Feb 28, 2021, 3:25 PM

          @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
          • N
            Nicola Vento
            last edited by Feb 28, 2021, 3:56 PM

            This post is deleted!
            1 Reply Last reply Reply Quote 0
            • N
              Nicola Vento
              last edited by Nicola Vento Feb 28, 2021, 4:13 PM Feb 28, 2021, 4:10 PM

              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?

              A T 2 Replies Last reply Feb 28, 2021, 4:31 PM Reply Quote 0
              • A
                Alan Kilborn @Nicola Vento
                last edited by Feb 28, 2021, 4:31 PM

                @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
                • T
                  Terry R @Nicola Vento
                  last edited by Feb 28, 2021, 6:34 PM

                  @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
                  5 out of 8
                  • First post
                    5/8
                    Last post
                  The Community of users of the Notepad++ text editor.
                  Powered by NodeBB | Contributors