Conversation
Owner
Author
|
@pervoj could you have a look see if it makes sense to you? |
sonnyp
commented
Aug 9, 2021
sonnyp
commented
Aug 9, 2021
sonnyp
commented
Aug 9, 2021
9d4ea43 to
87dca1a
Compare
Contributor
|
You can also make some simple script (e.g. #!/bin/bash
xgettext -f po/POTFILES -o po/re.sonny.Commit.pot -cTRANSLATORS --from-code=UTF-8
sed -i "s/Project-Id-Version: PACKAGE VERSION/Project-Id-Version: re.sonny.Commit/" po/re.sonny.Commit.pot
msgmerge -U po/*.po po/re.sonny.Commit.potYou can run this script before each release and then, for example, create an issue and mention the translator. (dialect-app/dialect#157) This is a simple and effective way to keep the translations up to date in each version. |
Closed
pervoj
reviewed
Aug 11, 2021
Contributor
|
I found that you can also update the POT and PO files using Meson commands: meson compile projectname-pot # for generating POT file
meson compile projectname-update-po # for updating PO files |
sonnyp
added a commit
that referenced
this pull request
Aug 12, 2021
Owner
Author
|
Nice catch. I'm always hesitant to rely on meson too much but perhaps it's time I fully embrace it. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.