Apache OpenOffice (AOO) Bugzilla – Issue 11525
META tag for cs project pages
Last modified: 2003-02-26 06:05:34 UTC
Hi Louis, Czech Native-Lang project pages need META tag containing iso-8859-2 charset.
thanks, accepting louis
done. please test. louis
Thank you Louis, it works in Mozilla, but the old TAG remains there and I wonder it it would work in other browsers: <html><head> <meta http-equiv="content-type" content="text/html ; charset=iso-8859-2"> <meta HTTP-EQUIV="Content-Type" CONTENT="text/html;CHARSET=iso-8859-1"> Only the first one should be there. This is incorrect HTML.
Hi I am aware it is incorrect html and i am aware the old tag remains there. It has to, for the rest of the site. I can try w/ the iso-8859-2 only but I cannot guarantee the rest of the site will work well. What I have done is a little hack: when the project is cs, then the 1s0-..-2 governs page display. At all other times it is either -1 (or the japanese charset). (The double charsets don't, evidently, confuse modern browsers. If they did, this project would be horrible: look at the source of, say, Porting.) To further explain this essentially temporary hack, SC composes all its web pages in parts: thereaer separate Head, Standard, Navbar, Footer templates. These are all put together as needed. The Head (where charset is set) is not peculiar to a project but general to all projects. What I did with Ja and now with cs was make a call to the server to read, if the project is cs or ja, a particular charset. It works. I tested it using several browsers. The rest of the site, as I explained, probably needs the standard iso. I'd be surprised if it doesn't work in all modern browsers. I'm concerned, of course, about IE5 for Win and Ntscp 4.7x, the banes of any designer. the upgrade to the infrastructure has resources that allow language specification, so this won't be necessary. :) cheers, and good luck, Louis
Louis, it stopped working today. I use Mozilla and it does not grok the current header: <meta HTTP-EQUIV="content-type" CONTENT="text/html; charset=ISO-8859-1"> <meta HTTP-EQUIV="content-type" CONTENT="text/html ; charset=iso-8859-2"> Maybe it is a space before ;. I think it would be better to solve this properly.
I'll fix. i was playing with the webmacros last night and thought i had fixed it. -louis
I fixed it for cs. I actually spent a couple of hours last night seeing if I could use the webmacro commands to work for both. am trying again louis
fixed. the code now reads... and it works, though is not perfectly pretty: #if ($currentProject.getName()=="ja"){ <META HTTP-EQUIV="content-type" CONTENT="text/html ; charset=EUC-JP"> }#else { #if ($currentProject.getName()=="cs"){ <META HTTP-EQUIV="content-type" CONTENT="text/html ; charset=iso-8859-2"> }#else { <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1"> } } louis
Works great. Thanks!