Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
Modify the name columns of a string at WPML -> String Translation

Solution:
The name of a string is managed internally and is not meant to be modified.

Relevant Documentation:
N/A

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

This topic contains 4 replies, has 2 voices.

Last updated by Subash Chandra Poudel 1 year, 5 months ago.

Assisted by: Subash Chandra Poudel.

Author Posts
July 25, 2023 at 5:50 am #14093041

erezS-3

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?

July 25, 2023 at 12:05 pm #14096191

erezS-3

1) I understood at the end of our chat that it is not possible to import names via the PO files.
Please confirm if this is correct

2) If so, is there a way inside WPML to assign names to strings?

Thanks,
Erez

July 25, 2023 at 4:44 pm #14098401

Subash Chandra Poudel

Hi there,

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.

Regards,
Subash

July 26, 2023 at 4:52 am #14099411

erezS-3

There are several comment options for MO files (See attached).
Which one should I use to set the name?

Thanks

WPML NAmes.jpg
PO files comment format.jpg
July 27, 2023 at 11:00 am #14109865

Subash Chandra Poudel

Hi there,

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.

Regards,
Subash

July 27, 2023 at 12:16 pm #14110627

erezS-3

Thank you