Change custom translation through CLI

Hi

Infos:

  • Used Zammad version: 5.4.1
  • Used Zammad installation type: docker-compose
  • Operating system: Manjaro
  • Browser + version: Chromium version 112.0.5615.165

Expected behavior:

I need to change the German translation of “Customer” to “Ratsuchende*r”. I didn’t find how to do it in the Web-UI. That’s why I tried to do so via CLI
I tried to do so via CLI:

Translation.create_or_update(:locale => "de-de", :source => "Customer", :target => "Ratsuchende*r", created_by_id: 1, updated_by_id:1)

Actual behavior:

it does not change in UI. seemingly it worked somehow, because if I do
Translation.find_by(target: "Ratsuchende*r")

I get back

 id: 97129,                                                     
 locale: "de-de",                                               
 source: "Customer",                                            
 target: "Ratsuchende*r",                                       
 target_initial: "CC",                                          
 is_synchronized_from_codebase: true,                           
 synchronized_from_translation_file: "i18n/zammad.de-de.po",    
 updated_by_id: 1,                                              
 created_by_id: 1,                                              
 created_at: Thu, 13 Apr 2023 13:20:34.881000000 UTC +00:00,    
 updated_at: Thu, 04 May 2023 08:43:34.541000000 UTC +00:00>

but: It doesn’t change in the UI. Is it correct and possible to change a translation like this? Do I have to restart some process for it? How would I change the translation of “crucial” terms like “Kunde” (customer) or “Besitzer” (owner) instead?

Thanks a lot in advance for any hitn!

Best
Valentin

Reloading the web app should solve this already.
If not, running Rails.cache.clear on the console followed by webapp reload should do the trick.