bugBattle for Wesnoth - Bugs: bug #20268, Make it possible for Wesnoth to...

 
 
Show feedback again

bug #20268: Make it possible for Wesnoth to provide month name translations and the like

Submitted by:  Steven Panek <espreon>
Submitted on:  Sat 27 Oct 2012 04:08:56 PM UTC  
 
Category: BugSeverity: 2 - Minor
Priority: 1 - LaterItem Group:  None of the others
Status: PostponedPrivacy: Public
Assigned to: Fabian Müller <fendrin>Open/Closed: Open
Release: 1.11.x (and 1.10.x)Operating System: *

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

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

 

Wed 13 Mar 2013 09:58:28 PM UTC, comment #3:

And, as I noted on IRC, perhaps Boost.Locale might be able to help is in the future. Sadly, we can't use it right now since we'd need to bump the minimum Boost version to 1.48. So, maybe later.

http://www.boost.org/doc/libs/1_53_0/libs/locale/doc/html/index.html

Steven Panek <espreon>
Project Member
Mon 10 Dec 2012 12:39:27 AM UTC, comment #2:

bug #19708 has been marked as a duplicate of this bug.

Simon Forsyth <alarantalara>
Project Member
Wed 31 Oct 2012 01:27:41 AM UTC, comment #1:

Perhaps Boost could help us:

http://www.boost.org/doc/libs/1_38_0/doc/html/date_time/examples.html#date_time.examples.localization

Steven Panek <espreon>
Project Member
Sat 27 Oct 2012 04:08:56 PM UTC, original submission:

To (help) ensure that the messages from the following threads do not become lost in the sands of time and to expand on them, I have filed this bug report.

Threads:

http://forums.wesnoth.org/viewtopic.php?f=12&t=37726
http://forums.wesnoth.org/viewtopic.php?f=4&t=37730

Basically, right now, the game relies on the system for translations of the names of days and months and for things such as "AM" and "PM". However, if one is using a translation to a minority or dead language, the system likely won't have any translations to give the game nor will it likely ever get translations to give.

In addition, for "AM" and "PM", the game currently attempts to draw translations from the current internally-set locale, but for some translations, this typically results in failure (on systems using glibc, at least). For example, using the Spanish translation currently has the game internally set "es_ES", thus for Spanish Spanish. Since the Spanish don't use the twelve-hour clock anymore, the es_ES glibc locale doesn't provide any data whatsoever for "AM" and "PM", thus one who wishes to use Wesnoth's twelve-hour clock setting along with the Spanish translation will have nothing in "AM"/"PM"'s place; one will get "12:00" for "12:00 AM" or "12:00 PM". But since Spanish is spoken in many nations, some of which, such as Mexico, do still use the twelve-hour clock, thus it is a real problem. A similar problem can be observed with using the British English translation on a system using glibc (an older version of glibc from say... 2011, at least); for the longest time, glibc's maintainer has refused to allow data for "AM" and "PM" to enter the en_GB locale's data file, despite the fact that normal people in the UK still use the twelve-hour clock.

So, at the bare minimum (hopefully, I'm not missing anything), we need a way of providing translations for the following:

- Names of days
- Names of months
- Abbreviated names of days
- Abbreviated names of months
- "AM" and "PM"

Steven Panek <espreon>
Project Member

 

(Note: upload size limit is set to 1024 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 alarantalara (Posted a comment)
  • -unavailable- added by fendrin (Updated the item)
  • -unavailable- added by espreon (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 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 29 Dec 2012 11:24:57 PM UTCfendrinStatusNone=>Postponed
    Thu 13 Dec 2012 12:58:34 AM UTCfendrinSeverity3 - Normal=>2 - Minor
      Priority5 - Normal=>1 - Later
    Wed 31 Oct 2012 01:30:26 AM UTCfendrinAssigned toNone=>fendrin
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup