Am Donnerstag,  4. September 2003, 20:29:09 Uhr MET, schrieb Abel Cheung:
> On 2003-09-04(Thu) 14:10:46 +0200, Guillaume Rousse wrote:
> > Several web applications, including all horde suite and mailman, include 
> > localisation files under their own directory in /var/www/html. Is there a way 
> > to use %find_lang macro so as to look for files elsewhere as under 
> > /usr/share/locale ?
> Certainly possible, but since such case is not very common, and
> dir/file structure of localization files can possibly be
> different in each app, it is probably more convenient to use
> %lang tag in file list instead.

It should be pretty easy if the apps use the right language codes,
then you'd just have to do something like this:


dir=/var/www/someapp/locale
for langdir in $dir/*; do
 language=$(basename $langdir)
 echo "%lang($language) $langdir"
done

CU
-- 
What difference does it make to the dead, the orphans and the
homeless, whether the mad destruction is wrought under the name of
totalitarianism or the holy name of liberty or democracy?
    Mahatma Gandhi (1869 - 1948), "Non-Violence in Peace and War"

Reply via email to