We have moved to Github. Please open tickets there.

#4503 closed Defect (fixed)

Javascript default language is not the PHP one

Reported by: sembrestels Owned by:
Priority: normal Milestone: Elgg 1.8.7
Component: JavaScript Version: 1.8
Severity: minor Keywords:
Cc: brett@… Difficulty:

Description

js/lib/languages.js declares this line:

elgg.config.language = 'en';

Downloaded language (js) when an user have no language definied is 'en', when it should be the site's default one.

Change History (5)

comment:1 follow-up: Changed 13 months ago by sembrestels

Replacing the line with this one may solve the problem:

elgg.config.language = "<?php echo elgg_get_config('language'); ?>";

comment:2 Changed 13 months ago by sembrestels

  • Component changed from Core to JavaScript
  • Version changed from 1.7 to 1.8

comment:3 in reply to: ↑ 1 Changed 13 months ago by sembrestels

Replying to sembrestels:
Better:

elgg.config.language = "<?php echo elgg_get_config('language'); ?>" || 'en';

comment:4 Changed 13 months ago by ewinslow

  • Milestone changed from Needs Review to Elgg 1.8.x

comment:5 Changed 11 months ago by cash

  • Milestone changed from Elgg 1.8.x to Elgg 1.8.7
  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.