Skip to content

Shell script to test a localized xliff file on a macOS app, without the need to send it to the developer, import it to Xcode, rebuild and export the app, and send it back to the localizer.

License

Notifications You must be signed in to change notification settings

jeromectm/install-xliff-into-macos-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

install-xliff-into-macos-app

This shell script installs a localized .xliff or .xcloc file to a macOS .app application.

This allows a localizer to test the .xliff or .xcloc file without the need to send it to the developer, import it to Xcode, rebuild and export the app, and send it back to the localizer.

  • the script, the .xliff or .xcloc file, the optional "src" folder, and a copy of the .app file should be placed in the same folder (with no other .xliff, .xcloc or .app file in this folder).

  • the .xliff or .xcloc file name should be the language identifier (e.g. "en.xliff", "fr.xliff", "de.xliff"…). The language specified in the "target-language" tag of the xliff file is ignored.

  • other localized resource files (e.g. .html, .pdf, .rtf, .png…) should be placed in an "src" folder, in the same folder as the .xliff file (or should be included inside the .xcloc file package). The "src" folder can contain one or multiple .lproj folders having same name as the .xliff file, and located in various subfolder.

Note that the application's signature will be invalidated, as the application will be modified. You should normally be able to run it locally (assuming you have run it at least once before), however if you send it to someone else by email, or by internet download, the Finder will say the app is damaged. To fix this, the person you send the app to will have to clear the quarantine flag by typing the following command line in a Terminal.app window:

xattr -cr {path/to/app}

(replace {path/to/app} by the actual path of the modified app file; you can drag and drop it from the Finder to the Terminal window to "paste" its path)

© 2022-2023 Jérôme Seydoux - https://github.com/jeromectm

About

Shell script to test a localized xliff file on a macOS app, without the need to send it to the developer, import it to Xcode, rebuild and export the app, and send it back to the localizer.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages