http://www.openoffice.org/issues/show_bug.cgi?id=89031






------- コメントの追加元 [EMAIL PROTECTED] 2008/05/29 16:03:11 +0000 -------
With DEV300_m14, there are 9 makefile.mk(s) that include a line beginning with 
LOCALIZE_ME=

cd $SRC_ROOT
find * -name makefile.mk | xargs grep -l LOCALIZE_ME | sort | cat -n
     1  chart2/source/controller/dialogs/makefile.mk
     2  dbaccess/source/ui/dlg/makefile.mk
     3  dbaccess/source/ui/inc/makefile.mk
     4  sd/source/ui/app/makefile.mk
     5  starmath/source/makefile.mk
     6  svx/inc/makefile.mk
     7  svx/source/intro/makefile.mk
     8  svx/source/unodialogs/textconversiondlgs/makefile.mk
     9  sw/source/ui/inc/makefile.mk

The following two makefile.mk has the following lines:

  dbaccess/source/ui/dlg/makefile.mk:
    LOCALIZE_ME=AutoControls_tmpl.hrc
    $(SLO)$/ConnectionHelper.obj : $(LOCALIZE_ME_DEST)
    $(SLO)$/ConnectionPageSetup.obj : $(LOCALIZE_ME_DEST)
    $(SLO)$/DBSetupConnectionPages.obj : $(LOCALIZE_ME_DEST)
    $(SLO)$/TextConnectionHelper.obj : $(LOCALIZE_ME_DEST)
    $(SLO)$/detailpages.obj : $(LOCALIZE_ME_DEST)
    $(SLO)$/tablespage.obj : $(LOCALIZE_ME_DEST)

  svx/source/unodialogs/textconversiondlgs/makefile.mk:
    LOCALIZE_ME=chinese_direction_tmpl.hrc
    $(SLO)$/chinese_dictionarydialog.obj: $(INCCOM)$/chinese_direction.hrc
    $(SLO)$/chinese_translationdialog.obj: $(INCCOM)$/chinese_direction.hrc

In comparison, the other makefile.mk(s) have the lines like:
    LOCALIZE_ME=res_DataLabel_tmpl.hrc ...(omitted)...
      $(SRS)$/chcdialogs.srs: $(INCCOM)$/res_DataLabel.hrc
      ...(omitted)...

Let's see what will happen:
  svx/source/unodialogs/textconversiondlgs/chinese_dictionarydialog.cxx:
    #include "chinese_dictionarydialog.hrc"

  svx/source/unodialogs/textconversiondlgs/chinese_dictionarydialog.hrc
    #include "chinese_direction.hrc"

  ../../../wntmsci10.pro/inc/chinese_direction.hrc will be made from
  the mixture of chinese_direction_tmpl.hrc and localize.sdf.

  Compilation of chinese_dictionarydialog.cxx will fail with Asian environment.

What we can learn from the facts above:
  'LOCALIZE_ME'ed .hrc COULD BE used for .srs but should not be for .obj.
  In other words, 'LOCALIZE_ME'ed .hrc SHOULD NOT be included in any .cxx files
  because string literals in the 'LOCALIZE_ME'ed files will be included in .cxx 
  files and subsequently compilation of the .cxx files will result in failure.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to