Change N() to NS()

This commit is contained in:
Wuzzy 2023-04-20 17:14:50 +02:00
parent 8c68235992
commit 0d13aed5aa
2 changed files with 12 additions and 12 deletions

4
API.md
View File

@ -192,8 +192,8 @@ get a tooltip.
Example for `caption_format`: Example for `caption_format`:
{ N("@1, year @2"), "mymod", "%b", "%Y" } { NS("@1, year @2"), "mymod", "%b", "%Y" }
Will resolve to e.g. "January, Year 1". Will resolve to e.g. "January, Year 1".
`N` is a dummy function `function(s) return s end` that is used for the translation collector `NS` is a dummy function `function(s) return s end` that is used for the translation collector
script. script.

View File

@ -1,5 +1,5 @@
-- For translation collector script -- For translation collector script
local N = function(s) return s end local NS = function(s) return s end
----------------------------- -----------------------------
-- DEFAULT CALENDAR CONFIG -- -- DEFAULT CALENDAR CONFIG --
@ -11,28 +11,28 @@ calendar.MONTH_DAYS = 30
-- List of long month names -- List of long month names
-- (also determines the number of months in a year) -- (also determines the number of months in a year)
calendar.month_names = { calendar.month_names = {
N('January'), N('February'), N('March'), N('April'), NS('January'), NS('February'), NS('March'), NS('April'),
N('May'), N('June'), N('July'), N('August'), NS('May'), NS('June'), NS('July'), NS('August'),
N('September'), N('October'), N('November'), N('December') NS('September'), NS('October'), NS('November'), NS('December')
} }
-- Short month names -- Short month names
-- (must have same length as `calendar.month.names`) -- (must have same length as `calendar.month.names`)
calendar.month_names_short = { calendar.month_names_short = {
N('Jan'), N('Feb'), N('Mar'), N('Apr'), NS('Jan'), NS('Feb'), NS('Mar'), NS('Apr'),
N('May'), N('Jun'), N('Jul'), N('Aug'), NS('May'), NS('Jun'), NS('Jul'), NS('Aug'),
N('Sep'), N('Oct'), N('Nov'), N('Dec') NS('Sep'), NS('Oct'), NS('Nov'), NS('Dec')
} }
-- Long week day names -- Long week day names
-- (also determines the number of days in a week) -- (also determines the number of days in a week)
calendar.weekday_names = { calendar.weekday_names = {
N("Monday"), N("Tuesday"), N("Wednesday"), NS("Monday"), NS("Tuesday"), NS("Wednesday"),
N("Thursday"), N("Friday"), N("Saturday"), N("Sunday") NS("Thursday"), NS("Friday"), NS("Saturday"), NS("Sunday")
} }
-- Short week day names -- Short week day names
-- (must have same length as `calendar.weekday_names`) -- (must have same length as `calendar.weekday_names`)
calendar.weekday_names_short = { calendar.weekday_names_short = {
N("Mo"), N("Tu"), N("We"), N("Th"), N("Fr"), N("Sa"), N("Su") NS("Mo"), NS("Tu"), NS("We"), NS("Th"), NS("Fr"), NS("Sa"), NS("Su")
} }
-- Cardinal number of the week day that marks the beginning of a week -- Cardinal number of the week day that marks the beginning of a week