Bug 158843 - merging the po files of a translation would reduce the total size of mo files and the MSI archive size
Summary: merging the po files of a translation would reduce the total size of mo files...
Status: UNCONFIRMED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Localization (show other bugs)
Version:
(earliest affected)
24.8.0.0 alpha0+ Master
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: needsDevAdvice
Depends on:
Blocks: Win-Installer-Smaller Installer-Linux
  Show dependency treegraph
 
Reported: 2023-12-23 17:18 UTC by Jérôme
Modified: 2024-01-08 22:11 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
mo files list with size (52.50 KB, application/vnd.oasis.opendocument.spreadsheet)
2024-01-08 22:11 UTC, Jérôme
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jérôme 2023-12-23 17:18:45 UTC
For example, in french translation, there are 33 ".mo" files in the main MSI archive.

If we could merge those mo files, we could possibly avoid duplicate translation.

In addition, a single mo file for this translation would be better compressed into the MSI main archive (one compression per file).

This would require you to manually merge the po files or to use an automatic tool (msgmerge or msgcat?) to generate a single temporary po file.
Comment 1 Stéphane Guillou (stragu) 2024-01-08 10:48:38 UTC
In a complete MSI with French UI, I see 3894 mo files, the biggest one below 900 kb.
I don't know how these files are generated, possibly split and then used, but maybe Cloph can help here?
Comment 2 Jérôme 2024-01-08 22:11:18 UTC
Created attachment 191810 [details]
mo files list with size

The main MSI file and the french off-line help MSI file contain 3894 mo files using 230 MB.