eefret / aistt Goto Github PK
View Code? Open in Web Editor NEWAndroid Ios String Translation Tool
Android Ios String Translation Tool
This is where all the magic happen, here we should load a tab for each of the language codes we have in our languages map and load all the strings from the file in the map also, then for each of these strings we should fill a row of our map, listing if it is translatable or not, then make the rows selectable and make both edittext on the bottom modify the item rows in the map, the next button and the previous button should go back and forth, all this changes must be done live directly to the file
Our second screen will be where we will define the project location, then, based on the configuration selected in projectType we have to scan the different strings languages and list them in the list, the after the user selects the languages he wants from the list, we can pass all this info to the main Screen and open a new project in it.
This should set a global variable named projectLocation and another one named languagesMap, the first one will define the root location path, and the second path will have the language code and the file path relative to the projectLocation.
Example:
projectLocation = '/home/eefret/Workspace/android/myproject';
languagesMap : {
'default': 'app/main/src/values/strings.xml',
'en_us' : 'app/main/src/values-en/strings.xml',
'es_es' : 'app/main/src/values-es/strings.xml
}
Lets create a helper that allows us to escape an unescape xml strings, this should be used for android strings validation and formatting.
We should be able to read and import xml android language files, we would want to give the program the route of the project and that it import them automatic.
Our Standalone application will run based on a project Android or Ios, depending on what type of project is we will change the logic of pulling the strings based on the default locations.
The screen should set a global variable named projectType which will have one of the following strings ["android", "ios"], depending on which is selected
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.