Skip to content

Commit

Permalink
fix: Added missing translations
Browse files Browse the repository at this point in the history
  • Loading branch information
WerWolv committed Feb 22, 2024
1 parent 684c339 commit daf007f
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 4 deletions.
1 change: 1 addition & 0 deletions plugins/builtin/romfs/lang/de_DE.json
Original file line number Diff line number Diff line change
Expand Up @@ -853,6 +853,7 @@
"hex.builtin.information_section.info_analysis.lowest_entropy": "Informationsanalyse",
"hex.builtin.information_section.info_analysis": "Schichtverteilung",
"hex.builtin.information_section.info_analysis.layered_distribution": "Tiefste Blockentropie",
"hex.builtin.view.information.error_processing_section": "Auswerten von Informationssektion {0} fehlgeschlagen: '{1}'",
"hex.builtin.information_section.magic": "Magic Informationen",
"hex.builtin.view.information.magic_db_added": "Magic Datenbank hinzugefügt!",
"hex.builtin.information_section.magic.mime": "MIME Typ",
Expand Down
1 change: 1 addition & 0 deletions plugins/builtin/romfs/lang/en_US.json
Original file line number Diff line number Diff line change
Expand Up @@ -844,6 +844,7 @@
"hex.builtin.information_section.info_analysis": "Information analysis",
"hex.builtin.information_section.info_analysis.layered_distribution": "Layered distribution",
"hex.builtin.information_section.magic": "Magic information",
"hex.builtin.view.information.error_processing_section": "Failed to process information section {0}: '{1}'",
"hex.builtin.view.information.magic_db_added": "Magic database added!",
"hex.builtin.information_section.magic.mime": "MIME Type",
"hex.builtin.view.information.name": "Data Information",
Expand Down
1 change: 1 addition & 0 deletions plugins/yara_rules/romfs/lang/de_DE.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"fallback": false,
"language": "German",
"translations": {
"hex.yara.information_section.advanced_data_info": "Erweiterte Dateninformationen",
"hex.yara_rules.view.yara.error": "Yara Kompilerfehler: {0}",
"hex.yara_rules.view.yara.header.matches": "Treffer",
"hex.yara_rules.view.yara.header.rules": "Regeln",
Expand Down
1 change: 1 addition & 0 deletions plugins/yara_rules/romfs/lang/en_US.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"country": "United States",
"fallback": true,
"translations": {
"hex.yara.information_section.advanced_data_info": "Advanced Data Information",
"hex.yara_rules.view.yara.error": "Yara Compiler error: {0}",
"hex.yara_rules.view.yara.header.matches": "Matches",
"hex.yara_rules.view.yara.header.rules": "Rules",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@

namespace hex::plugin::yara {

class InformationYaraRules : public ContentRegistry::DataInformation::InformationSection {
class InformationAdvancedFileInformation : public ContentRegistry::DataInformation::InformationSection {
public:
InformationYaraRules() : InformationSection("hex.yara.information_section.yara_rules") { }
~InformationYaraRules() override = default;
InformationAdvancedFileInformation() : InformationSection("hex.yara.information_section.advanced_file_info") { }
~InformationAdvancedFileInformation() override = default;

struct Category {
struct Comperator {
Expand Down Expand Up @@ -86,7 +86,7 @@ namespace hex::plugin::yara {
};

void registerDataInformationSections() {
ContentRegistry::DataInformation::addInformationSection<InformationYaraRules>();
ContentRegistry::DataInformation::addInformationSection<InformationAdvancedFileInformation>();
}

}

0 comments on commit daf007f

Please sign in to comment.