mirror of
https://github.com/agdamsbo/FreesearchR.git
synced 2026-06-19 04:27:30 +02:00
updated translations
This commit is contained in:
parent
545874f71b
commit
44d13eda89
7 changed files with 16 additions and 9 deletions
|
|
@ -1,5 +1,12 @@
|
|||
|
||||
|
||||
########
|
||||
#### Current file: /Users/au301842/FreesearchR/app/global_vars.R
|
||||
########
|
||||
|
||||
trans_path <- here::here("inst/translations")
|
||||
|
||||
|
||||
########
|
||||
#### Current file: /Users/au301842/FreesearchR/app/libs.R
|
||||
########
|
||||
|
|
@ -40,7 +47,7 @@ library(rlang)
|
|||
library(shiny.i18n)
|
||||
|
||||
## Translation init
|
||||
i18n <- shiny.i18n::Translator$new(translation_csvs_path = here::here("inst/translations"))
|
||||
i18n <- shiny.i18n::Translator$new(translation_csvs_path = trans_path)
|
||||
|
||||
i18n$set_translation_language("en")
|
||||
|
||||
|
|
@ -4253,7 +4260,6 @@ import_file_server <- function(id,
|
|||
btn_show_data = TRUE,
|
||||
show_data_in = c("popup", "modal"),
|
||||
trigger_return = c("button", "change"),
|
||||
file_extensions_text = paste(c(".csv", ".txt", ".xls", ".xlsx", ".rds", ".fst", ".sas7bdat", ".sav"),collapse = ", "),
|
||||
return_class = c("data.frame", "data.table", "tbl_df", "raw"),
|
||||
reset = reactive(NULL)) {
|
||||
read_fns <- list(
|
||||
|
|
@ -11213,7 +11219,6 @@ server <- function(input, output, session) {
|
|||
id = "file_import",
|
||||
show_data_in = "popup",
|
||||
trigger_return = "change",
|
||||
file_extensions_text = sentence_paste(c(".csv", ".tsv", ".txt", ".xls", ".xlsx", ".rds", ".ods", ".dta"), i18n$t("or")),
|
||||
return_class = "data.frame"
|
||||
)
|
||||
|
||||
|
|
@ -11518,7 +11523,8 @@ server <- function(input, output, session) {
|
|||
list(
|
||||
rv$data,
|
||||
rv$data_filtered,
|
||||
rv$data_variables
|
||||
rv$data_variables,
|
||||
input$language_select
|
||||
),
|
||||
{
|
||||
if (!is.null(rv$data_filtered)) {
|
||||
|
|
|
|||
|
|
@ -91,7 +91,6 @@
|
|||
"No data to display.","No data to display."
|
||||
"Data successfully updated!","Data successfully updated!"
|
||||
"Only include variables missing less observations than the specified percentage. At 0, only complete variables are included; at 100, all variables are included.","Only include variables missing less observations than the specified percentage. At 0, only complete variables are included; at 100, all variables are included."
|
||||
"or","eller"
|
||||
"You removed {p_out} % of observations.","Du har fjernet {p_out} % af observationerne."
|
||||
"You removed {p_out} % of variables.","Du har fjernet {p_out} % af variablerne."
|
||||
"You can import {file_extensions_text} files","Du kan vælge mellem disse filtyper: {file_extensions_text}."
|
||||
|
|
|
|||
|
|
|
@ -93,7 +93,6 @@
|
|||
"Only include variables missing less observations than the specified percentage. At 0, only complete variables are included; at 100, all variables are included.","Only include variables missing less observations than the specified percentage. At 0, only complete variables are included; at 100, all variables are included."
|
||||
"You removed {p_out} % of observations.","You removed {p_out} % of observations."
|
||||
"You removed {p_out} % of variables.","You removed {p_out} % of variables."
|
||||
"or","or"
|
||||
"You can import {file_extensions_text} files","You can import {file_extensions_text} files"
|
||||
"You can choose between these file types:","You can choose between these file types:"
|
||||
"Rows to skip before reading data:","Rows to skip before reading data:"
|
||||
|
|
|
|||
|
Loading…
Add table
Add a link
Reference in a new issue