Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing localization for complex field no entries message #823

Merged
merged 1 commit into from
Jan 16, 2020
Merged

Add missing localization for complex field no entries message #823

merged 1 commit into from
Jan 16, 2020

Conversation

lstoyanoff
Copy link
Contributor

Fix #790

@vvasilev- vvasilev- merged commit 2f8d5f1 into htmlburger:development Jan 16, 2020
@lstoyanoff lstoyanoff deleted the fix/missing-string-translation branch January 16, 2020 14:36
@muzanaka
Copy link

It's awesome? that you repair it, but there is no information how to translate this text

@emohamed
Copy link
Member

@muzanaka check here: https://github.com/htmlburger/carbon-fields/pull/823/files -- the string is There are no entries yet.

@muzanaka
Copy link

@emohamed Field::make( 'complex', 'expects', 'Ожидания')->set_layout( 'grid' )->set_WHAT('translate_this_string')

@lstoyanoff
Copy link
Contributor Author

Hi @muzanaka,
You should either manually generate .po and .mo files from the Carbon Fields .pot using a translation tool like for example poedit or install a WordPress plugin for managing string translations ( I would recommend using Loco Translate ) which will automatically find all .pot files in your WordPress theme/plugins.

You can find more information about localization in the WordPress Docs -- https://developer.wordpress.org/apis/handbook/internationalization/localization/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants