source/text/sbasic/shared/03/sf_basic.xhp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-)
New commits: commit ad32d055674e5e934c5d0e0ee94c060293eb6088 Author: Olivier Hallot <olivier.hal...@libreoffice.org> AuthorDate: Sat Apr 19 11:12:41 2025 +0200 Commit: Olivier Hallot <olivier.hal...@libreoffice.org> CommitDate: Sat Apr 19 11:48:12 2025 +0200 mute L10n in python code examples Change-Id: I701d7278ef6e0e1fbb74bf3db401bc0f1f60e1e6 Reviewed-on: https://gerrit.libreoffice.org/c/help/+/184368 Reviewed-by: Olivier Hallot <olivier.hal...@libreoffice.org> Tested-by: Jenkins diff --git a/source/text/sbasic/shared/03/sf_basic.xhp b/source/text/sbasic/shared/03/sf_basic.xhp index dec49f873e..eeeecc4220 100644 --- a/source/text/sbasic/shared/03/sf_basic.xhp +++ b/source/text/sbasic/shared/03/sf_basic.xhp @@ -282,8 +282,8 @@ </pycode> <tip id="par_id51743414232819"><link href="text/sbasic/python/python_programming.xhp">uno module</link> fileUrlToSystemPath() method returns a system path using an identical syntax.</tip> <pycode> - <paragraph role="pycode" id="pyc_id731743414363054">import uno</paragraph> - <paragraph role="pycode" id="pyc_id541743414376664">filename = uno.fileUrlToSystemPath( "file:///C:/Program%20Files%20(x86)/LibreOffice/News.txt" )</paragraph> + <paragraph role="pycode" id="pyc_id731743414363054" localize="false">import uno</paragraph> + <paragraph role="pycode" id="pyc_id541743414376664" localize="false">filename = uno.fileUrlToSystemPath( "file:///C:/Program%20Files%20(x86)/LibreOffice/News.txt" )</paragraph> <paragraph role="pycode" localize="false" id="pyc_id882721147617212">bas.MsgBox(filename)</paragraph> </pycode> </section> @@ -308,8 +308,8 @@ </pycode> <tip id="par_id51744524232819"><link href="text/sbasic/python/python_programming.xhp">uno module</link> systemPathToFileUrl() method returns a file URL for the given system path.</tip> <pycode> - <paragraph role="pycode" id="pyc_id742843414363054">from uno import systemPathToFileUrl as ConvertToUrl</paragraph> - <paragraph role="pycode" id="pyc_id552843414376664">filename = ConvertToUrl( 'C:\Program Files(x86)\LibreOffice\News.txt' )</paragraph> + <paragraph role="pycode" id="pyc_id742843414363054" localize="false">from uno import systemPathToFileUrl as ConvertToUrl</paragraph> + <paragraph role="pycode" id="pyc_id552843414376664" localize="false">filename = ConvertToUrl( 'C:\Program Files(x86)\LibreOffice\News.txt' )</paragraph> <paragraph role="pycode" localize="false" id="pyc_id992611147617212">bas.MsgBox(filename)</paragraph> </pycode> </section> @@ -348,8 +348,8 @@ </pycode> <tip id="par_id51743424332819"><link href="text/sbasic/python/python_programming.xhp">uno module</link> createUnoStruct() method creates an instance of a Uno structure type.</tip> <pycode> - <paragraph role="pycode" id="pyc_id731754514363054">import uno</paragraph> - <paragraph role="pycode" id="pyc_id541754514376664">p = uno.createUnoStruct( 'com.sun.star.beans.Property' )</paragraph> + <paragraph role="pycode" id="pyc_id731754514363054" localize="false">import uno</paragraph> + <paragraph role="pycode" id="pyc_id541754514376664" localize="false">p = uno.createUnoStruct( 'com.sun.star.beans.Property' )</paragraph> <paragraph role="pycode" localize="false" id="pyc_id882722257617212">bas.MsgBox(p)</paragraph> </pycode> </section>