Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for INI-Format without section headers #5715

Closed
Somebodyisnobody opened this issue Mar 22, 2021 · 5 comments
Closed

Support for INI-Format without section headers #5715

Somebodyisnobody opened this issue Mar 22, 2021 · 5 comments
Labels
question This is more a question for the support than an issue. wontfix Nobody will work on this.

Comments

@Somebodyisnobody
Copy link

Is your feature request related to a problem? If so, please describe.
I try to import INI-files without containing section headers (e.g. [foo]).
Weblate complains about, that no section header was found in the base file. (Screenshots)
I see no need for a header file and as this files are later read in from the target program I cannot just add a section header.
I also tried it with CSV but I cannot enter a custom separator.
Describe the solution you'd like

As I fail to see why headers are needed, I suggest to remove the need of headers in ini files. This shouldn't break anything.

Describe alternatives you've considered
One alternative would be add a parameter to enter a custom CSV separator.

On my side I've problems to integrate the weblate into the CI-process. As weblate pulls automatically I cannot run a pre-process script, which adds a foo-header nand a post-process script to remove it before pushing.

Screenshots
grafik

Additional context
These are the files I want to integrate following files into weblate:

@nijel
Copy link
Member

nijel commented Mar 22, 2021

That might work as Java properties or Joomla files.

@nijel nijel added the question This is more a question for the support than an issue. label Mar 22, 2021
@github-actions
Copy link

This issue looks more like a support question than an issue. We strive to answer these reasonably fast, but purchasing the support subscription is not only more responsible and faster for your business but also makes Weblate stronger. In case your question is already answered, making a donation is the right way to say thank you!

@Somebodyisnobody
Copy link
Author

Hmmm okay Java Properties worked but the output filename needs of course to be renamed. I'll see if I can do this via addon.

Nevertheless I still want to suggest to parse ini files without sections. Sections are not needed.

@nijel
Copy link
Member

nijel commented Mar 22, 2021

The filename is not anyhow linked with the format, whatever you specify will be used.

The section requirement is caused by iniparse library which translate-toolkit uses to parse INI files.

@github-actions
Copy link

github-actions bot commented Apr 2, 2021

This issue has been automatically marked as stale because there wasn’t any recent activity.

It will be closed soon if no further action occurs.

Thank you for your contributions!

@github-actions github-actions bot added the wontfix Nobody will work on this. label Apr 2, 2021
@github-actions github-actions bot closed this as completed Apr 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question This is more a question for the support than an issue. wontfix Nobody will work on this.
Projects
None yet
Development

No branches or pull requests

2 participants