开发者

Delphi ITE: when can resource IDs change?

开发者 https://www.devze.com 2023-01-04 04:19 出处:网络
I\'m looking into Delphi ITE (Integrated Translation Environment) to add multi-language support in my app. I\'m concerned about validity issues for resource DLLs, which is generated by ITE. In other w

I'm looking into Delphi ITE (Integrated Translation Environment) to add multi-language support in my app. I'm concerned about validity issues for resource DLLs, which is generated by ITE. In other words开发者_如何学运维, when it is safe to deploy already compiled resource DLL, if main application was recompiled or (possibly) changed.

Questions:

  • If I just rebuild main/host project multiply times without changing - can IDs of strings change? Will I need to invoke "Update localized projects"?
  • If I change (and recompile) main project, but without changing resourcestrings and DFMs - can IDs of strings change? Will I need to invoke "Update localized projects"?
  • If I change main project by adding or removing resourcestrings and/or DFMs - can IDs of strings change? Will I need to invoke "Update localized projects"?

Main reason for this question is that I want to know if it is safe to ship old translations with new updated version of my software. It would be really painfull to keep zillions of versions of resource DLLs for each version of software.

Second reason for this question: it seems that there is a bug in Delphi ITE, as highlighted in this question.


In my experience, yes, they can change more often then you would like. I guess it could depends on which units gets recompiled and in which order, or something alike. IIRC, two recompilation may not lead to exactly the same executable as well. I got the habit to update the resource DLLs everytime I need to deploy them with a new executable.

0

精彩评论

暂无评论...
验证码 换一张
取 消