Hi,

On 1 August 2012 06:31, Jürgen Hestermann <[email protected]> wrote:
>>
> And how do you handle nesting of code and text as in:

I really don't see the problem. I have resource strings like that all
over the place. Even heard of the Format() function? Here are some
resource strings from my applications:

resourcestring

        uiLoggedInAs                = 'Logged in as: %s to %s';
        uiViewsFor                  = 'Views For "%s"';
        uiErrTheItemAlreadExists    = 'The item <%s> already exists.';
        uiErrBulkInvRatesEmpty      = 'It seems some of the Bulk Invoice
Rates items have zero amounts. This is not allowed. Please correct
this problem and try again.';
        uiErrXXXIsMissing           = '%s is missing';
        uiErrNoDefaultTaxRate       = 'No default Tax Rate has been set for
this centre. Please contact Head Office.';
        uiErrDBVersionMismatch      = 'This version of %s, v%d.%2.2d (%s %s), ' 
+
                                      'is not valid for the current database
version v%s. ' +
                                      'Please make sure you are running the
latest version of %s.';
        uiErrMissingDefaultPaths    = 'The Default Paths have not been set.
Do you want to set them now? $\n' +
                                      'Click Yes to set them now. If you
select No, you can set them $\n' +
                                      'later using the %s menu.';


I normally don't force line breaks in my resource strings. That's up
to the widget to word wrap them, and scale the UI. But I do have one
such case - see the last example. PO files/editors use the C-style
newline character to indicate a line break:  $\n



-- 
Regards,
  - Graeme -


_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://fpgui.sourceforge.net

--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to