Closed sikmir closed 5 years ago
Totals | |
---|---|
Change from base Build 239: | 0.0% |
Covered Lines: | 920 |
Relevant Lines: | 966 |
Conceptually looks fine. Could you add another call to bindtextdomain in the CLI and ensure that $(localedir) gets passed in to the po targets so someone overriding localedir will get the files installed in the right place?
Could you add another call to bindtextdomain in the CLI
Added.
and ensure that $(localedir) gets passed in to the po targets so someone overriding localedir will get the files installed in the right place?
$ make prefix=/path/to/install localedir=/path/to/locale CFLAGS=-DENABLE_NLS
$ make prefix=/path/to/install localedir=/path/to/locale install install-po install-desktop-file
$ LANG=ru_RU.UTF-8 strace -T -e trace=openat -- /path/to/install/bin/gpscorrelate-gui 2>&1 | egrep 'locale/ru/(.*)gpscorrelate'
openat(AT_FDCWD, "/path/to/locale/ru/LC_MESSAGES/gpscorrelate.mo", O_RDONLY) = 3 <0.000009>
$ LANG=ru_RU.UTF-8 strace -T -e trace=openat -- /path/to/install/bin/gpscorrelate 2>&1 | egrep 'locale/ru/(.*)gpscorrelate'
openat(AT_FDCWD, "/path/to/locale/ru/LC_MESSAGES/gpscorrelate.mo", O_RDONLY) = 3 <0.000010>
I'm thinking of a case where localedir is not where prefix would put it, e.g.,
$ make prefix=/path/to/install localedir=/somewhere/else/locale CFLAGS=-DENABLE_NLS
I'm thinking of a case where localedir is not where prefix would put it, e.g.,
$ make prefix=/path/to/install localedir=/somewhere/else/locale CFLAGS=-DENABLE_NLS
See my comment above, that works as expected.
Ah, I see, using make magic. Thanks!
Actual behaviour
Expected behaviour
For more details, see bindtextdomain.