diff --git a/build/jam/LocaleRules b/build/jam/LocaleRules index 2c0c4b0555..db9a05d001 100644 --- a/build/jam/LocaleRules +++ b/build/jam/LocaleRules @@ -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 : ; + # + # should be of the form + # "x-vnd.Haiku-App:context:string" + + CATALOG_ENTRY on $(target) = "$(2)" ; + + Depends $(target) : addattr ; + + AddCatalogEntryAttribute1 $(target) + : addattr ; +} + +actions AddCatalogEntryAttribute1 +{ + "$(2)" -t string "SYS:NAME" "$(CATALOG_ENTRY)" "$(1)" +}