[wpkg-users] Locale selector
Malte Starostik
malte at malte.homeip.net
Fri May 15 08:42:09 CEST 2009
Hi,
some installations like hotfixes need a locale-specific selection of what
exactly to install. Instead of writing a .cmd each time (or somehow using a
global one), it would be quite nice to have any or all of these possibilities
A very flexible approach not only for locale branching:
<setenv cmd="setenv.cmd" /> where setenv.cmd outputs name=value pairs and
wpkg.js provides those as env vars to subsequent scripts
A less flexible approach:
wpkg.js could provide the return value of its getLocale() function as %LOCALE%
- still requires translating the value to e.g. ENU, DEU or whatever the
specific package needs
Locale based branching right inside the package definitions:
<package ...>
<locale lcid="0409">
<install cmd="setup-english.exe" />
</locale>
<locale lcid="0407">
<install cmd="setup-german.exe" />
</locale>
<locale lcid="default">
<install cmd="setup-multilang.exe" />
</locale>
</package>
Am I missing any such possibility that's still there?
Cheers,
Malte
More information about the wpkg-users
mailing list