Project

General

Profile

Bug #12076

Language selection knows English only

Added by Walter Jansen over 1 year ago. Updated over 1 year ago.

Status:
Fixed: To be cherry-picked
Priority:
Low
Assignee:
Category:
General
Target version:
Start date:
03/12/2018
Due date:
% Done:

90%

Affected Version:
2.4.1
System:
Mac OS X
bitness:
64-bit
hardware architecture:
amd64/x86

Description

darktable 2.4.1 on macOS 10.12.6 Sierra

The Language dropdown in the Preferences dialog has no languages to select, only one entry for English.
Running DT with a debug option reveals during startup:
wjMBP:~ walter$ /Applications/darktable.app/Contents/MacOS/darktable -d lua

[l10n] error: can't open directory `/usr/local/share/locale'
..

On my Mac, the languages are in /usr/share/locale.

I tried with the --localedir option, same result:
wjMBP:~ walter$ /Applications/darktable.app/Contents/MacOS/darktable --localedir /usr/share/locale -d lua

[l10n] error: can't open directory `/usr/local/share/locale'
..

If it matters, my darktablerc has a lang entry:
ui_last/gui_language=C

I'm pretty sure this worked with pre-2.4 versions.

History

#1 Updated by Tobias Ellinghaus over 1 year ago

That was to be expected, no OSX developer cared about testing the changes and verifying that they work on OSX. Are you able to compile dt and create a DMG yourself?

#2 Updated by Walter Jansen over 1 year ago

I've tried to build DT according to https://github.com/darktable-org/darktable/blob/master/packaging/macosx/BUILD.txt

I had to change

macosx_deployment_target 10.7

to

macosx_deployment_target 10.8

otherwise LLVM wouldn't build. After that, everyting went smooth.

When I tried (from the guide)

GSETTINGS_SCHEMA_DIR=/opt/local/share/glib-2.0/schemas/ XDG_DATA_DIRS=/opt/local/share darktable

DT crashed immediately with:

wjMBP:build walter$ GSETTINGS_SCHEMA_DIR=/opt/local/share/glib-2.0/schemas/ XDG_DATA_DIRS=/opt/local/share darktable

(darktable:40870): GLib-GObject-WARNING **: invalid cast from 'GtkMenuBar' to 'GtkWindow'

(darktable:40870): Gtk-CRITICAL **: gtk_window_add_accel_group: assertion 'GTK_IS_WINDOW (window)' failed
dyld: lazy symbol binding failed: Symbol not found: _gdk_quartz_atom_to_pasteboard_type_libgtk_only
Referenced from: /opt/local/lib/libgtk-3.0.dylib
Expected in: flat namespace

dyld: Symbol not found: _gdk_quartz_atom_to_pasteboard_type_libgtk_only
Referenced from: /opt/local/lib/libgtk-3.0.dylib
Expected in: flat namespace

Abort trap: 6
wjMBP:build walter$

Partial macOS error report:
Crashed Thread: 0 Dispatch queue: com.apple.main-thread

Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY

Termination Reason: DYLD, [0x4] Symbol missing

Dyld Error Message:
Symbol not found: _gdk_quartz_atom_to_pasteboard_type_libgtk_only
Referenced from: /opt/local/lib/libgtk-3.0.dylib
Expected in: flat namespace

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 dyld 0x0000000110b669ee __abort_with_payload + 10
1 dyld 0x0000000110b6643b abort_with_payload_wrapper_internal + 90
2 dyld 0x0000000110b66464 abort_with_payload + 9
3 dyld 0x0000000110b41793 dyld::halt(char const*) + 361
4 dyld 0x0000000110b4189e dyld::fastBindLazySymbol(ImageLoader**, unsigned long) + 139
5 libdyld.dylib 0x00007fffaf15f282 dyld_stub_binder + 282
6 ??? 0x000000010fbe3008 0 + 4559089672
7 libgtk-3.0.dylib 0x000000010f8e4a5f register_types + 87
8 libgtk-3.0.dylib 0x000000010f8e46a1 gtk_drag_dest_set + 252
9 libmap.so 0x000000011a57532e init + 1998 (map.c:428)
10 libdarktable.dylib 0x000000010f1da8f0 dt_view_load_module + 1184 (view.c:212)
---

I have to admit I wouldn't know how to go on from here...

#3 Updated by Walter Jansen over 1 year ago

Seems that

Symbol not found: _gdk_quartz_atom_to_pasteboard_type_libgtk_only

has been fixed in gtk3:

https://github.com/macports/macports-ports/commit/f7dd5462da7e11cecb2986eaf907a860e65f53ed

I'll try another DT build with this fix soon.

#4 Updated by Walter Jansen over 1 year ago

... should read "fixed in macports of gtk3"

#5 Updated by Walter Jansen over 1 year ago

After rebuilding the current macports gtk3, I could build and run DT 2.5.0.
In this version, the language selection works.

(The list of languages shows only short names, i.e. "de", "fr" and so on. Maybe real names - "Deutsch", "Fran├žais" should be shown?)

So, the problem is most probably fixed in the next version.

#6 Updated by Igor Kuzmin over 1 year ago

Have you installed iso-codes macports package? Language selection should work as expected with last commit in master: https://github.com/darktable-org/darktable/commit/56880c853726262b3165b9718e842e4970944cd7
The only issue I seeing is focus problems with this combobox widget.

#7 Updated by Walter Jansen over 1 year ago

Looks ok now.

#8 Updated by Igor Kuzmin over 1 year ago

  • Category set to General
  • Status changed from New to Fixed: To be cherry-picked
  • Assignee set to Igor Kuzmin
  • % Done changed from 0 to 90

#9 Updated by Roman Lebedev over 1 year ago

  • Target version set to 2.6.0

Also available in: Atom PDF