Skip to content

Commit

Permalink
Update PT translations !build !macos
Browse files Browse the repository at this point in the history
  • Loading branch information
rsubtil committed Sep 6, 2023
1 parent 6fc1eea commit 8f2488d
Show file tree
Hide file tree
Showing 90 changed files with 765,453 additions and 912,421 deletions.
4 changes: 2 additions & 2 deletions client/client_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -328,11 +328,11 @@ int client_main(int argc, char *argv[])

init_nls();
#ifdef ENABLE_NLS
(void) bindtextdomain("freeciv21-nations", get_locale_dir());
(void) bindtextdomain("lunar_gambit-nations", get_locale_dir());
#endif
init_character_encodings(gui_character_encoding, gui_use_transliteration);
#ifdef ENABLE_NLS
bind_textdomain_codeset("freeciv21-nations", get_internal_encoding());
bind_textdomain_codeset("lunar_gambit-nations", get_internal_encoding());
#endif

QCommandLineParser parser;
Expand Down
2 changes: 1 addition & 1 deletion client/page_network.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ page_network::page_network(QWidget *parent, fc_client *gui)
header->setSectionResizeMode(0, QHeaderView::Stretch);
header->setStretchLastSection(true);

ui.lhost->setText(_("Connect"));
ui.lhost->setText(_("Address"));
ui.lport->setText(_("Port"));
ui.lname->setText(_("Username"));
ui.lpass->setText(_("Password"));
Expand Down
18 changes: 9 additions & 9 deletions client/views/view_government.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,18 +101,18 @@ void audit_button::set_audit_info(struct government_audit_info *info)
std::string type;
switch (info->consequence) {
case CONSEQUENCE_GOLD:
type = "gold";
type = _("gold");
break;
case CONSEQUENCE_SCIENCE:
type = "science";
type = _("science");
break;
case CONSEQUENCE_MATERIALS:
type = "materials";
type = _("materials");
break;
}
char timestr[64];
time_t now = info->timestamp;
strftime(timestr, sizeof(timestr), "%d/%m at %H:%M:%S", localtime(&now));
strftime(timestr, sizeof(timestr), _("%d/%m at %H:%M:%S"), localtime(&now));
setText(QString(_("%1 vs %2\n%3 stolen\n[%4]"))
.arg(accuser_name.c_str())
.arg(accused_name.c_str())
Expand Down Expand Up @@ -499,7 +499,7 @@ void government_report::confirm_audit_sabotage_selected(
a_audit_confirm->setStandardButtons(QMessageBox::Cancel | QMessageBox::Yes);
a_audit_confirm->setDefaultButton(QMessageBox::Cancel);
a_audit_confirm->set_text_title(
QString("Are you sure you want to accuse %1?\nYou'll need to successfully convince the remaining players that you're right, or you may be penalized.\n").arg(player),
QString(_("Are you sure you want to accuse %1?\nYou'll need to successfully convince the remaining players that you're right, or you may be penalized.\n")).arg(player),
_("Accusation")
);
QObject::connect(a_audit_confirm, &hud_message_box::finished, [=](int result) {
Expand Down Expand Up @@ -565,18 +565,18 @@ void government_report::update_audit_screen(int id)
std::string type;
switch(curr_audit->consequence) {
case CONSEQUENCE_GOLD:
type = "gold";
type = _("gold");
break;
case CONSEQUENCE_SCIENCE:
type = "science";
type = _("science");
break;
case CONSEQUENCE_MATERIALS:
type = "materials";
type = _("materials");
break;
}
char timestr[64];
time_t now = curr_audit->timestamp;
strftime(timestr, sizeof(timestr), "%d/%m at %H:%M:%S", localtime(&now));
strftime(timestr, sizeof(timestr), _("%d/%m at %H:%M:%S"), localtime(&now));

a_description->setText(QString(_("%1 vs %2\n%3 stolen on %4"))
.arg(accuser_name.c_str())
Expand Down
6 changes: 3 additions & 3 deletions cmake/FreecivDependencies.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,11 @@ if(FREECIV_ENABLE_NLS)
set(GettextTranslate_POT_BINARY TRUE)
add_subdirectory(translations/core)
add_subdirectory(translations/nations)
add_dependencies(freeciv_translations freeciv21-core.pot-update)
add_dependencies(freeciv_translations freeciv21-nations.pot-update)
add_dependencies(freeciv_translations lunar_gambit-core.pot-update)
add_dependencies(freeciv_translations lunar_gambit-nations.pot-update)
if (FREECIV_BUILD_TOOLS EQUAL ON)
add_subdirectory(translations/ruledit)
add_dependencies(ruledit_translations freeciv21-ruledit.pot-update)
add_dependencies(ruledit_translations lunar_gambit-ruledit.pot-update)
endif()
add_dependencies(freeciv_translations update-po)
add_dependencies(freeciv_translations update-gmo)
Expand Down
49 changes: 10 additions & 39 deletions data/default/buildings.ruleset
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,7 @@ obsolete_by =
build_cost = 65535
upkeep = 0
sabotage = 0
helptext = _("\
The city will produce nothing.\
")
helptext = _("The city will produce nothing.")

[building_research_center]
name = _("Research Center")
Expand All @@ -96,10 +94,7 @@ obsolete_by =
build_cost = 180
upkeep = 1
sabotage = 0
helptext = _("\
A Research Center gives more space for your scientists to work,\
improving your base's science production by 1.\
")
helptext = _("A Research Center gives more space for your scientists to work, improving your base's science production by 1.")

[building_investment_center]
name = _("Investment Center")
Expand All @@ -116,10 +111,7 @@ obsolete_by =
build_cost = 180
upkeep = 0
sabotage = 0
helptext = _("\
An Investment Center gives more space for your bankers to work,\
improving your base's gold production by 1.\
")
helptext = _("An Investment Center gives more space for your bankers to work, improving your base's gold production by 1.")

[building_logistics_center]
name = _("Logistics Center")
Expand All @@ -136,10 +128,7 @@ obsolete_by =
build_cost = 180
upkeep = 1
sabotage = 0
helptext = _("\
A Logistics Center gives more space for your engineers to work,\
improving your base's material production by 1.\
")
helptext = _("A Logistics Center gives more space for your engineers to work, improving your base's material production by 1.")

[building_rnd]
name = _("Research & Development Division")
Expand All @@ -156,10 +145,7 @@ obsolete_by =
build_cost = 300
upkeep = 1
sabotage = 0
helptext = _("\
Establishes a dedicated Research & Development division,\
improving your base's science production by 2.\
")
helptext = _("Establishes a dedicated Research & Development division, improving your base's science production by 2.")

[building_factory]
name = _("Factory")
Expand All @@ -176,10 +162,7 @@ obsolete_by =
build_cost = 300
upkeep = 1
sabotage = 0
helptext = _("\
Gives your engineers a dedicated Factory to work under, \
improving your base's material production by 2.\
")
helptext = _("Gives your engineers a dedicated Factory to work under, improving your base's material production by 2.")

[building_salary_boost]
name = _("Salary Boosts")
Expand All @@ -197,10 +180,7 @@ obsolete_by =
build_cost = 60
upkeep = 0
sabotage = 0
helptext = _("\
Doubles the salaries from this base's units. This will double the unit maintenance \
cost from this base, but will improve the base's loyalty by 100%.\
")
helptext = _("Doubles the salaries from this base's units. This will double the unit maintenance cost from this base, but will improve the base's loyalty by 100%.")

[building_stock_exchange]
name = _("Stock Exchange")
Expand All @@ -218,10 +198,7 @@ obsolete_by =
build_cost = 3
upkeep = 0
sabotage = 0
helptext = _("\
Establishes a Stock Exchange inside your base, \
improving your base's gold production by 3.\
")
helptext = _("Establishes a Stock Exchange inside your base, improving your base's gold production by 3.")

[building_salary_cuts]
name = _("Salary Cuts")
Expand All @@ -239,10 +216,7 @@ obsolete_by =
build_cost = 60
upkeep = 0
sabotage = 0
helptext = _("\
Cuts all salaries from this base's units. This will remove all unit maintenance \
costs from this base, but will reduce the base's loyalty by 75%.\
")
helptext = _("Cuts all salaries from this base's units. This will remove all unit maintenance costs from this base, but will reduce the base's loyalty by 75%.")

[building_space_program]
name = _("Space Program")
Expand All @@ -259,7 +233,4 @@ obsolete_by =
build_cost = 600
upkeep = 2
sabotage = 0
helptext = _("\
Establishes a formal Space Program in your base, \
increasing your base's science output by 3.\
")
helptext = _("Establishes a formal Space Program in your base, increasing your base's science output by 3.")
2 changes: 1 addition & 1 deletion data/default/nations.ruleset
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ init_buildings=""
init_units=""

[nation_blue]
name=_("blue")
name=_("Blue")
plural=_("?plural:Blue")
legend=_("The Sultanate of Aceh located on the western tip of the island of\
Sumatra was a regional power in the 16th and 17th centuries, controlling\
Expand Down
4 changes: 2 additions & 2 deletions data/default/techs.ruleset
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ cost = 800
flags = ""
graphic = "a.alphabet"
graphic_alt = "-"
helptext = _("Allows you to trade resources with any other player (provided they have researched this too).")
helptext = _("Allows you to trade resources and bases with any other player (provided they have researched this too).")

[advance_venture_capital]
name = _("Venture Capital")
Expand Down Expand Up @@ -313,7 +313,7 @@ cost = 13500
flags = ""
graphic = "a.alphabet"
graphic_alt = "-"
helptext = _("Increases spies' view range by 2 tile.")
helptext = _("Increases all units' view range by 2 tiles.")

[advance_inflation]
name = _("Inflation")
Expand Down
8 changes: 4 additions & 4 deletions data/default/units.ruleset
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ attack = 0
defense = 1
hitpoints = 10
firepower = 1
move_rate = 1.0
move_rate = 0.095
vision_radius_sq = 2
transport_cap = 0
fuel = 0
Expand Down Expand Up @@ -496,7 +496,7 @@ attack = 0
defense = 1
hitpoints = 10
firepower = 1
move_rate = 1.0
move_rate = 0.095
vision_radius_sq = 2
transport_cap = 0
fuel = 0
Expand Down Expand Up @@ -528,7 +528,7 @@ attack = 0
defense = 1
hitpoints = 10
firepower = 1
move_rate = 1.0
move_rate = 0.095
vision_radius_sq = 2
transport_cap = 0
fuel = 0
Expand Down Expand Up @@ -560,7 +560,7 @@ defense = 0
hitpoints = 10
firepower = 1
;move_rate = 0.1
move_rate = 1.0
move_rate = 0.195
vision_radius_sq = 8
transport_cap = 0
fuel = 0
Expand Down
Loading

0 comments on commit 8f2488d

Please sign in to comment.