OpenSite/Reference/Commands/Language commands: Difference between revisions

From BathAfrica Documentation
Jump to navigation Jump to search
Publish Cursor documentation reconciled with OpenSite source 77c3fee; tests not rerun
 
Link adjacent OpenSite reference pages in reading order
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
__NOTOC__
{{OpenSite scope}}
{{BathAfrica Command
{{BathAfrica Command
|review=Development documentation for OpenSite 0.0.1, source snapshot 77c3fee (Phase 13C). Reviewed against implementation on 29 October 2026. Tests and the Windows desktop were not rerun for this publication; this is not a released-product support claim.
|id=cli.language
|id=cli.language
|summary=Show the active language and select another tag, including the English fallback.
|summary=Show the active language and select another tag, including the English fallback.
Line 13: Line 14:
}}
}}


== Try this workflow ==
[[OpenSite/Guides/Save and reload settings|Save and reload settings]] — a worked lesson with expected results.


== Documentation basis ==
== Documentation basis ==
Line 24: Line 28:
[[OpenSite|OpenSite overview]] · [[OpenSite/Reference|Reference]] · [[OpenSite/Guides|Guides]]
[[OpenSite|OpenSite overview]] · [[OpenSite/Reference|Reference]] · [[OpenSite/Guides|Guides]]
[[Category:OpenSite documentation]]
[[Category:OpenSite documentation]]
<div class="os-page-nav">{{Docnav|OpenSite/Reference/Commands/Extension commands|OpenSite/Reference/Commands/Command line|OpenSite/Guides|All guides}}</div>

Latest revision as of 14:14, 29 October 2026

OpenSite 0.0.1 · DevelopmentSource scope and availability


Show the active language and select another tag, including the English fallback.

Stable identifier
cli.language

Implementation milestone

Roadmap phase 3.

Units

None.

Terminal example

opensite-cli language set fr

Python access

The registered command is language.set and its argument is language. No Python example calls it. The CLI test runs opensite-cli language set fr.

Output

language=fr, resolved=en, sample=language=fr, missing=cli.missing.example, and used_key=true.

Errors

Exit 0 on success. Exit 1 for a language tag the catalog rejects. Exit 2 for the wrong number of arguments.

Limitations

This build does not include a French catalog, so the sample sentence is the English one. language show prints the English plural forms 1 item and 2 items. That rule is English, not a universal plural system.

Verification evidence

Repository evidence references (not rerun for this publication): CTest cli.preferences and foundation.catalog.


Try this workflow

Save and reload settings — a worked lesson with expected results.

Documentation basis

Source-reviewed against development commit 77c3fee13944bcc4b5d487c77eb1f82fbe4c6ea7, branch feature/phase-13c-properties-python-expressions. This review inspected the implementation and repository evidence; it did not run the Windows application or repeat CTest.

  • src/cli/main.cpp
  • src/cli/document_commands.cpp
  • src/cli/preference_commands.cpp
  • src/application/builtins.cpp

OpenSite overview · Reference · Guides