I'm not sure how this could be best handled, but I'm sure we can make it better somehow. Steps: 1. Import https://commons.wikimedia.org/wiki/File:Military_Symbology_Guide.svg into e.g. Draw Result: all translations, stored with the <switch> element, are shown at the same time. Firefox, GNOME Image Viewer, Chromium, Inkscape only show the English translation. I'm not sure if any of these apps behave differently depending on the system's or app's locale. Version: 24.8.0.0.alpha0+ (X86_64) / LibreOffice Community Build ID: 1344e6261a1d856c71eca1e0cc29215a586bf335 CPU threads: 8; OS: Linux 6.5; UI render: default; VCL: gtk3 Locale: en-AU (en_AU.UTF-8); UI: en-US Calc: CL threaded Xisco, what do you think?
The file contains <text> elements with the language codes as systemLanguage="en", systemLanguage="fr", etc. inside the <switch> element.
Yes, this is related to 76f50549f4898313ef4a18ce32d1f0a625ce766d
Created attachment 193335 [details] sample file
Same on Windows 11 with LO 24.2.1.
Xisco Fauli committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/0a2535ceb06bb9233bc2eeee9158d4c9d2513abd tdf#160386: Add support for switch element It will be available in 24.8.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Thank you Xisco, fix verified in: Version: 24.8.0.0.alpha0+ (X86_64) / LibreOffice Community Build ID: 069bf61cea5e3aea07ffd5a1bb9f55324651cb35 CPU threads: 8; OS: Linux 6.5; UI render: default; VCL: gtk3 Locale: en-AU (en_AU.UTF-8); UI: en-US Calc: CL threaded Should a follow-up ticket be opened about supporting language variants as well?
In release notes: https://wiki.documentfoundation.org/index.php?title=ReleaseNotes%2F24.8&type=revision&diff=747530&oldid=747528
(In reply to Stéphane Guillou (stragu) from comment #6) > Thank you Xisco, fix verified in: > > Version: 24.8.0.0.alpha0+ (X86_64) / LibreOffice Community > Build ID: 069bf61cea5e3aea07ffd5a1bb9f55324651cb35 > CPU threads: 8; OS: Linux 6.5; UI render: default; VCL: gtk3 > Locale: en-AU (en_AU.UTF-8); UI: en-US > Calc: CL threaded > > Should a follow-up ticket be opened about supporting language variants as > well? Can you please test attachment 193335 [details] on your side to see what is displayed for you with different svg viewers ? It should display G'day! for australian variant
OTOH, The patch has been backported to libreoffice-24-2 in https://gerrit.libreoffice.org/c/core/+/165438, so it would fit better in the 24.2 release notes once it's merged.
(In reply to Xisco Faulí from comment #9) > Can you please test attachment 193335 [details] on your side to see what is > displayed for you with different svg viewers ? It should display G'day! for > australian variant For some reason, I see the en_US variant "Howdy" even though I use a en_AU locale. I tried GNOME Image Viewer, Firefox, Chromium, Inkscape, GIMP, KolourPaint. Output of `locale`: LANG=en_AU.UTF-8 LANGUAGE=en_AU:en LC_CTYPE="en_AU.UTF-8" LC_NUMERIC="en_AU.UTF-8" LC_TIME="en_AU.UTF-8" LC_COLLATE="en_AU.UTF-8" LC_MONETARY="en_AU.UTF-8" LC_MESSAGES="en_AU.UTF-8" LC_PAPER="en_AU.UTF-8" LC_NAME="en_AU.UTF-8" LC_ADDRESS="en_AU.UTF-8" LC_TELEPHONE="en_AU.UTF-8" LC_MEASUREMENT="en_AU.UTF-8" LC_IDENTIFICATION="en_AU.UTF-8" LC_ALL= (In reply to Xisco Faulí from comment #9) > OTOH, The patch has been backported to libreoffice-24-2 in > https://gerrit.libreoffice.org/c/core/+/165438, so it would fit better in > the 24.2 release notes once it's merged. I can move it when merged.
Xisco Fauli committed a patch related to this issue. It has been pushed to "libreoffice-24-2": https://git.libreoffice.org/core/commit/8575b792c32613e44324606393cf7a6f136472b3 tdf#160386: Add support for switch element It will be available in 24.2.3. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
(In reply to Xisco Faulí from comment #9) > OTOH, The patch has been backported to libreoffice-24-2 in > https://gerrit.libreoffice.org/c/core/+/165438, so it would fit better in > the 24.2 release notes once it's merged. Done: https://wiki.documentfoundation.org/index.php?title=ReleaseNotes%2F24.2&type=revision&diff=748150&oldid=748144