buggnubg - Bugs: bug #63482, _("Statistics for game")...

 
 

bug #63482: _("Statistics for game") + "%d" in StatsSelectGame(); It's difficult to translate in some language

Submitter:  TAKAHASHI Kaoru <kaoru>
Submitted:  Wed 07 Dec 2022 12:53:27 PM UTC
   
 
Originator Name:  TAKAHASHI Kaoru Item Group:  * Other bug
Category:  * Graphical User Interface Release:  * 1.07
Privacy:  Public Operating System:  * All
Severity:  3 - Normal Open/Closed:  Closed
Assigned to:  plm Priority:  5 - Normal
Status:  Fixed
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 07 Dec 2022 12:53:27 PM UTC, original submission:  

In StatsSelectGame():
(gtkgame.c)
----------------------------------------------------------------
        char sz[100];
        strcpy(sz, _("Statistics for game "));
        sprintf(sz + strlen(sz), "%d", curStatGame);
----------------------------------------------------------------

This is difficult to translate in some langueage (e.g. Japanese).
Please use sprintf(sz, _("Statistics for game %d"), curStatGame); instead.

Patch attached.

TAKAHASHI Kaoru <kaoru>

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #54068:  gtkgame.c.diff added by kaoru (691B - text/x-patch)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by plm (Updated the item)
  • -email is unavailable- added by kaoru (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2022-12-13 plm Open/ClosedOpen Closed
        StatusConfirmed Fixed
    2022-12-12 plm Assigned toNone plm
        StatusNone Confirmed
    2022-12-07 kaoru Attached File- Added gtkgame.c.diff, #54068

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code