bugFreeciv - Bugs: bug #19087, Slicker language selection in...

 
 
Show feedback again

bug #19087: Slicker language selection in Windows installer

Submitted by:  Jacob Nevins <jtn>
Submitted on:  Thu 01 Dec 2011 02:54:41 AM UTC  
 
Category: generalSeverity: 1 - Wish
Priority: 5 - NormalStatus: Need Info
Assigned to: NoneOpen/Closed: Open
Release: Operating System: Microsoft Windows
Planned Release: 

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

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

 

Mon 30 Jul 2012 12:27:56 PM UTC, comment #3:

The most easiest part handled in patch #3463

Marko Lindqvist <cazfi>
Project Administrator
Sun 29 Jul 2012 11:48:51 AM UTC, comment #2:

Attaching new version just in case, though I think this approach will never be of acceptable quality.

- Added Indonesian to langnames.txt
- Added langnames.txt to tarball
- Stats generation in separate script instead of being incorporated to win32/Makefile
- langstat.txt now generated to $(top_builddir)
- langstat.txt generation PHONY target so gets always regenerated when "make dist" run

Bugs:
- langstat.txt is generated as first step of 'make dist', most importantly before .po files have been updated
- Requires bash (should work wiht any standard /bin/sh)

And the main problem:
- Works only with English locale when every .po file has at least 2 (=plural) of each of translated, fuzzy, and untranslated strings. This is due to very fragile method of parsing msgmsrg --stat output. Even if we fix it to work with current version of gettext, it would depend on gettext output strings never to change...

(file #16228)

Marko Lindqvist <cazfi>
Project Administrator
Wed 25 Jul 2012 02:11:31 AM UTC, comment #1:

Patch to produce langstat.txt file with language codes, translation percents, and language names. Code and name are taken from bootstrap/langnames.txt, translation percent calculated.

(file #16189)

Marko Lindqvist <cazfi>
Project Administrator
Thu 01 Dec 2011 02:54:41 AM UTC, original submission:

Christian has made several improvements to language selection in the Windows installer recently, up to the point in 2.3.1 where a relatively nontechnical user can choose a language, provided they know their language code.

However, it could be slicker yet. Ideally I think the language selection process would include the following information for each language:

  • Filename / language code, as now
  • Language name, so people don't have to know language codes
    • In English at least, and possibly native too
    • Possible sources: Wikipedia ISO 639-1, Ubuntu /usr/share/language-selector/data/languagelist
  • Translation completeness stats
    • Currently one can't tell the difference between a 100% or 30% complete translation at install time, and I would expect that to influence the decision of whether to use it.

Realising all of these, particularly the last item, could benefit from some coordination between the standard tarball release process and the Windows-specific packaging process.

For instance, it would be natural for the standard release process to drop out some sort of file containing translation statistics right after building the po-files, for inclusion in the release tarball, in a form that the Windows packaging process could pick up, to minimise the need for gettext tools in the latter.

This approach means that addition of new languages can be done by any developer, and would also potentially allow other packaging processes (such as Mac OS?) to benefit from the same effort.

But I'm not sure of the details. I suspect having the latest Windows installer scripts or similar material under version control would help.

Jacob Nevins <jtn>
Project Administrator

 

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

Attach File(s):
   
   
Comment:
   

Attached Files
file #16228:  Langstats-2.patch added by cazfi (3kB - text/x-patch)
file #16189:  Langstats.patch added by cazfi (2kB - text/x-patch)

 

Digest:
   bug dependencies.

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by cazfi (Updated the item)
  • -unavailable- added by akerbeltz
  • -unavailable- added by jtn (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
    Sun 29 Jul 2012 11:48:51 AM UTCcazfiAttached File-=>Added Langstats-2.patch, #16228
    Wed 25 Jul 2012 02:11:31 AM UTCcazfiAttached File-=>Added Langstats.patch, #16189
    Thu 01 Dec 2011 09:52:15 AM UTCakerbeltzCarbon-Copy-=>Added akerbeltz
    Thu 01 Dec 2011 02:55:43 AM UTCjtnDependencies-=>Depends on bugs #19088
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup