Hi, I am importing PO files to the strings table. I want to import alongside the text also the "name" of the string. (like in the attached screenshot"). What is the format of the PO file to pass this parameter?
The string name are stored as the String comment in the PO file and you can modify the string name by modifying the String Comment in a PO file editor.
However when you import the PO file with string name changed it will create a different string and not translate the original string with that name. The String Name are managed internally and are not meant to be modified or changed.
The names are stored as comments for the strings and in the format:
# wpml-name: TEST NAME
However please note this is automatically set by WPML and is not meant to be modified and if modified the original string translation might not work at WPML -> String Translation.
I shared the details on how the String name is saved only for reference and not as a way to edit the name as it wont work actually.