Skip to content

Commit

Permalink
Switch to gettext 0.23 (#39)
Browse files Browse the repository at this point in the history
* Switch to gettext 0.23

* CLDR plurals in shared builds works with gettext 0.23
  • Loading branch information
mlocati authored Dec 2, 2024
1 parent 38cd41c commit 2e8197e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ jobs:
if ($v -eq '') { $v = '1.17' }
Write-Output -InputObject "ICONV_VERSION=$v" >>"$env:GITHUB_ENV"
$v = '${{ github.event.inputs.gettext-version }}'.Trim()
if ($v -eq '') { $v = '0.22.5a' }
if ($v -eq '') { $v = '0.23' }
Write-Output -InputObject "GETTEXT_VERSION=$v" >>"$env:GITHUB_ENV"
-
name: Checkout
Expand Down
4 changes: 2 additions & 2 deletions build-exe/vars.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ if (-not($cygwinMirror)) {
}

$cldrPluralWorks = 'yes'
if ($Link -eq 'shared') {
if ($Link -eq 'shared' -and $gettextVersion -lt [Version]'0.23') {
# See https://savannah.gnu.org/bugs/?66356
$cldrPluralWorks = 'no'
}
Expand All @@ -435,7 +435,7 @@ Export-Variable -Name 'gettext-peversion-libtextstyle' -Value $gettextPEVersionL
Export-Variable -Name 'iconv-tp-version' -Value $iconvTPVersion
Export-Variable -Name 'gettext-tp-version' -Value $gettextTPVersion
Export-Variable -Name 'cldr-plural-works' -Value $cldrPluralWorks
Export-Variable -Name 'simplify-plurals-xml' -Value ($gettextVersion -le [Version]'0.23.0' ? 'true' : '')
Export-Variable -Name 'simplify-plurals-xml' -Value ($gettextVersion -le [Version]'0.23' ? 'true' : '')

Write-Output '## Outputs'
Get-Content -LiteralPath $env:GITHUB_OUTPUT

0 comments on commit 2e8197e

Please sign in to comment.