lang::catalog::package_has_files_in_locale_p (private)

 lang::catalog::package_has_files_in_locale_p package_key locale

Defined in packages/acs-lang/tcl/lang-catalog-procs.tcl

Return 1 if the given package has any catalog files for the given locale and 0 otherwise.

Parameters:
package_key (required)
locale (required)
Author:
Peter Marklund

Partial Call Graph (max 5 caller/called nodes):
%3 test_lang_package_has_files_in_locale_p lang_package_has_files_in_locale_p (test acs-lang) lang::catalog::package_has_files_in_locale_p lang::catalog::package_has_files_in_locale_p test_lang_package_has_files_in_locale_p->lang::catalog::package_has_files_in_locale_p lang::catalog::package_catalog_dir lang::catalog::package_catalog_dir (public) lang::catalog::package_has_files_in_locale_p->lang::catalog::package_catalog_dir lang::catalog::get_catalog_paths_for_import lang::catalog::get_catalog_paths_for_import (private) lang::catalog::get_catalog_paths_for_import->lang::catalog::package_has_files_in_locale_p

Testcases:
lang_package_has_files_in_locale_p
Source code:
    set locale_files [glob -nocomplain --  [package_catalog_dir $package_key]/$package_key.${locale}.*]

    return [expr {[llength $locale_files] > 0}]
Generic XQL file:
packages/acs-lang/tcl/lang-catalog-procs.xql

PostgreSQL XQL file:
packages/acs-lang/tcl/lang-catalog-procs-postgresql.xql

Oracle XQL file:
packages/acs-lang/tcl/lang-catalog-procs-oracle.xql

[ hide source ] | [ make this the default ]
Show another procedure: