I'm trying to rename some fields, but I dont really understand how to do it with an extension.
I have imported a module in "extensions" folder and i'm trying to modify it.
Here is my "datamodel.sample-extension.xml", is this the file I need to modify? And are my tags good? When I want to install it on my itop dev server I have an error on line 3 on "FR FR".
<?xmlversion="1.0"encoding="UTF-8"?><itop_designxmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"version="3.0"><dictionaryid="FR FR"_delta="must_exist"><entries><entryid="Class:UserRequest/Attribute:caller_id"_delta="redefine"><![CDATA[Bénéficiaire]]></entry><entryid="Class:UserRequest/Attribute:caller_id+"_delta="force"><![CDATA[Choisissez le bénéficaire]]></entry></entries></dictionary></itop_design>
thank you
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Define no delta on line 3 (or use value "merge" or "force") and used "define" or "force" in line 5.
Those tags do not exist by default.
iTop and extensions, usually do not bring their dictionaries in XML, but in PHP.
👍
1
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
I'm trying to rename some fields, but I dont really understand how to do it with an extension.
I have imported a module in "extensions" folder and i'm trying to modify it.
Here is my "datamodel.sample-extension.xml", is this the file I need to modify? And are my tags good? When I want to install it on my itop dev server I have an error on line 3 on "FR FR".
thank you
Probably because it doesn't exist yet? I usually work with the xx.module-xxx.php dictionary files. You might be able to pull it off with XML as well.
Make sure you also add a dependency to the module in which the strings were originally defined, so your translation overrides the existing one.
Define no delta on line 3 (or use value "merge" or "force") and used "define" or "force" in line 5.
Those tags do not exist by default.
iTop and extensions, usually do not bring their dictionaries in XML, but in PHP.