bugSavane - Bugs: bug #257, database content not prepared for...

 
 
Show feedback again

You are not allowed to post comments on this tracker with your current authentification level.

bug #257: database content not prepared for i18n

Submitted by:  Tobias Quathamer <toddy>
Submitted on:  Wed 11 Feb 2004 05:28:28 PM UTC  
 
Category: Web FrontendStatus: Postponed
Severity: 3 - NormalPriority: D - High
Assigned to: NoneOpen/Closed: Open
Release: =< 3.0Planned Release: 3.1
Reproducibility: NonePrivacy: Public

(Jump to the original submission Jump to the original submission)

Fri 24 Nov 2006 09:47:39 AM UTC, comment #6:

Adding a column per table per lang would make the database enormous and would make the translation work way harder.

I think what we need it a script that:

extract all the fields that we have a reason to translate (only the field real name of the trackers I guess) and to append them into the potfile, by brute force.

gettext will know how to translated these when we will pass them the relevant strings extracted from the database.
(apparently, the reference to a line number in the po file does not matter, just the string).

So this is actually doable, and using only gettext.

That would be a greate translation improvement :)

Mathieu Roy <yeupou>
Project Administrator
Wed 21 Sep 2005 09:15:18 AM UTC, comment #5:

I wonder if there's any example of such data being translated. Adding new fields in database would probably make the database going gigantic.

Mathieu Roy <yeupou>
Project Administrator
Wed 08 Sep 2004 04:24:38 PM UTC, comment #4:

Sorry I dreamt.

Mathieu Roy <yeupou>
Project Administrator
Wed 08 Sep 2004 04:23:51 PM UTC, comment #3:

close in bug #493

Mathieu Roy <yeupou>
Project Administrator
Tue 22 Jun 2004 03:18:58 PM UTC, comment #2:

Yes, sort of. For examples, just see this page: On top of the page, there are some select boxes, which indicate certain states of this bug report (e.g. Severity, Priority, Resolution, Status).

All these select boxes make perfectly sense to be translated, but the content comes from the SQL-Database and is therefore not recognizable by gettext.

Another option of resolving this bug (instead of duplicating all tables for every language/locale) would be to add another column to the existing tables, named locale (or something along these lines). It would then be possible to select the matching entry (e.g. by adding "locale='de_DE'" to the WHERE-clause). If no such translation exists, the function should revert to the default language and return the entry for e.g. locale='en_US' or maybe even locale='C'.

Tobias Quathamer <toddy>
Project Member
Tue 22 Jun 2004 10:59:40 AM UTC, comment #1:

Can you give an example?

There is indeed the problem of i18n database data -- I'm afraid to think about duplicating for each language possible the tables. Is that what you thinking of?

Mathieu Roy <yeupou>
Project Administrator
Wed 11 Feb 2004 05:28:28 PM UTC, original submission:

The HTML select boxes on the site are generated through an SQL query. The returned result contains the id and the text of an item.

This way, only texts from the database are inserted into the select boxes, bypassing gettext.

I think that the severity of this bug is ordinary (or even trivial), but the solution seems to be a major pain in the ass.

Tobias Quathamer <toddy>
Project Member

 

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 yeupou (Posted a comment)
  • -unavailable- added by toddy (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 14 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 28 Nov 2006 08:05:26 AM UTCyeupouPriorityA - Later=>D - High
      Release*=>=< 3.0
      Planned Release=>3.1
    Fri 24 Nov 2006 09:47:39 AM UTCyeupouRelease=>*
    Wed 21 Sep 2005 09:15:18 AM UTCyeupouSeverity2 - Minor=>3 - Normal
    Mon 04 Jul 2005 09:44:27 AM UTCyeupouSummaryHTML select boxes are not prepared for I18N=>database content not prepared for i18n
    Sun 23 Jan 2005 03:38:23 PM UTCyeupouStatus102(Error - Not Found)=>Postponed
    Sun 23 Jan 2005 03:38:18 PM UTCyeupouStatusNone=>102(Error - Not Found)
    Wed 08 Sep 2004 04:24:38 PM UTCyeupouStatusFixed=>None
      Assigned toyeupou=>None
      Open/ClosedClosed=>Open
    Wed 08 Sep 2004 04:23:51 PM UTCyeupouStatusNone=>Fixed
      Assigned toNone=>yeupou
      Open/ClosedOpen=>Closed
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup