Skip to content

Commit

Permalink
i18n: init-db: join message pieces
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
vascool authored and gitster committed Jun 17, 2016
1 parent a1b467a commit c30364d
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 25 deletions.
17 changes: 10 additions & 7 deletions builtin/init-db.c
Original file line number Diff line number Diff line change
Expand Up @@ -397,13 +397,16 @@ int init_db(const char *template_dir, unsigned int flags)
if (!(flags & INIT_DB_QUIET)) {
int len = strlen(git_dir);

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

return 0;
Expand Down
46 changes: 28 additions & 18 deletions po/is.po
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,15 @@ msgid ""
msgstr ""
"Project-Id-Version: Git\n"
"Report-Msgid-Bugs-To: Git Mailing List <[email protected]>\n"
"POT-Creation-Date: 2010-09-20 14:44+0000\n"
"PO-Revision-Date: 2010-06-05 19:06 +0000\n"
"Last-Translator: Ævar Arnfjörð Bjarmason <[email protected]>\n"
"POT-Creation-Date: 2016-06-17 18:55+0000\n"
"PO-Revision-Date: 2016-06-17 19:17+0000\n"
"Last-Translator: Vasco Almeida <[email protected]>\n"
"Language-Team: Git Mailing List <[email protected]>\n"
"Language: is\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Poedit 1.8.5\n"

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

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

#: builtin/init-db.c:356
msgid "Reinitialized existing"
msgstr "Endurgerði"
#: builtin/init-db.c:403
#, c-format
msgid "Reinitialized existing Git repository in %s%s\n"
msgstr "Endurgerði Git lind í %s%s\n"

#: builtin/init-db.c:407
#, c-format
msgid "Initialized empty shared Git repository in %s%s\n"
msgstr "Bjó til tóma sameiginlega Git lind í %s%s\n"

#: builtin/init-db.c:408
#, c-format
msgid "Initialized empty Git repository in %s%s\n"
msgstr "Bjó til tóma Git lind í %s%s\n"

#~ msgid "Reinitialized existing"
#~ msgstr "Endurgerði"

#: builtin/init-db.c:356
msgid "Initialized empty"
msgstr "Bjó til tóma"
#~ msgid "Initialized empty"
#~ msgstr "Bjó til tóma"

#: builtin/init-db.c:357
msgid " shared"
msgstr " sameiginlega"
#~ msgid " shared"
#~ msgstr " sameiginlega"

0 comments on commit c30364d

Please sign in to comment.