-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from cregouby/translation/fr
add FR translation
- Loading branch information
Showing
7 changed files
with
209 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ Title: Hugging Face Hub Interface | |
Version: 0.1.1.9000 | ||
Authors@R: c( | ||
person("Daniel", "Falbel", , "[email protected]", role = c("aut", "cre")), | ||
person("Regouby", "Christophe", , "[email protected]", c("ctb")), | ||
person(family = "Posit", role = c("cph")) | ||
) | ||
Description: Provides functionality to download and cache files from 'Hugging Face Hub' <https://huggingface.co/models>. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: hfhub 0.1.1.9000\n" | ||
"POT-Creation-Date: 2024-09-04 19:28+0200\n" | ||
"PO-Revision-Date: 2024-09-04 19:49+0200\n" | ||
"Last-Translator: \n" | ||
"Language-Team: \n" | ||
"Language: fr\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: 8bit\n" | ||
"X-Generator: Poedit 3.4.3\n" | ||
|
||
#: hub_download.R:47 | ||
msgid "" | ||
"Distant resource does not seem to be on huggingface.co (missing commit " | ||
"header)." | ||
msgstr "" | ||
"La ressource ne semble pas être disponible sur huggingface.co (début de " | ||
"commit manquant)." | ||
|
||
#: hub_download.R:52 | ||
msgid "" | ||
"Distant resource does not have an ETag, we won't be able to reliably ensure " | ||
"reproducibility." | ||
msgstr "" | ||
"La ressource distante n'a pas d'ETag, il n'y aura donc pas de garantie de " | ||
"reproductibilité." | ||
|
||
#: hub_download.R:94 | ||
msgid "Cannot find the requested files in the disk cache and" | ||
msgstr "" | ||
"Impossible de trouver les fichiers demandés dans le cache du disque et" | ||
|
||
#: hub_download.R:95 | ||
msgid "outgoing traffic has been disabled. To enable hf.co look-ups" | ||
msgstr "le trafic sortant a été désactivé. Pour activer les requêtes hf.co" | ||
|
||
#: hub_download.R:96 | ||
msgid "and downloads online, set 'local_files_only' to False." | ||
msgstr "" | ||
"et les téléchargements en ligne, définissez 'local_files_only = FALSE'." | ||
|
||
#: hub_download.R:100 | ||
msgid "Connection error, and we cannot find the requested files in" | ||
msgstr "" | ||
"Erreur de connexion, et impossible de trouver les fichiers demandés dans" | ||
|
||
#: hub_download.R:101 | ||
msgid "the disk cache. Please try again or make sure your Internet" | ||
msgstr "" | ||
"le cache du disque. Veuillez réessayer ou vérifiez que votre connexion " | ||
"Internet" | ||
|
||
#: hub_download.R:102 | ||
msgid "connection is on." | ||
msgstr "est activée." | ||
|
||
#: hub_download.R:107 | ||
msgid "etag must have been retrieved from server" | ||
msgstr "l'ETag doit être téléchargé depuis le serveur." | ||
|
||
#: hub_download.R:108 | ||
msgid "commit_hash must have been retrieved from server" | ||
msgstr "'commit_hash' doit être téléchargé du serveur." | ||
|
||
#: hub_download.R:156 | ||
msgid "Error downloading from {.url {url}}" | ||
msgstr "Erreur de téléchargement depuis {.url {url}}" | ||
|
||
#: hub_download.R:170 | ||
msgid "https://huggingface.co/{repo_id}/resolve/{revision}/{filename}" | ||
msgstr "https://huggingface.co/{repo_id}/resolve/{revision}/{filename}" | ||
|
||
#: hub_download.R:172 | ||
msgid "" | ||
"https://huggingface.co/{repo_type}s/{repo_id}/resolve/{revision}/{filename}" | ||
msgstr "" | ||
"https://huggingface.co/{repo_type}s/{repo_id}/resolve/{revision}/{filename}" | ||
|
||
#: hub_download.R:185 | ||
msgid "{repo_type}s{REPO_ID_SEPARATOR()}{repo_id}" | ||
msgstr "{repo_type}s{REPO_ID_SEPARATOR()}{repo_id}" | ||
|
||
#: hub_info.R:8 | ||
msgid "https://huggingface.co/api/models/{repo_id}" | ||
msgstr "https://huggingface.co/api/models/{repo_id}" | ||
|
||
#: hub_info.R:10 | ||
msgid "https://huggingface.co/api/{repo_type}s/{repo_id}" | ||
msgstr "https://huggingface.co/api/{repo_type}s/{repo_id}" | ||
|
||
#: hub_info.R:14 | ||
msgid "{path}/revision/{revision}" | ||
msgstr "{path}/revision/{revision}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: hfhub 0.1.1.9000\n" | ||
"POT-Creation-Date: 2024-09-04 19:28+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" | ||
"Language: \n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: 8bit\n" | ||
|
||
#: hub_download.R:47 | ||
msgid "" | ||
"Distant resource does not seem to be on huggingface.co (missing commit " | ||
"header)." | ||
msgstr "" | ||
|
||
#: hub_download.R:52 | ||
msgid "" | ||
"Distant resource does not have an ETag, we won't be able to reliably ensure " | ||
"reproducibility." | ||
msgstr "" | ||
|
||
#: hub_download.R:94 | ||
msgid "Cannot find the requested files in the disk cache and" | ||
msgstr "" | ||
|
||
#: hub_download.R:95 | ||
msgid "outgoing traffic has been disabled. To enable hf.co look-ups" | ||
msgstr "" | ||
|
||
#: hub_download.R:96 | ||
msgid "and downloads online, set 'local_files_only' to False." | ||
msgstr "" | ||
|
||
#: hub_download.R:100 | ||
msgid "Connection error, and we cannot find the requested files in" | ||
msgstr "" | ||
|
||
#: hub_download.R:101 | ||
msgid "the disk cache. Please try again or make sure your Internet" | ||
msgstr "" | ||
|
||
#: hub_download.R:102 | ||
msgid "connection is on." | ||
msgstr "" | ||
|
||
#: hub_download.R:107 | ||
msgid "etag must have been retrieved from server" | ||
msgstr "" | ||
|
||
#: hub_download.R:108 | ||
msgid "commit_hash must have been retrieved from server" | ||
msgstr "" | ||
|
||
#: hub_download.R:156 | ||
msgid "Error downloading from {.url {url}}" | ||
msgstr "" | ||
|
||
#: hub_download.R:170 | ||
msgid "https://huggingface.co/{repo_id}/resolve/{revision}/{filename}" | ||
msgstr "" | ||
|
||
#: hub_download.R:172 | ||
msgid "" | ||
"https://huggingface.co/{repo_type}s/{repo_id}/resolve/{revision}/{filename}" | ||
msgstr "" | ||
|
||
#: hub_download.R:185 | ||
msgid "{repo_type}s{REPO_ID_SEPARATOR()}{repo_id}" | ||
msgstr "" | ||
|
||
#: hub_info.R:8 | ||
msgid "https://huggingface.co/api/models/{repo_id}" | ||
msgstr "" | ||
|
||
#: hub_info.R:10 | ||
msgid "https://huggingface.co/api/{repo_type}s/{repo_id}" | ||
msgstr "" | ||
|
||
#: hub_info.R:14 | ||
msgid "{path}/revision/{revision}" | ||
msgstr "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
test_that("R-level cli_abort messages are correctly translated in FR", { | ||
skip_if_no_token() | ||
withr::with_envvar(c(HUGGINGFACE_HUB_CACHE = tempdir()), { | ||
try({ | ||
withr::with_language( | ||
lang = "fr", | ||
expect_error( | ||
hub_download( | ||
repo_id = "dfalbel/test-hfh", | ||
filename = ".gitattributes", | ||
force_download = TRUE | ||
), | ||
regexp = "La ressource ne semble pas être disponible sur", | ||
) | ||
|
||
) | ||
}) | ||
}) | ||
|
||
}) |