Author Topic: [fixed] r4514 Too short "next hint" button & button doesn't uses text from transifex  (Read 784 times)

filux

  • MegaGlest Team
  • Draco Rider
  • ********
  • Posts: 310
  • was OpenSuse x64, is Debian testing x64
    • View Profile
1. Since r4511 button is little too small. You always should remember that translations usually takes up more space than english string.
My proposition (taking into account the possibility of even longer string than my translation) is:
Code: [Select]
--- logger.cpp 2013-06-26 15:05:51.857138372 +0200
+++ Nowy katalog/logger.cpp 2013-06-26 15:03:37.813800797 +0200
@@ -296,7 +296,7 @@
  }
  //Show next Hint
  if(buttonNextHint.getEnabled() == false) {
- buttonNextHint.init((metrics.getVirtualW() / 2) - (300 / 2), 90 * metrics.getVirtualH() / 100 + 20,100);
+ buttonNextHint.init((metrics.getVirtualW() / 2) - (300 / 2), 90 * metrics.getVirtualH() / 100 + 20,175);
  buttonNextHint.setText(lang.get("ShowNextHint","",true));
  buttonNextHint.setEnabled(true);
  buttonNextHint.setVisible(true);


2 String on the button doesn't use Transifex's test string which is stored in $ UserData location (~/.megaglest/data/lang/...).



GunChleoc

  • Horseman
  • ****
  • Posts: 202
    • View Profile
    • Fòram na Gàidhlig
I can confirm this, I need an additional width of at least 2 more em-spaces for my translation ("An t-ath ghliocas").

tomreyn

  • Local Moderator
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
The patch for the first issue discussed here is applied in r4518.
The second issue Filux reported needs yet to be handled.
atibox: Ryzen 1800X (8 cores @3.6GHz), 32 GB RAM, MSI Radeon RX 580 Gaming X 8G, PCI subsystem ID [1462:3417], (Radeon RX 580 chipset, POLARIS10) @3440x1440; latest stable Ubuntu release, (open source) radeon (amdgpu) / mesa video driver
atibox (old): Core2Quad Q9400 (4 cores @2.66GHz), 8 GB RAM, XFX HD-467X-DDF2, PCI subsystem ID [1682:2931], (Radeon HD 4670, RV730 XT) @1680x1050; latest stable Ubuntu release, (open source) radeon / mesa video driver
notebook: HP envy13d020ng
internet access: VDSL2+

· · · How YOU can contribute to MG · Latest development snapshot · How to build yourself · Megapack techtree · Currently hosted MG games · · ·