Skip to content

Conversation

@ikks
Copy link

@ikks ikks commented Jun 17, 2025

Add filter for gettext files geared to translators

  • There is an option for maintainers that allow to review msgid texts
  • Includes documentation and update to aspell.po
  • Adds translation to spanish and minor updates to es.po
  • The cpp filter includes debug samples to allow others to inspect and maybe contribute with other filters
  • Update on gitignore to exclude intermediate doc generated files and other intermediate files appropiate for lsp editors

Closes #410

Add filter for gettext files geared to translators

* There is an option for maintainers that allow to review msgid texts
* Includes documentation and update to aspell.po
* Adds translation to spanish and minor updates to es.po
* The cpp filter includes debug samples to allow others to inspect and
maybe contribute with other filters
* Update on gitignore to exclude intermediate doc generated files and
other intermediate files appropiate for lsp editors

Closes GNUAspell#410
Copy link
Member

@kevina kevina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

At the top of 'po.cpp' please add a copyright in your name.

All translations should go though the translation project. See https://translationproject.org/html/translators.html.

Also please do not regenerate anything in the po/ directory. This is only done when creating a release.

@@ -0,0 +1,283 @@
// This file is part of The New Aspell
// Copyright (C) 2025 by Kevin Atkinson under the GNU LGPL license
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add a proper copyright under your name.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just added my name, thanks for noticing, if it's best to maintain your name and mine, please let me know to modify accordingly.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you would consider everything in po.cpp your code than just your name is fine.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed, now is in proper shape. Thank you.

@kevina
Copy link
Member

kevina commented Jun 17, 2025

Thank you for your contribution.

Just FYI: there was actually a simple po filter in the misc/ directory. See https://github.com/GNUAspell/aspell/blob/master/misc/po-filter.c. It is easy to miss and I am sure your code is more advance so I will go ahead and use your code.

It may be a little while before I can properly review this though.

@@ -1,8 +1,8 @@
// This file is part of The New Aspell
// Copyright (C) 2025 by Igor Támara under the GNU LGPL license
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you are reusing code from somewhere else, the correct thing to do is to add a copyright line. Simply copy the Copyright notice from the file the code is from. If there is no notice then let me know let me know what code you are reusing and I will figure out the best year to use.

For example:

Copyright (C) 20XX by Kevin Atkinson under the GNU LGPL license version 2.0 or 2.1.
Copyright (C) 2025 Igor Támara ...

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I reused from markdown and looked at the commit messages for markdown.cpp, feel free to adjust if I'm not accurate.

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.

gettext po mode

2 participants