Remove translations from Windows builds
This commit is contained in:
1
.github/workflows/ci.yml
vendored
1
.github/workflows/ci.yml
vendored
@@ -42,7 +42,6 @@ jobs:
|
||||
meson setup _build
|
||||
ninja -C _build install
|
||||
pacman --noconfirm -Rs mingw-w64-ucrt-x86_64-desktop-file-utils mingw-w64-ucrt-x86_64-meson git
|
||||
find /ucrt64/share/locale/ -type f ! -name "*cartridges.mo" -delete
|
||||
|
||||
- name: Test
|
||||
shell: msys2 {0}
|
||||
|
||||
@@ -26,24 +26,14 @@ import signal
|
||||
import sys
|
||||
|
||||
VERSION = "@VERSION@"
|
||||
if os.name == "nt":
|
||||
from ctypes import windll
|
||||
|
||||
os.environ["LANGUAGE"] = locale.windows_locale[
|
||||
windll.kernel32.GetUserDefaultUILanguage()
|
||||
]
|
||||
PKGDATADIR = os.path.join(os.path.dirname(__file__), "..", "share", "cartridges")
|
||||
LOCALEDIR = os.path.join(os.path.dirname(__file__), "..", "share", "locale")
|
||||
else:
|
||||
PKGDATADIR = "@pkgdatadir@"
|
||||
LOCALEDIR = "@localedir@"
|
||||
PKGDATADIR = "@pkgdatadir@"
|
||||
LOCALEDIR = "@localedir@"
|
||||
|
||||
sys.path.insert(1, PKGDATADIR)
|
||||
signal.signal(signal.SIGINT, signal.SIG_DFL)
|
||||
|
||||
if os.name != "nt":
|
||||
locale.bindtextdomain("cartridges", LOCALEDIR)
|
||||
locale.textdomain("cartridges")
|
||||
locale.bindtextdomain("cartridges", LOCALEDIR)
|
||||
locale.textdomain("cartridges")
|
||||
|
||||
gettext.install("cartridges", LOCALEDIR)
|
||||
|
||||
|
||||
@@ -37,12 +37,14 @@ conf.set('libexecdir', libexecdir)
|
||||
|
||||
subdir('data')
|
||||
subdir('cartridges')
|
||||
subdir('po')
|
||||
|
||||
if host_machine.system() == 'windows'
|
||||
subdir('windows')
|
||||
else
|
||||
subdir('search-provider')
|
||||
# Translations are broken on Windows for multiple reasons
|
||||
# gresources don't work and MSYS2 seems to have also broken the gettext package
|
||||
subdir('po')
|
||||
endif
|
||||
|
||||
gnome.post_install(
|
||||
|
||||
@@ -48,7 +48,6 @@ Source: "D:\a\_temp\msys64\ucrt64\share\cartridges\*"; DestDir: "{app}\share\car
|
||||
Source: "D:\a\_temp\msys64\ucrt64\share\icons\*"; DestDir: "{app}\share\icons"; Excludes: "*.png,cursors\*"; Flags: recursesubdirs ignoreversion
|
||||
Source: "D:\a\_temp\msys64\ucrt64\share\glib-2.0\*"; DestDir: "{app}\share\glib-2.0"; Flags: recursesubdirs ignoreversion
|
||||
Source: "D:\a\_temp\msys64\ucrt64\share\gtk-4.0\*"; DestDir: "{app}\share\gtk-4.0"; Flags: recursesubdirs ignoreversion
|
||||
Source: "D:\a\_temp\msys64\ucrt64\share\locale\*"; DestDir: "{app}\share\locale"; Flags: recursesubdirs ignoreversion
|
||||
|
||||
Source: "..\..\windows\icon.ico"; DestDir: "{app}"; Flags: recursesubdirs ignoreversion
|
||||
|
||||
|
||||
Reference in New Issue
Block a user