diff --git a/NEWS.md b/NEWS.md index b6e9b40f..eca19ce0 100644 --- a/NEWS.md +++ b/NEWS.md @@ -4,6 +4,7 @@ * Added support for torch iterable datasets. (#135) * Fixed a bug when trying to resume models trained with learning rate schedulers. (#137) * Added support for learning rate schedulers that take the current loss as arguments. (#140) +* Add French translation of messages. (@cregouby #148) # luz 0.4.0 diff --git a/R/utils.R b/R/utils.R index 9f6a3350..7062eb44 100644 --- a/R/utils.R +++ b/R/utils.R @@ -42,7 +42,7 @@ get_method <- function(x, method) { get_forward <- function(x) { forward <- get_method(x, "forward") if (is.null(forward)) { - cli::cli_abort("No method {.val forward} found.") + cli::cli_abort("No {.val forward} method found.") } forward } diff --git a/inst/po/fr/LC_MESSAGES/R-luz.mo b/inst/po/fr/LC_MESSAGES/R-luz.mo index 9aaece51..0c225b14 100644 Binary files a/inst/po/fr/LC_MESSAGES/R-luz.mo and b/inst/po/fr/LC_MESSAGES/R-luz.mo differ diff --git a/po/R-fr.po b/po/R-fr.po index 674b6c9c..6a7213e3 100644 --- a/po/R-fr.po +++ b/po/R-fr.po @@ -1,8 +1,8 @@ msgid "" msgstr "" "Project-Id-Version: luz 0.4.0.9002\n" -"POT-Creation-Date: 2024-08-14 15:22+0200\n" -"PO-Revision-Date: 2024-08-14 15:23+0200\n" +"POT-Creation-Date: 2024-08-14 19:43+0200\n" +"PO-Revision-Date: 2024-08-14 19:44+0200\n" "Last-Translator: \n" "Language-Team: \n" "Language: fr\n" @@ -44,7 +44,7 @@ msgstr "value_error" #: as_dataloader.R:99 msgid "Can't convert object with class '%s' to a torch dataset." msgstr "" -"Impossible de convertir les objet de classe '%s' en jeu de donnée `torch::" +"Impossible de convertir les objets de classe '%s' en jeu de donnée `torch::" "dataset`." #: callbacks-monitor-metrics.R:24 @@ -293,7 +293,7 @@ msgid "to it, but doesn't implement the {.fn load_state_dict} method." msgstr "mais il lui manque la méthode {.fn load_state_dict}." #: utils.R:45 -msgid "No method {.val forward} found." +msgid "No {.val forward} method found." msgstr "La méthode {.val forward} est manquante." #: utils.R:128 diff --git a/po/R-luz.pot b/po/R-luz.pot index 8454157e..eb9bddc2 100644 --- a/po/R-luz.pot +++ b/po/R-luz.pot @@ -1,7 +1,7 @@ msgid "" msgstr "" "Project-Id-Version: luz 0.4.0.9002\n" -"POT-Creation-Date: 2024-08-14 15:22+0200\n" +"POT-Creation-Date: 2024-08-14 19:43+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -255,7 +255,7 @@ msgid "to it, but doesn't implement the {.fn load_state_dict} method." msgstr "" #: utils.R:45 -msgid "No method {.val forward} found." +msgid "No {.val forward} method found." msgstr "" #: utils.R:128