• Login
Community
  • Login

default language for all user

Scheduled Pinned Locked Moved General Discussion
5 Posts 2 Posters 974 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.
  • O
    ounet22
    last edited by Feb 8, 2022, 7:36 PM

    Hello, is it possible to change a config file to setup the same language for all user wihtout going into GUI to change that. I want to install notepad++ onto rds server and using gpo/ xml / something to apply a default config to all user.

    thanks

    ounet

    P 1 Reply Last reply Feb 8, 2022, 8:04 PM Reply Quote 0
    • P
      PeterJones @ounet22
      last edited by Feb 8, 2022, 8:04 PM

      @ounet22

      I assume on this deployment method that you have the ability to edit a config file before putting it into your distribution, and thus in each user’s settings folder? If so, then edit config.xml, the line

              <GUIConfig name="NewDocDefaultSettings" format="0" encoding="4" lang="21" codepage="-1" openAnsiAsUTF8="yes" />
      

      the lang="21" says to make the default file type (language) Perl. (the default value is lang="0" for plaintext)

      To get the list of numbers, the easiest is to just set it once in your original Notepad++ installation, then look at the config.xml value. Or you can look at the functionList\overrideMap.xml , which shows the langID as the number, and the filename it maps to will tell you which language to pick: so 21 is perl, 85 is typescript, etc. You can also look in the source code > Notepad_plus_msgs.h , and find the value of each enum tokens starting at 0 for L_TXT and up to 85 for L_TYPESCRIPT… but that’s a pain; just use the overrideMap list if you don’t want to use the GUI for the first time.

      O 2 Replies Last reply Feb 8, 2022, 8:17 PM Reply Quote 0
      • O
        ounet22 @PeterJones
        last edited by Feb 8, 2022, 8:17 PM

        @peterjones thanks for your help. Can I ask you the same thing for force for all user not update as it’s rds rds server ?
        thnaks
        ounet

        1 Reply Last reply Reply Quote 0
        • O
          ounet22 @PeterJones
          last edited by Feb 8, 2022, 8:25 PM

          @peterjones I would like to see onlie doc https://npp-user-manual.org/doc but not working

          P 1 Reply Last reply Feb 8, 2022, 8:38 PM Reply Quote 0
          • P
            PeterJones @ounet22
            last edited by PeterJones Feb 8, 2022, 8:38 PM Feb 8, 2022, 8:38 PM

            @ounet22

            I would like to see onlie doc https://npp-user-manual.org/doc but not working

            That hasn’t been the documentation URL for years, and there shouldn’t be anything left that links to that. The ? links you to npp-user-manual.org , which is the official online user manual.

            Can I ask you the same thing for force for all user not update

            The manual doesn’t delve into the nitty gritty mapping of each preference to which attribute in the config.xml it refers to. The expectation when Don tasked me and others to implement the modern user manual was to make it focused on “normal” users – and “normal” users only want to use the GUI. For people who want to manually edit the config.xml instead of use the GUI, they are expected to experiment with the GUI, see how it influences the config.xml, and then make the changes.

            As someone who is trying to deploy, I understand your need to get deeper into the details. But really, since you have to unpack the default installer to be able to get at the config files that you need to configure anyway, I would think it would be easiest to unpack, go into the GUI and make the settings the way you want, then go grab the GUI-edited config files.

            But the update setting is controlled by

            <GUIConfig name="noUpdate" intervalDays="15" nextUpdateDate="20220223">yes</GUIConfig>
            

            Note that the value yes means “no update”, and no means “do the automatic update”. So what I’ve shown you will disable the automatic updater.

            1 Reply Last reply Reply Quote 2
            3 out of 5
            • First post
              3/5
              Last post
            The Community of users of the Notepad++ text editor.
            Powered by NodeBB | Contributors