Skip to content

Commit

Permalink
object_settings.cpp: Fix License translation and add Spanish translation
Browse files Browse the repository at this point in the history
  • Loading branch information
James De Ricco committed Dec 19, 2023
1 parent b5492fc commit b85fb20
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions data/locale/es.po
Original file line number Diff line number Diff line change
Expand Up @@ -3115,6 +3115,11 @@ msgstr "No se puede borrar el nivel en el que estás trabajando."
msgid "contributed by %s"
msgstr "aportado por %s"

#: src/editor/object_settings.cpp:320
#, c-format
msgid "by %s"
msgstr "de %s"

#: src/supertux/levelintro.cpp:169
msgid "Badguys killed"
msgstr "Malotes destruidos"
Expand Down
2 changes: 1 addition & 1 deletion src/editor/object_settings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ ObjectSettings::add_music(const std::string& text, std::string* value_ptr,
const std::string filename = FileSystem::basename(path);
const std::string title_or_filename = title.empty() ? filename : "\"" + title + "\""; // assumes path is just a filename
const std::string written_by = fmt::format(fmt::runtime(_("by {}")), author);
const std::string license_statement = fmt::format(fmt::runtime(_("License: {}")), license);
const std::string license_statement = fmt::format(fmt::runtime(_("License") + ": {}"), license);

const std::string help_text =
title_or_filename + (author.empty() ? "" : "\n" + written_by)
Expand Down

0 comments on commit b85fb20

Please sign in to comment.