Comments & Opinions |
Home Page | Comments | Articles | Faq | Documents | Search | Archive | Tales from the Machine Room | Contribute | Set language to:en it | Login/Register
I did some debugging on the code and.. it works as expected. That means that the document is found in the correct language, but I also found that Varnish doesn't care and keep returning the document that is already in his cache. And that sucks.
So I modified Varnish configuration to only cache static stuff (pictures, javascripts, css...) and now it seems to work better.
I've also changed the debugging code on the cms so it doesn't write on the page anymore but it write in the webserver's log file, so you can do debugging while the site runs.
The code on GitHub is updated.
So, if you still see the wrong language ain't my fault anymore.
Davide Bianchi
27/04/2018 12:13
Comments are added when and more important if I have the time to review them and after removing Spam, Crap, Phishing and the like. So don't hold your breath. And if your comment doesn't appear, is probably becuase it wasn't worth it.
By Jack posted 28/04/2018 01:06
Ciao, potresti utilizzare la lingua del browser come predefinita ma inserire la possibilità di cambiarla?
Su mobile, è quasi impossibile avere il telefono in inglese e far restituire le pagine in italiano.
Su fisso preferirei per ridurre il fingerprinting del browser mantenere la lingua inglese ma poter leggere le storie in italiano.
Ammetto che si tratterebbe dell'unico (session) cookie del sito, ma penso di non essere l'unico a trarne beneficio...
Ciao
Jack
-- Jack
@ Jack By Davide Bianchi posted 30/04/2018 10:53
Ciao, potresti utilizzare la lingua del browser come predefinita ma inserire la possibilità di cambiarla?
In teoria si puo' fare tutto, in pratica mi richiederebbe di cambiare parecchie cose nel modo come gestisco i documenti all'interno del CMS. Percui lo metto nel "carino da avere" ma sicuramente non sara' implementato in questa versione del cms. Stay tuned per 6.0.
-- Davide Bianchi
By Messer Franz posted 12/05/2018 20:35
Lo so, il post-commento è vecchio, ma forse ho risolto l'arcano. Mi stavo reinstallando il pc, e il firefox aveva impostata come lingua "[it-it]" , cioè italiano direi, ma il tuo sito era in inglese.
Mi è sorto un dubbio dubbioso e l'ho cambiata con la seconda voce, "Italiano [it]".
Refresh, ed il tuo sito è diventato nella lingua di Romolo e Remo.
A parte ogni considerazione su "Qual'è la differenza tra i due?" che forse c'è (non mi frega cercarla, in verità), forse è questo il motivo per cui a molti (tra cui io) il sito inglesizzava.
ps: Standard? Ne esistono ancora? Internet avrebbe dovuto scofiggerli tutti anni fa! E' proprio vero che le medicine d'oggi sono tutti placebi... (non nel senso offensivo per te, ma per certi altri programmatori che il massimo che dovrebbero programmare è il loro ricovero al manicomio...)
-- Messer Franz
This site is made by me with blood, sweat and gunpowder, if you want to republish or redistribute any part of it, please drop me (or the author of the article if is not me) a mail.
This site was composed with VIM, now is composed with VIM and the (in)famous CMS FdT.
This site isn't optimized for vision with any specific browser, nor
it requires special fonts or resolution.
You're free to see it as you wish.