Community
    • Login

    default language for all user

    Scheduled Pinned Locked Moved General Discussion
    5 Posts 2 Posters 977 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.
    • ounet22O
      ounet22
      last edited by

      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

      PeterJonesP 1 Reply Last reply Reply Quote 0
      • PeterJonesP
        PeterJones @ounet22
        last edited by

        @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.

        ounet22O 2 Replies Last reply Reply Quote 0
        • ounet22O
          ounet22 @PeterJones
          last edited by

          @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
          • ounet22O
            ounet22 @PeterJones
            last edited by

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

            PeterJonesP 1 Reply Last reply Reply Quote 0
            • PeterJonesP
              PeterJones @ounet22
              last edited by PeterJones

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