Commit 89a488ae authored by Will Thompson's avatar Will Thompson

Merge branch 'no-hgettext' into 'master'

Setup.hs: Don’t import Gettext.hs without hgettext

See merge request !14
parents 4c371ddb 6781afab
Pipeline #71531 passed with stages
in 29 minutes and 47 seconds
......@@ -487,7 +487,8 @@ emptyWindow = do
subtitle <- getW castToLabel "headerSubtitle"
spinner <- getW castToSpinner "headerSpinner"
[openItem, openTwoItem] <- mapM (getW castToMenuItem) ["open", "openTwo"]
openItem <- getW castToMenuItem "open"
openTwoItem <- getW castToMenuItem "openTwo"
recordSessionItem <- getW castToMenuItem "recordSession"
recordSystemItem <- getW castToMenuItem "recordSystem"
recordAddressItem <- getW castToMenuItem "recordAddress"
......
{-# LANGUAGE CPP #-}
{-# OPTIONS_GHC -Wall #-}
#if defined(VERSION_hgettext)
import System.FilePath ( (</>), (<.>) )
import Distribution.PackageDescription
......@@ -92,3 +96,12 @@ generateModule pkg lbi =
tar = GetText.targetDataDir lbi
-- Cargo-culted from hgettext
#else
import Distribution.Simple
main :: IO ()
main = defaultMain
#endif
......@@ -69,7 +69,7 @@ Source-Repository head
Flag hgettext
Description: Enable translations. Since there are no translations this is currently rather pointless.
Default: True
Default: False
Flag InteractiveTests
Description: Build interactive test programs
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment