Navigation

    Kopano
    • Register
    • Login
    • Search
    • Categories
    • Get Official Kopano Support
    • Recent
    Statement regarding the closure of the Kopano community forum and the end of the community edition

    once more localizing folders

    Kopano Groupware Core
    5
    25
    1341
    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.
    • micro
      micro last edited by micro

      man dpkg-reconfigure
      

      -pvalue, --priority=value
      Specify the minimum priority of question that will be displayed. dpkg-reconfigure normally shows low priority questions no matter what your default priority is. See debconf(7) for a list.

      can you provide more info and background about this command and how it might cure the issue? I don’t want to mess around with my locales on this production environment.

      fbartels thctlo 2 Replies Last reply Reply Quote 0
      • fbartels
        fbartels Kopano @micro last edited by

        @micro an error like ‘ascii’ codec can’t decode byte 0xc3 in position 3: ordinal not in range(128) usually means that your local terminal does not understand utf-8.

        You can disregard the apache stuff, as this is not directly relevant for the python script.

        Regards Felix

        Resources:
        https://kopano.com/blog/how-to-get-kopano/
        https://documentation.kopano.io/
        https://kb.kopano.io/

        Support overview:
        https://kopano.com/support/

        1 Reply Last reply Reply Quote 0
        • micro
          micro last edited by

          alright, but do you have any suggestion to this error which might lead to success ?

          fbartels 1 Reply Last reply Reply Quote 0
          • thctlo
            thctlo @micro last edited by

            @micro man locale-gen

            This give you the option to (re-)generate the locales.

            dpkg-reconfigure -plow locales
            Shows all questions and allows you to select other locales to add and you can set a default with it.

            1 Reply Last reply Reply Quote 0
            • fbartels
              fbartels Kopano @micro last edited by

              @micro reconfigure your terminal (not your server) to work with utf-8.

              How to do that depends in your terminal emulator, but a quick search should give instructions.

              Regards Felix

              Resources:
              https://kopano.com/blog/how-to-get-kopano/
              https://documentation.kopano.io/
              https://kb.kopano.io/

              Support overview:
              https://kopano.com/support/

              1 Reply Last reply Reply Quote 0
              • micro
                micro last edited by micro

                well, I am pretty sure for 100% that I did run “dpkg-reconfigure locales” quite after I installed the OS. This is one of the basic steps I perform on a clean install.

                When I now run the mentioned command, I see that my settings
                de_DE.UTF-8
                en_US.UTF-8

                are highlighted with the asterisk [*]. On the next step I see that de_DE.UTF-8 is used for my default system environment and once I confirm all these settings the locales are generated. But as said before, I have done this step already and I already got those locales installed on my system. I am pretty sure this is NOT the culprit.

                just for your understanding. I haven’t choose the locale en_GB.UTF-8 in the dpkg-reconfigure step, but running the command

                python localize-folders.py -u mmustermann --lang en_GB.UTF-8
                

                or

                python localize-folders.py -u mmustermann --lang en_GB
                

                both succeed without errors.

                1 Reply Last reply Reply Quote 0
                • thctlo
                  thctlo last edited by

                  Hai, well what you did, is not know for us.
                  We have to ask/verify these things.

                  kopano 8.6.9 , then its a python2 to python3 bug.
                  read : https://forum.kopano.io/topic/777/kopano-localize-folders
                  same…

                  1 Reply Last reply Reply Quote 0
                  • micro
                    micro last edited by micro

                    locale -a
                    

                    C
                    C.UTF-8
                    de_DE.utf8
                    en_US.utf8
                    POSIX

                    the --verbose switch gives me this result

                    Localizing user: mmustermann
                    Changing localized folder names to "de_DE.UTF-8"
                    Running in verbose mode
                    Renaming MAPI Folder "junk" -> From "Junk E-Mail" To "Junk E-Mail"
                    Renaming MAPI Folder "tasks" -> From "Aufgaben" To "Aufgaben"
                    Renaming MAPI Folder "journal" -> From "Journal" To "Journal"
                    Renaming MAPI Folder "wastebasket" -> From "Deleted Items" To "Gelöschte Objekte"
                    'ascii' codec can't decode byte 0xc3 in position 3: ordinal not in range(128)
                    

                    seems that the script succeeded in renaming the first four folders but fails at the next step. Maybe because of German Umlaut?

                    1 Reply Last reply Reply Quote 0
                    • thctlo
                      thctlo last edited by

                      yeah, that is why i say its a python2 => 3 bug.

                      I’ve seen dozens of these on the samba bug list.
                      I just can not debug these myself (sorry), im not a coder.

                      1 Reply Last reply Reply Quote 0
                      • micro
                        micro last edited by

                        the user @robing links to an updated version of the script which works fine for the user @sebschremser but I cannot access/download it because I have no Bitbucket account. Can I download this updated script somewhere else from?

                        thctlo fbartels 2 Replies Last reply Reply Quote 0
                        • thctlo
                          thctlo @micro last edited by

                          @micro maybe if we call @fbartels … he might.
                          Ping Felix help ;-)

                          1 Reply Last reply Reply Quote 0
                          • fbartels
                            fbartels Kopano @micro last edited by fbartels

                            @micro the script was moved to https://stash.kopano.io/projects/KSC/repos/core-tools/browse/localize-folders

                            In case you’re not ignoring me did you check that YOUR TERMINAL EMULATOR can support UTF-8?

                            Regards Felix

                            Resources:
                            https://kopano.com/blog/how-to-get-kopano/
                            https://documentation.kopano.io/
                            https://kb.kopano.io/

                            Support overview:
                            https://kopano.com/support/

                            1 Reply Last reply Reply Quote 0
                            • micro
                              micro last edited by micro

                              No, I am not ignoring you. Sorry forgot to give feedback on this.

                              echo $TERM
                              

                              xterm

                              echo $LANG
                              

                              de_DE.UTF-8

                              yes, I’m sure my terminal shows correctly UTF-8. I am using a /etc/motd as a check, which shows german umlauts. In case my terminal wouldn’t support UTF-8 I wouldn’t have seen the characters displayed correctly. But I do! :) so UTF-8 support is given

                              I would appreciate if anyone could download the updated script and post it somewhere so I could download it and try it out.

                              EDIT: Oh, you said the script moved. So I have already the latest version. Hmmm… strange, doesn’t work on my side then.

                              fbartels 1 Reply Last reply Reply Quote 0
                              • thctlo
                                thctlo last edited by

                                well, im running out of options here, i can only say two more things
                                Reboot the server and try again.
                                and/or upgrade kopano to a later version.

                                1 Reply Last reply Reply Quote 0
                                • fbartels
                                  fbartels Kopano @micro last edited by

                                  @micro said in once more localizing folders:

                                  so UTF-8 support is given

                                  in that case please get into contact with our support so that someone could check directly on your system.

                                  Regards Felix

                                  Resources:
                                  https://kopano.com/blog/how-to-get-kopano/
                                  https://documentation.kopano.io/
                                  https://kb.kopano.io/

                                  Support overview:
                                  https://kopano.com/support/

                                  1 Reply Last reply Reply Quote 0
                                  • First post
                                    Last post