schorschii / OCO-Server

Open Source Computer Orchestration Server - Client/Endpoint & Server Inventory, Configuration Management, Automation and Software Rollout/Deployment/Distribution
https://oco.sieber.systems
GNU General Public License v3.0
49 stars 13 forks source link

Line 309 not translated #29

Closed lyonelf closed 1 year ago

lyonelf commented 1 year ago

I have translated this line but in web portal it stay in english

'self_registration' => 'Auto-enregistrement',

2023-04-28_10h19_10

theonlytruth commented 1 year ago

Did you first register this computer and did then add translation for this string? Or was translation first?

If I'm right "Self Registration" is only a text which is saved with the computer informations when you register it. If you then change the language (or add a translation for this string) the text stays the same as before.

lyonelf commented 1 year ago

No no, translation was made before injected the PC

schorschii commented 1 year ago

The text "Self Registration" is saved forever in the description field of the computer when registering it. The problem is that api-agent.php is called from the agent (not from your web browser) and since it does not send a language header, the English text will always be used, no matter what language is set in your browser.

I'm going to change the behavior as follows: