#### View Issue Details

ID Project Category View Status Date Submitted Last Update 0034900 FPC Documentation public 2019-01-19 01:27 2019-01-19 16:25 Kai Burghardt Michael Van Canneyt normal minor always resolved fixed x86_64 GNU/Linux 4.2.0 3.0.4 3.0.4+dfsg-11 [2017/12/30] 3.2.0 3.3.1 0034900: Programmer's guide: section name in context of resourcestrings doesn't make sense An example in the context of the resourcestrings deals with a string that ought to be translated. However, it is defined in a const section, not in a resourcestring section. Furthermore TranslateStrings is not defined in the gettext unit, but I guess the example code's purpose is only to demonstrate _the_ _principle_, so it's OK. We don't wanna "dictate" people to use gettext. 1537 Attached Files prog.tex.patch (646 bytes) --- prog.tex~ 2019-01-19 00:18:00.265466677 +0000 +++ prog.tex 2019-01-19 00:18:00.265466677 +0000 @@ -6180,57 +6180,57 @@ \section{Caveat} In principle it is possible to translate all resource strings at any time in a running program. However, this change is not communicated to other strings; its change is noticed only when a constant string is being used. Consider the following example: \begin{verbatim} -Const +Resourcestring help = 'With a little help of a programmer.'; Var A : AnsiString; begin { lots of code } A:=Help; { Again some code} TranslateStrings; { More code } \end{verbatim}  prog.tex.patch (646 bytes)

#### Activities

 2019-01-19 01:27 reporter prog.tex.patch (646 bytes) --- prog.tex~ 2019-01-19 00:18:00.265466677 +0000 +++ prog.tex 2019-01-19 00:18:00.265466677 +0000 @@ -6180,57 +6180,57 @@ \section{Caveat} In principle it is possible to translate all resource strings at any time in a running program. However, this change is not communicated to other strings; its change is noticed only when a constant string is being used. Consider the following example: \begin{verbatim} -Const +Resourcestring help = 'With a little help of a programmer.'; Var A : AnsiString; begin { lots of code } A:=Help; { Again some code} TranslateStrings; { More code } \end{verbatim}  prog.tex.patch (646 bytes) 2019-01-19 16:25 administrator   ~0113482 Fixed manually, patch for some reason didn't apply :( Thanks for the fix !