• Resolved elsnare

    (@elsnare)


    Afther 2 hours of fighting I could not get this to work.

    In singe post I’m pulling the date by:
    the_date('j, F, Y');

    It output’s the formatted date for the appropriate language – this works fine.

    The problem:
    Some characters in the date are replaced by ascii “?” symbols.
    For example: b?ezen as of March. It affect only foreign characters with umlauts and such.

    What I tried:

    • Changing date emulation in the settings.
    • Changing date output
    • Changing single.php file encoding
    • Checked .po and .mo files in the language directory

    I’m out of ideas ??

    https://www.ads-software.com/plugins/qtranslate-x/

Viewing 4 replies - 16 through 19 (of 19 total)
  • Plugin Author John Clause

    (@johnclause)

    b?ezen as of March.

    Does the same formating show correct value with q-X turned off? It may be a problem with WP translation for Czech language. I do not see word “March” in qtranslate-cs_CZ.po file, so it must be pulled from WP translation repository, or other plugin. Turn off all plugins, set WP default theme, and see if the same date with the same formatting is shown correctly.

    Off topic: please, provide information for cs language to be included in the pre-defined list of languages for q-X. I need the values of all fields, which are entered on new language adding. They can also be looked up on /wp-admin/options-general.php?page=qtranslate-x&edit=cs

    Thread Starter elsnare

    (@elsnare)

    Fixed!

    The problem lied in the wrong locale code in the language settings. For the Czech language I had it: “cz_CZ”, when it should be “cs_CZ”. After the change it works fine now.

    Thanks for the help.

    Plugin Author John Clause

    (@johnclause)

    Would you consider helping us to add ‘cs’ to the list of predefined languages:

    Off topic: please, provide information for cs language to be included in the pre-defined list of languages for q-X. I need the values of all fields, which are entered on new language adding. They can also be looked up on /wp-admin/options-general.php?page=qtranslate-x&edit=cs

    Thread Starter elsnare

    (@elsnare)

    @john
    Sorry but Czech is not my main language so I might not be the best person to consult this with ?? The settings on my site are based on settings from the original client’s website to minimize SEO problems.

Viewing 4 replies - 16 through 19 (of 19 total)
  • The topic ‘Date missing characters’ is closed to new replies.