onetech icon indicating copy to clipboard operation
onetech copied to clipboard

i18n support

Open naveed-ahmad opened this issue 6 years ago • 5 comments

Released Android app based on this repo and got some request for adding Japanese translation. Here are the results.

screenshot_20181230_033339 screenshot_20181230_033419

English version: screenshot_20181230_033828 screenshot_20181230_033846

I'm not sure if you would want to add i18n support or not, let me now and I can send the PR :)

naveed-ahmad avatar Dec 29 '18 22:12 naveed-ahmad

Used google translator, and I'm not sure if translations are correct :)

Wrote some ruby script that prepare a file with object names, then used google translate for translating into Japanese. Another script then parsed the translation and filled sqlite db ( I'm using sqlite db instead of json files )

All this can be automate.

naveed-ahmad avatar Dec 29 '18 22:12 naveed-ahmad

The Android app looks pretty cool, out of curiosity, did you use just the processing script of this repo or the front-end Vue side too?

If we are just using Google Translate then I don't think it's worth adding i18n to this repo. Some browsers (such as Chrome) will automatically offer to translate a page which doesn't match their main language. Others you can get a browser extension to do translations on the fly.

If we did manual translation (perhaps in coordination with the Translation forum) it may be worth it, but that would be difficult to keep up to date as new objects are added.

ryanb avatar Dec 31 '18 17:12 ryanb

@ryanb both, but frontend is very much customised now. Initially I had added lots of stuff in process script as well but you were too fast in releasing new stuff. Now, abandoned my fork of processing script and wrote few ruby script which will parse json files from created using onetech processing and populate sqlite db.

For frontend I have used f7 components: http://framework7.io

App is using JS based sqlite client which is very slow, next release will use native sqlite which I'm hopping will improve the speed.

naveed-ahmad avatar Dec 31 '18 19:12 naveed-ahmad

Good to know, glad you found the repo useful.

Closing this since I think most people can translate through the browser. If I receive more requests for this I will reopen.

ryanb avatar Dec 31 '18 19:12 ryanb

Reopening this since it may be possible to get translations from the mobile devs. I think it would be more worthwhile if we have custom translations.

ryanb avatar Jan 18 '19 00:01 ryanb