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

po2csv - I didn't find it in the documentation and it ignores context #4932

Closed
uri-rodberg opened this issue Jun 12, 2023 · 4 comments · Fixed by #4934
Closed

po2csv - I didn't find it in the documentation and it ignores context #4932

uri-rodberg opened this issue Jun 12, 2023 · 4 comments · Fixed by #4934
Assignees

Comments

@uri-rodberg
Copy link

I have .po files with context (msgctxt) and I need the context also in the CSV format.

@uri-rodberg uri-rodberg changed the title po2csv - I didn't find it in documentation and it ignores context po2csv - I didn't find it in the documentation and it ignores context Jun 12, 2023
nijel added a commit to nijel/translate that referenced this issue Jun 12, 2023
@nijel nijel self-assigned this Jun 12, 2023
nijel added a commit that referenced this issue Jun 12, 2023
@paskausks
Copy link
Contributor

Hey!

First of all, great work on the tools!

I'm using po2csv 3.12.2 currently. I have a POT file where one string has a msgctx, like this:

msgctxt "foocontext"
msgid "foo"
msgstr ""

then I perform a standard conversion with po2csv.exe -i en.po -o en.csv, but the resulting CSV only has the location, source and target columns, and the context is missing (the columnorder option doesn't even provide the option to specify a context column. Am I doing something wrong?

@nijel
Copy link
Member

nijel commented Mar 25, 2024

You need to include context in --columnorder for that, seems like docs for that is missing, patches to fix that are welcome.

@paskausks
Copy link
Contributor

Ah, yes, seems that it was just undocumented, thank you!

@paskausks
Copy link
Contributor

I opened a pull request to address it #5219

Please let me know if I am missing something!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants