Skip to content
daniel-flassig edited this page May 10, 2020 · 12 revisions

Mark a string as translatable / fetch the translated string. Please read this tutorial to understand the workings of the translation mechanism.

pyloc "This string can be translated"
pyloc(This string can be translated as well")

Note that the parameter to pyloc must be a literal string. So the following would NOT work in practice

function test()
   return "This string cannot be translated!"
end
pyloc(test())

because the string will NOT appear in the translation base file.

Parameter Type Description
radius number Radius of the cylinder
origin {x,y,z} Optional: center point of the sphere
options {...} Optional: a table that may contain the following options:
options.u_axis {x,y,z} Local coordinate u-axis for the orientation of the sphere
options.v_axis {x,y,z} Local coordinate v-axis for the orientation of the sphere
options.w_axis {x,y,z} Local coordinate w-axis for the orientation of the sphere
options.segments {x,y,z} Longitude segments of the sphere
options.latitude_segments {x,y,z} Latitude segments of the sphere

Return value

Type Description
element_handle An element handle of the newly created part

See also:

pytha, element handles, Axes and directions, create_block, create_cylinder

Clone this wiki locally