From 6f726688b1e1d672af537657c4ec50a3862428a0 Mon Sep 17 00:00:00 2001 From: ache Date: Mon, 6 Sep 2021 20:28:07 +0200 Subject: Translate to french ! --- ui-blame.c | 4 ++-- ui-log.c | 8 ++++---- ui-refs.c | 14 +++++++------- ui-repolist.c | 6 +++--- ui-shared.c | 30 +++++++++++++++--------------- ui-tree.c | 10 +++++----- 6 files changed, 36 insertions(+), 36 deletions(-) diff --git a/ui-blame.c b/ui-blame.c index 03136f7..18f8fa2 100644 --- a/ui-blame.c +++ b/ui-blame.c @@ -147,9 +147,9 @@ static void print_object(const struct object_id *oid, const char *path, cgit_print_layout_start(); htmlf("blob: %s (", oid_to_hex(oid)); - cgit_plain_link("plain", NULL, NULL, ctx.qry.head, rev, path); + cgit_plain_link("Brute", NULL, NULL, ctx.qry.head, rev, path); html(") ("); - cgit_tree_link("tree", NULL, NULL, ctx.qry.head, rev, path); + cgit_tree_link("Arbre", NULL, NULL, ctx.qry.head, rev, path); html(")\n"); if (ctx.cfg.max_blob_size && size / 1024 > ctx.cfg.max_blob_size) { diff --git a/ui-log.c b/ui-log.c index 20774bf..6c47a16 100644 --- a/ui-log.c +++ b/ui-log.c @@ -459,8 +459,8 @@ void cgit_print_log(const char *tip, int ofs, int cnt, char *grep, char *pattern if (commit_graph) html(""); else - html("Age"); - html("Commit message"); + html("Date"); + html("Message de commit"); if (pager) { html(" ("); cgit_log_link(ctx.qry.showmsg ? "Collapse" : "Expand", NULL, @@ -470,9 +470,9 @@ void cgit_print_log(const char *tip, int ofs, int cnt, char *grep, char *pattern ctx.qry.follow); html(")"); } - html("Author"); + html("Auteur⋅e"); if (rev.graph) - html("Age"); + html("Date"); if (ctx.repo->enable_log_filecount) { html("Files"); columns++; diff --git a/ui-refs.c b/ui-refs.c index 456f610..fa16a11 100644 --- a/ui-refs.c +++ b/ui-refs.c @@ -85,9 +85,9 @@ static int print_branch(struct refinfo *ref) static void print_tag_header(void) { html("Tag" - "Download" - "Author" - "Age\n"); + "Télécharger" + "Auteur⋅e" + "Date\n"); } static int print_tag(struct refinfo *ref) @@ -148,10 +148,10 @@ void cgit_print_branches(int maxcount) struct reflist list; int i; - html("Branch" - "Commit message" - "Author" - "Age\n"); + html("Branche" + "Message de commit" + "Auteur⋅e" + "Date\n"); list.refs = NULL; list.alloc = list.count = 0; diff --git a/ui-repolist.c b/ui-repolist.c index 529a203..d149564 100644 --- a/ui-repolist.c +++ b/ui-repolist.c @@ -143,11 +143,11 @@ static void print_sort_header(const char *title, const char *sort) static void print_header(void) { html(""); - print_sort_header("Name", "name"); + print_sort_header("Nom", "name"); print_sort_header("Description", "desc"); if (ctx.cfg.enable_index_owner) - print_sort_header("Owner", "owner"); - print_sort_header("Idle", "idle"); + print_sort_header("Propriétaire", "owner"); + print_sort_header("Dernière modification", "idle"); if (ctx.cfg.enable_index_links) html("Links"); html("\n"); diff --git a/ui-shared.c b/ui-shared.c index acd8ab5..f1079fa 100644 --- a/ui-shared.c +++ b/ui-shared.c @@ -337,25 +337,25 @@ void cgit_summary_link(const char *name, const char *title, const char *class, void cgit_tag_link(const char *name, const char *title, const char *class, const char *tag) { - reporevlink("tag", name, title, class, tag, NULL, NULL); + reporevlink("Tag", name, title, class, tag, NULL, NULL); } void cgit_tree_link(const char *name, const char *title, const char *class, const char *head, const char *rev, const char *path) { - reporevlink("tree", name, title, class, head, rev, path); + reporevlink("Arbre", name, title, class, head, rev, path); } void cgit_plain_link(const char *name, const char *title, const char *class, const char *head, const char *rev, const char *path) { - reporevlink("plain", name, title, class, head, rev, path); + reporevlink("brute", name, title, class, head, rev, path); } void cgit_blame_link(const char *name, const char *title, const char *class, const char *head, const char *rev, const char *path) { - reporevlink("blame", name, title, class, head, rev, path); + reporevlink("Blâme", name, title, class, head, rev, path); } void cgit_log_link(const char *name, const char *title, const char *class, @@ -779,7 +779,7 @@ void cgit_print_docstart(void) } html(cgit_doctype); - html("\n"); + html("\n"); html("\n"); html(""); html_txt(ctx.page.title); @@ -1033,33 +1033,33 @@ void cgit_print_pageheader(void) html("<table class='tabs'><tr><td>\n"); if (ctx.env.authenticated && ctx.repo) { if (ctx.repo->readme.nr) - reporevlink("about", "about", NULL, + reporevlink("about", "À propos", NULL, hc("about"), ctx.qry.head, NULL, NULL); - cgit_summary_link("summary", NULL, hc("summary"), + cgit_summary_link("Sommaire", NULL, hc("summary"), ctx.qry.head); - cgit_refs_link("refs", NULL, hc("refs"), ctx.qry.head, + cgit_refs_link("Références", NULL, hc("refs"), ctx.qry.head, ctx.qry.oid, NULL); - cgit_log_link("log", NULL, hc("log"), ctx.qry.head, + cgit_log_link("Logs", NULL, hc("log"), ctx.qry.head, NULL, ctx.qry.vpath, 0, NULL, NULL, ctx.qry.showmsg, ctx.qry.follow); if (ctx.qry.page && !strcmp(ctx.qry.page, "blame")) cgit_blame_link("blame", NULL, hc("blame"), ctx.qry.head, ctx.qry.oid, ctx.qry.vpath); else - cgit_tree_link("tree", NULL, hc("tree"), ctx.qry.head, + cgit_tree_link("Arbre", NULL, hc("tree"), ctx.qry.head, ctx.qry.oid, ctx.qry.vpath); - cgit_commit_link("commit", NULL, hc("commit"), + cgit_commit_link("Commits", NULL, hc("commit"), ctx.qry.head, ctx.qry.oid, ctx.qry.vpath); - cgit_diff_link("diff", NULL, hc("diff"), ctx.qry.head, + cgit_diff_link("Diff", NULL, hc("diff"), ctx.qry.head, ctx.qry.oid, ctx.qry.oid2, ctx.qry.vpath); if (ctx.repo->max_stats) - cgit_stats_link("stats", NULL, hc("stats"), + cgit_stats_link("Stats", NULL, hc("stats"), ctx.qry.head, ctx.qry.vpath); if (ctx.repo->homepage) { html("<a href='"); html_attr(ctx.repo->homepage); - html("'>homepage</a>"); + html("'>Accueil</a>"); } html("</td><td class='form'>"); html("<form class='right' method='get' action='"); @@ -1086,7 +1086,7 @@ void cgit_print_pageheader(void) char *currenturl = cgit_currenturl(); site_link(NULL, "index", NULL, hc("repolist"), NULL, NULL, 0, 1); if (ctx.cfg.root_readme) - site_link("about", "about", NULL, hc("about"), + site_link("about", "À propos", NULL, hc("about"), NULL, NULL, 0, 1); html("</td><td class='form'>"); html("<form method='get' action='"); diff --git a/ui-tree.c b/ui-tree.c index b61f6f5..9560a5c 100644 --- a/ui-tree.c +++ b/ui-tree.c @@ -108,7 +108,7 @@ static void print_object(const struct object_id *oid, const char *path, const ch cgit_print_layout_start(); htmlf("blob: %s (", oid_to_hex(oid)); - cgit_plain_link("plain", NULL, NULL, ctx.qry.head, + cgit_plain_link("Brute", NULL, NULL, ctx.qry.head, rev, path); if (ctx.repo->enable_blame) { html(") ("); @@ -240,17 +240,17 @@ static int ls_item(const struct object_id *oid, struct strbuf *base, htmlf("</td><td class='ls-size'>%li</td>", size); html("<td>"); - cgit_log_link("log", NULL, "button", ctx.qry.head, + cgit_log_link("Log", NULL, "button", ctx.qry.head, walk_tree_ctx->curr_rev, fullpath.buf, 0, NULL, NULL, ctx.qry.showmsg, 0); if (ctx.repo->max_stats) - cgit_stats_link("stats", NULL, "button", ctx.qry.head, + cgit_stats_link("Stats", NULL, "button", ctx.qry.head, fullpath.buf); if (!S_ISGITLINK(mode)) - cgit_plain_link("plain", NULL, "button", ctx.qry.head, + cgit_plain_link("Brute", NULL, "button", ctx.qry.head, walk_tree_ctx->curr_rev, fullpath.buf); if (!S_ISDIR(mode) && ctx.repo->enable_blame) - cgit_blame_link("blame", NULL, "button", ctx.qry.head, + cgit_blame_link("Blâme", NULL, "button", ctx.qry.head, walk_tree_ctx->curr_rev, fullpath.buf); html("</td></tr>\n"); free(name); -- cgit v1.2.3