Page 1 of 1
Ukraine language
Posted: Wed Jun 02, 2021 11:51 am
by androroz
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
Re: Ukraine language
Posted: Wed Jun 02, 2021 12:53 pm
by davidefa
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 ; - )
Re: Ukraine language
Posted: Thu Jun 03, 2021 9:10 am
by androroz
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.
--
Re: Ukraine language
Posted: Thu Jun 03, 2021 10:46 am
by davidefa
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 (385.12 KiB) Viewed 35189 times
Re: Ukraine language
Posted: Fri Jun 04, 2021 3:28 am
by androroz
Thans you, please my file pl-1.rar(ur5wac).
Re: Ukraine language
Posted: Fri Jun 04, 2021 8:46 am
by davidefa
Mine pl.php is completely different from your ( so I can't compare them ), please attach also your original pl.php ( with no modifications )
Re: Ukraine language
Posted: Fri Jun 04, 2021 12:38 pm
by androroz
Please, original pl.php file
Re: Ukraine language
Posted: Fri Jun 04, 2021 2:10 pm
by davidefa
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 (160.82 KiB) Viewed 35174 times
Re: Ukraine language
Posted: Sun Jun 06, 2021 3:43 am
by androroz
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!
Re: Ukraine language
Posted: Mon Jun 28, 2021 10:24 am
by androroz
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.
Re: Ukraine language
Posted: Sun Jul 18, 2021 4:55 pm
by davidefa
Here the file corrected ( a few 'imperfections' : quotes not correctly closed, missing semicolons and incorrect escaping )