HUE-8688 [core] update Chinese language code to enable Hue Chinese localization

Review Request #13584 - Created Jan. 22, 2019 and submitted

weixia xu
hue
master
HUE-8688
20cc99e...
hue
jgauthier, johan, ranade, romain, yingc
HUE-8688 [core] update Chinese language code to enable Hue Chinese localization

Updated the settings.py with zh-CN when we configure browser language setting, Hue UI shows Chinese chars.
Tested on nightly512 nighlty5x and nightly6x, all PASSed

  • 1
  • 0
  • 0
  • 1
  • 2
Description From Last Updated
Note: Portugues and "Brazilan" are currently skipped so this is normal. +1 to comment the 2 lines Romain Rigaux
  1. 
      
  2. desktop/core/src/desktop/settings.py (Diff revision 1)
     
     

    Can you take a look at Brazilian as well?

    1. We tried & it seems like both pt-BR & pt_BR don't work.

    2. Tried changing the Brazilian Portuguese to pt-BR, no effect, "Content-Language: pt" returned in the Response header. And it seems that Hue UI shows same for pt, pt_BR and pt-BR.

  3. 
      
  1. Ship It!
  2. 
      
Review request changed

Status: Closed (submitted)

Change Summary:

https://github.com/cloudera/hue/commit/cacf60fe025d4d7ec3a5db5fa33425dbcb8208d7

  1. Nice!

  2. desktop/core/src/desktop/settings.py (Diff revision 1)
     
     

    Note: Portugues and "Brazilan" are currently skipped

    so this is normal.

    +1 to comment the 2 lines

  3. 
      
Loading...