Skip to content

Add document formatting with msgattrib#36

Open
dalps wants to merge 2 commits intoMrOrz:masterfrom
dalps:formatting
Open

Add document formatting with msgattrib#36
dalps wants to merge 2 commits intoMrOrz:masterfrom
dalps:formatting

Conversation

@dalps
Copy link
Copy Markdown

@dalps dalps commented Mar 27, 2025

I've added the possibility of formatting a whole PO file from the editor using the output of msgattrib. This command automatically wraps long lines and corrects possible quoting or syntax mistakes, which is pretty handy.

The formatting is applied when a PO file is saved (e.g. with Ctrl+S), or by issuing Format Document command.

I've also improved the error reporting of the status bar by showing an error notification when msgfmt --statistic fails, so the user knows something is wrong.

Please let me know if something can be improved!

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 this pull request may close these issues.

1 participant