1. Startseite
  2. Portal
  3. Forum
    1. Unerledigte Themen
  4. Galerie
    1. Alben
    2. Karte
  5. Lexikon
    1. Letzte Änderungen
  6. Kartensysteme
    1. Europaanalyse
    2. Gewitteranalyse
    3. Nowcast
  7. FAQ
  • Anmelden
  • Registrieren
  • Suche
Dieses Thema
  • Alles
  • Dieses Thema
  • Dieses Forum
  • Artikel
  • Forum
  • Galerie
  • Lexikon
  • Seiten
  • FAQ
  • Erweiterte Suche
  1. Forum
  2. Archivraum
  3. Blitzortung - Archiv
  4. MyBlitzortung - english

New translation - UTF-8 ignored

  • Instigater
  • 29. Juni 2012 um 11:20
  • Erledigt
  • Instigater
    Gast
    • 29. Juni 2012 um 11:20
    • #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
    Alles anzeigen

  • tobi
    Gast
    • 29. Juni 2012 um 11:48
    • #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
    Gast
    • 29. Juni 2012 um 12:37
    • #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
    Gast
    • 10. Juli 2012 um 19:48
    • #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
    Gast
    • 25. Juli 2012 um 02:15
    • #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
    Gast
    • 3. August 2012 um 15:15
    • #6
    Zitat von 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
    Gast
    • 4. August 2012 um 20:31
    • #7
    Zitat von TuinmanTom

    Tobias, any idea on the release date of 0.7.7?


    I've now tagged the current master to 0.7.7 .

    Zitat von 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. Datenschutzerklärung
  2. Impressum
  3. Nutzungsbedingungen
  4. Kontakt

Partner
Viktor´s Supportboard
Besucherzaehler



Community-Software: WoltLab Suite™ 6.2.9
© Wetter-Board 2004-2026