Community

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

    Set user-defined language as default?

    Help wanted · · · – – – · · ·
    2
    10
    4871
    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.
    • Mike Schmidt
      Mike Schmidt last edited by

      I would like to set a user-defined language as the default language. It isn’t listed in the available options on the Default Language dropdown. Is this possible?

      Claudia Frank 1 Reply Last reply Reply Quote 0
      • Claudia Frank
        Claudia Frank @Mike Schmidt last edited by

        @Mike-Schmidt

        Afaik, not natively possible but I described a possible workaround here.

        Cheers
        Claudia

        1 Reply Last reply Reply Quote 1
        • Mike Schmidt
          Mike Schmidt last edited by

          Thanks Claudia, but I could not get it to work. I followed your instructions exactly. I even tried it multiple times to make sure I wasn’t missing something (which I certainly may still be.)

          Does it matter where the python script is saved? Here is where my “startup.py” is saved:
          Notepad ++\plugins\Config\PythonScript\scripts

          Claudia Frank 1 Reply Last reply Reply Quote 1
          • Claudia Frank
            Claudia Frank @Mike Schmidt last edited by

            @Mike-Schmidt

            Did you install the python script plugin via plugin manager or via the msi package?
            If you open the python script console - what gets displayed?
            Did you restart npp?

            Cheers
            Claudia

            1 Reply Last reply Reply Quote 1
            • Mike Schmidt
              Mike Schmidt last edited by

              OK…I did almost everything you said.

              I didn’t install the MSI because I’m on my work PC and don’t have Admin rights. Is there a manual install option?

              Here is what is displayed in Python console:
              Python 2.7.6-notepad++ r2 (default, Apr 21 2014, 19:26:54) [MSC v.1600 32 bit (Intel)]
              Initialisation took 125ms
              Ready.

              Yes, I restarted NPP.

              Thank you very much for the help!

              1 Reply Last reply Reply Quote 1
              • Claudia Frank
                Claudia Frank last edited by

                OK - looks good - you are one of the lucky users where install via plugin manager worked.

                Just to check that everything works as expected please type the following into the
                textbox next to the run button

                print '\n'.join(dir(editor))
                

                Does this work?

                Cheers
                Claudia

                1 Reply Last reply Reply Quote 1
                • Claudia Frank
                  Claudia Frank last edited by

                  If you get a similar result as I have,
                  try to open a document with your udl and see if something
                  is reported in the console.

                  Cheers
                  Claudia

                  1 Reply Last reply Reply Quote 0
                  • Claudia Frank
                    Claudia Frank last edited by

                    Here is where my “startup.py” is saved: Notepad ++\plugins\Config\PythonScript\scripts

                    Sorry missed that - it depends how npp was installed.
                    If local configuration is used then it is saved in INSTALL_DIR\plugins\Config\PythonScript\scripts
                    if %APPDATA% configuration was chosen, then it is saved in %APPDATA%\Notepad ++\plugins\Config\PythonScript\scripts

                    Installation mode can be verified by checking ? menu and debug-info.

                    Cheers
                    Claudia

                    1 Reply Last reply Reply Quote 1
                    • Mike Schmidt
                      Mike Schmidt last edited by

                      Weird…so I uninstalled and then reinstalled Python and now it works. I guess the first python install was buggy or something.

                      Thanks again for your help. And for your work around. It appears to be doing exactly what I was hopping for. Thanks!

                      1 Reply Last reply Reply Quote 0
                      • Claudia Frank
                        Claudia Frank last edited by

                        Good to see that you’ve got it sorted out.

                        Cheers
                        Claudia

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