APKBUILD examples:Special Subpackages Languages: Difference between revisions

From Alpine Linux
(added to Development Category)
No edit summary
Line 7: Line 7:
</pre>
</pre>


[[abuild]] is throwing a warning if it detects tanslation.
[[abuild]] is throwing a warning if it detects translation.
<pre>
<pre>
>>> WARNING: package*: Found /usr/share/locale. Maybe add $pkgname-lang to subpackages?
>>> WARNING: package*: Found /usr/share/locale. Maybe add $pkgname-lang to subpackages?

Revision as of 17:22, 3 December 2021

To keep packages small, languages files (LC_MESSAGES) are places in a seperate -lang subpackages.

...
subpackages="$pkgname-lang"
...

abuild is throwing a warning if it detects translation.

>>> WARNING: package*: Found /usr/share/locale. Maybe add $pkgname-lang to subpackages?

Please note that some packages will automatically detect NLS if gettext-dev is installed at build time. If gettext-dev is not a direct or indirect dependency then should most likely no -lang be needed.