DoCatalogs:

* Renamed parameter "appName" to "target".
* Replaced parameter "generatedCatalog" by "sourceLanguage" and made it
  optional. Default is "en".
* Removed the no longer needed parameter from the DoCatalogs invocations.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36016 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold 2010-03-31 18:34:03 +00:00
parent ba8573cc3f
commit 58b0a5dda6
30 changed files with 12 additions and 40 deletions

View File

@ -359,19 +359,22 @@ actions LinkApplicationCatalog1
-s $(HAIKU_CATALOG_SIGNATURE) -o "$(1)"
}
rule DoCatalogs appName : signature : sources : generatedCatalog
rule DoCatalogs target : signature : sources : sourceLanguage
{
# General rules to invoke from jamfiles and that do (almost) everything related
# to localization
# DoCatalogs <target> : <signature> : <sources> [ : <sourceLanguage> ]
#
# appName: Application name.
# Extracts the catkeys from a target's source files, generates the
# default catalog from them, and also generates catalogs for all
# translations.
#
# target: The target.
# signature: Application MIME signature (must match the one
# declared in the sourcecode).
# sources: List of cpp files where to search keys.
# generatedCatalog: Name of the generated catalog (most probably
# en.catalog).
# sourceLanguage Short name of the language of used for the strings in
# the sources. Optional: default is "en".
generatedCatalog = [ FGristFiles $(generatedCatalog) ] ;
local generatedCatalog = [ FGristFiles $(sourceLanguage:E=en:S=.catalog) ] ;
# generate catkeys file from sources
ExtractCatalogEntries $(generatedCatalog:S=.catkeys)
@ -391,6 +394,6 @@ rule DoCatalogs appName : signature : sources : generatedCatalog
: $(signature) : $(catkeysFile:B) ;
}
HAIKU_CATALOG_FILES on $(appName) = $(catkeysFiles:S=.catalog) ;
HAIKU_CATALOG_SIGNATURE on $(appName) = $(signature) ;
HAIKU_CATALOG_FILES on $(target) = $(catkeysFiles:S=.catalog) ;
HAIKU_CATALOG_SIGNATURE on $(target) = $(signature) ;
}

View File

@ -19,6 +19,5 @@ DoCatalogs ZipOMatic-Z :
ZipOMatic.cpp
ZipOMaticWindow.cpp
ZipperThread.cpp
: en.catalog
;

View File

@ -28,5 +28,4 @@ DoCatalogs AboutSystem :
:
AboutSystem.cpp
Utilities.cpp
: en.catalog
;

View File

@ -41,5 +41,4 @@ DoCatalogs bootman :
PartitionsPage.cpp
UninstallPage.cpp
WizardView.cpp
: en.catalog
;

View File

@ -26,6 +26,5 @@ DoCatalogs DriveSetup :
MainWindow.cpp
PartitionList.cpp
Support.cpp
: en.catalog
;

View File

@ -20,5 +20,4 @@ DoCatalogs Expander :
ExpanderWindow.cpp
ExpanderSettings.cpp
DirectoryFilePanel.cpp
: en.catalog
;

View File

@ -24,6 +24,5 @@ DoCatalogs Installer :
PackageViews.cpp
ProgressReporter.cpp
WorkerThread.cpp
: en.catalog
;

View File

@ -50,6 +50,5 @@ DoCatalogs Mail :
MailWindow.cpp
Prefs.cpp
Signature.cpp
: en.catalog
;

View File

@ -17,5 +17,4 @@ DoCatalogs MidiPlayer :
MidiPlayerApp.cpp
MidiPlayerWindow.cpp
ScopeView.cpp
: en.catalog
;

View File

@ -16,5 +16,4 @@ DoCatalogs Pairs :
x-vnd.Haiku-Pairs
:
PairsWindow.cpp
: en.catalog
;

View File

@ -18,6 +18,5 @@ DoCatalogs ReadOnlyBootPrompt :
:
BootPrompt.cpp
BootPromptWindow.cpp
: en.catalog
;

View File

@ -16,5 +16,4 @@ DoCatalogs Screenshot :
x-vnd.Haiku-Screenshot
:
ScreenshotWindow.cpp
: en.catalog
;

View File

@ -28,5 +28,4 @@ DoCatalogs ShowImage :
ResizerWindow.cpp
ShowImageApp.cpp
ShowImageWindow.cpp
: en.catalog
;

View File

@ -27,5 +27,4 @@ DoCatalogs StyledEdit :
ReplaceWindow.cpp
StyledEditApp.cpp
StyledEditWindow.cpp
: en.catalog
;

View File

@ -35,6 +35,5 @@ DoCatalogs Appearance :
ColorSet.cpp
ColorWell.cpp
ColorWhichItem.cpp
: en.catalog
;

View File

@ -17,6 +17,5 @@ DoCatalogs Backgrounds :
Backgrounds.cpp
BackgroundsView.cpp
ImageFilePanel.cpp
: en.catalog
;

View File

@ -27,6 +27,5 @@ DoCatalogs Bluetooth :
ExtendedLocalDeviceView.cpp
InquiryPanel.cpp
RemoteDevicesView.cpp
: en.catalog
;

View File

@ -20,6 +20,5 @@ DoCatalogs CPUFrequency :
main.cpp
StatusView.cpp
PreferencesWindow.h
: en.catalog
;

View File

@ -17,6 +17,5 @@ DoCatalogs Fonts :
FontView.cpp
main.cpp
MainWindow.cpp
: en.catalog
;

View File

@ -24,5 +24,4 @@ DoCatalogs Keyboard :
Keyboard.cpp
KeyboardWindow.cpp
KeyboardView.cpp
: en.catalog
;

View File

@ -19,5 +19,4 @@ Preference Keymap :
DoCatalogs Keymap :
x-vnd.Haiku-Keymap
: KeymapWindow.cpp
: en.catalog
;

View File

@ -19,6 +19,5 @@ DoCatalogs Locale # application name
Locale.cpp
LocaleWindow.cpp
TimeFormatSettingsView.cpp
: en.catalog # default catalog generated from sourcecode
;

View File

@ -23,5 +23,4 @@ DoCatalogs Media
: x-vnd.Haiku-Media
: MediaViews.cpp
MediaWindow.cpp
: en.catalog
;

View File

@ -18,5 +18,4 @@ DoCatalogs Mouse :
Mouse.cpp
MouseWindow.cpp
SettingsView.cpp
: en.catalog
;

View File

@ -18,5 +18,4 @@ DoCatalogs Network :
:
EthernetSettingsView.cpp
NetworkWindow.cpp
: en.catalog
;

View File

@ -22,6 +22,5 @@ DoCatalogs OpenGL :
ExtensionsList.cpp
ExtensionsView.cpp
InfoView.cpp
: en.catalog
;

View File

@ -27,7 +27,5 @@ DoCatalogs Printers :
JobListView.cpp
PrinterListView.cpp
PrintersWindow.cpp
:
en.catalog
;

View File

@ -15,5 +15,4 @@ DoCatalogs Touchpad :
:
TouchpadPrefView.cpp
main.cpp
: en.catalog
;

View File

@ -20,5 +20,4 @@ DoCatalogs VirtualMemory :
:
VirtualMemory.cpp
SettingsWindow.cpp
: en.catalog
;

View File

@ -36,7 +36,5 @@ DoCatalogs print_server :
ConfigWindow.cpp
PrintServerApp.cpp
PrintServerApp.R5.cpp
:
en.catalog
;