Skip to content

How to proper prepare transtaltion locale file with diacretic signs? #159

@androxkentaki

Description

@androxkentaki

Hello @lmarzen.

I assembled the weather station according to Your project - it is great, i love it.

I have prepare pl_PL locale translation file (polish).
But i have a problem with polish diacritics signs like ąęłńżźćóĄĘŁŃŻŹĆÓ.

Can You explain hot to make them properly into .inc file?

According to used examples in project i have assumed, that i need go to Extended ASCII Table for Windows-1250
https://www.ascii-code.com/CP1250

Find my character in table, check its OCT number and replace it in prepared locale_pl_PL.inc locale file giving the prefix \ at the beginning.
So e.g.

So for e.g.
Wschód słońca

i have preprare

Wsch\363d s\263o\361ca

Image
Image
Image

or Wilgotność
as
"Wilgotno\234\346"

Image
Image

The translation is used properly, but diacritic signs is not displayed properly.
and on e-paper i have

Image

I an using #define FONT_HEADER "fonts/FreeSans.h" in config.

Can You help me and explain what i have did wrong?

Is this a problem with my interpretation of usin OCT number ?
Ir maybe it is an issue with font (some letters are displayed properly?

I attach copy om by translation file (in txt).

locale_pl_PL.txt

When I finish working on it i want to prepare Pull Request with it to contribute this project.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions