Michael Meeks píše v Út 22. 05. 2012 v 17:57 +0100:
>       Normally for this a pseudo-printf format would be used so use a % or $
> magic in the string to be replaced. For an example of that:
> 
> String STR_RECOVER_QUERY
> {
>     Text [ en-US ] = "Should the file \"$1\" be restored?" ;
> };

You might find a working example of substitution in the commit
http://cgit.freedesktop.org/libreoffice/core/commit/?id=8c7ca43f690b12043d78a698f622eb565f305782

The important part is adding %ABOUTBOXPRODUCTVERSIONSUFFIX into
cui/source/dialogs/about.src and calling

rStr.SearchAndReplaceAllAscii( "%ABOUTBOXPRODUCTVERSIONSUFFIX",
rAboutBoxVersionSuffix );

in desktop/source/app/app.cxx


Note that this only describes how to modify existing string and how to
replace the value. If you want to add new GUI element, you need to
define also an ID in the related .hrc file, call ResId() to get the
localized string, ...


Best Regards,
Petr

_______________________________________________
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice

Reply via email to