LibreOffice for macOS Merges Change That Removes the Need for a Separate Japanese Language Pack
The article's text, from Joho no Todai's page.
LibreOffice’s development branch now bundles macOS interface languages in the main app. It includes every language specified at build time, simplifies Japanese setup, and preserves code signing. Offline help moves to separate downloads by language.
Removing an extra install for the Japanese interface
At 20:22 UTC on December 4, the LibreOffice team merged a change into the main branch that revises macOS packaging. It affects the language files used for menus, dialog boxes, and other interface text.
The existing macOS process has been to install the main app and then download and install the desired language pack. The Japanese language pack for LibreOffice 26.8.3 on Apple Silicon is about 4.3 MB, based on the file updated November 12. Using the Japanese interface requires a download separate from the main app.
Under the new process, all interface languages specified at build time ship with the app. A build that includes Japanese needs no separate Japanese language pack. Installing the main app supplies the files needed for the Japanese interface.
The Windows installer contains every interface language specified at build time and lets users choose which ones to install. On macOS, the new package installs all bundled languages in one go, so even languages a user never selects take up disk space.
What language packs have to do with code signing
The developer also cited preserving the code signature as a benefit.
When macOS verifies an app’s code signature, it checks the executables and bundled resources against their state when the app was signed. According to Apple’s security documentation, when opening software downloaded outside the App Store, Gatekeeper checks that it comes from an identified developer, that Apple notarized it, and that it has not been modified since distribution. Through notarization, Apple checks for known malicious content.
The existing language packs add files inside an installed copy of LibreOffice.app. Installing even an official language pack changes the contents of the app after the distributor has signed it.
Bundling translations before signing avoids modifying the app after installation just to use Japanese. That reduces the work for users while keeping the app in the state the distributor signed.
LibreOffice for macOS: Interface languages and code signing
| Item | Previous packaging | New packaging (in development) |
|---|---|---|
| Distribution | Separate download | Bundles all specified languages in the app |
| Japanese | Install a language pack | No separate pack if bundled |
| Language selection | Add only what you need | Installs all bundled languages Windows lets users choose |
| Signature | Modifies the app bundle | No modification needed; signature stays intact |
Why offline help is separate
Users who want help available without an internet connection will download it separately in the language they need.
According to the developer behind the change, when Safari is the default browser on a Mac, its sandbox prevents it from opening help files inside the LibreOffice app bundle unless the user manually navigates to the location. In that setup, LibreOffice uses online help even if offline help is installed.
LibreOffice for macOS: Estimated installed size of offline help
Disk use is another factor. The developer estimates that offline help takes up around 35 MB per language once installed. Bundling every language would take about 2.6 GB just for help. Putting the files in separate downloads makes sense when people who need them can select them and they generally go unused on systems where Safari is the default.
Adding offline help will still modify files inside the app. The new help installer, written in AppleScript, checks the product and version at the installation destination. If the app is not running, the installer launches it before modifying files so Gatekeeper can verify the signature. If an operation such as extracting files fails, the installer can ask for permission to retry with administrator privileges.
Bundling interface languages required changing a variable name
Another packaging change was merged at 15:40 UTC on December 4. The list of included language codes was previously stored in a variable called LANG. The developer says the value could become long enough to cause Apple’s codesign tool to crash.
LANG is an environment variable normally used to configure a program’s language and locale. The packaging process had been using it to pass language codes to another program. A dedicated variable, INSTALLER_LANGS, now carries the list to avoid interfering with code signing.
The packaging change has reached the main branch, and the review records a successful Jenkins build.
If the new packaging ships in a stable release, people will be able to use LibreOffice in Japanese without looking for a separate download. That practical improvement takes work both to sign the app before release and to preserve the signature after installation.
