Comments (6)
a table for each language!!!
from autoplugin.
spanish = {MENU_TITLE="Autoplugin" ....}
english = {MENU_TITLE="Autoplugin" ....}
...
and switch
language = spanish
then only show info with con language
language[MENU_TITLE]
from autoplugin.
For some reason I couldn't get it to work like that. With the code:
test = {TEST="My Test", TEST2="My Test 2"}
os.message(test[TEST])
os.message(test[TEST2])
It would crash stating that they were nil when os.message expects a string. There's not really a whole lot of reason to keep all of those tables in memory IMO. When the translate page loads, however, there will be a table for each language.
EDIT: Rereading what you wrote, that makes sense and I was thinking about it wrong. I will end up doing something very similar to what you suggested. Thanks!
from autoplugin.
test = {TEST="My Test", TEST2="My Test 2"} <- os.message(test[1]) for My Test
from autoplugin.
another way
test = {
test1 = "My Test", -- important the ,
}
os.mesage(test.test1)
from autoplugin.
I have completed the first iteration of this feature. It currently saves the translations you have made to ux0:data/AUTOPLUGIN/.lua so they can be sent to us here and we can add them to the files or the translator can add them.
The ones with no translation are listed first, then all the rest of the translations are dumped onto the page. I'm open to feedback.
from autoplugin.
Related Issues (20)
- Not valid
- Bug in rePatch plugin
- Update AnalogsEnhancer with my mod HOT 2
- Installation of udcd_uvc for OLED and LCD does not succeed HOT 2
- FreePSM is not mentioned in readme.md HOT 1
- Update for Spanish Languague HOT 1
- Polish translation bug underscore instead of diacritic characters HOT 4
- NoLockScreen HOT 8
- Add lolita444 HOT 1
- rePatch 2.71 HOT 2
- (Suggestion)Make an option to update Languages Files
- Add old rePatch plugin HOT 1
- Changelog
- Can't change between uxo and uro in install plugins page HOT 1
- [Request] Remove iTLS-Enso HOT 2
- Some issues HOT 1
- Add the Button combo for the Plugin HOT 1
- Spanish translation
- Keeps shutting off my Vita randomly HOT 1
- Add experimental ds4vita plugin
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from autoplugin.