summaryrefslogtreecommitdiff
path: root/lua_scripts
diff options
context:
space:
mode:
authorMika Westerberg <ext-mika.1.westerberg@nokia.com>2008-12-17 12:13:57 +0200
committerLauri Leukkunen <lle@rahina.org>2009-01-10 01:19:19 +0200
commit16334dee5df629566cc3bd2b99c5b572a05cf49f (patch)
tree4a873b077c1bdbc5a8b50c7966ebcf70f3940f48 /lua_scripts
parent8f0dea439a4f5ee95e6986a11a6f28bd4a0a61f8 (diff)
Now sb2 supports also localization of tools_root.
- sb2-generate-locales has new switch '-T' that allows user to generate localization files for tools. - sb2-init calls sb2-generate-locales for given target and also for tools if needed. Signed-off-by: Lauri Aarnio <lauri@bar.research.nokia.com>
Diffstat (limited to 'lua_scripts')
-rw-r--r--lua_scripts/pathmaps/devel/00_default.lua13
1 files changed, 12 insertions, 1 deletions
diff --git a/lua_scripts/pathmaps/devel/00_default.lua b/lua_scripts/pathmaps/devel/00_default.lua
index 34420b1..35a27f3 100644
--- a/lua_scripts/pathmaps/devel/00_default.lua
+++ b/lua_scripts/pathmaps/devel/00_default.lua
@@ -26,6 +26,9 @@ sb2_share_dir = sbox_user_home_dir.."/.scratchbox2/"..sbox_target.."/share"
devel_mode_tools_ld_so = nil -- default = not needed
devel_mode_tools_ld_library_path = nil -- default = not needed
+-- localization support for tools
+devel_mode_locale_path = nil
+devel_mode_message_catalog_prefix = nil
if ((tools_root ~= nil) and conf_tools_sb2_installed) then
if (conf_tools_ld_so ~= nil) then
@@ -33,13 +36,21 @@ if ((tools_root ~= nil) and conf_tools_sb2_installed) then
devel_mode_tools_ld_so = conf_tools_ld_so
devel_mode_tools_ld_library_path = conf_tools_ld_so_library_path
end
+ if (conf_tools_locale_path ~= nil) then
+ -- use locales from tools
+ devel_mode_locale_path = conf_tools_locale_path
+ devel_mode_message_catalog_prefix =
+ conf_tools_message_catalog_prefix
+ end
end
exec_policy_tools = {
name = "Tools",
native_app_ld_so = devel_mode_tools_ld_so,
native_app_ld_so_supports_argv0 = conf_tools_ld_so_supports_argv0,
- native_app_ld_library_path = devel_mode_tools_ld_library_path
+ native_app_ld_library_path = devel_mode_tools_ld_library_path,
+ native_app_locale_path = devel_mode_locale_path,
+ native_app_message_catalog_prefix = devel_model_message_catalog_prefix,
}
-- For target binaries: