Skip to content

Commit

Permalink
update News, fix plural
Browse files Browse the repository at this point in the history
  • Loading branch information
cregouby committed Aug 14, 2024
1 parent 98cd4e9 commit 9a9b10f
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 7 deletions.
1 change: 1 addition & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
Binary file modified inst/po/fr/LC_MESSAGES/R-luz.mo
Binary file not shown.
8 changes: 4 additions & 4 deletions po/R-fr.po
Original file line number Diff line number Diff line change
@@ -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"
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions po/R-luz.pot
Original file line number Diff line number Diff line change
@@ -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 <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 9a9b10f

Please sign in to comment.