Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sometimes, MRTG forget to translate the second line #74

Open
eribertomota opened this issue Oct 26, 2021 · 2 comments
Open

Sometimes, MRTG forget to translate the second line #74

eribertomota opened this issue Oct 26, 2021 · 2 comments

Comments

@eribertomota
Copy link
Contributor

Hi @oetiker,

Mainly when restarting the service (via systemd) in Debian, MRTG doesn't translate the second line. See below an example for Brazilian Portuguese:

Trafego de rede na br-kvm
The statistics were last updated Terça, 26 de Saíubro de 2021 às 2:17
Gráfico `Diário' (5 minutos Média)

Note that word "Saíubro" doesn't exist in Portuguese and isn't present in source code. The right word is "Outubro". After 5 minutes, I got the same result:

Trafego de rede na br-kvm
The statistics were last updated Terça, 26 de Saíubro de 2021 às 2:22
Gráfico `Diário' (5 minutos - média)

After 15 minutes, the line was translated:

Trafego de rede na br-kvm
Última atualização das estatísticas: Terça, 26 de Outubro de 2021 às 2:37
Gráfico `Diário' (5 minutos Média)

Thanks in advance.

Regards,

Eriberto

@youpong youpong mentioned this issue Apr 8, 2022
@youpong
Copy link
Contributor

youpong commented Apr 8, 2022

I send a PR #88 to fix this.

The rules of translate is stored in the hash like this way.

  1. 'Out' -> 'Saí'
  2. 'The statistics were last updated' -> 'Última atualização das estatísticas:'
  3. so on...

Which one is picked depends on the hash order.

If rule 1 is picked, the translation result is like 'The statistics were last updated Terça, 26 de Saíubro de 2021 às 2:17'.
If rule 2 is picked, the translation result is like 'Última atualização das estatísticas: Terça, 26 de Outubro de 2021 às 2:37'.

That's the why 'Saíubro'.

The hash order changed since Perl Version 5.8.0. I think the issue produced then.

oetiker added a commit that referenced this issue Apr 11, 2022
@youpong
Copy link
Contributor

youpong commented Oct 5, 2022

It is October(Outubro) again. We can see if the problem can be reproduced.
And I think we can close the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants