mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-12-06 19:19:29 +00:00
Added generic CSV type option, to highlight the universal nature of the importer
This commit is contained in:
parent
1d33d95c57
commit
76f3c379b5
2 changed files with 386 additions and 379 deletions
|
|
@ -149,6 +149,7 @@ class ProjectController extends AbstractController
|
||||||
'choices' => [
|
'choices' => [
|
||||||
'project.bom_import.type.kicad_pcbnew' => 'kicad_pcbnew',
|
'project.bom_import.type.kicad_pcbnew' => 'kicad_pcbnew',
|
||||||
'project.bom_import.type.kicad_schematic' => 'kicad_schematic',
|
'project.bom_import.type.kicad_schematic' => 'kicad_schematic',
|
||||||
|
'project.bom_import.type.generic_csv' => 'generic_csv',
|
||||||
]
|
]
|
||||||
]);
|
]);
|
||||||
$builder->add('clear_existing_bom', CheckboxType::class, [
|
$builder->add('clear_existing_bom', CheckboxType::class, [
|
||||||
|
|
@ -176,7 +177,7 @@ class ProjectController extends AbstractController
|
||||||
|
|
||||||
try {
|
try {
|
||||||
// For schematic imports, redirect to field mapping step
|
// For schematic imports, redirect to field mapping step
|
||||||
if ($import_type === 'kicad_schematic') {
|
if (in_array($import_type, ['kicad_schematic', 'generic_csv'], true)) {
|
||||||
// Store file content and options in session for field mapping step
|
// Store file content and options in session for field mapping step
|
||||||
$file_content = $form->get('file')->getData()->getContent();
|
$file_content = $form->get('file')->getData()->getContent();
|
||||||
$clear_existing = $form->get('clear_existing_bom')->getData();
|
$clear_existing = $form->get('clear_existing_bom')->getData();
|
||||||
|
|
|
||||||
|
|
@ -12333,7 +12333,7 @@ Please note, that you can not impersonate a disabled user. If you try you will g
|
||||||
<unit id="p7LGAIX" name="settings.ips.element14.apiKey.help">
|
<unit id="p7LGAIX" name="settings.ips.element14.apiKey.help">
|
||||||
<segment state="translated">
|
<segment state="translated">
|
||||||
<source>settings.ips.element14.apiKey.help</source>
|
<source>settings.ips.element14.apiKey.help</source>
|
||||||
<target>You can register for an API key on <a href="https://partner.element14.com/">https://partner.element14.com/</a>.</target>
|
<target><![CDATA[You can register for an API key on <a href="https://partner.element14.com/">https://partner.element14.com/</a>.]]></target>
|
||||||
</segment>
|
</segment>
|
||||||
</unit>
|
</unit>
|
||||||
<unit id="ZdUHpZc" name="settings.ips.element14.storeId">
|
<unit id="ZdUHpZc" name="settings.ips.element14.storeId">
|
||||||
|
|
@ -12345,7 +12345,7 @@ Please note, that you can not impersonate a disabled user. If you try you will g
|
||||||
<unit id="XXGUxF6" name="settings.ips.element14.storeId.help">
|
<unit id="XXGUxF6" name="settings.ips.element14.storeId.help">
|
||||||
<segment state="translated">
|
<segment state="translated">
|
||||||
<source>settings.ips.element14.storeId.help</source>
|
<source>settings.ips.element14.storeId.help</source>
|
||||||
<target>The store domain to retrieve the data from. This decides the language and currency of results. See <a href="https://partner.element14.com/docs/Product_Search_API_REST__Description">here</a> for a list of valid domains.</target>
|
<target><![CDATA[The store domain to retrieve the data from. This decides the language and currency of results. See <a href="https://partner.element14.com/docs/Product_Search_API_REST__Description">here</a> for a list of valid domains.]]></target>
|
||||||
</segment>
|
</segment>
|
||||||
</unit>
|
</unit>
|
||||||
<unit id="WKWZIm2" name="settings.ips.tme">
|
<unit id="WKWZIm2" name="settings.ips.tme">
|
||||||
|
|
@ -12363,7 +12363,7 @@ Please note, that you can not impersonate a disabled user. If you try you will g
|
||||||
<unit id="_pYLrPT" name="settings.ips.tme.token.help">
|
<unit id="_pYLrPT" name="settings.ips.tme.token.help">
|
||||||
<segment state="translated">
|
<segment state="translated">
|
||||||
<source>settings.ips.tme.token.help</source>
|
<source>settings.ips.tme.token.help</source>
|
||||||
<target>You can get an API token and secret on <a href="https://developers.tme.eu/en/">https://developers.tme.eu/en/</a>.</target>
|
<target><![CDATA[You can get an API token and secret on <a href="https://developers.tme.eu/en/">https://developers.tme.eu/en/</a>.]]></target>
|
||||||
</segment>
|
</segment>
|
||||||
</unit>
|
</unit>
|
||||||
<unit id="yswx4bq" name="settings.ips.tme.secret">
|
<unit id="yswx4bq" name="settings.ips.tme.secret">
|
||||||
|
|
@ -12411,7 +12411,7 @@ Please note, that you can not impersonate a disabled user. If you try you will g
|
||||||
<unit id="gu.JlpT" name="settings.ips.mouser.apiKey.help">
|
<unit id="gu.JlpT" name="settings.ips.mouser.apiKey.help">
|
||||||
<segment state="translated">
|
<segment state="translated">
|
||||||
<source>settings.ips.mouser.apiKey.help</source>
|
<source>settings.ips.mouser.apiKey.help</source>
|
||||||
<target>You can register for an API key on <a href="https://eu.mouser.com/api-hub/">https://eu.mouser.com/api-hub/</a>.</target>
|
<target><![CDATA[You can register for an API key on <a href="https://eu.mouser.com/api-hub/">https://eu.mouser.com/api-hub/</a>.]]></target>
|
||||||
</segment>
|
</segment>
|
||||||
</unit>
|
</unit>
|
||||||
<unit id="Q66CNjw" name="settings.ips.mouser.searchLimit">
|
<unit id="Q66CNjw" name="settings.ips.mouser.searchLimit">
|
||||||
|
|
@ -12489,7 +12489,7 @@ Please note, that you can not impersonate a disabled user. If you try you will g
|
||||||
<unit id="kKv0J3." name="settings.system.attachments">
|
<unit id="kKv0J3." name="settings.system.attachments">
|
||||||
<segment state="translated">
|
<segment state="translated">
|
||||||
<source>settings.system.attachments</source>
|
<source>settings.system.attachments</source>
|
||||||
<target>Attachments & Files</target>
|
<target><![CDATA[Attachments & Files]]></target>
|
||||||
</segment>
|
</segment>
|
||||||
</unit>
|
</unit>
|
||||||
<unit id="dsRff8T" name="settings.system.attachments.maxFileSize">
|
<unit id="dsRff8T" name="settings.system.attachments.maxFileSize">
|
||||||
|
|
@ -12513,7 +12513,7 @@ Please note, that you can not impersonate a disabled user. If you try you will g
|
||||||
<unit id="T.PBu5P" name="settings.system.attachments.allowDownloads.help">
|
<unit id="T.PBu5P" name="settings.system.attachments.allowDownloads.help">
|
||||||
<segment state="translated">
|
<segment state="translated">
|
||||||
<source>settings.system.attachments.allowDownloads.help</source>
|
<source>settings.system.attachments.allowDownloads.help</source>
|
||||||
<target>With this option users can download external files into Part-DB by providing an URL. <b>Attention: This can be a security issue, as it might allow users to access intranet ressources via Part-DB!</b></target>
|
<target><![CDATA[With this option users can download external files into Part-DB by providing an URL. <b>Attention: This can be a security issue, as it might allow users to access intranet ressources via Part-DB!</b>]]></target>
|
||||||
</segment>
|
</segment>
|
||||||
</unit>
|
</unit>
|
||||||
<unit id=".OyihML" name="settings.system.attachments.downloadByDefault">
|
<unit id=".OyihML" name="settings.system.attachments.downloadByDefault">
|
||||||
|
|
@ -12687,8 +12687,8 @@ Please note, that you can not impersonate a disabled user. If you try you will g
|
||||||
<unit id="0GRlEe5" name="settings.system.localization.base_currency_description">
|
<unit id="0GRlEe5" name="settings.system.localization.base_currency_description">
|
||||||
<segment state="translated">
|
<segment state="translated">
|
||||||
<source>settings.system.localization.base_currency_description</source>
|
<source>settings.system.localization.base_currency_description</source>
|
||||||
<target>The currency that is used to store price information and exchange rates in. This currency is assumed, when no currency is set for a price information.
|
<target><![CDATA[The currency that is used to store price information and exchange rates in. This currency is assumed, when no currency is set for a price information.
|
||||||
<b>Please note that the currencies are not converted, when changing this value. So changing the default currency after you already added price information, will result in wrong prices!</b></target>
|
<b>Please note that the currencies are not converted, when changing this value. So changing the default currency after you already added price information, will result in wrong prices!</b>]]></target>
|
||||||
</segment>
|
</segment>
|
||||||
</unit>
|
</unit>
|
||||||
<unit id="cvpTUeY" name="settings.system.privacy">
|
<unit id="cvpTUeY" name="settings.system.privacy">
|
||||||
|
|
@ -12718,7 +12718,7 @@ Please note, that you can not impersonate a disabled user. If you try you will g
|
||||||
<unit id="w07P3Dt" name="settings.misc.kicad_eda.category_depth.help">
|
<unit id="w07P3Dt" name="settings.misc.kicad_eda.category_depth.help">
|
||||||
<segment state="translated">
|
<segment state="translated">
|
||||||
<source>settings.misc.kicad_eda.category_depth.help</source>
|
<source>settings.misc.kicad_eda.category_depth.help</source>
|
||||||
<target>This value determines the depth of the category tree, that is visible inside KiCad. 0 means that only the top level categories are visible. Set to a value > 0 to show more levels. Set to -1, to show all parts of Part-DB inside a sigle cnategory in KiCad.</target>
|
<target><![CDATA[This value determines the depth of the category tree, that is visible inside KiCad. 0 means that only the top level categories are visible. Set to a value > 0 to show more levels. Set to -1, to show all parts of Part-DB inside a sigle cnategory in KiCad.]]></target>
|
||||||
</segment>
|
</segment>
|
||||||
</unit>
|
</unit>
|
||||||
<unit id="VwvmcWE" name="settings.behavior.sidebar">
|
<unit id="VwvmcWE" name="settings.behavior.sidebar">
|
||||||
|
|
@ -12736,7 +12736,7 @@ Please note, that you can not impersonate a disabled user. If you try you will g
|
||||||
<unit id="jc0JTvL" name="settings.behavior.sidebar.items.help">
|
<unit id="jc0JTvL" name="settings.behavior.sidebar.items.help">
|
||||||
<segment state="translated">
|
<segment state="translated">
|
||||||
<source>settings.behavior.sidebar.items.help</source>
|
<source>settings.behavior.sidebar.items.help</source>
|
||||||
<target>The menus which appear at the sidebar by default. Order of items can be changed via drag & drop.</target>
|
<target><![CDATA[The menus which appear at the sidebar by default. Order of items can be changed via drag & drop.]]></target>
|
||||||
</segment>
|
</segment>
|
||||||
</unit>
|
</unit>
|
||||||
<unit id="gVSWDkE" name="settings.behavior.sidebar.rootNodeEnabled">
|
<unit id="gVSWDkE" name="settings.behavior.sidebar.rootNodeEnabled">
|
||||||
|
|
@ -12784,7 +12784,7 @@ Please note, that you can not impersonate a disabled user. If you try you will g
|
||||||
<unit id="SUD8H3b" name="settings.behavior.table.parts_default_columns.help">
|
<unit id="SUD8H3b" name="settings.behavior.table.parts_default_columns.help">
|
||||||
<segment state="translated">
|
<segment state="translated">
|
||||||
<source>settings.behavior.table.parts_default_columns.help</source>
|
<source>settings.behavior.table.parts_default_columns.help</source>
|
||||||
<target>The columns to show by default in part tables. Order of items can be changed via drag & drop.</target>
|
<target><![CDATA[The columns to show by default in part tables. Order of items can be changed via drag & drop.]]></target>
|
||||||
</segment>
|
</segment>
|
||||||
</unit>
|
</unit>
|
||||||
<unit id="hazr_g5" name="settings.ips.oemsecrets">
|
<unit id="hazr_g5" name="settings.ips.oemsecrets">
|
||||||
|
|
@ -12838,7 +12838,7 @@ Please note, that you can not impersonate a disabled user. If you try you will g
|
||||||
<unit id="KLJYfJ0" name="settings.ips.oemsecrets.sortMode.M">
|
<unit id="KLJYfJ0" name="settings.ips.oemsecrets.sortMode.M">
|
||||||
<segment state="translated">
|
<segment state="translated">
|
||||||
<source>settings.ips.oemsecrets.sortMode.M</source>
|
<source>settings.ips.oemsecrets.sortMode.M</source>
|
||||||
<target>Completeness & Manufacturer name</target>
|
<target><![CDATA[Completeness & Manufacturer name]]></target>
|
||||||
</segment>
|
</segment>
|
||||||
</unit>
|
</unit>
|
||||||
<unit id="8C9ijHM" name="entity.export.flash.error.no_entities">
|
<unit id="8C9ijHM" name="entity.export.flash.error.no_entities">
|
||||||
|
|
@ -13423,5 +13423,11 @@ Please note, that you can not impersonate a disabled user. If you try you will g
|
||||||
<target>Please fix the validation errors before proceeding with the import.</target>
|
<target>Please fix the validation errors before proceeding with the import.</target>
|
||||||
</segment>
|
</segment>
|
||||||
</unit>
|
</unit>
|
||||||
|
<unit id="nc9MqUc" name="project.bom_import.type.generic_csv">
|
||||||
|
<segment>
|
||||||
|
<source>project.bom_import.type.generic_csv</source>
|
||||||
|
<target>Generic CSV</target>
|
||||||
|
</segment>
|
||||||
|
</unit>
|
||||||
</file>
|
</file>
|
||||||
</xliff>
|
</xliff>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue