geomexp:: dimension shown in geometry choice

This commit is contained in:
Zeno Rogue 2019-11-24 23:39:30 +01:00
parent e60e21b923
commit 1b8d9a5a24
1 changed files with 7 additions and 3 deletions

View File

@ -559,16 +559,20 @@ EX string current_proj_name() {
return XLAT("general perspective");
}
EX string dim_name() {
return " (" + its(WDIM) + "D)";
}
EX string geometry_name() {
switch(ginf[geometry].cclass) {
case gcHyperbolic:
return XLAT("hyperbolic");
return XLAT("hyperbolic") + dim_name();
case gcEuclid:
return XLAT("flat");
return XLAT("flat") + dim_name();
case gcSphere:
return XLAT("spherical");
return XLAT("spherical") + dim_name();
case gcSolNIH:
#if CAP_SOLV