Azuracast: does not import locale

Created on 31 Aug 2018  路  12Comments  路  Source: AzuraCast/AzuraCast

[root@web-zones AzuraCast]# docker-compose run --rm cli azuracast_cli locale:import
Starting azuracast_influxdb_1 ...
Starting azuracast_influxdb_1 ... done
Starting azuracast_redis_1 ... done
Starting azuracast_mariadb_1 ... done
Starting azuracast_web_1 ... done
2018/08/31 09:45:51 Waiting for: tcp://mariadb:3306
2018/08/31 09:45:51 Waiting for: tcp://influxdb:8086
2018/08/31 09:45:51 Connected to tcp://influxdb:8086
2018/08/31 09:45:51 Connected to tcp://mariadb:3306
Locales imported.
2018/08/31 09:45:51 Command finished successfully.

But the language file is not updated with the language.

All 12 comments

@susl16c The locale:import function does not add untranslated strings to the other .po files, it converts the already translated .po files from other languages into their PHP counterparts, so AzuraCast can use them. It's only for use when your translations are complete and being "imported" into the system.

This is partly why we use CrowdIn, because they automatically pull all strings from the main translation and allow you to supply translations for each of them, without needing to keep those other .po files synchronized with the strings in the main one.

I finished the translation in a file. I downloaded it where the translation is and used to execute the command above and everything was added to the PHP file but now it does not work, all the files with the translation were updated, and they changed the date when I executed the command, now it does not work.
default.zip
Here is my translation file, you can try it for yourself.
If you delete the translation file and execute the command above, then the translation will not be created again, therefore the team does not work at all, before this was not.

"X-Crowdin-File: /master/app/locale/default.potn"

How can I manually generate a translation?

@susl16c You should be putting the translated file into /resources/locale/(language).UTF-8/LC_MESSAGES/default.po, not replacing the main translation, which corresponds to English in the application.

This is not the first time I've done this, and I'm doing everything since you write, but translations are not imported, I put the translation in a folder with my own language, I execute the command above and nothing changes in the translation folders, they were updated before and when the compilation took place files changed the date, after your changes and hyphens, nothing is imported. All that you wrote I did the result 0.
Can the command for import change? Help me people can not read without translation there is nothing.

@susl16c Is it a language that AzuraCast normally supports? If not, you'll want to update /config/settings.php and edit the supported locales before importing the new one.

I come here /resources/locale/ru_RU.UTF-8/LC_MESSAGES/ I copy the file there .po
I execute the command (docker-compose run --rm cli azuracast_cli locale: import )
turn resources/locale/compiled/ and I see that nothing has changed, even the dates of the files are not changed.
Previously, when importing, it was written which files were imported and the file dates were changed.

@susl16c You're always finding weird little issues in AzuraCast, and I swear it always takes me 20 reviews of your issue to figure out there was an issue in the code in the first place.

Should be fixed now.

Thank you, I will now check and forgive me I'm not on purpose, maybe it's because of my poor English, but I sincerely want to improve the product.

@susl16c I'm not mad, just remarking! :)

Thank you very much, now everything works as before.

@susl16c Good! Thank you for your patience.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

RemBdev picture RemBdev  路  4Comments

frozenplaya picture frozenplaya  路  4Comments

bebjakub picture bebjakub  路  3Comments

oussamatn picture oussamatn  路  3Comments

ErnestPH picture ErnestPH  路  3Comments