mirror of
https://github.com/taglib/taglib.git
synced 2026-02-09 17:00:20 -05:00
Support tag language
This commit is contained in:
committed by
Urs Fleisch
parent
b4e79a4a27
commit
6342f00e8b
@ -44,6 +44,8 @@ int main(int argc, char *argv[])
|
||||
PRINT_PRETTY("Target Type Value",
|
||||
targetTypeValue == 0 ? "None" : TagLib::Utils::formatString("%i", targetTypeValue).toCString(false)
|
||||
);
|
||||
const TagLib::String &language = t->language();
|
||||
PRINT_PRETTY("Language", !language.isEmpty() ? language.toCString(false) : "Not set");
|
||||
|
||||
printf("\n");
|
||||
}
|
||||
|
||||
@ -23,6 +23,7 @@ int main(int argc, char *argv[])
|
||||
simpleTag->setName("Test Name 1");
|
||||
simpleTag->setTargetTypeValue(TagLib::Matroska::SimpleTag::TargetTypeValue::Track);
|
||||
simpleTag->setValue("Test Value 1");
|
||||
simpleTag->setLanguage("en");
|
||||
tag->addSimpleTag(simpleTag);
|
||||
|
||||
simpleTag = new TagLib::Matroska::SimpleTagString();
|
||||
|
||||
Reference in New Issue
Block a user