fpGUI icon indicating copy to clipboard operation
fpGUI copied to clipboard

localize is broken

Open glixx opened this issue 7 years ago • 4 comments

./localize.sh Free Pascal Compiler version 3.0.4 [2018/08/09] for x86_64 Copyright (c) 1993-2017 by Florian Klaempfl and others Target OS: Linux for x86-64 Compiling updatepofiles.pas Linking updatepofiles.exe /usr/bin/ld: warning: link.res contains output sections; did you forget -T? 446 lines compiled, 0.2 sec Free Pascal Compiler version 3.0.4 [2018/08/09] for x86_64 Copyright (c) 1993-2017 by Florian Klaempfl and others Target OS: Linux for x86-64 Compiling generateincfiles.pas Linking generateincfiles.exe /usr/bin/ld: warning: link.res contains output sections; did you forget -T? 546 lines compiled, 0.2 sec find: ‘../units’: No such file or directory ../languages/fpgui.po An unhandled exception occurred at $00000000004393BC: EConvertError: "" is an invalid integer $00000000004393BC $00000000004014EA

glixx avatar Nov 21 '18 02:11 glixx

Same for uidesigner:

./localize.sh Free Pascal Compiler version 3.0.4 [2018/08/09] for x86_64 Copyright (c) 1993-2017 by Florian Klaempfl and others Target OS: Linux for x86-64 Compiling updatepofiles.pas Linking updatepofiles.exe /usr/bin/ld: warning: link.res contains output sections; did you forget -T? 446 lines compiled, 4.1 sec Free Pascal Compiler version 3.0.4 [2018/08/09] for x86_64 Copyright (c) 1993-2017 by Florian Klaempfl and others Target OS: Linux for x86-64 Compiling generateincfiles.pas Linking generateincfiles.exe /usr/bin/ld: warning: link.res contains output sections; did you forget -T? 546 lines compiled, 0.2 sec find: ‘../uidesigner/lib’: No such file or directory ../uidesigner/languages/uidesigner.po An unhandled exception occurred at $00000000004393BC: EConvertError: "" is an invalid integer $00000000004393BC $00000000004014EA

glixx avatar Nov 23 '18 02:11 glixx

localize never works. When I tried it 4 years ago it did not work. Need to have an alternative - xgettext.

glixx avatar Nov 23 '18 02:11 glixx

The localize.sh script works fine if you have compiled fpGUI with FPC 2.6.4. ie: it has *.rst files and not the FPC 3.0.x .rsj (json) files. I still can't believe FPC broke such backwards compatibility without even a deprecation period. I am working on implementing the newer json (.rsj) support into the updatepofiles and generateincfiles utilities.

graemeg avatar Apr 15 '19 11:04 graemeg

Thank you for working on this bugreport.

glixx avatar Apr 15 '19 21:04 glixx