Project

General

Profile

Segnalazione #77

Fixare la select di cambio lingua

Added by Mark Caglienzi over 7 years ago. Updated over 7 years ago.

Status:
Chiuso
Priority:
Normale
Start date:
11/23/2016
Due date:
% Done:

0%

Estimated time:

Description

Così com'è ora mostra tutte le lingue possibili, magari vogliamo limitarlo (in modo pulito, possibilmente non manuale nel template) solo a 3-4 lingue.

  • Aggiungere nel repository tutte le bandierine necessarie (relative alle lingue che vogliamo attivare). Ho in locale tutto il pacchetto per avere le bandiere coerenti, mi basterà aggiungere quelle che servono senza magari metterle tutte (sono diverse centinaia)
  • In ogni caso, quando clicco su una lingua nuova (ad esempio per passare da en-us a it) la bandierina al reload rimane en-us, sembra che la view di cambio lingua di django non faccia la cosa giusta

Associated revisions

Revision 3d854b97 (diff)
Added by Mark Caglienzi over 7 years ago

Temporary workaround to avoid a ton of options in select and 404 in the server. refs #67 #77

Revision cfd88804 (diff)
Added by Christopher R. Gabriel over 7 years ago

refs #77

  • added i18n middleware and context processors
  • limited available languages to the one we're going to have in first place (en, it, de)
  • fixed locale change form

Revision 9dc8e46e (diff)
Added by Christopher R. Gabriel over 7 years ago

refs #77

removed unuseful element in context

History

#1

Updated by Christopher R. Gabriel over 7 years ago

  • Status changed from Nuovo to In elaborazione
  • Assignee set to Christopher R. Gabriel
#2

Updated by Christopher R. Gabriel over 7 years ago

  • Status changed from In elaborazione to Chiuso

in cfd88804 aggiungi i middleware e i context processor necessari per i18n. In settings elencate le lingue necessarie, e fixato il form di cambio lingua.

Testato con il plugin dhcp che e' in parte localizzato.

Mergiato in master, chiudo.

Also available in: Atom PDF