(v3.0.0.9001) the first fixes

This commit is contained in:
dr. M.S. (Matthijs) Berends committed 2025-06-04 13:10:20 +02:00
1 parent 1710e220dd
commit 753f0e1ef9
5 files changed
+23 -7

No files matched your search

+5
View File
@@ -258,6 +258,11 @@ translate_into_language <- function(from,
return(from)
}
if (only_affect_ab_names == TRUE) {
df_trans$pattern[df_trans$regular_expr == TRUE] <- paste0(df_trans$pattern[df_trans$regular_expr == TRUE], "$")
df_trans$pattern[df_trans$regular_expr == TRUE] <- gsub("$$", "$", df_trans$pattern[df_trans$regular_expr == TRUE], fixed = TRUE)
}
lapply(
# starting with longest pattern, since more general translations are shorter, such as 'Group'
order(nchar(df_trans$pattern), decreasing = TRUE),