diff options
author | Rafael Lima <rafael.palma.lima@gmail.com> | 2021-09-21 15:39:37 +0200 |
---|---|---|
committer | Adolfo Jayme Barrientos <fitojb@ubuntu.com> | 2021-09-22 06:29:33 +0200 |
commit | 38c34032f737213ec166b80793fb1230e657975d (patch) | |
tree | 72dc204ba8f011420f52daaee8a12cfa5dc15394 | |
parent | 77730780dfd1502994a413121842b23767882a25 (diff) |
Fix localization in some help pages
Change-Id: I59e2ea89dd81c76ee4efee6a154082a56289b524
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/122289
Tested-by: Jenkins
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
-rw-r--r-- | source/text/sbasic/python/python_document_events.xhp | 2 | ||||
-rw-r--r-- | source/text/sbasic/shared/03/sf_l10n.xhp | 2 | ||||
-rw-r--r-- | source/text/sbasic/shared/03/sf_methods.xhp | 49 | ||||
-rw-r--r-- | source/text/sbasic/shared/03/sf_services.xhp | 2 | ||||
-rw-r--r-- | source/text/sbasic/shared/03/sf_session.xhp | 4 | ||||
-rw-r--r-- | source/text/sbasic/shared/03/sf_string.xhp | 4 |
6 files changed, 39 insertions, 24 deletions
diff --git a/source/text/sbasic/python/python_document_events.xhp b/source/text/sbasic/python/python_document_events.xhp index be5cae32e0..445d425e39 100644 --- a/source/text/sbasic/python/python_document_events.xhp +++ b/source/text/sbasic/python/python_document_events.xhp @@ -224,7 +224,7 @@ <paragraph role="bascode" localize="false" id="N0702"> Const _LIBRARY = "Access2Base" : With GlobalScope.BasicLibraries</paragraph> <paragraph role="bascode" localize="false" id="N0703"> If Not .IsLibraryLoaded(_LIBRARY) Then .LoadLibrary(_LIBRARY)</paragraph> <paragraph role="bascode" localize="false" id="N0704"> End With : Access2Base.Trace.TraceLevel("DEBUG")</paragraph> - <paragraph role="bascode" id="bas_id211630511166427"> If IsMissing(evt) Then _txtMsg = "" Else _txtMsg = evt.EventName & "-"</paragraph> + <paragraph role="bascode" localize="false" id="bas_id211630511166427"> If IsMissing(evt) Then _txtMsg = "" Else _txtMsg = evt.EventName & "-"</paragraph> <paragraph role="bascode" xml-lang="en-US" id="N0705"> Access2Base.Trace.TraceLog("INFO", _txtMsg & "Document events are being logged", UI_PROMPT)</paragraph> <paragraph role="bascode" localize="false" id="N0709"> _evtAdapter = CreateUnoListener( "_", "com.sun.star.document.XDocumentEventListener" )</paragraph> <paragraph role="bascode" localize="false" id="N0710"> ThisComponent.addDocumentEventListener( _evtAdapter )</paragraph> diff --git a/source/text/sbasic/shared/03/sf_l10n.xhp b/source/text/sbasic/shared/03/sf_l10n.xhp index 98c94c0661..e7422c9e75 100644 --- a/source/text/sbasic/shared/03/sf_l10n.xhp +++ b/source/text/sbasic/shared/03/sf_l10n.xhp @@ -77,7 +77,7 @@ <warning id="par_id391625855630975">The example above will result in an runtime error if the PO file for the current locale does not exist in the specified folder.</warning> <paragraph role="paragraph" id="par_id321614358809763">In the example below, both the folder name and locale settings are explicitly defined to be Belgian French.</paragraph> <bascode> - <paragraph role="bascode" id="bas_id661614358846464">Set myPO = CreateScriptService("L10N", "C:\myPOFiles", "fr-BE")</paragraph> + <paragraph role="bascode" localize="false" id="bas_id661614358846464">Set myPO = CreateScriptService("L10N", "C:\myPOFiles", "fr-BE")</paragraph> </bascode> <paragraph role="tip" id="par_id411585843652496" xml-lang="en-US">PO files must be named in the form "la-CO.po" or "la.po", where "la" refers to the language and "CO" is the country. Some examples are: "en-US.po", "fr-BE.po" or "fr.po".</paragraph> <paragraph role="paragraph" id="par_id171585843652545" xml-lang="en-US">It is recommended to free resources after use:</paragraph> diff --git a/source/text/sbasic/shared/03/sf_methods.xhp b/source/text/sbasic/shared/03/sf_methods.xhp index a06b536bc4..43bf608958 100644 --- a/source/text/sbasic/shared/03/sf_methods.xhp +++ b/source/text/sbasic/shared/03/sf_methods.xhp @@ -86,10 +86,10 @@ <paragraph id="par_id241623419591966" localize="false" role="tablecontent">Date</paragraph> </tablecell> <tablecell> - <paragraph id="par_id541623420256687" role="tablecontent">datetime</paragraph> + <paragraph id="par_id541623420256687" localize="false" role="tablecontent">datetime</paragraph> </tablecell> <tablecell> - <paragraph id="par_id421623420257224" role="tablecontent">datetime</paragraph> + <paragraph id="par_id421623420257224" localize="false" role="tablecontent">datetime</paragraph> </tablecell> </tablerow> <tablerow> @@ -97,10 +97,10 @@ <paragraph id="par_id651623419593960" localize="false" role="tablecontent">Double</paragraph> </tablecell> <tablecell> - <paragraph id="par_id321623420281678" role="tablecontent">float</paragraph> + <paragraph id="par_id321623420281678" localize="false" role="tablecontent">float</paragraph> </tablecell> <tablecell> - <paragraph id="par_id471623420282320" role="tablecontent">float</paragraph> + <paragraph id="par_id471623420282320" localize="false" role="tablecontent">float</paragraph> </tablecell> </tablerow> <tablerow> @@ -108,10 +108,10 @@ <paragraph id="par_id421623419594151" localize="false" role="tablecontent">Integer</paragraph> </tablecell> <tablecell> - <paragraph id="par_id971623420314751" role="tablecontent">int</paragraph> + <paragraph id="par_id971623420314751" localize="false" role="tablecontent">int</paragraph> </tablecell> <tablecell> - <paragraph id="par_id561623420315278" role="tablecontent">int</paragraph> + <paragraph id="par_id561623420315278" localize="false" role="tablecontent">int</paragraph> </tablecell> </tablerow> <tablerow> @@ -119,10 +119,10 @@ <paragraph id="par_id511623419594366" localize="false" role="tablecontent">Long</paragraph> </tablecell> <tablecell> - <paragraph id="par_id451623420342159" role="tablecontent">int</paragraph> + <paragraph id="par_id451623420342159" localize="false" role="tablecontent">int</paragraph> </tablecell> <tablecell> - <paragraph id="par_id591623420343208" role="tablecontent">int</paragraph> + <paragraph id="par_id591623420343208" localize="false" role="tablecontent">int</paragraph> </tablecell> </tablerow> <tablerow> @@ -130,7 +130,10 @@ <paragraph id="par_id541623419594576" localize="false" role="tablecontent">Object</paragraph> </tablecell> <tablecell> - <paragraph id="par_id601623420375543" role="tablecontent">obj</paragraph> + <paragraph id="par_id601623420375543" localize="false" role="tablecontent">obj</paragraph> + </tablecell> + <tablecell> + <paragraph id="par_id601628420375147" localize="false" role="tablecontent"></paragraph> </tablecell> </tablerow> <tablerow> @@ -138,10 +141,10 @@ <paragraph id="par_id931623419594783" localize="false" role="tablecontent">Single</paragraph> </tablecell> <tablecell> - <paragraph id="par_id821623420532337" role="tablecontent">float</paragraph> + <paragraph id="par_id821623420532337" localize="false" role="tablecontent">float</paragraph> </tablecell> <tablecell> - <paragraph id="par_id351623420532936" role="tablecontent">float</paragraph> + <paragraph id="par_id351623420532936" localize="false" role="tablecontent">float</paragraph> </tablecell> </tablerow> <tablerow> @@ -149,10 +152,10 @@ <paragraph id="par_id391623419595010" localize="false" role="tablecontent">String</paragraph> </tablecell> <tablecell> - <paragraph id="par_id211623420546503" role="tablecontent">str</paragraph> + <paragraph id="par_id211623420546503" localize="false" role="tablecontent">str</paragraph> </tablecell> <tablecell> - <paragraph id="par_id681623420559167" role="tablecontent">str</paragraph> + <paragraph id="par_id681623420559167" localize="false" role="tablecontent">str</paragraph> </tablecell> </tablerow> <tablerow> @@ -160,7 +163,10 @@ <paragraph id="par_id61623419595200" localize="false" role="tablecontent">Variant</paragraph> </tablecell> <tablecell> - <paragraph id="par_id81623420571390" role="tablecontent">any</paragraph> + <paragraph id="par_id81623420571390" localize="false" role="tablecontent">any</paragraph> + </tablecell> + <tablecell> + <paragraph id="par_id601628420044847" localize="false" role="tablecontent"></paragraph> </tablecell> </tablerow> <tablerow> @@ -168,7 +174,10 @@ <paragraph id="par_id931623419595424" role="tablecontent">UNO Object</paragraph> </tablecell> <tablecell> - <paragraph id="par_id821623420607671" role="tablecontent">uno</paragraph> + <paragraph id="par_id821623420607671" localize="false" role="tablecontent">uno</paragraph> + </tablecell> + <tablecell> + <paragraph id="par_id601628420332587" localize="false" role="tablecontent"></paragraph> </tablecell> </tablerow> <tablerow> @@ -176,7 +185,10 @@ <paragraph id="par_id951623419595631" role="tablecontent">User Defined<br/>Type (UDT)</paragraph> </tablecell> <tablecell> - <paragraph id="par_id491623420626262" role="tablecontent">obj</paragraph> + <paragraph id="par_id491623420626262" localize="false" role="tablecontent">obj</paragraph> + </tablecell> + <tablecell> + <paragraph id="par_id601628420215874" localize="false" role="tablecontent"></paragraph> </tablecell> </tablerow> <tablerow> @@ -184,7 +196,10 @@ <paragraph id="par_id451623419793734" role="tablecontent"><literal>ScriptForge</literal><br/>service</paragraph> </tablecell> <tablecell> - <paragraph id="par_id761623420648335" role="tablecontent">svc</paragraph> + <paragraph id="par_id761623420648335" localize="false" role="tablecontent">svc</paragraph> + </tablecell> + <tablecell> + <paragraph id="par_id601628420373974" localize="false" role="tablecontent"></paragraph> </tablecell> </tablerow> </table> diff --git a/source/text/sbasic/shared/03/sf_services.xhp b/source/text/sbasic/shared/03/sf_services.xhp index aaedbd394c..e8462b4268 100644 --- a/source/text/sbasic/shared/03/sf_services.xhp +++ b/source/text/sbasic/shared/03/sf_services.xhp @@ -35,7 +35,7 @@ <paragraph role="paragraph" id="par_id871582714020043">This method is used to instantiate a ScriptForge service so it can be called in user scripts.</paragraph> <paragraph role="paragraph" id="par_id711627514310039">The returned value is a Basic object or <literal>Nothing</literal> if an error occurred.</paragraph> <embed href="text/sbasic/shared/00000003.xhp#functsyntax"/> - <paragraph role="paragraph" id="par_id961627475353964"> + <paragraph role="paragraph" localize="false" id="par_id961627475353964"> <input>svc.CreateScriptService(service: str, [arg0: any] ...): svc</input> </paragraph> <embed href="text/sbasic/shared/00000003.xhp#functparameters"/> diff --git a/source/text/sbasic/shared/03/sf_session.xhp b/source/text/sbasic/shared/03/sf_session.xhp index 290d2dbc73..b2b2758ac5 100644 --- a/source/text/sbasic/shared/03/sf_session.xhp +++ b/source/text/sbasic/shared/03/sf_session.xhp @@ -320,7 +320,7 @@ </list> <paragraph role="paragraph" id="par_id711582818023247"><emph>args</emph>: The arguments to be passed to the called script..</paragraph> <embed href="text/sbasic/shared/00000003.xhp#functexample"/> - <paragraph role="paragraph" id="par_id701626817164878">Consider the Python function <literal>odd_integers</literal> defined below that creates a list with odd integer values between <literal>v1</literal> an <literal>v2</literal>. Suppose this function is stored in a file named <emph>my_macros.py</emph> in your user scripts folder.</paragraph> + <paragraph role="paragraph" id="par_id701626817164878">Consider the Python function <literal>odd_integers</literal> defined below that creates a list with odd integer values between <literal>v1</literal> and <literal>v2</literal>. Suppose this function is stored in a file named <emph>my_macros.py</emph> in your user scripts folder.</paragraph> <pycode> <paragraph role="pycode" localize="false" id="pyc_id21626817636630">def odd_integers(v1, v2):</paragraph> <paragraph role="pycode" localize="false" id="pyc_id231626817636935"> odd_list = [v for v in range(v1, v2 + 1) if v % 2 != 0]</paragraph> @@ -475,7 +475,7 @@ <paragraph role="paragraph" id="par_id571601030349904"><emph>cc</emph>: A comma-separated list of email addresses (the "carbon copy" recipients).</paragraph> <paragraph role="paragraph" id="par_id961601031043346"><emph>bcc</emph>: A comma-separated list of email addresses (the "blind carbon copy" recipients).</paragraph> <paragraph role="paragraph" id="par_id891601031050814"><emph>subject</emph>: the header of the message.</paragraph> - <paragraph role="paragraph" id="par_id191601031056673"><emph>body</emph>: The content of the message as an unformatted text.</paragraph> + <paragraph role="paragraph" id="par_id191601031056673"><emph>body</emph>: The contents of the message as an unformatted text.</paragraph> <paragraph role="paragraph" id="par_id511601031063269"><emph>filenames</emph>: a comma-separated list of file names. Each file name must respect the <literal>SF_FileSystem.FileNaming</literal> notation.</paragraph> <paragraph role="paragraph" id="par_id161601032784063"><emph>editmessage</emph>: When <literal>True</literal> (default), the message is edited before being sent.</paragraph> <embed href="text/sbasic/shared/00000003.xhp#functexample"/> diff --git a/source/text/sbasic/shared/03/sf_string.xhp b/source/text/sbasic/shared/03/sf_string.xhp index abe9fd7c11..fafd7f3122 100644 --- a/source/text/sbasic/shared/03/sf_string.xhp +++ b/source/text/sbasic/shared/03/sf_string.xhp @@ -396,7 +396,7 @@ </paragraph> <embed href="text/sbasic/shared/00000003.xhp#functparameters"/> <paragraph role="paragraph" id="par_id191579861552201"><emph>inputstr</emph>: The string to be tested.</paragraph> - <paragraph role="paragraph" id="par_id211579861561473"><emph>substring</emph>: The substring to be searched at the end of <literal>InputStr</literal>.</paragraph> + <paragraph role="paragraph" id="par_id211579861561473"><emph>substring</emph>: The substring to be searched at the end of <literal>inputstr</literal>.</paragraph> <paragraph role="paragraph" id="par_id801579861574009"><emph>casesensitive</emph>: The search can be case sensitive or not (Default = <literal>False</literal>).</paragraph> <embed href="text/sbasic/shared/00000003.xhp#functexample"/> <bascode> @@ -1363,7 +1363,7 @@ <paragraph role="pycode" localize="false" id="pyc_id81627251281671">arr4 = svc.SplitNotQuoted(r'abc,"def\",ghi"",', ",")</paragraph> <paragraph role="pycode" localize="false" id="pyc_id601627251281871"># arr4 = ('abc', '"def\\",ghi""', '')</paragraph> </pycode> - <note id="par_id661627251379676">Beware of the differences between Basic and Python when representing strings. For example, in Basic two "" characters inside a string are interpreted as a single " character. In Python, strings enclosed with single quotes can contain " characters without having to double them.</note> + <note id="par_id661627251379676">Beware of the differences between Basic and Python when representing strings. For example, in Basic two "" characters inside a string are interpreted as a single " character. In Python, strings enclosed with single quotes can contain " characters without having to double them.</note> </section> <section id="StartsWith"> |