Skip to content

Commit c30364d

Browse files
vascoolgitster
authored andcommitted
i18n: init-db: join message pieces
Join message displayed during repository initialization in one entire sentence. That would improve translations since it's easier translate an entire sentence than translating each piece. Update Icelandic translation to reflect the changes. The Icelandic translation of these messages is used with test t0204-gettext-reencode-sanity.sh and not updating the translation would fail the test. Signed-off-by: Vasco Almeida <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent a1b467a commit c30364d

File tree

2 files changed

+38
-25
lines changed

2 files changed

+38
-25
lines changed

builtin/init-db.c

+10-7
Original file line numberDiff line numberDiff line change
@@ -397,13 +397,16 @@ int init_db(const char *template_dir, unsigned int flags)
397397
if (!(flags & INIT_DB_QUIET)) {
398398
int len = strlen(git_dir);
399399

400-
/* TRANSLATORS: The first '%s' is either "Reinitialized
401-
existing" or "Initialized empty", the second " shared" or
402-
"", and the last '%s%s' is the verbatim directory name. */
403-
printf(_("%s%s Git repository in %s%s\n"),
404-
reinit ? _("Reinitialized existing") : _("Initialized empty"),
405-
get_shared_repository() ? _(" shared") : "",
406-
git_dir, len && git_dir[len-1] != '/' ? "/" : "");
400+
if (reinit)
401+
printf(get_shared_repository()
402+
? _("Reinitialized existing shared Git repository in %s%s\n")
403+
: _("Reinitialized existing Git repository in %s%s\n"),
404+
git_dir, len && git_dir[len-1] != '/' ? "/" : "");
405+
else
406+
printf(get_shared_repository()
407+
? _("Initialized empty shared Git repository in %s%s\n")
408+
: _("Initialized empty Git repository in %s%s\n"),
409+
git_dir, len && git_dir[len-1] != '/' ? "/" : "");
407410
}
408411

409412
return 0;

po/is.po

+28-18
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,15 @@ msgid ""
77
msgstr ""
88
"Project-Id-Version: Git\n"
99
"Report-Msgid-Bugs-To: Git Mailing List <[email protected]>\n"
10-
"POT-Creation-Date: 2010-09-20 14:44+0000\n"
11-
"PO-Revision-Date: 2010-06-05 19:06 +0000\n"
12-
"Last-Translator: Ævar Arnfjörð Bjarmason <[email protected]>\n"
10+
"POT-Creation-Date: 2016-06-17 18:55+0000\n"
11+
"PO-Revision-Date: 2016-06-17 19:17+0000\n"
12+
"Last-Translator: Vasco Almeida <[email protected]>\n"
1313
"Language-Team: Git Mailing List <[email protected]>\n"
1414
"Language: is\n"
1515
"MIME-Version: 1.0\n"
1616
"Content-Type: text/plain; charset=UTF-8\n"
1717
"Content-Transfer-Encoding: 8bit\n"
18+
"X-Generator: Poedit 1.8.5\n"
1819

1920
#. TRANSLATORS: This is a test. You don't need to translate it.
2021
#: t/t0200/test.c:5
@@ -72,22 +73,31 @@ msgstr "TILRAUN: Perl tilraunastrengur"
7273
msgid "TEST: A Perl test variable %s"
7374
msgstr "TILRAUN: Perl tilraunastrengur með breytunni %s"
7475

75-
#. TRANSLATORS: The first '%s' is either "Reinitialized
76-
#. existing" or "Initialized empty", the second " shared" or
77-
#. "", and the last '%s%s' is the verbatim directory name.
78-
#: builtin/init-db.c:355
76+
#: builtin/init-db.c:402
7977
#, c-format
80-
msgid "%s%s Git repository in %s%s\n"
81-
msgstr "%s%s Git lind í %s%s\n"
78+
msgid "Reinitialized existing shared Git repository in %s%s\n"
79+
msgstr "Endurgerði Git lind í %s%s\n"
8280

83-
#: builtin/init-db.c:356
84-
msgid "Reinitialized existing"
85-
msgstr "Endurgerði"
81+
#: builtin/init-db.c:403
82+
#, c-format
83+
msgid "Reinitialized existing Git repository in %s%s\n"
84+
msgstr "Endurgerði Git lind í %s%s\n"
85+
86+
#: builtin/init-db.c:407
87+
#, c-format
88+
msgid "Initialized empty shared Git repository in %s%s\n"
89+
msgstr "Bjó til tóma sameiginlega Git lind í %s%s\n"
90+
91+
#: builtin/init-db.c:408
92+
#, c-format
93+
msgid "Initialized empty Git repository in %s%s\n"
94+
msgstr "Bjó til tóma Git lind í %s%s\n"
95+
96+
#~ msgid "Reinitialized existing"
97+
#~ msgstr "Endurgerði"
8698

87-
#: builtin/init-db.c:356
88-
msgid "Initialized empty"
89-
msgstr "Bjó til tóma"
99+
#~ msgid "Initialized empty"
100+
#~ msgstr "Bjó til tóma"
90101

91-
#: builtin/init-db.c:357
92-
msgid " shared"
93-
msgstr " sameiginlega"
102+
#~ msgid " shared"
103+
#~ msgstr " sameiginlega"

0 commit comments

Comments
 (0)