Advertisement:

Author Topic: Which version of the XML should I use?  (Read 1161 times)

Offline jsx

  • Jr. Member
  • **
  • Posts: 321
  • Gender: Male
Re: Which version of the XML should I use?
« Reply #20 on: February 11, 2019, 04:03:14 AM »
If I understand this correctly, the content of the translation that is in the PHP file does not go to the Modifications.polish-utf8.php file because is in the own file.

Example:

../languages/OharaYTEmbed.polish-utf8.php

Thank you for your patience. :)

Online SychO

  • Customizer
  • Sr. Member
  • *
  • Posts: 845
  • Gender: Male
    • SychO9 on GitHub
    • SychO
Re: Which version of the XML should I use?
« Reply #21 on: February 11, 2019, 04:44:03 AM »
no, that's not why

the file is added to the languages directory because you tell the package manager to do so
new language strings are added to Modifications.{lang}.php or any other language file, because you tell the package manager to execute a modification that does that work

you really need to read these
Package SDK: package-info.xml
Package SDK: modification.xml

Imazighen

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 57,621
  • Gender: Male
    • Kindred-999 on GitHub
Re: Which version of the XML should I use?
« Reply #22 on: February 11, 2019, 05:08:14 PM »
basically, I follow this rule of thumb.

If my mod adds under 20 text strings, I add those strings to the end of the modifications.language.php file....   if I'm going to add more, then I add my own separate file of strings just for the mod.


but doing that is two different commands in the mod install xml
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.