Index: JvGnugettext.pas
===================================================================
--- JvGnugettext.pas	(revision 12557)
+++ JvGnugettext.pas	(working copy)
@@ -424,10 +424,11 @@
 // because it makes this unit independent of the SyncObjs unit
 (**************************************************************************)
 
-{$ifdef CLR}
 uses
-  System.Globalization, System.Diagnostics, System.Windows.Forms;
-{$endif}
+  {$ifdef CLR}
+  System.Globalization, System.Diagnostics, System.Windows.Forms,
+  {$endif}
+  JclSysUtils;
 
 type
   TTP_RetranslatorItem = class
@@ -3588,7 +3589,7 @@
   {$ENDIF DELPHI2009OROLDER}
   HookLoadStr := THook.Create(@SysUtils.LoadStr, @SysUtilsLoadStr);
   HookFmtLoadStr := THook.Create(@SysUtils.FmtLoadStr, @SysUtilsFmtLoadStr);
-  HookIntoResourceStrings(AutoCreateHooks, False);
+  HookIntoResourceStrings(AutoCreateHooks, IsCompiledWithPackages and not IsRunningInTheIDE);
   {$endif}
 
 finalization
