Translation of custom fields and email texts

I am trying to get my head around the way that certain parts of the system are / can be translated. I know that we can use the string translate function to change words or phrases in one language and also that the language files can be used to translate existing strings in the code from one language to another. What I can’t work out, however, is how to translate the names and descriptions of custom fields and email templates.

Apologies if I am missing something obvious or if this is explained somewhere, but I have not found relevant information in the documentation or the forum.

Hi @ccfu The string translate option helps with text that has been coded into the system, so it cannot be easily changed without changing the code. For areas like custom fields and email templates, the names and text can be edited directly in the UI. For these, you are welcome to write them directly in your native language, and can customise them to the context for your school.

Hi @sandra. Allow me to clarify. We have two languages that will be active in the system, so the field titles and emails texts would need to be available in both languages. I am aware that these can be entered and edited via the UI, but as far as I can see it is only possible to have these available in one language (as the language is not defined). Is that correct?

Hi @ccfu thanks for your clarification. That is an interesting case, and unfortunately at this point Gibbon doesn’t support individually translating these types of strings. To be honest, just trying to think of how I would program that is a bit mind boggling :sweat_smile: For now, the best option is to put both languages in these strings, and for the emails, you can include both translations within the email text. I suspect it hasn’t come up much in the past, as many schools will tend to have a primary language of instructions/communication in the school, even when other languages are present.

Hope this helps.

We should be able to work with that, thank you.

1 Like