Ukraine language

Discussion about language files
Post Reply
androroz
Observer
Observer
Posts: 25
Joined: Sat May 01, 2021 1:09 pm
Station model: WS-2310 11STWC
Software: Weather Display

Ukraine language

Post by androroz » Wed Jun 02, 2021 11:51 am

I ask for help.I need to translate a language file.For training, I used the Polish file pl.php, which works correctly.
In the line "stationData": "Dane Stacji" replaced with "stationData": "ABCD".
After such a change, the site stopped switching to Polish, only to English.
The translation was done using EditPlus.
Please tell me how to correctly translate into another language?
With all respect, Andrey

My site: http://www.dragana.lviv.in/template/indexDesktop.php

davidefa
Expert
Expert
Posts: 862
Joined: Tue Jan 12, 2021 8:03 am
Location: Italy
Station model: WH2650
Software: WH2650 (direct upload)
Contact:

Re: Ukraine language

Post by davidefa » Wed Jun 02, 2021 12:53 pm

What you did is correct, maybe you inadvertently changed something...
Attach your modified language file so we can take a look
Your site seems to switch language correctly ( tough the ukraine language resembles english ; - )
Image

androroz
Observer
Observer
Posts: 25
Joined: Sat May 01, 2021 1:09 pm
Station model: WS-2310 11STWC
Software: Weather Display

Re: Ukraine language

Post by androroz » Thu Jun 03, 2021 9:10 am

Dear Divadefa! Thanks fo attetion. I ask for help.
I need to translate a language file.
For training, I used the Polish file pl.php, which works correctly.
In the pl.php file, there is a line in two places: "stationData": "Dane Stacji".
In the first line "stationData": "Dane Stacji" replaced with "stationData": "UR5WAC", and in the second line "stationData": "UR5WAC2"
After such a change, the site stopped switching to Polish, and to English.
The translation was done using EditPlus. Please tell me how to correctly translate into
another language? Please send me you e-mail No send .php file
With all respect, Andrew.

--

davidefa
Expert
Expert
Posts: 862
Joined: Tue Jan 12, 2021 8:03 am
Location: Italy
Station model: WH2650
Software: WH2650 (direct upload)
Contact:

Re: Ukraine language

Post by davidefa » Thu Jun 03, 2021 10:46 am

I understand what you want to do and what you did ( and that you used EditPlus ).
I'm not sure how you did it ( so I asked you to upload the file you modified ).

- I'm using notepad++ ( which shows the file is encoded UTF-8 without bom, do not change encoding )
- modified the "stationData":"UR5WAC" ( see attached file )
and it seems to work for me

NOTE
I find only one stationData string

polish.png
polish.png (385.12 KiB) Viewed 2675 times
Attachments
pl.zip
(17.99 KiB) Downloaded 47 times
Image

androroz
Observer
Observer
Posts: 25
Joined: Sat May 01, 2021 1:09 pm
Station model: WS-2310 11STWC
Software: Weather Display

Re: Ukraine language

Post by androroz » Fri Jun 04, 2021 3:28 am

Thans you, please my file pl-1.rar(ur5wac).
Attachments
pl-1.rar
(21.85 KiB) Downloaded 50 times

davidefa
Expert
Expert
Posts: 862
Joined: Tue Jan 12, 2021 8:03 am
Location: Italy
Station model: WH2650
Software: WH2650 (direct upload)
Contact:

Re: Ukraine language

Post by davidefa » Fri Jun 04, 2021 8:46 am

Mine pl.php is completely different from your ( so I can't compare them ), please attach also your original pl.php ( with no modifications )
Image

androroz
Observer
Observer
Posts: 25
Joined: Sat May 01, 2021 1:09 pm
Station model: WS-2310 11STWC
Software: Weather Display

Re: Ukraine language

Post by androroz » Fri Jun 04, 2021 12:38 pm

Please, original pl.php file
Attachments
PL.rar
(21.67 KiB) Downloaded 46 times

davidefa
Expert
Expert
Posts: 862
Joined: Tue Jan 12, 2021 8:03 am
Location: Italy
Station model: WH2650
Software: WH2650 (direct upload)
Contact:

Re: Ukraine language

Post by davidefa » Fri Jun 04, 2021 2:10 pm

As I said you are doing right, but the editor you used messed with the file encoding ( or something like that ) during your editing ( see attached image ), after removing the 'garbled' text your file is ok.
So repeat your editing from the beginning ( keeping encoding as utf-8 without bom ).

NOTE
For non ascii files I generally use notepad++

ua-lang.png
ua-lang.png (160.82 KiB) Viewed 2660 times
Image

androroz
Observer
Observer
Posts: 25
Joined: Sat May 01, 2021 1:09 pm
Station model: WS-2310 11STWC
Software: Weather Display

Re: Ukraine language

Post by androroz » Sun Jun 06, 2021 3:43 am

Many thanks to you Davidefa !!! You helped a lot and understood what we are doing. My friend UR5WAC helps me with translation into Ukrainian. My callsign is US5WAC. We will still contact you with questions. Thanks for the competent consultation. 73!
Attachments
мова ur5wac.png
мова ur5wac.png (284.01 KiB) Viewed 2648 times

androroz
Observer
Observer
Posts: 25
Joined: Sat May 01, 2021 1:09 pm
Station model: WS-2310 11STWC
Software: Weather Display

Re: Ukraine language

Post by androroz » Mon Jun 28, 2021 10:24 am

Dear David! My friend, a radio amateur, made a translation into Ukrainian. The file does not work on the site. Check errors and fix them. Send the corrected file. If the translation works, then you can put it into the template via Jachym.
Attachments
ua.rar
(29.39 KiB) Downloaded 44 times

davidefa
Expert
Expert
Posts: 862
Joined: Tue Jan 12, 2021 8:03 am
Location: Italy
Station model: WH2650
Software: WH2650 (direct upload)
Contact:

Re: Ukraine language

Post by davidefa » Sun Jul 18, 2021 4:55 pm

Here the file corrected ( a few 'imperfections' : quotes not correctly closed, missing semicolons and incorrect escaping )
Attachments
ua_1.0.zip
(28.41 KiB) Downloaded 44 times
Image

Post Reply