Wrong date format with multi-language suppport

Bug #894319 reported by SnippetBucket.com
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo GTK Client (MOVED TO GITHUB)
Confirmed
Low
OpenERP sa GTK client R&D

Bug Description

Hello,

With multi-lanaguage support,

1> Installed the french and hindi translation.

2> From the preference change the french or hindi language.

3> See the date value of date any place with web client, Date value translated according to language selection. Where as GTK client behave differently.

Revision history for this message
Naresh(OpenERP) (nch-openerp) wrote :

Did you re connect / login after changing the language ?

Revision history for this message
SnippetBucket.com (tta-openerp) wrote :

Hello,

I have tested it all the possible way. Please you check it again.

If this is working well with your end that you can share the snapshot.

Thanks,
Tejas

Revision history for this message
Jignesh Rathod(OpenERP) (jir-openerp) wrote :
Revision history for this message
Jignesh Rathod(OpenERP) (jir-openerp) wrote :
Changed in openobject-client:
assignee: nobody → OpenERP sa GTK client R&D (openerp-dev-gtk)
importance: Undecided → Low
status: New → Confirmed
Revision history for this message
Naresh(OpenERP) (nch-openerp) wrote :

Well, It depends on your system locale...you must have this locale set in your system. other wise GTK client will issue you a warning if you have noted :) on your terminal *WARNING:translate:Unable to set locale hi_IN.UTF-8: unsupported locale setting *

The gtk tries to set your default locale to hi_IN by locale.setlocale() but your machine does not have the entry in its locale file. ie you need to explicitly make an entry of the locale needed by following ways:
1: using the command:
                      sudo locale-gen 'hi_IN.UTF-8'
2: manually edit the file
                      /var/lib/locales/supported.d/local and make the entry of the locale you need.

Then when you restart the gtk . It will easily set the locale.

Note: The date /datetime format are different on different ubuntu versions. Also this is a duplicate of lp:510023

Regards,

Revision history for this message
Naresh(OpenERP) (nch-openerp) wrote :

here is what I have on ubuntu 11.10

Revision history for this message
Naresh(OpenERP) (nch-openerp) wrote :
Revision history for this message
SnippetBucket.com (tta-openerp) wrote :

Hello,

With my os all most all lanugages are set. Also I have been check my locale, languages are their.

Just problem with GTK even web working fine.

I like to share a file which can be execute via terminal and its show you how many locale languages and about date format.

I hope this miscellaneous file will help you a lot.

Here I have attached the file.

Thanks,
Tejas - TTA

Revision history for this message
Naresh(OpenERP) (nch-openerp) wrote :

hello tejas,

I had a look at your file and it uses babel to format the date strings... and GTK client uses datetime to format dates and we dont want to add an extra package dependency for gtk . Though you can achieve this if you follow what I said in comment #5

I think you still didn't get what we meant here...
A different approach to set your locales... is here ..try this...out before commenting something... ;)

1: Go to :/var/lib/locales/supported.d/
Note: you need to change the permission of locale file
2: edit locale file
3: paste on new line hi_IN.UTF-8 UTF-8
4:click save and go to the terminal
5:execute sudo dpkg-reconfigure locales
6:restart your gtk client.
7: Have a look at the screen shot attached.

Regards,

Revision history for this message
SnippetBucket.com (tta-openerp) wrote :

Hello,

I like to know you that, I have been tried a lot and follow all about your steps. So don't assume ;)

Also I have watch all the locale setting and languages. Follow all step by step command and editing files.

But even after all these step when restarted GTK, Its does not behave as expected.

Thanks,
Tejas

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.