Community

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

    How to change the language of the date and time inserted by TextFX in Notepad++?

    Help wanted · · · – – – · · ·
    textfx
    2
    3
    380
    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.
    • ThomasLeigh
      ThomasLeigh last edited by

      Regardless of changing the Notepad++ UI language - TextFX doesn’t react accordingly and doesn’t change the language of time and date (long format). Is there a way I could fix it without a need to reinstall Notepad++?

      Alan Kilborn 1 Reply Last reply Reply Quote 1
      • Alan Kilborn
        Alan Kilborn @ThomasLeigh last edited by Alan Kilborn

        @ThomasLeigh

        Not via TextFX. But there are other ways to get the date/time inserted. See this maybe.

        I don’t think a reinstall of N++ will do anything here.

        1 Reply Last reply Reply Quote 2
        • ThomasLeigh
          ThomasLeigh last edited by ThomasLeigh

          Looks interesting, thank You. I
          decided to use AutoHotkey as a workaround. I can ascribe a keyboard shortcut for it to insert the current date and time. Interestingly, it acts similarly to the TextFX - i.e. it obeys a user’s OS language. So instead of using native syntax to display a month’s name - I’ve used this:

          formattime, monthvar, , MM
          
          if (monthvar=01)
          (cmonth:="January")
          if (monthvar=02)
          (cmonth:="February")
          

          …and so on. And then, if I want to insert the current month’s name:

          send ...some nice %cmonth%
          
          1 Reply Last reply Reply Quote 2
          • First post
            Last post
          Copyright © 2014 NodeBB Forums | Contributors