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`:
{ N("@1, year @2"), "mymod", "%b", "%Y" }
{ NS("@1, year @2"), "mymod", "%b", "%Y" }
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.

View File

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