* How to handle the new translation method on a live system?
@ 2026-11-20 10:55 Matthias Fischer
[not found] ` <4jWKzk20n5zTq0T@michael.haj.ipfire.org>
2026-11-20 16:27 ` Michael Tremer
0 siblings, 2 replies; 10+ messages in thread
From: Matthias Fischer @ 2026-11-20 10:55 UTC (permalink / raw)
To: IPFire: Development-List
Hi all,
I have some questions how to handle the way IPFire (since Core 206)
deals with translations on a live system.
Until Core 206 I could follow the procedure as described in the wiki:
=> https://www.ipfire.org/docs/devel/ipfire-2-x/translate
Now everything has changed - the wiki is outdated. ;-)
'addon-langs' is gone, 'langs' is gone and 'update-lang-cache' has been
deleted. Ok, no problem, but what now?
E.g., I find a typo and want to correct it. Now. Without starting one of
my 'Devels' and compiling the whole thing all over again.
How do I do this?
All I can find - on an installed system(!) - are binary language files
under '/usr/share/locale/[LANGUAGE]/LC_MESSAGES/...' which are
impossible to edit. Until Core 205 I could edit the appropriate language
file, run 'update-lang-file' and was done. How can I do this with Core
206? I searched but wasn't successful.
Could 'someone' please give me a hint?
Best
Matthias
^ permalink raw reply [flat|nested] 10+ messages in thread[parent not found: <4jWKzk20n5zTq0T@michael.haj.ipfire.org>]
* Re: How to handle the new translation method on a live system? [not found] ` <4jWKzk20n5zTq0T@michael.haj.ipfire.org> @ 2026-11-20 16:18 ` Matthias Fischer 2026-11-22 12:50 ` Vincent Li 1 sibling, 0 replies; 10+ messages in thread From: Matthias Fischer @ 2026-11-20 16:18 UTC (permalink / raw) To: development On 20.11.2026 17:09, Michael Tremer wrote: > Hi Matthias, Hi Michael, > You are right, the wiki page was outdated. I have rewritten it for the Weblate-based workflow that we have used since Core 206: > > https://www.ipfire.org/docs/devel/ipfire-2-x/translate > > In short: translations are now done at https://translate.ipfire.org. Typos in a translation are fixed there, and Weblate sends the changes to this list for review. They then ship with a following Core Update. The old way of editing a language file on the installed system and running `update-lang-cache` no longer exists, since the translations are compiled into the binary catalogs you found under /usr/share/locale. The page also explains how to change an English source text, which goes through a patch to this list. Ok, I read about that (new) way. So I really do need my 'Devels' for that. No problem... > I did not cover a quick way to test a change on a live system without a rebuild. If someone has a good approach for that, please add it to the thread and I will put it on the page. Thanks for clarification! I wasn't sure if I overlooked something. If I find a suitable way, I'll post it. Best Matthias ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: How to handle the new translation method on a live system? [not found] ` <4jWKzk20n5zTq0T@michael.haj.ipfire.org> 2026-11-20 16:18 ` Matthias Fischer @ 2026-11-22 12:50 ` Vincent Li 1 sibling, 0 replies; 10+ messages in thread From: Vincent Li @ 2026-11-22 12:50 UTC (permalink / raw) To: IPFire@michael.haj.ipfire.org:Development-List On Fri, 20 Nov 2026, Michael Tremer wrote: > Hi Matthias, > > You are right, the wiki page was outdated. I have rewritten it for the Weblate-based workflow that we have used since Core 206: > > https://www.ipfire.org/docs/devel/ipfire-2-x/translate > > In short: translations are now done at https://translate.ipfire.org. Typos in a translation are fixed there, and Weblate sends the changes to this list for review. They then ship with a following Core Update. The old way of editing a language file on the installed system and running `update-lang-cache` no longer exists, since the translations are compiled into the binary catalogs you found under /usr/share/locale. The page also explains how to change an English source text, which goes through a patch to this list. > > I did not cover a quick way to test a change on a live system without a rebuild. If someone has a good approach for that, please add it to the thread and I will put it on the page. It seems you can edit the same .po and run msgfmt to compile the .po to ipfire.mo on the build host and replace the ipfire.mo on the running system with the new ipfire.mo? has not tried it though. > Best, > Michael > > ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: How to handle the new translation method on a live system? 2026-11-20 10:55 How to handle the new translation method on a live system? Matthias Fischer [not found] ` <4jWKzk20n5zTq0T@michael.haj.ipfire.org> @ 2026-11-20 16:27 ` Michael Tremer 2026-11-27 17:58 ` Matthias Fischer 1 sibling, 1 reply; 10+ messages in thread From: Michael Tremer @ 2026-11-20 16:27 UTC (permalink / raw) To: development Hi Matthias, You are right, the wiki page was outdated. I have rewritten it for the Weblate-based workflow that we have used since Core 206: https://www.ipfire.org/docs/devel/ipfire-2-x/translate In short: translations are now done at https://translate.ipfire.org. Typos in a translation are fixed there, and Weblate sends the changes to this list for review. They then ship with a following Core Update. The old way of editing a language file on the installed system and running `update-lang-cache` no longer exists, since the translations are compiled into the binary catalogs you found under /usr/share/locale. The page also explains how to change an English source text, which goes through a patch to this list. I did not cover a quick way to test a change on a live system without a rebuild. If someone has a good approach for that, please add it to the thread and I will put it on the page. Best, Michael ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: How to handle the new translation method on a live system? 2026-11-20 16:27 ` Michael Tremer @ 2026-11-27 17:58 ` Matthias Fischer 2026-11-27 18:01 ` Matthias Fischer 2026-11-28 14:10 ` Michael Tremer 0 siblings, 2 replies; 10+ messages in thread From: Matthias Fischer @ 2026-11-27 17:58 UTC (permalink / raw) To: development [-- Attachment #1: Type: text/plain, Size: 3338 bytes --] Hi, in short: Many thanks for the hint with 'mgmfmt'. I've found a solution and it works! In long: E.g., I'm running a rather old tool called 'squid-graph' - unofficial. This tools analyses squids 'access.log', writing an 'index.html' and some PNG-graphs, showing the current proxy utilization on the Web GUI. To do this, every five minutes a script called '/usr/bin/squid-graph' is started. The problem: Nearly all translation strings for 'squid-graphs' are included in this script. From the Web GUI a 'sgraph.cgi' then calls an 'index.html' and the PNGs to display the results. See https://github.com/detach8/squid-graph for details, screenshot is attached. Its old, but its hard to give up old habits... ;-) How would be the best way to integrate this in the new translation process? What I did: - On one of my 'Devels', I edited 'tools/update-po' and added the path "config/sgraph" to 'my @searchpaths' (line 48). This script is started through './make.sh lang' for ""Updating the translations of the web user interface...". 'update.po' itself tells me (line 22f): # Extracts all translatable strings of the web user interface into # po/ipfire.pot and merges them into the translations in po/*.po. Sounds good. So I did the following: - Edited all translations in 'squid-graph' and replaced 'lang::tr...' with '_(...' - Created and added the directory 'config/sgraph' to the searchpath above - Copied 'squid-graph' to 'config/sgraph' (found no better way) - Finally, I started './make.sh lang' - It worked as it should and extracted all 'lang::tr'-strings - With some editing and fine-tuning, I added these strings on my build system to '.../po/de.po' Now I got the source, but how to compile? I needed 'msgfmt' for this. Thanks again for the hint. I found that the compiling of the *.po-files is done in 'lfs/configroot', line 167ff: ***SNIP*** #!/bin/bash # for i in ../po/*.po; do \ lang="$$(basename $${i} .po)"; \ mkdir -p /tmp/usr/share/locale/$${lang}/LC_MESSAGES; \ msgfmt --check-format -o /tmp/usr/share/locale/$${lang}/LC_MESSAGES/ipfire.mo $${i} || exit 1; \ done ***SNAP*** I wasn't as clever as these few lines - my bash programming is not so good - so I decided to do this one by one. I ended up with a script I called 'compile-po.sh'. See it attached, but please don't laugh - its just doing its job. [And: it needed the money...! :-)] Important: The sources for the Web GUI are read from '../po/*.po', sources for 'setup from '../src/setup/po/*.po'. The syntax for 'msgfmt' is easy - but you have to follow the order: "msgfmt --check-format -o target-path-and-file source-path-and-file". In its current state, the script must be located in the '.../tools'-directory. After running, I got bit-identical *.mo files (compared to a usual build) that can be copied into a running system. The whole thing still involves a lot of manual work, but for a start, it serves its purpose. I don't need to run a complete build if I want to test some new translations or add one on the fly. To do this, all I have to do is add the appropriate entries in the respective po-file...: ***SNIP*** #: Where does this string come from msgid "Some String In The CGI (e.g.)" msgstr "What should the translation be?" ***SNAP*** ...and run the compile-script. Improvements are possible and welcome... ;-) Best Matthias [-- Attachment #2: Proxy-Diagramme.png --] [-- Type: image/png, Size: 147019 bytes --] [-- Attachment #3: 2026-11-27-1-po-files-for-ipfire-Core206.tar.gz --] [-- Type: application/x-gzip, Size: 602421 bytes --] [-- Attachment #4: compile-po.sh --] [-- Type: text/plain, Size: 3391 bytes --] #!/bin/bash # # Create target directories # mkdir -p usr/share/locale/da/LC_MESSAGES mkdir -p usr/share/locale/de/LC_MESSAGES # '*.po'-files for 'suricata-reporter' are in the archive, deactivated here # mkdir -p usr/share/locale/de_DE/LC_MESSAGES mkdir -p usr/share/locale/es/LC_MESSAGES mkdir -p usr/share/locale/fa/LC_MESSAGES mkdir -p usr/share/locale/fr/LC_MESSAGES mkdir -p usr/share/locale/hr/LC_MESSAGES mkdir -p usr/share/locale/hu/LC_MESSAGES mkdir -p usr/share/locale/it/LC_MESSAGES mkdir -p usr/share/locale/ja/LC_MESSAGES mkdir -p usr/share/locale/nl/LC_MESSAGES mkdir -p usr/share/locale/pl/LC_MESSAGES mkdir -p usr/share/locale/pt_BR/LC_MESSAGES mkdir -p usr/share/locale/ro_RO/LC_MESSAGES mkdir -p usr/share/locale/ru/LC_MESSAGES mkdir -p usr/share/locale/sv/LC_MESSAGES mkdir -p usr/share/locale/tr/LC_MESSAGES mkdir -p usr/share/locale/zh_CN/LC_MESSAGES mkdir -p usr/share/locale/zh_TW/LC_MESSAGES # # Compile the *.po-files one by one # msgfmt --check-format -o usr/share/locale/da/LC_MESSAGES/setup.mo ../src/setup/po/da.po msgfmt --check-format -o usr/share/locale/de/LC_MESSAGES/ipfire.mo ../po/de.po msgfmt --check-format -o usr/share/locale/de/LC_MESSAGES/setup.mo ../src/setup/po/de.po # Deactivated, see above # msgfmt --check-format -o usr/share/locale/de_DE/LC_MESSAGES/suricata-reporter.mo msgfmt --check-format -o usr/share/locale/es/LC_MESSAGES/ipfire.mo ../po/es.po msgfmt --check-format -o usr/share/locale/es/LC_MESSAGES/setup.mo ../src/setup/po/es.po # Deactivated, see above # msgfmt --check-format -o usr/share/locale/es/LC_MESSAGES/suricata-reporter.mo msgfmt --check-format -o usr/share/locale/fa/LC_MESSAGES/setup.mo ../src/setup/po/fa.po msgfmt --check-format -o usr/share/locale/fr/LC_MESSAGES/ipfire.mo ../po/fr.po msgfmt --check-format -o usr/share/locale/fr/LC_MESSAGES/setup.mo ../src/setup/po/fr.po msgfmt --check-format -o usr/share/locale/hr/LC_MESSAGES/setup.mo ../src/setup/po/hr.po msgfmt --check-format -o usr/share/locale/hu/LC_MESSAGES/setup.mo ../src/setup/po/hu.po msgfmt --check-format -o usr/share/locale/it/LC_MESSAGES/ipfire.mo ../po/it.po msgfmt --check-format -o usr/share/locale/it/LC_MESSAGES/setup.mo ../src/setup/po/it.po msgfmt --check-format -o usr/share/locale/ja/LC_MESSAGES/setup.mo ../src/setup/po/ja.po msgfmt --check-format -o usr/share/locale/nl/LC_MESSAGES/ipfire.mo ../po/nl.po msgfmt --check-format -o usr/share/locale/nl/LC_MESSAGES/setup.mo ../src/setup/po/nl.po msgfmt --check-format -o usr/share/locale/pl/LC_MESSAGES/ipfire.mo ../po/pl.po msgfmt --check-format -o usr/share/locale/pl/LC_MESSAGES/setup.mo ../src/setup/po/pl.po msgfmt --check-format -o usr/share/locale/pt_BR/LC_MESSAGES/setup.mo ../src/setup/po/pt_BR.po msgfmt --check-format -o usr/share/locale/ro_RO/LC_MESSAGES/setup.mo ../src/setup/po/ro_RO.po msgfmt --check-format -o usr/share/locale/ru/LC_MESSAGES/ipfire.mo ../po/ru.po msgfmt --check-format -o usr/share/locale/ru/LC_MESSAGES/setup.mo ../src/setup/po/ru.po msgfmt --check-format -o usr/share/locale/sv/LC_MESSAGES/setup.mo ../src/setup/po/sv.po msgfmt --check-format -o usr/share/locale/tr/LC_MESSAGES/ipfire.mo ../po/tr.po msgfmt --check-format -o usr/share/locale/tr/LC_MESSAGES/setup.mo ../src/setup/po/tr.po msgfmt --check-format -o usr/share/locale/zh_CN/LC_MESSAGES/ipfire.mo ../po/zh_CN.po msgfmt --check-format -o usr/share/locale/zh_TW/LC_MESSAGES/ipfire.mo ../po/zh_TW.po ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: How to handle the new translation method on a live system? 2026-11-27 17:58 ` Matthias Fischer @ 2026-11-27 18:01 ` Matthias Fischer 2026-11-28 14:10 ` Michael Tremer 1 sibling, 0 replies; 10+ messages in thread From: Matthias Fischer @ 2026-11-27 18:01 UTC (permalink / raw) To: development Hi all, ok, its always the same: 'mgmfmt' should have read 'msgfmt'! *sigh* Best Matthias ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: How to handle the new translation method on a live system? 2026-11-27 17:58 ` Matthias Fischer 2026-11-27 18:01 ` Matthias Fischer @ 2026-11-28 14:10 ` Michael Tremer 2026-11-28 16:26 ` Matthias Fischer 1 sibling, 1 reply; 10+ messages in thread From: Michael Tremer @ 2026-11-28 14:10 UTC (permalink / raw) To: Matthias Fischer; +Cc: development Hi Matthias, thanks for working this out, and for compile-po.sh. Good to know that the .mo files come out bit-identical, that will be useful for testing on a live system. I would rather not put more effort into squid-graph itself. It is an old, unmaintained Perl tool that parses access.log every five minutes and has its own idea of translations. Instead, I would like to port the functionality into telemetryd, so that the proxy shows up in the new web UI next to the DNS and time server statistics. That fits very well, and the strings then go through the normal translation process. How we would get the data: Squid already keeps all the counters we need, so there is no need to parse any logs. Its cache manager exposes them over HTTP on the local Squid port (the counters report: client requests, hits, bytes in/out on the client and server side, errors). A new telemetryd source would fetch that once per interval, convert the counters into RRD data and the web UI would draw requests, traffic and hit ratio from there. The only prerequisite is that Squid allows the manager interface from localhost, which I will check in our squid.conf. I am happy to do this work myself. Would you be happy replacing squid-graph? Best, -Michael > On 27 Nov 2026, at 17:58, Matthias Fischer <matthias.fischer@ipfire.org> wrote: > > Hi, > > in short: > Many thanks for the hint with 'mgmfmt'. I've found a solution and it works! > > In long: > E.g., I'm running a rather old tool called 'squid-graph' - unofficial. > > This tools analyses squids 'access.log', writing an 'index.html' and > some PNG-graphs, showing the current proxy utilization on the Web GUI. > > To do this, every five minutes a script called > '/usr/bin/squid-graph' is started. > > The problem: > Nearly all translation strings for 'squid-graphs' are included in this > script. From the Web GUI a 'sgraph.cgi' then calls an 'index.html' and > the PNGs to display the results. > > See https://github.com/detach8/squid-graph for details, screenshot is > attached. Its old, but its hard to give up old habits... ;-) > > How would be the best way to integrate this in the new translation process? > > What I did: > - On one of my 'Devels', I edited 'tools/update-po' and added the path > "config/sgraph" to 'my @searchpaths' (line 48). > > This script is started through './make.sh lang' for ""Updating > the translations of the web user interface...". > > 'update.po' itself tells me (line 22f): > # Extracts all translatable strings of the web user interface into > # po/ipfire.pot and merges them into the translations in po/*.po. > > Sounds good. > > So I did the following: > - Edited all translations in 'squid-graph' and replaced 'lang::tr...' > with '_(...' > - Created and added the directory 'config/sgraph' to the searchpath above > - Copied 'squid-graph' to 'config/sgraph' (found no better way) > - Finally, I started './make.sh lang' > - It worked as it should and extracted all 'lang::tr'-strings > - With some editing and fine-tuning, I added these strings on my build > system to '.../po/de.po' > > Now I got the source, but how to compile? I needed 'msgfmt' for this. > Thanks again for the hint. > > I found that the compiling of the *.po-files is done in > 'lfs/configroot', line 167ff: > > ***SNIP*** > #!/bin/bash > # > for i in ../po/*.po; do \ > lang="$$(basename $${i} .po)"; \ > mkdir -p /tmp/usr/share/locale/$${lang}/LC_MESSAGES; \ > msgfmt --check-format -o > /tmp/usr/share/locale/$${lang}/LC_MESSAGES/ipfire.mo $${i} || exit 1; \ > done > ***SNAP*** > > I wasn't as clever as these few lines - my bash programming is not so > good - so I decided to do this one by one. > > I ended up with a script I called 'compile-po.sh'. See it attached, but > please don't laugh - its just doing its job. [And: it needed the > money...! :-)] > > Important: > The sources for the Web GUI are read from '../po/*.po', sources for > 'setup from '../src/setup/po/*.po'. The syntax for 'msgfmt' is easy - > but you have to follow the order: > "msgfmt --check-format -o target-path-and-file source-path-and-file". > > In its current state, the script must be located in the > '.../tools'-directory. After running, I got bit-identical *.mo files > (compared to a usual build) that can be copied into a running system. > The whole thing still involves a lot of manual work, but for a start, it > serves its purpose. I don't need to run a complete build if I want to > test some new translations or add one on the fly. > > To do this, all I have to do is add the appropriate entries in the > respective po-file...: > > ***SNIP*** > #: Where does this string come from > msgid "Some String In The CGI (e.g.)" > msgstr "What should the translation be?" > ***SNAP*** > > ...and run the compile-script. > > Improvements are possible and welcome... ;-) > > Best > Matthias > <Proxy-Diagramme.png><2026-11-27-1-po-files-for-ipfire-Core206.tar.gz><compile-po.sh> ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: How to handle the new translation method on a live system? 2026-11-28 14:10 ` Michael Tremer @ 2026-11-28 16:26 ` Matthias Fischer 2026-11-29 17:06 ` Michael Tremer 0 siblings, 1 reply; 10+ messages in thread From: Matthias Fischer @ 2026-11-28 16:26 UTC (permalink / raw) To: development On 28.11.2026 15:10, Michael Tremer wrote: > Hi Matthias, Hi Michael, > thanks for working this out, and for compile-po.sh. Good to know that the .mo files come out bit-identical, that will be useful for testing on a live system. No problem - it was pure fun. The script may not be the most elegant code ( ;-) ), but it gets the job done. And I wanted a solution. Now I can test as I usually do... > I would rather not put more effort into squid-graph itself. It is an old, unmaintained Perl tool that parses access.log every five minutes and has its own idea of translations. Instead, I would like to port the functionality into telemetryd, so that the proxy shows up in the new web UI next to the DNS and time server statistics. That fits very well, and the strings then go through the normal translation process. > > How we would get the data: Squid already keeps all the counters we need, so there is no need to parse any logs. Its cache manager exposes them over HTTP on the local Squid port (the counters report: client requests, hits, bytes in/out on the client and server side, errors). A new telemetryd source would fetch that once per interval, convert the counters into RRD data and the web UI would draw requests, traffic and hit ratio from there. The only prerequisite is that Squid allows the manager interface from localhost, which I will check in our squid.conf. > > I am happy to do this work myself. Would you be happy replacing squid-graph? Sounds good - go ahead. As I said - no problem for me. ;-) But keep in mind that the cache manager and a few other things were removed in 'squid v7.0.1'. I must confess that I'm still in the process of refactoring the CGI. The current v7.8 is running fine here, but I still hadn't the nerve (and the skills) to remove obsolete code parts from 'proxy.cgi'. Best Matthias > Best, > -Michael > >> On 27 Nov 2026, at 17:58, Matthias Fischer <matthias.fischer@ipfire.org> wrote: >> >> Hi, >> >> in short: >> Many thanks for the hint with 'mgmfmt'. I've found a solution and it works! >> >> In long: >> E.g., I'm running a rather old tool called 'squid-graph' - unofficial. >> >> This tools analyses squids 'access.log', writing an 'index.html' and >> some PNG-graphs, showing the current proxy utilization on the Web GUI. >> >> To do this, every five minutes a script called >> '/usr/bin/squid-graph' is started. >> >> The problem: >> Nearly all translation strings for 'squid-graphs' are included in this >> script. From the Web GUI a 'sgraph.cgi' then calls an 'index.html' and >> the PNGs to display the results. >> >> See https://github.com/detach8/squid-graph for details, screenshot is >> attached. Its old, but its hard to give up old habits... ;-) >> >> How would be the best way to integrate this in the new translation process? >> >> What I did: >> - On one of my 'Devels', I edited 'tools/update-po' and added the path >> "config/sgraph" to 'my @searchpaths' (line 48). >> >> This script is started through './make.sh lang' for ""Updating >> the translations of the web user interface...". >> >> 'update.po' itself tells me (line 22f): >> # Extracts all translatable strings of the web user interface into >> # po/ipfire.pot and merges them into the translations in po/*.po. >> >> Sounds good. >> >> So I did the following: >> - Edited all translations in 'squid-graph' and replaced 'lang::tr...' >> with '_(...' >> - Created and added the directory 'config/sgraph' to the searchpath above >> - Copied 'squid-graph' to 'config/sgraph' (found no better way) >> - Finally, I started './make.sh lang' >> - It worked as it should and extracted all 'lang::tr'-strings >> - With some editing and fine-tuning, I added these strings on my build >> system to '.../po/de.po' >> >> Now I got the source, but how to compile? I needed 'msgfmt' for this. >> Thanks again for the hint. >> >> I found that the compiling of the *.po-files is done in >> 'lfs/configroot', line 167ff: >> >> ***SNIP*** >> #!/bin/bash >> # >> for i in ../po/*.po; do \ >> lang="$$(basename $${i} .po)"; \ >> mkdir -p /tmp/usr/share/locale/$${lang}/LC_MESSAGES; \ >> msgfmt --check-format -o >> /tmp/usr/share/locale/$${lang}/LC_MESSAGES/ipfire.mo $${i} || exit 1; \ >> done >> ***SNAP*** >> >> I wasn't as clever as these few lines - my bash programming is not so >> good - so I decided to do this one by one. >> >> I ended up with a script I called 'compile-po.sh'. See it attached, but >> please don't laugh - its just doing its job. [And: it needed the >> money...! :-)] >> >> Important: >> The sources for the Web GUI are read from '../po/*.po', sources for >> 'setup from '../src/setup/po/*.po'. The syntax for 'msgfmt' is easy - >> but you have to follow the order: >> "msgfmt --check-format -o target-path-and-file source-path-and-file". >> >> In its current state, the script must be located in the >> '.../tools'-directory. After running, I got bit-identical *.mo files >> (compared to a usual build) that can be copied into a running system. >> The whole thing still involves a lot of manual work, but for a start, it >> serves its purpose. I don't need to run a complete build if I want to >> test some new translations or add one on the fly. >> >> To do this, all I have to do is add the appropriate entries in the >> respective po-file...: >> >> ***SNIP*** >> #: Where does this string come from >> msgid "Some String In The CGI (e.g.)" >> msgstr "What should the translation be?" >> ***SNAP*** >> >> ...and run the compile-script. >> >> Improvements are possible and welcome... ;-) >> >> Best >> Matthias >> <Proxy-Diagramme.png><2026-11-27-1-po-files-for-ipfire-Core206.tar.gz><compile-po.sh> ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: How to handle the new translation method on a live system? 2026-11-28 16:26 ` Matthias Fischer @ 2026-11-29 17:06 ` Michael Tremer 2026-11-29 22:19 ` Matthias Fischer 0 siblings, 1 reply; 10+ messages in thread From: Michael Tremer @ 2026-11-29 17:06 UTC (permalink / raw) To: development; +Cc: Matthias Fischer Hi Matthias, I looked into replacing squid-graph with a telemetryd source. Unfortunately, I cannot make it work in a way that I am happy with. The full investigation is in https://bugzilla.ipfire.org/show_bug.cgi?id=14949, but here is the short version: * Squid has no command that prints its statistics. `squidclient` used to do this, but it was removed in Squid 7, together with `cachemgr.cgi`. The release notes say to use curl or wget instead. * The cache manager itself still works. I built Squid 7.8 and `GET /squid-internal-mgr/counters` returns everything we would need (requests, hits, errors, bytes in and out on the client and server side). The default `http_access allow localhost manager` rule is enough. * The problem is that it is only reachable over TCP on whatever `http_port` is configured. Squid has no UNIX socket for this (we do that for knot-resolver). `http_port /path` is rejected and the only UNIX sockets in the source are for its internal worker IPC. * All the alternatives need Squid's configuration to be known to telemetryd. Those are parsing `squid.conf`, probing ports, reading `/proc/<pid>/fd` (needs extra privileges) and SNMP. The last way out is parsing `access.log`, which is what squid-graph does and what I wanted to avoid. I therefore don't want to add a source that guesses, so I have closed the ticket as CANTFIX. If we ever want to revisit this, a dedicated manager-only listener on a fixed localhost port in our generated `squid.conf` would make it a very small source. I would rather not do that just for this. That means we cannot replace squid-graph with telemetryd right now. If you still want to keep it for the time being, the translation question from your original mail applies to it as before. Best, -Michael ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: How to handle the new translation method on a live system? 2026-11-29 17:06 ` Michael Tremer @ 2026-11-29 22:19 ` Matthias Fischer 0 siblings, 0 replies; 10+ messages in thread From: Matthias Fischer @ 2026-11-29 22:19 UTC (permalink / raw) To: development On 29.11.2026 18:06, Michael Tremer wrote: > Hi Matthias, Hi Michael, many thanks - you *really* took a closer look... ;-) I've tweaked the update routine for po-files a bit more, but other than that, I won't be putting too much more work into squid-graph either. Besides, I don't know how many people other than me actually use this tool. Not much, I think. A long time ago, I wrote something about it, but I don't think it's very common. > I looked into replacing squid-graph with a telemetryd source. Unfortunately, I cannot make it work in a way that I am happy with. The full investigation is in https://bugzilla.ipfire.org/show_bug.cgi?id=14949, but here is the short version: I read that, thanks again - that would have been interesting. > * Squid has no command that prints its statistics. `squidclient` used to do this, but it was removed in Squid 7, together with `cachemgr.cgi`. The release notes say to use curl or wget instead. Yep. The cache manager was removed. > * The cache manager itself still works. I built Squid 7.8 and `GET /squid-internal-mgr/counters` returns everything we would need (requests, hits, errors, bytes in and out on the client and server side). The default `http_access allow localhost manager` rule is enough. Ok, I didn't know that, but you've got a lot more experience in these things than me. > * The problem is that it is only reachable over TCP on whatever `http_port` is configured. Squid has no UNIX socket for this (we do that for knot-resolver). `http_port /path` is rejected and the only UNIX sockets in the source are for its internal worker IPC. > * All the alternatives need Squid's configuration to be known to telemetryd. Those are parsing `squid.conf`, probing ports, reading `/proc/<pid>/fd` (needs extra privileges) and SNMP. The last way out is parsing `access.log`, which is what squid-graph does and what I wanted to avoid. > > I therefore don't want to add a source that guesses, so I have closed the ticket as CANTFIX. If we ever want to revisit this, a dedicated manager-only listener on a fixed localhost port in our generated `squid.conf` would make it a very small source. I would rather not do that just for this. > > That means we cannot replace squid-graph with telemetryd right now. If you still want to keep it for the time being, the translation question from your original mail applies to it as before. Too bad, but as I wrote, it could even be that I'm just one of a few still using this tool. And my problems with the translations have been mostly resolved - I now know what I need to do. And if my adjustments get overwritten by oncoming updates - I got two running 'Devels' and making any necessary adjustments takes about 10 minutes... No problem. ;-) Many thanks for looking into this! Best Matthias ^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2026-11-29 22:20 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-20 10:55 How to handle the new translation method on a live system? Matthias Fischer
[not found] ` <4jWKzk20n5zTq0T@michael.haj.ipfire.org>
2026-11-20 16:18 ` Matthias Fischer
2026-11-22 12:50 ` Vincent Li
2026-11-20 16:27 ` Michael Tremer
2026-11-27 17:58 ` Matthias Fischer
2026-11-27 18:01 ` Matthias Fischer
2026-11-28 14:10 ` Michael Tremer
2026-11-28 16:26 ` Matthias Fischer
2026-11-29 17:06 ` Michael Tremer
2026-11-29 22:19 ` Matthias Fischer
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox