mirror of
https://github.com/openharmony/developtools_global_resource_tool.git
synced 2026-07-21 06:55:24 -04:00
@@ -31,8 +31,8 @@ const string TAG_QUANTITY = "quantity";
|
||||
const vector<string> QUANTITY_ATTRS = { "zero", "one", "two", "few", "many", "other" };
|
||||
const vector<string> TRANSLATION_TYPE = { "string", "strarray", "plural" };
|
||||
|
||||
JsonCompiler::JsonCompiler(ResType type, const string &output)
|
||||
: IResourceCompiler(type, output), isBaseString_(false), root_(nullptr)
|
||||
JsonCompiler::JsonCompiler(ResType type, const string &output, bool isOverlap)
|
||||
: IResourceCompiler(type, output, isOverlap), isBaseString_(false), root_(nullptr)
|
||||
{
|
||||
InitParser();
|
||||
}
|
||||
@@ -157,6 +157,10 @@ bool JsonCompiler::ParseJsonObjectLevel(cJSON *objectNode, const FileInfo &fileI
|
||||
return false;
|
||||
}
|
||||
|
||||
if (isOverlap_) {
|
||||
resourceItem.MarkCoverable();
|
||||
}
|
||||
|
||||
return MergeResourceItem(resourceItem);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user