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:
+12
-9
@@ -359,19 +359,22 @@ actions LinkApplicationCatalog1
|
|||||||
-s $(HAIKU_CATALOG_SIGNATURE) -o "$(1)"
|
-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
|
# DoCatalogs <target> : <signature> : <sources> [ : <sourceLanguage> ]
|
||||||
# to localization
|
|
||||||
#
|
#
|
||||||
# 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
|
# signature: Application MIME signature (must match the one
|
||||||
# declared in the sourcecode).
|
# declared in the sourcecode).
|
||||||
# sources: List of cpp files where to search keys.
|
# sources: List of cpp files where to search keys.
|
||||||
# generatedCatalog: Name of the generated catalog (most probably
|
# sourceLanguage Short name of the language of used for the strings in
|
||||||
# en.catalog).
|
# the sources. Optional: default is "en".
|
||||||
|
|
||||||
generatedCatalog = [ FGristFiles $(generatedCatalog) ] ;
|
local generatedCatalog = [ FGristFiles $(sourceLanguage:E=en:S=.catalog) ] ;
|
||||||
|
|
||||||
# generate catkeys file from sources
|
# generate catkeys file from sources
|
||||||
ExtractCatalogEntries $(generatedCatalog:S=.catkeys)
|
ExtractCatalogEntries $(generatedCatalog:S=.catkeys)
|
||||||
@@ -391,6 +394,6 @@ rule DoCatalogs appName : signature : sources : generatedCatalog
|
|||||||
: $(signature) : $(catkeysFile:B) ;
|
: $(signature) : $(catkeysFile:B) ;
|
||||||
}
|
}
|
||||||
|
|
||||||
HAIKU_CATALOG_FILES on $(appName) = $(catkeysFiles:S=.catalog) ;
|
HAIKU_CATALOG_FILES on $(target) = $(catkeysFiles:S=.catalog) ;
|
||||||
HAIKU_CATALOG_SIGNATURE on $(appName) = $(signature) ;
|
HAIKU_CATALOG_SIGNATURE on $(target) = $(signature) ;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -19,6 +19,5 @@ DoCatalogs ZipOMatic-Z :
|
|||||||
ZipOMatic.cpp
|
ZipOMatic.cpp
|
||||||
ZipOMaticWindow.cpp
|
ZipOMaticWindow.cpp
|
||||||
ZipperThread.cpp
|
ZipperThread.cpp
|
||||||
: en.catalog
|
|
||||||
;
|
;
|
||||||
|
|
||||||
|
|||||||
@@ -28,5 +28,4 @@ DoCatalogs AboutSystem :
|
|||||||
:
|
:
|
||||||
AboutSystem.cpp
|
AboutSystem.cpp
|
||||||
Utilities.cpp
|
Utilities.cpp
|
||||||
: en.catalog
|
|
||||||
;
|
;
|
||||||
|
|||||||
@@ -41,5 +41,4 @@ DoCatalogs bootman :
|
|||||||
PartitionsPage.cpp
|
PartitionsPage.cpp
|
||||||
UninstallPage.cpp
|
UninstallPage.cpp
|
||||||
WizardView.cpp
|
WizardView.cpp
|
||||||
: en.catalog
|
|
||||||
;
|
;
|
||||||
|
|||||||
@@ -26,6 +26,5 @@ DoCatalogs DriveSetup :
|
|||||||
MainWindow.cpp
|
MainWindow.cpp
|
||||||
PartitionList.cpp
|
PartitionList.cpp
|
||||||
Support.cpp
|
Support.cpp
|
||||||
: en.catalog
|
|
||||||
;
|
;
|
||||||
|
|
||||||
|
|||||||
@@ -20,5 +20,4 @@ DoCatalogs Expander :
|
|||||||
ExpanderWindow.cpp
|
ExpanderWindow.cpp
|
||||||
ExpanderSettings.cpp
|
ExpanderSettings.cpp
|
||||||
DirectoryFilePanel.cpp
|
DirectoryFilePanel.cpp
|
||||||
: en.catalog
|
|
||||||
;
|
;
|
||||||
|
|||||||
@@ -24,6 +24,5 @@ DoCatalogs Installer :
|
|||||||
PackageViews.cpp
|
PackageViews.cpp
|
||||||
ProgressReporter.cpp
|
ProgressReporter.cpp
|
||||||
WorkerThread.cpp
|
WorkerThread.cpp
|
||||||
: en.catalog
|
|
||||||
;
|
;
|
||||||
|
|
||||||
|
|||||||
@@ -50,6 +50,5 @@ DoCatalogs Mail :
|
|||||||
MailWindow.cpp
|
MailWindow.cpp
|
||||||
Prefs.cpp
|
Prefs.cpp
|
||||||
Signature.cpp
|
Signature.cpp
|
||||||
: en.catalog
|
|
||||||
;
|
;
|
||||||
|
|
||||||
|
|||||||
@@ -17,5 +17,4 @@ DoCatalogs MidiPlayer :
|
|||||||
MidiPlayerApp.cpp
|
MidiPlayerApp.cpp
|
||||||
MidiPlayerWindow.cpp
|
MidiPlayerWindow.cpp
|
||||||
ScopeView.cpp
|
ScopeView.cpp
|
||||||
: en.catalog
|
|
||||||
;
|
;
|
||||||
|
|||||||
@@ -16,5 +16,4 @@ DoCatalogs Pairs :
|
|||||||
x-vnd.Haiku-Pairs
|
x-vnd.Haiku-Pairs
|
||||||
:
|
:
|
||||||
PairsWindow.cpp
|
PairsWindow.cpp
|
||||||
: en.catalog
|
|
||||||
;
|
;
|
||||||
|
|||||||
@@ -18,6 +18,5 @@ DoCatalogs ReadOnlyBootPrompt :
|
|||||||
:
|
:
|
||||||
BootPrompt.cpp
|
BootPrompt.cpp
|
||||||
BootPromptWindow.cpp
|
BootPromptWindow.cpp
|
||||||
: en.catalog
|
|
||||||
;
|
;
|
||||||
|
|
||||||
|
|||||||
@@ -16,5 +16,4 @@ DoCatalogs Screenshot :
|
|||||||
x-vnd.Haiku-Screenshot
|
x-vnd.Haiku-Screenshot
|
||||||
:
|
:
|
||||||
ScreenshotWindow.cpp
|
ScreenshotWindow.cpp
|
||||||
: en.catalog
|
|
||||||
;
|
;
|
||||||
|
|||||||
@@ -28,5 +28,4 @@ DoCatalogs ShowImage :
|
|||||||
ResizerWindow.cpp
|
ResizerWindow.cpp
|
||||||
ShowImageApp.cpp
|
ShowImageApp.cpp
|
||||||
ShowImageWindow.cpp
|
ShowImageWindow.cpp
|
||||||
: en.catalog
|
|
||||||
;
|
;
|
||||||
|
|||||||
@@ -27,5 +27,4 @@ DoCatalogs StyledEdit :
|
|||||||
ReplaceWindow.cpp
|
ReplaceWindow.cpp
|
||||||
StyledEditApp.cpp
|
StyledEditApp.cpp
|
||||||
StyledEditWindow.cpp
|
StyledEditWindow.cpp
|
||||||
: en.catalog
|
|
||||||
;
|
;
|
||||||
|
|||||||
@@ -35,6 +35,5 @@ DoCatalogs Appearance :
|
|||||||
ColorSet.cpp
|
ColorSet.cpp
|
||||||
ColorWell.cpp
|
ColorWell.cpp
|
||||||
ColorWhichItem.cpp
|
ColorWhichItem.cpp
|
||||||
: en.catalog
|
|
||||||
;
|
;
|
||||||
|
|
||||||
|
|||||||
@@ -17,6 +17,5 @@ DoCatalogs Backgrounds :
|
|||||||
Backgrounds.cpp
|
Backgrounds.cpp
|
||||||
BackgroundsView.cpp
|
BackgroundsView.cpp
|
||||||
ImageFilePanel.cpp
|
ImageFilePanel.cpp
|
||||||
: en.catalog
|
|
||||||
;
|
;
|
||||||
|
|
||||||
|
|||||||
@@ -27,6 +27,5 @@ DoCatalogs Bluetooth :
|
|||||||
ExtendedLocalDeviceView.cpp
|
ExtendedLocalDeviceView.cpp
|
||||||
InquiryPanel.cpp
|
InquiryPanel.cpp
|
||||||
RemoteDevicesView.cpp
|
RemoteDevicesView.cpp
|
||||||
: en.catalog
|
|
||||||
;
|
;
|
||||||
|
|
||||||
|
|||||||
@@ -20,6 +20,5 @@ DoCatalogs CPUFrequency :
|
|||||||
main.cpp
|
main.cpp
|
||||||
StatusView.cpp
|
StatusView.cpp
|
||||||
PreferencesWindow.h
|
PreferencesWindow.h
|
||||||
: en.catalog
|
|
||||||
;
|
;
|
||||||
|
|
||||||
|
|||||||
@@ -17,6 +17,5 @@ DoCatalogs Fonts :
|
|||||||
FontView.cpp
|
FontView.cpp
|
||||||
main.cpp
|
main.cpp
|
||||||
MainWindow.cpp
|
MainWindow.cpp
|
||||||
: en.catalog
|
|
||||||
;
|
;
|
||||||
|
|
||||||
|
|||||||
@@ -24,5 +24,4 @@ DoCatalogs Keyboard :
|
|||||||
Keyboard.cpp
|
Keyboard.cpp
|
||||||
KeyboardWindow.cpp
|
KeyboardWindow.cpp
|
||||||
KeyboardView.cpp
|
KeyboardView.cpp
|
||||||
: en.catalog
|
|
||||||
;
|
;
|
||||||
|
|||||||
@@ -19,5 +19,4 @@ Preference Keymap :
|
|||||||
DoCatalogs Keymap :
|
DoCatalogs Keymap :
|
||||||
x-vnd.Haiku-Keymap
|
x-vnd.Haiku-Keymap
|
||||||
: KeymapWindow.cpp
|
: KeymapWindow.cpp
|
||||||
: en.catalog
|
|
||||||
;
|
;
|
||||||
|
|||||||
@@ -19,6 +19,5 @@ DoCatalogs Locale # application name
|
|||||||
Locale.cpp
|
Locale.cpp
|
||||||
LocaleWindow.cpp
|
LocaleWindow.cpp
|
||||||
TimeFormatSettingsView.cpp
|
TimeFormatSettingsView.cpp
|
||||||
: en.catalog # default catalog generated from sourcecode
|
|
||||||
;
|
;
|
||||||
|
|
||||||
|
|||||||
@@ -23,5 +23,4 @@ DoCatalogs Media
|
|||||||
: x-vnd.Haiku-Media
|
: x-vnd.Haiku-Media
|
||||||
: MediaViews.cpp
|
: MediaViews.cpp
|
||||||
MediaWindow.cpp
|
MediaWindow.cpp
|
||||||
: en.catalog
|
|
||||||
;
|
;
|
||||||
|
|||||||
@@ -18,5 +18,4 @@ DoCatalogs Mouse :
|
|||||||
Mouse.cpp
|
Mouse.cpp
|
||||||
MouseWindow.cpp
|
MouseWindow.cpp
|
||||||
SettingsView.cpp
|
SettingsView.cpp
|
||||||
: en.catalog
|
|
||||||
;
|
;
|
||||||
|
|||||||
@@ -18,5 +18,4 @@ DoCatalogs Network :
|
|||||||
:
|
:
|
||||||
EthernetSettingsView.cpp
|
EthernetSettingsView.cpp
|
||||||
NetworkWindow.cpp
|
NetworkWindow.cpp
|
||||||
: en.catalog
|
|
||||||
;
|
;
|
||||||
|
|||||||
@@ -22,6 +22,5 @@ DoCatalogs OpenGL :
|
|||||||
ExtensionsList.cpp
|
ExtensionsList.cpp
|
||||||
ExtensionsView.cpp
|
ExtensionsView.cpp
|
||||||
InfoView.cpp
|
InfoView.cpp
|
||||||
: en.catalog
|
|
||||||
;
|
;
|
||||||
|
|
||||||
|
|||||||
@@ -27,7 +27,5 @@ DoCatalogs Printers :
|
|||||||
JobListView.cpp
|
JobListView.cpp
|
||||||
PrinterListView.cpp
|
PrinterListView.cpp
|
||||||
PrintersWindow.cpp
|
PrintersWindow.cpp
|
||||||
:
|
|
||||||
en.catalog
|
|
||||||
;
|
;
|
||||||
|
|
||||||
|
|||||||
@@ -15,5 +15,4 @@ DoCatalogs Touchpad :
|
|||||||
:
|
:
|
||||||
TouchpadPrefView.cpp
|
TouchpadPrefView.cpp
|
||||||
main.cpp
|
main.cpp
|
||||||
: en.catalog
|
|
||||||
;
|
;
|
||||||
|
|||||||
@@ -20,5 +20,4 @@ DoCatalogs VirtualMemory :
|
|||||||
:
|
:
|
||||||
VirtualMemory.cpp
|
VirtualMemory.cpp
|
||||||
SettingsWindow.cpp
|
SettingsWindow.cpp
|
||||||
: en.catalog
|
|
||||||
;
|
;
|
||||||
|
|||||||
@@ -36,7 +36,5 @@ DoCatalogs print_server :
|
|||||||
ConfigWindow.cpp
|
ConfigWindow.cpp
|
||||||
PrintServerApp.cpp
|
PrintServerApp.cpp
|
||||||
PrintServerApp.R5.cpp
|
PrintServerApp.R5.cpp
|
||||||
:
|
|
||||||
en.catalog
|
|
||||||
;
|
;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user