I wanted to write a ebuild for some binary package , it contains a folder for different languages , its structure is:
ls /path/po:
de fr ja zh_CN zh_TW
I think it's easy to do it , but the document provided by Gentoo is really limited , how can i filter the unnecessary language files ? I shouldn't be copying all those to /usr/share/locale.
==========================================================
@Updates:
I discovered a simple method , which examines ${LANGUAS} variable , like the following code:
insinto /usr/share/locale
for x in "${LANGUAS}";do
if [[ -d "po/${x}" ]];then
doins "po/${x}"
else
einfo "LANGUAGE $x is not supported by this app"
fi
done
Just wondering if it's official approach.