From 72fc307887f3b40cdd0421468fee94087f27ef72 Mon Sep 17 00:00:00 2001 From: pradeep dhane Date: Sun, 9 Feb 2025 23:35:00 +0530 Subject: [PATCH 1/2] Create data.table.code-workspace --- data.table.code-workspace | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 data.table.code-workspace diff --git a/data.table.code-workspace b/data.table.code-workspace new file mode 100644 index 000000000..40fe02330 --- /dev/null +++ b/data.table.code-workspace @@ -0,0 +1,10 @@ +{ + "folders": [ + { + "path": "." + }, + { + "path": "." + } + ] +} \ No newline at end of file From 39317bb38086195961684437fd544898bb6a9be9 Mon Sep 17 00:00:00 2001 From: pradeep dhane Date: Sun, 9 Feb 2025 23:40:41 +0530 Subject: [PATCH 2/2] solving issue The Pl_() translation macro was not recognized by issue no-6794. solving this issue --- src/po.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/po.h b/src/po.h index 74b2208e0..96e98d793 100644 --- a/src/po.h +++ b/src/po.h @@ -1,9 +1,10 @@ #ifdef ENABLE_NLS #include #define _(String) dgettext("data.table", String) -// NB: flip argument order to match that of R's ngettext() #define Pl_(n, String1, StringPlural) dngettext("data.table", String1, StringPlural, n) +#define Pl_Extract(String1, StringPlural) (String1 "\0" StringPlural) // Helps extract both strings #else #define _(String) (String) #define Pl_(n, String1, StringPlural) ((n) == 1 ? (String1) : (StringPlural)) +#define Pl_Extract(String1, StringPlural) (String1 "\0" StringPlural) // Consistent behavior #endif