Files
@ r27636:dd08900a2d5c
Branch filter:
Location: cpp/openttd-patchpack/source/src/widgets/build_vehicle_widget.h - annotation
r27636:dd08900a2d5c
1.6 KiB
text/x-c
Fix #11054: Prevent translation of currency codes.
Most languages stick with the 3-letter latin currency codes in the name
string, however some translations are... clever... and use the currency
symbol instead. Whilst this may look nice, it can cause issues with fonts
as some scripts have a specific limited set of fonts which do not include
these symbols.
Instead, hard code the currency code list and add it when drawing the
currency name.
Most languages stick with the 3-letter latin currency codes in the name
string, however some translations are... clever... and use the currency
symbol instead. Whilst this may look nice, it can cause issues with fonts
as some scripts have a specific limited set of fonts which do not include
these symbols.
Instead, hard code the currency code list and add it when drawing the
currency name.
r18670:f122c356353c r18670:f122c356353c r18670:f122c356353c r18670:f122c356353c r18670:f122c356353c r18670:f122c356353c r18670:f122c356353c r18670:f122c356353c r18670:f122c356353c r18670:f122c356353c r18670:f122c356353c r18670:f122c356353c r18742:bb634519d745 r18670:f122c356353c r18673:e5a4490b411b r21673:1487f74077b5 r18673:e5a4490b411b r18673:e5a4490b411b r27218:5f086b023b3e r21666:826c809ebc23 r18673:e5a4490b411b r18673:e5a4490b411b r18673:e5a4490b411b r18673:e5a4490b411b r21666:826c809ebc23 r18673:e5a4490b411b r18673:e5a4490b411b r18670:f122c356353c r18670:f122c356353c r18670:f122c356353c | /*
* This file is part of OpenTTD.
* OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
* OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>.
*/
/** @file build_vehicle_widget.h Types related to the build_vehicle widgets. */
#ifndef WIDGETS_BUILD_VEHICLE_WIDGET_H
#define WIDGETS_BUILD_VEHICLE_WIDGET_H
/** Widgets of the #BuildVehicleWindow class. */
enum BuildVehicleWidgets {
WID_BV_CAPTION, ///< Caption of window.
WID_BV_SORT_ASCENDING_DESCENDING, ///< Sort direction.
WID_BV_SORT_DROPDOWN, ///< Criteria of sorting dropdown.
WID_BV_CARGO_FILTER_DROPDOWN, ///< Cargo filter dropdown.
WID_BV_FILTER, ///< Filter by name.
WID_BV_SHOW_HIDDEN_ENGINES, ///< Toggle whether to display the hidden vehicles.
WID_BV_LIST, ///< List of vehicles.
WID_BV_SCROLLBAR, ///< Scrollbar of list.
WID_BV_PANEL, ///< Button panel.
WID_BV_BUILD, ///< Build panel.
WID_BV_SHOW_HIDE, ///< Button to hide or show the selected engine.
WID_BV_BUILD_SEL, ///< Build button.
WID_BV_RENAME, ///< Rename button.
};
#endif /* WIDGETS_BUILD_VEHICLE_WIDGET_H */
|