diff options
author | Alexandru Croitor <[email protected]> | 2022-06-13 16:19:19 +0200 |
---|---|---|
committer | Alexandru Croitor <[email protected]> | 2022-06-14 15:45:06 +0200 |
commit | 94207621ee768ddedf0021aef99566a8ce90d22b (patch) | |
tree | ab19fe2aa63b149454e1ad4f962b9676692f8688 /qmake/doc/snippets/code | |
parent | 9dced35b41882c42f4239a6380bd86dfda4cd7f5 (diff) |
qmake: Document Xcode behavior when bundling translation files
Xcode's legacy and new build system modes have different behavior
in how they bundle resource paths that start with lang_code.lproj.
Document how to bundle translation files for both legacy
and new build systems.
Pick-to: 5.15 6.2 6.3 6.4
Fixes: QTBUG-98417
Change-Id: I857ec76577f8244a751d4bf38fbe305fef614734
Reviewed-by: Alexey Edelev <[email protected]>
Reviewed-by: Jörg Bornemann <[email protected]>
Reviewed-by: Kai Koehne <[email protected]>
Diffstat (limited to 'qmake/doc/snippets/code')
-rw-r--r-- | qmake/doc/snippets/code/doc_src_qmake-manual.pro | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/qmake/doc/snippets/code/doc_src_qmake-manual.pro b/qmake/doc/snippets/code/doc_src_qmake-manual.pro index e82799c5bff..76f0eec2fec 100644 --- a/qmake/doc/snippets/code/doc_src_qmake-manual.pro +++ b/qmake/doc/snippets/code/doc_src_qmake-manual.pro @@ -944,3 +944,20 @@ win32-g++:contains(QMAKE_HOST.arch, x86_64):{ ... } #! [187] + +#! [188] +translations_en.files = $$PWD/en.lproj/InfoPlist.strings +translations_en.path = en.lproj +QMAKE_BUNDLE_DATA += translations_en +#! [188] + +#! [189] +# Approach 1 +translations_en.files = $$PWD/InfoPlist.strings +translations_en.path = en.lproj + +# Approach 2 +translations_de.files = $$PWD/de.lproj/InfoPlist.strings + +QMAKE_BUNDLE_DATA += translations_en translations_de +#! [189] |