/[gentoo-x86]/eclass/l10n.eclass
Gentoo

Diff of /eclass/l10n.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.1 Revision 1.2
1# Copyright 1999-2012 Gentoo Foundation 1# Copyright 1999-2012 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/l10n.eclass,v 1.1 2012/07/23 12:44:06 yngwin Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/l10n.eclass,v 1.2 2012/07/26 09:34:55 yngwin Exp $
4 4
5# @ECLASS: l10n.eclass 5# @ECLASS: l10n.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# Ben de Groot <yngwin@gentoo.org> 7# Ben de Groot <yngwin@gentoo.org>
8# @BLURB: convenience functions to handle localizations 8# @BLURB: convenience functions to handle localizations
96 96
97# @FUNCTION: l10n_get_locales 97# @FUNCTION: l10n_get_locales
98# @USAGE: [disabled] 98# @USAGE: [disabled]
99# @DESCRIPTION: 99# @DESCRIPTION:
100# Determine which LINGUAS USE flags the user has enabled that are offered 100# Determine which LINGUAS USE flags the user has enabled that are offered
101# by the package, as listed in PLOCALES, and return them. In case no 101# by the package, as listed in PLOCALES, and return them. In case no locales
102# locales are selected, fall back on PLOCALE_BACKUP. When the disabled 102# are selected, fall back on PLOCALE_BACKUP. When the disabled argument is
103# argument is given, return the disabled useflags instead of the enabled 103# given, return the disabled useflags instead of the enabled ones.
104# ones. This function is normally used internally in this eclass, not by
105# l10n.eclass consumers.
106l10n_get_locales() { 104l10n_get_locales() {
107 local disabled_locales enabled_locales loc locs 105 local disabled_locales enabled_locales loc locs
108 for loc in ${PLOCALES}; do 106 for loc in ${PLOCALES}; do
109 if use linguas_${loc}; then 107 if use linguas_${loc}; then
110 enabled_locales+="${loc} " 108 enabled_locales+="${loc} "

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.20