Skip to main content

Locale Editor - Translating to Portuguese adds backslashes

Comments

8 comments

  • cPanelKenneth
    Hello, Which version of cPanel & WHM are you seeing this on? Also, which locale are you modifying (e.g. pt_pt)?
    0
  • João Clérigo
    Hello, currently using CLOUDLINUX 6.8 x86_64 " WHM 56.0 (build 28). Locale pt_pt. In XML header: In the locale Editor: Portuguese (portugu"s) Best Regards, Jo"o Cl"rigo
    0
  • João Clérigo
    Hi again, just to add a note that, for each day that is passes is keeps adding slashes: "Anfitri"es adicionais\\\\ que enviam e-mail para os seus dom"nios (A):" It started with one, two, now four, I guess tomorrow will be eight... Best Regards, Jo"o Cl"rigo
    0
  • cPanelMichael
    Hello, Would you mind opening a support ticket using the link in my signature so we can take a closer look? You can post the ticket number here so we can update this thread with the outcome. Thank you.
    0
  • João Clérigo
    Hello, Support Request ID is: 7608355 Best Regards, Jo"o Cl"rigo
    0
  • João Clérigo
    Hello, support has reached me and they managed to trace and replicate the problem. The cPanel support followed these steps for replicating the issue on a test server: -Setup a 11.56 server with CloudLinux and install/initialize cagefs. -Open "WHM >> Locales >> Edit a Locale" and select the standard Portuguese locale in the Locale Editor. -Find this field: 'Warning: cPanel is unable to verify that this server is an authoritative nameserver for "[_1]"".' -Copy this into the "Custom Field" value for this field. -Observe that this updated your "/var/cpanel/locale.local/pt.yaml" file: =================================== # cat /var/cpanel/locale.local/pt.yaml --- "CPU Usage": 'Uso da CPU' "Entry Processes": 'Processos de entrada' "I/O Usage": 'Uso E/S' "Number of Processes": 'Numero de processos' "Physical Memory Usage": 'Uso de mem"ria f"sica' "Resource Usage": 'Uso da Recursos' "Select PHP Version": 'Selecionar PHP Vers"o' "Virtual Memory Usage": 'Uso de memoria virtual' "Warning: cPanel is unable to verify that this server is an authoritative nameserver for "[_1]"".": 'Warning: cPanel is unable to verify that this server is an authoritative nameserver for "[_1]".' "collapse stats": 'recolhe estat"sticas' "expand stats": 'expande estat"sticas' "inodes": 'Uso de arquivo' =================================== -Run "/scripts/postupcp" -Check the yaml file: =================================== # cat /var/cpanel/locale.local/pt.yaml "CPU Usage": "Uso da CPU" "Entry Processes": "Processos de entrada" "I/O Usage": "Uso E/S" "Number of Processes": "Numero de processos" "Physical Memory Usage": "Uso de mem"ria f"sica" "Resource Usage": "Uso da Recursos" "Select PHP Version": "Selecionar PHP Vers"o" "Virtual Memory Usage": "Uso de memoria virtual" "Warning: cPanel is unable to verify that this server is an authoritative nameserver for "[_1]"".": "Warning:\\ cPanel is unable to verify that this server is an authoritative nameserver for\\ "[_1]""." "collapse stats": "recolhe estat"sticas" "expand stats": "expande estat"sticas" "inodes": "Uso de arquivo" =================================== -Load the locale in a cPanel account as see that it is formatted as: =================================== Warning:\\ cPanel is unable to verify that this server is an authoritative nameserver for\\ "[_1]". =================================== The support has filed a case with their developers regarding this issue, ID CPANEL-7700. cPanel support told me that this a very specific bug in CloudLinux scripts and that there is a high likelihood that the developers will deem this an issue that they need to resolve. I've opened a ticket also in Cloudlinux, with these results. #UUT-326-87752. Best Regards, Jo"o Cl"rigo
    0
  • cPanelMichael
    [QUOTE="Jo"o Cl"rigo, post: 2260351, member: 808921">I've opened a ticket also in Cloudlinux, with these results. #UUT-326-87752.
    I'm happy to see our support team was able to determine the cause of the problem. Feel free to update this thread with the outcome of your support request with CloudLinux. Thank you.
    0
  • João Clérigo
    Hello, Cloudlinux reply: -- Hello, I was able to reproduce the issue on our test server. It looks like it goes to "/usr/share/l.v.e-manager/cpanel/utils/merge_locales.py" file. I have create bugreport to our developers about it. I worry we have no nice solution for this case however as a draft workaround you may want to modify postupcp script so it copy /var/cpanel/locale.local/pt.yaml at the begining then restore it after l.v.e-manager_postupcp_hook.sh executed. Thanks for bringing attention to this. -- Best Regards, Jo"o Cl"rigo
    0

Please sign in to leave a comment.