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

Locale translation file updates. #1062

Merged
merged 1 commit into from
Oct 3, 2024
Merged

Locale translation file updates. #1062

merged 1 commit into from
Oct 3, 2024

Conversation

somiaj
Copy link
Collaborator

@somiaj somiaj commented Oct 3, 2024

Move the scripts to update and build the LC_MESSAGE localization files out of automake makefiles (these are not used in the build anyways, but must be manually ran by translators). The automake file now only installs/uninstalls the LC_MESSAGE files for each language.

There is a new script, po/fvwmpo.sh, which can be used to update the main pot file, initialize, update, and build the language files for the strings that gettext translates. This does essentially the same thing the make targets use to.

Move all the translations into a single fvwm3.pot file (which merges the FvwmScript.pot file into the fvwm3.pot file). The file has also been renamed from fvwm.pot to fvwm3.pot to allow it to be installed along size fvwm2.

Last, this updates the template, and merges all translation files to be in line with the current template, and rebuilds all the .gmo files that get installed into the locale directory.

po/fvwmpo.sh Outdated Show resolved Hide resolved
Copy link
Member

@ThomasAdam ThomasAdam left a comment

Choose a reason for hiding this comment

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

Hi @somiaj

All looks good, save for one small change to the po/fvwmpo.sh script.

@ThomasAdam ThomasAdam added the area:build Relates to compiling/buildsystem of fvwm label Oct 3, 2024
@ThomasAdam ThomasAdam added this to the 1.1.1 milestone Oct 3, 2024
@somiaj somiaj force-pushed the js/translation-updates branch 3 times, most recently from fd07c93 to 63e56f7 Compare October 3, 2024 14:50
Move the scripts to update and build the LC_MESSAGE localization
files out of automake makefiles (these are not used in the build
anyways, but must be manually ran by translators). The automake file
now only installs/uninstalls the LC_MESSAGE files for each language.

There is a new script, po/fvwmpo.sh, which can be used to update
the main pot file, initialize, update, and build the language files
for the strings that gettext translates. This does essentially the
same thing the make targets use to.

Move all the translations into a single fvwm3.pot file (which
merges the FvwmScript.pot file into the fvwm3.pot file). The file
has also been renamed from fvwm.pot to fvwm3.pot to allow it to be
installed along size fvwm2.

Last, this updates the template, and merges all translation files
to be in line with the current template, and rebuilds all the .gmo
files that get installed into the locale directory.
@somiaj
Copy link
Collaborator Author

somiaj commented Oct 3, 2024

I also found that the build command for building the .gmo files was excluding fuzzy translations, so I added the -f flag to this, so fuzzy translations are now included. Now in my testing all strings in the .po files seems to be correctly translated.

@ThomasAdam ThomasAdam merged commit bb8c50e into main Oct 3, 2024
5 checks passed
@ThomasAdam ThomasAdam deleted the js/translation-updates branch October 3, 2024 17:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:build Relates to compiling/buildsystem of fvwm
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants