1. Startseite
  2. Dashboard
  3. Forum
    1. Unresolved Threads
  4. Gallery
    1. Albums
    2. Map
  5. Lexicon
  6. Kartensysteme
    1. Europaanalyse
    2. Gewitteranalyse
    3. Nowcast
  7. FAQ
  • Login
  • Register
  • Search
This Thread
  • Everywhere
  • This Thread
  • This Forum
  • Articles
  • Forum
  • Gallery
  • Lexikon
  • Pages
  • FAQ
  • More Options
  1. Forum
  2. Archivraum
  3. Blitzortung - Archiv
  4. MyBlitzortung - english

New translation - UTF-8 ignored

  • Instigater
  • June 29, 2012 at 11:20 AM
  • Thread is Resolved
  • Instigater
    Guest
    • June 29, 2012 at 11:20 AM
    • #1

    Tobi, I started to translate myblitzortung in my language and at the first steps I encountered default scenario of our language presentation - complete mess - incorect presentation in tiles and in interface in general. lv.php is saved in UTF-8 using Windows Notepad. I even tried to add meta tag in html but it is also ignored:

    Code
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

    And webserver headers

    HTTP
    HTTP/1.1 200 OK
    Server: nginx
    Date: Fri, 29 Jun 2012 09:19:54 GMT
    Content-Type: text/html; charset=UTF-8
    Transfer-Encoding: chunked
    Connection: keep-alive
    Keep-Alive: timeout=20
    Expires: Thu, 19 Nov 1981 08:52:00 GMT
    Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
    Pragma: no-cache
    Set-Cookie: bo_locale=lv; expires=Mon, 27-Jun-2022 09:19:54 GMT; path=/
    Content-Language: lv
    Content-Encoding: gzip
    Display More

  • tobi
    Guest
    • June 29, 2012 at 11:48 AM
    • #2

    Yes. Unfortunately the language files are currently interpreted as non-UTF encoding and are converted to UTF during the output. Changing this was already on the top of my to do list, maybe the next days...

    BTW: Don't use notepad for that. Use, for example Notepad++, which is much better!

  • Instigater
    Guest
    • June 29, 2012 at 12:37 PM
    • #3

    Thanks for info, at least I'm confident that problem will be resolved. If you need any samples in Latvian language or my help in general with this, just shout here or in private message. ;)

  • tobi
    Guest
    • July 10, 2012 at 7:48 PM
    • #4

    Hi,

    UTF8 should work with the current master branch.

    You have to save the language files "xx.php" as utf8 (without BOM header!). Simply add

    PHP
    $_BL['de']['is_utf8'] = true;


    to that file, and it should work.

    Secondly, you may have some strings in the config.php, that could use utf8 characters. Also save this file with utf8 encoding. The magic key here is

    PHP
    define('BO_CONFIG_IS_UTF8', true);

    I couldn't test every case, so there may be still bugs.

    Hope to see some new language(s) soon ;)

    Regards
    Tobias

  • Instigater
    Guest
    • July 25, 2012 at 2:15 AM
    • #5

    Started to translate. Almost everything is fine. I will send you encountered bugs to you by e-mail. Work progresses slowly, there are a lot of words. :S

  • TuinmanTom
    Guest
    • August 3, 2012 at 3:15 PM
    • #6
    Quote from tobi

    Hi,

    UTF8 should work with the current master branch.

    Tobias, any idea on the release date of 0.7.7? Or is the master branch safe enough to upgrade a live site to.
    Thanks

  • tobi
    Guest
    • August 4, 2012 at 8:31 PM
    • #7
    Quote from TuinmanTom

    Tobias, any idea on the release date of 0.7.7?


    I've now tagged the current master to 0.7.7 .

    Quote from TuinmanTom

    Or is the master branch safe enough to upgrade a live site to.


    In most cases there's no real difference in safeness between tagged and untagged versions (always unsafe ;) ). The main reason for me for the version numbers, is the support.

Radar

Regenradar

Link-Box

Zellenabstand und Zelleninnenabstand in Tabellen
Wegweiser
Kartenanlyse
Webcam
  1. Privacy Policy
  2. Legal Notice
  3. Terms Of Use
  4. Contact

Partner
Viktor´s Supportboard
Besucherzaehler



Powered by WoltLab Suite™ 6.1.23
© Wetter-Board 2004-2026