Jam rule to add an attribute for catalog lookup of localized entry name.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40790 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
b8d2bbd616
commit
a6f7da9724
@ -163,3 +163,23 @@ rule DoCatalogs target : signature : sources : sourceLanguage : regexp
|
||||
# For the pseudo-target catkeys
|
||||
HAIKU_LOCALE_OUTPUT_CATKEYS += $(generatedCatalog:S=.catkeys) ;
|
||||
}
|
||||
|
||||
rule AddCatalogEntryAttribute target
|
||||
{
|
||||
# AddCatalogEntryAttribute <target> : <attribute value> ;
|
||||
#
|
||||
# <attribute value> should be of the form
|
||||
# "x-vnd.Haiku-App:context:string"
|
||||
|
||||
CATALOG_ENTRY on $(target) = "$(2)" ;
|
||||
|
||||
Depends $(target) : <build>addattr ;
|
||||
|
||||
AddCatalogEntryAttribute1 $(target)
|
||||
: <build>addattr ;
|
||||
}
|
||||
|
||||
actions AddCatalogEntryAttribute1
|
||||
{
|
||||
"$(2)" -t string "SYS:NAME" "$(CATALOG_ENTRY)" "$(1)"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user