bugBos Wars - Bugs: bug #29100, Cannot translate resource names...

 
 

bug #29100: Cannot translate resource names shown in map editor

Submitted by:  Kalle Olavi Niemitalo <kon>
Submitted on:  Sun 07 Mar 2010 02:08:27 AM UTC  
 
Severity: 2 - MinorItem Group: Bug
Status: FixedPrivacy: Public
Assigned to: Jimmy Salmon <jsalmon3>Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Thu 22 Apr 2010 04:20:56 AM UTC, comment #1:

Fixed in r9771

Jimmy Salmon <jsalmon3>In charge of this item.
Sun 07 Mar 2010 02:08:27 AM UTC, original submission:

This report applies to trunk r9671.

In the map editor, when a unit is under the cursor, the status line shows the amount of energy or magma held in that unit. This always calls the resources "energy" and "magma", even if the user has selected a non-English language. And translators cannot do anything about it.

In engine/editor/editloop.cpp, static void ShowUnitInfo(const CUnit *unit) draws the text. It reads the strings from DefaultResourceNames[res], to which the values come from DefineDefaultResourceNames("energy", "magma") in scripts/boswars.lua.

In the game however, when DrawResources(void) in engine/ui/mainscr.cpp shows the resources held in the vault, the "Energy" and "Magma" strings (capitalized) are translatable.

Kalle Olavi Niemitalo <kon>
Project Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by kon (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 22 Apr 2010 04:20:56 AM UTCjsalmon3StatusNone=>Fixed
      Assigned toNone=>jsalmon3
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1