global_helptexts.lua

This file contains some default building helptexts that can be used when a more specific help text hasn’t been defined yet. It also contains some global time naming functions for uniform translations.

no_lore_text_yet()

Returns a localized string for when no lore helptext has been defined yet. :returns: _”Text needed”

no_lore_author_text_yet()

Returns a localized string for when no lore author helptext has been defined yet. :returns: _”Source needed”

no_purpose_text_yet()

Returns a localized string for when no purpose helptext has been defined yet. :returns: _”Text needed”

no_performance_text_yet()

Returns a localized string for when no performance helptext has been defined yet. :returns: _”Calculation needed”

format_seconds(seconds)
Parameters

seconds (An unsigned integer) – number of seconds

Returns a localized string to tell the time in seconds with the proper plural form. :returns: “1 second”, or “20 seconds” etc.

format_minutes(minutes)
Parameters

minutes (An unsigned integer) – number of minutes

Returns a localized string to tell the time in minutes with the proper plural form. :returns: “1 minute”, or “20 minutes” etc.

format_minutes_seconds(minutes, seconds)
Parameters
  • minutes (An unsigned integer) – number of minutes

  • seconds (An unsigned integer) – number of seconds

Returns a localized string to tell the time in minutes and seconds with the proper plural form. :returns: “1 minute and 20 seconds” etc.