How to get PO file use Loco Translate with Label and Description field Metabox

Support General How to get PO file use Loco Translate with Label and Description field Metabox

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #35768
    A RollinA Rollin
    Participant

    Hello,

    Do you know, how to use Loco Translate to get a PO file with Metabox Label and Description fields? I have Loco translate installed, but I can't figure out how to get the PO file.

    Thank you

    #35772
    Long NguyenLong Nguyen
    Moderator

    Hi,

    You need to use the code to register the meta box and custom fields, then use Loco Translate to scan the text (.pot) and start translating. See more here https://support.metabox.io/topic/block-field-lables-not-translatable/#post-35758

    #35779
    A RollinA Rollin
    Participant

    Hello,

    Thank you for your quick answer. I understand what you are linking to. But the problem is that I don't have a way to export custom labels and description fields. How to export a PO file for the label and description custom field Metabox? Can you give me the script or tutorial? We need to create a new PO file from the values stored in the label and description Metabox.

    Thank you

    #35786
    Long NguyenLong Nguyen
    Moderator

    Hi,

    If you are using the builder to create the custom fields, you can get the PHP code and put the code to the file functions.php in the theme/child theme folder to register the custom fields by coding then translate the field name and field description.
    https://docs.metabox.io/extensions/meta-box-builder/#getting-php-code

    #35809
    A RollinA Rollin
    Participant

    Hello,

    Thank you for your reply. Can you please tell us about how to most easily to get a PO File containing all labels and descriptions of the custom fields? Because putting code into function.php is not a solution unless it produces a PO File.

    Thank you

    #35817
    Long NguyenLong Nguyen
    Moderator

    Hi,

    Loco Translate can help you to scan the translatable text and add it to the PO file, check this screen record https://monosnap.com/file/4w7oyBOzMsqKfxmyMKopsyBSuQOBYx

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.