Hi Mike


This is what I have (0.9.14)



    "USER_ATTRIBUTES" : {



        "FIELD_HEADER_GUAC_EMAIL_ADDRESS"       : "Email address:",

        "FIELD_HEADER_GUAC_FULL_NAME"           : "Full name:",

        "FIELD_HEADER_GUAC_ORGANIZATION"        : "Organization:",

        "FIELD_HEADER_GUAC_ORGANIZATIONAL_ROLE" : "Role:"



    },





. And this 
URL(https://github.com/apache/guacamole-client/blob/87aa2e6c34d11bb30626c6c27a42796506493ffd/extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-base/src/main/resources/translations/en.json#L93)
 shows what you indicate in es.json file




"USER_ATTRIBUTES" : {



        "FIELD_HEADER_DISABLED"            : "Login disabled:",


        "FIELD_HEADER_EXPIRED"             : "Password expired:",


        "FIELD_HEADER_ACCESS_WINDOW_END"   : "Do not allow access after:",


        "FIELD_HEADER_ACCESS_WINDOW_START" : "Allow access after:",


        "FIELD_HEADER_TIMEZONE"            : "User time zone:",


        "FIELD_HEADER_VALID_FROM"          : "Enable account after:",


        "FIELD_HEADER_VALID_UNTIL"         : "Disable account after:",



        "SECTION_HEADER_RESTRICTIONS" : "Account Restrictions",


        "SECTION_HEADER_PROFILE"      : "Profile"



    },





So in version 0.9.14 I am using I do not see these translations in es.json 
translation file.



Regards.

De: Mike Jumper [mailto:[email protected]]
Enviado el: domingo, 24 de febrero de 2019 09:12 p.m.
Para: [email protected]
Asunto: Re: Necessity for remove a field from Edit User window



On Sun, Feb 24, 2019 at 2:40 PM Gabriel Huerta Araujo 
<[email protected]> wrote:

By the way how do you make that these fields(their labels in particular) can be 
translated according to chosen language if they are contained into 
guacamole_user table and I do not see any reference to them into 
manageUser.html file?



Many of those fields are dynamic. The fields driven by custom user attributes 
like "expired", "disabled", etc. are given translation strings through adding a 
namespace and applying a transform to the attribute name. Within the user 
administration interface, an attribute like "expired" will be associated with 
the translation string "USER_ATTRIBUTES.FIELD_HEADER_EXPIRED":



https://github.com/apache/guacamole-client/blob/87aa2e6c34d11bb30626c6c27a42796506493ffd/extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-base/src/main/resources/translations/en.json#L93



The "USER_ATTRIBUTES" namespace comes from here:



https://github.com/apache/guacamole-client/blob/87aa2e6c34d11bb30626c6c27a42796506493ffd/guacamole/src/main/webapp/app/manage/templates/manageUser.html#L43-L48



That namespace gets assembled together with the "FIELD_HEADER_" prefix and the 
transformed attribute name here:



https://github.com/apache/guacamole-client/blob/7481c181edfa3dfa80127289c7b0dd59a58ed8bc/guacamole/src/main/webapp/app/form/directives/formField.js#L95-L96



- Mike





---
Este correo electrónico ha sido comprobado en busca de virus por AVG.
http://www.avg.com

Reply via email to