Skip to content

di2pra/Inno

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Innovattic

How to use?

In your script.py file import the LanguageXMLConverter python Class, and the model of object reflecting the schema of the XML. below the exemple file :

from classes.LanguageXMLConverter import LanguageXMLConverter
from models.resources import resources


"""
 Example #1 generate Italian property language file
"""

italian = LanguageXMLConverter(resources, ['example/input/values-it/ads.xml', 'example/input/values-it/extra.xml', 'example/input/values-it/strings.xml', 'example/input/values-it/strings2.xml'])

italian.generateOutputFile('example/output/Italian.txt') #generate property type language output file



"""
 Example #2 generate English property language file
"""


english = LanguageXMLConverter(resources) # init an instance of Language XML Converter with empty input file paths array

# add input file paths to the instance
english.addInputXMLFile('example/input/values/ads.xml')
english.addInputXMLFile('example/input/values/extra.xml')
english.addInputXMLFile('example/input/values/strings.xml')
english.addInputXMLFile('example/input/values/strings2.xml')

english.generateOutputFile('example/output/English.txt') #generate property type language output file

Open the command line tool in the main directory, and run the main python script. (Python 2.7

python script.py

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages