added XLAT in some places where it was missing

This commit is contained in:
Zeno Rogue 2023-12-03 14:28:30 +01:00
parent 928ab73fff
commit a79a7f63a1
3 changed files with 22 additions and 21 deletions

View File

@ -2855,7 +2855,7 @@ EX void show3D() {
#if MAXMDIM >=4
if(WDIM == 2) {
dialog::addSelItem("3D style", geom3::spatial_embedding_options[shown_spatial_embedding()].first, 'E');
dialog::addSelItem(XLAT("3D style"), XLAT(geom3::spatial_embedding_options[shown_spatial_embedding()].first), 'E');
dialog::add_action_push(show_spatial_embedding);
display_embedded_errors();
@ -2891,7 +2891,7 @@ EX void show3D() {
dialog::addBreak(50);
add_edit(vid.wall_height);
dialog::addSelItem("height details", "", 'D');
dialog::addSelItem(XLAT("3D detailed settings"), "", 'D');
dialog::add_action_push(show3D_height_details);
if(scale_used())

View File

@ -724,11 +724,12 @@ EX void configure() {
underlying_cgip = cgip;
around = around_orig();
}
dialog::editNumber(around, 2.01, 10, 1, around, "fake curvature",
dialog::editNumber(around, 2.01, 10, 1, around, XLAT("fake curvature"),
XLAT(
"This feature lets you construct the same tiling, but "
"from shapes of different curvature.\n\n"
"The number you give here is (2D) vertex degree or (3D) "
"the number of cells around an edge.\n\n"
"the number of cells around an edge.\n\n")
);
if(fake::in())
dialog::get_di().reaction = change_around;
@ -736,33 +737,33 @@ EX void configure() {
dialog::get_di().reaction_final = change_around;
dialog::get_di().extra_options = [] {
ld e = compute_euclidean();
dialog::addSelItem("Euclidean", fts(e), 'E');
dialog::addSelItem(XLAT("Euclidean"), fts(e), 'E');
dialog::add_action([e] {
around = e;
popScreen();
change_around();
});
dialog::addSelItem("original", fts(around_orig()), 'O');
dialog::addSelItem(XLAT("original"), fts(around_orig()), 'O');
dialog::add_action([] {
around = around_orig();
popScreen();
change_around();
});
dialog::addSelItem("double original", fts(2 * around_orig()), 'D');
dialog::addSelItem(XLAT("double original"), fts(2 * around_orig()), 'D');
dialog::add_action([] {
around = 2 * around_orig();
popScreen();
change_around();
});
dialog::addBoolItem_action("draw all if multiple of original", multiple_special_draw, 'M');
dialog::addBoolItem_action("draw copies (2D only)", recursive_draw, 'C');
dialog::addBoolItem_action(XLAT("draw all if multiple of original"), multiple_special_draw, 'M');
dialog::addBoolItem_action(XLAT("draw copies (2D only)"), recursive_draw, 'C');
dialog::addBoolItem_choice("unordered", ordered_mode, 0, 'U');
dialog::addBoolItem_choice("pre-ordered", ordered_mode, 1, 'P');
dialog::addBoolItem_choice("post-ordered", ordered_mode, 2, 'Q');
dialog::addBoolItem_choice(XLAT("unordered"), ordered_mode, 0, 'U');
dialog::addBoolItem_choice(XLAT("pre-ordered"), ordered_mode, 1, 'P');
dialog::addBoolItem_choice(XLAT("post-ordered"), ordered_mode, 2, 'Q');
};
}

View File

@ -388,10 +388,10 @@ EX void show_chaos() {
chaosUnlocked = chaosUnlocked || autocheat;
dialog::addHelp(
"In the Chaos mode, lands change very often, and "
XLAT("In the Chaos mode, lands change very often, and "
"there are no walls between them. "
"Some lands are incompatible with this."
"\n\nYou need to reach Crossroads IV to unlock the Chaos mode."
"\n\nYou need to reach Crossroads IV to unlock the Chaos mode.")
);
dialog::addBreak(100);
@ -422,17 +422,17 @@ EX void show_chaos() {
dialog::addBreak(100);
if(ineligible_starting_land)
dialog::addInfo("this starting land is not eligible for achievements");
dialog::addInfo(XLAT("this starting land is not eligible for achievements"));
else if(land_structure == lsNiceWalls)
dialog::addInfo("eligible for most achievements");
dialog::addInfo(XLAT("eligible for most achievements"));
else if(land_structure == lsChaos)
dialog::addInfo("eligible for Chaos mode achievements");
dialog::addInfo(XLAT("eligible for Chaos mode achievements"));
else if(land_structure == lsSingle)
dialog::addInfo("eligible for special achievements");
dialog::addInfo(XLAT("eligible for special achievements"));
else
dialog::addInfo("not eligible for achievements");
if(cheater) dialog::addInfo("(but the cheat mode is on)");
if(casual) dialog::addInfo("(but the casual mode is on)");
dialog::addInfo(XLAT("not eligible for achievements"));
if(cheater) dialog::addInfo(XLAT("(but the cheat mode is on)"));
if(casual) dialog::addInfo(XLAT("(but the casual mode is on)"));
dialog::addBreak(100);
if(ls::horodisk_structure())